/* VeltronHost — выбор ОС при заказе VPS */
.veltron-os-section {
  margin: 1.25rem 0 0.5rem;
}

.veltron-os-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 1.25rem 0 1rem;
}

.veltron-os-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.veltron-os-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.veltron-os-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
}

.veltron-os-badge {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.veltron-os-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.veltron-os-state--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

.veltron-os-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #818cf8;
  animation: veltron-os-spin 0.75s linear infinite;
}

@keyframes veltron-os-spin {
  to { transform: rotate(360deg); }
}

.veltron-os-picker {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.veltron-os-popular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.65rem;
}

.veltron-os-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.veltron-os-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.veltron-os-card:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.veltron-os-card.is-selected {
  border-color: rgba(129, 140, 248, 0.85);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.08) 100%);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25) inset;
}

.veltron-os-card__icon {
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
  color: #eef2ff;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.veltron-os-card__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.veltron-os-card__name {
  font-weight: 650;
  font-size: 0.94rem;
  line-height: 1.25;
  word-break: break-word;
}

.veltron-os-card__meta {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

.veltron-os-card__check {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.veltron-os-card.is-selected .veltron-os-card__check {
  border-color: #a5b4fc;
  background: #6366f1;
}

.veltron-os-card.is-selected .veltron-os-card__check::after {
  content: '';
  position: absolute;
  inset: 0.2rem;
  border-radius: 50%;
  background: #fff;
}

.veltron-os-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.06);
  color: #c7d2fe;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.veltron-os-toggle:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.55);
  color: #e0e7ff;
}

.veltron-os-toggle:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.veltron-os-toggle__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.veltron-os-toggle.is-expanded .veltron-os-toggle__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.veltron-os-catalog {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.veltron-os-catalog.is-open {
  max-height: 4200px;
  opacity: 1;
}

.veltron-os-families {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.veltron-os-family {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.veltron-os-family__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.veltron-os-family__header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.veltron-os-family__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #eef2ff;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

.veltron-os-family__title {
  flex: 1;
  font-weight: 650;
  font-size: 0.92rem;
}

.veltron-os-family__count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.veltron-os-family__chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.veltron-os-family.is-open .veltron-os-family__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.veltron-os-family__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.veltron-os-family__body.is-open {
  max-height: 2400px;
  opacity: 1;
}

.veltron-os-family__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0.65rem 0.75rem;
}

.veltron-os-family__list .veltron-os-card {
  padding: 0.7rem 0.85rem;
}

@media (max-width: 575.98px) {
  .veltron-os-header {
    flex-direction: column;
    align-items: stretch;
  }

  .veltron-os-badge {
    align-self: flex-start;
  }

  .veltron-os-popular {
    grid-template-columns: 1fr;
  }

  .veltron-os-card {
    padding: 0.8rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .veltron-os-card,
  .veltron-os-spinner,
  .veltron-os-catalog,
  .veltron-os-family__body,
  .veltron-os-toggle__chevron,
  .veltron-os-family__chevron {
    animation: none;
    transition: none;
  }
}
