/* ========================================================
   ЛогоСфера — Профессиональная дизайн-система
   Разработано по стандартам ui-ux-pro-max и frontend-design
   Типографика: Golos Text & Manrope (полная поддержка кириллицы)
   Палитра: Небесно-голубой, Чистый индиго, Солнечный акцент
   Иконки: Только чистый SVG (Никаких Unicode-эмодзи!)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Фирменная палитра из официального логотипа ЛогоСферы */
  --primary: #0a3e8c;          /* Благородный королевский синий из логотипа */
  --primary-hover: #072e6e;
  --primary-subtle: #f0f5fc;
  --primary-border: #bfdbfe;
  
  --accent: #d97706;           /* Теплый медовый янтарный из лучей логотипа */
  --accent-hover: #b45309;
  --accent-subtle: #fffbeb;
  --accent-border: #fde68a;
  
  --amber: #f59e0b;
  --amber-subtle: #fef3c7;
  
  --success: #15803d;
  --success-subtle: #f0fdf4;
  --success-border: #bbf7d0;

  --dark: #0a1730;             /* Глубокий ночной синий для премиального контраста */
  --slate: #334155;            /* Четкий цвет основного текста (контраст > 7:1) */
  --muted: #526079;
  --border: #e2e8f0;
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --surface: #ffffff;
  
  /* Типографика */
  --font-heading: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Радиусы с выверенной иерархией */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  /* Тени (стабильные, без размытого слопа) */
  --shadow-sm: 0 1px 2px rgba(10, 23, 48, 0.04);
  --shadow-card: 0 4px 16px -2px rgba(10, 23, 48, 0.06), 0 1px 3px rgba(10, 23, 48, 0.03);
  --shadow-hover: 0 8px 24px -4px rgba(10, 23, 48, 0.09), 0 2px 6px rgba(10, 23, 48, 0.04);
  --shadow-float: 0 16px 36px -6px rgba(10, 23, 48, 0.12);
  
  /* Анимации (стабильные, без смещения верстки) */
  --transition-fast: 140ms ease-out;
  --transition: 220ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.container-fluid {
  width: 100%;
  padding-left: clamp(20px, 3.5vw, 48px);
  padding-right: clamp(20px, 3.5vw, 48px);
}

/* ==========================================
   Векторные SVG-иконки (Замена эмодзи)
   ========================================== */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.svg-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.icon-box.accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
}

.icon-box.amber {
  background: var(--amber-subtle);
  color: var(--amber);
  border-color: #fde68a;
}

.icon-box.success {
  background: var(--success-subtle);
  color: var(--success);
  border-color: var(--success-border);
}

/* ==========================================
   Типографика
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  color: var(--primary-hover);
  border: 1px solid var(--primary-border);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 52px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==========================================
   Кнопки (Без подпрыгиваний и сдвигов)
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  text-align: center;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
}

.filter-btn {
  border-radius: 9999px !important;
  padding: 10px 24px !important;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  text-shadow: 0 1px 2px rgba(2, 44, 80, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border-color: #0369a1;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

.btn-accent {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  text-shadow: 0 1px 2px rgba(2, 44, 80, 0.2);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border-color: #0369a1;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--dark);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 34px;
  border-radius: 9999px;
  font-size: 1.05rem;
}

/* ==========================================
   Тонкий допхэдер (Top Bar наверху)
   ========================================== */
.top-bar {
  width: 100%;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  font-size: 0.83rem;
  color: #64748b;
  position: relative;
  z-index: 95;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(28px, 5vw, 84px);
}

.top-bar-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
}

.top-bar-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-vk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0077ff;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-bar-vk:hover {
  color: #0056b3;
}

.top-bar-sep {
  color: #cbd5e1;
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.top-bar-phone svg {
  color: var(--primary);
  flex-shrink: 0;
}

.top-bar-phone:hover {
  color: var(--primary);
}

.top-bar-phone strong {
  font-weight: 700;
}

.top-bar-phone-desc {
  color: #94a3b8;
  font-size: 0.78rem;
}

/* ==========================================
   Главный закрепляемый хэдер (Sticky, Прозрачный на первом экране)
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(28px, 5vw, 84px);
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img-main {
  height: 52px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  transition: filter var(--transition-fast);
}

.logo-wrap:hover .logo-img-main {
  filter: brightness(1.05);
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  font-weight: 600;
  color: #334155;
  font-size: 0.94rem;
  padding: 6px 0;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.main-menu li a:hover,
.main-menu li.active a {
  color: var(--primary);
}

.main-menu li.active a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 9999px;
}

/* ==========================================
   Выпадающее сабменю услуг в навигации
   ========================================== */
.main-menu li.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  pointer-events: none;
}

.main-menu li.has-dropdown:hover .dropdown-chevron,
.main-menu li.has-dropdown:focus-within .dropdown-chevron,
.main-menu li.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 310px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -6px rgba(10, 23, 48, 0.12), 0 2px 8px rgba(10, 23, 48, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 120;
}

/* Мостик для сохранения hover-состояния */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.main-menu li.has-dropdown:hover .dropdown-menu,
.main-menu li.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}

.dropdown-menu li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 8px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  border-radius: 9999px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu li a::after {
  display: none !important;
}

.dropdown-menu li a:hover {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
}

.dropdown-menu li.dropdown-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 6px 8px;
}

.dropdown-menu li a.dropdown-all {
  font-weight: 700 !important;
  color: #0284c7 !important;
}

.dropdown-menu li a.dropdown-all:hover {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.burger-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================
   Hero Section (Новый баннер с полупрозрачным наложением)
   ========================================== */
.hero-section {
  position: relative;
  background-color: #ffffff;
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.55) 32%, rgba(255, 255, 255, 0.22) 54%, rgba(255, 255, 255, 0) 74%),
    url('/assets/Logos.png');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: -76px;
  padding-top: 130px;
  padding-bottom: 64px;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 440px;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 3;
}

/* Бейдж слогана */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

/* Главный заголовок */
.hero-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  color: #0d2040;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

/* Подзаголовок */
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 34px;
  max-width: 550px;
}

/* Кнопки действий */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Небесно-голубая кнопка заявки (по макету) */
.btn-hero-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(2, 44, 80, 0.25);
}

.btn-hero-gold:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 14px 28px -2px rgba(2, 132, 199, 0.52);
  filter: brightness(1.02);
  color: #ffffff;
}

.btn-hero-gold:active {
  filter: brightness(0.96);
}

.btn-hero-gold .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-hero-gold:hover .btn-arrow {
  transform: translateX(4px);
}

/* Белая контурная кнопка */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0d2040;
  border: 1.5px solid #cbd5e1;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-outline:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
}

.btn-hero-outline:active {
  background: #e0f2fe;
}

/* Мобильный визуал */
.hero-mobile-visual {
  display: none;
}

/* 4 Карточки преимуществ внизу первого экрана */
.hero-features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.hero-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-feature-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 16px 32px -6px rgba(2, 132, 199, 0.16);
}

.hero-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-bg-blue {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}

.icon-bg-pink {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

.icon-bg-green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.icon-bg-yellow {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.hero-feature-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-feature-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: #0f172a;
  line-height: 1.25;
}

.hero-feature-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}

/* Декоративная плавная волна перехода (скрыта для устранения белой полосы) */
.hero-wave-bottom {
  display: none !important;
}

.hero-wave-bottom svg {
  display: none !important;
}

/* ==========================================
   Поочередное появление объектов снизу (Анимация 2 секунды)
   ========================================== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(48px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Первый экран главной страницы: поочередный старт на загрузке (длительность 2с) */
.hero-badge-pill {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  will-change: opacity, transform;
}

.hero-title {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
  will-change: opacity, transform;
}

.hero-lead {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
  will-change: opacity, transform;
}

.hero-cta-row {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
  will-change: opacity, transform;
}

.hero-mobile-visual {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
  will-change: opacity, transform;
}

.hero-features-bar .hero-feature-card:nth-child(1) {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
  will-change: opacity, transform;
}

.hero-features-bar .hero-feature-card:nth-child(2) {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both;
  will-change: opacity, transform;
}

.hero-features-bar .hero-feature-card:nth-child(3) {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
  will-change: opacity, transform;
}

.hero-features-bar .hero-feature-card:nth-child(4) {
  animation: heroFadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) 1.85s both;
  will-change: opacity, transform;
}

/* Элементы и секции при скролле главной страницы (длительность 2с) */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge-pill,
  .hero-title,
  .hero-lead,
  .hero-cta-row,
  .hero-mobile-visual,
  .hero-feature-card,
  .js .reveal-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================
   Интерактивный Квиз (Фон со звёздочками и облаками)
   ========================================== */
.quiz-section {
  padding: 84px 0 96px;
  background-color: #eaf5fd;
  background-image: url('/assets/quiz_stars_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin: 0;
}

.quiz-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  box-shadow: 0 16px 40px -8px rgba(10, 62, 140, 0.08), 0 2px 8px rgba(10, 62, 140, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  max-width: 1060px;
  margin: 0 auto;
}

.quiz-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.quiz-progress-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: var(--radius-pill);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  width: 25%;
  border-radius: var(--radius-pill);
  transition: width var(--transition);
}

.quiz-step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.quiz-step-node.active {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
}

.quiz-step-node.completed {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}

.quiz-question-box {
  min-height: 290px;
}

.quiz-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--dark);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--slate);
  transition: var(--transition-fast);
  text-align: left;
}

.quiz-option-btn:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.quiz-option-btn.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
}

.quiz-option-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.quiz-option-btn.selected .quiz-option-circle {
  border-color: #0284c7;
  background: #0284c7;
}

.quiz-option-btn.selected .quiz-option-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.quiz-result-box {
  background: var(--primary-subtle);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-border);
  margin-bottom: 24px;
}

.quiz-result-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.plan-item {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid var(--border);
}

.plan-item strong {
  color: var(--primary);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ==========================================
   Услуги (Bento Grid)
   ========================================== */
.services-section {
  padding: 108px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.service-thumb {
  position: relative;
  aspect-ratio: 1 / 0.92;
  width: 100%;
  overflow: hidden;
  background: var(--bg-subtle);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transition: transform 0.25s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.04);
}

.service-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-hover);
  border: 1px solid var(--border);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.service-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.service-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* ==========================================
   Детальная страница услуги (2 колонки: визуал слева, программа справа)
   ========================================== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
  margin-bottom: 96px;
}

.service-detail-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-media-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 28px -4px rgba(10, 23, 48, 0.08);
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 1 / 0.92;
}

.service-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.25s ease;
}

.service-booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 4px 16px -2px rgba(10, 23, 48, 0.05);
}

.service-params-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.service-param-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.service-param-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-heading);
  line-height: 1.15;
}

.service-format-block {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 22px;
}

.service-format-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.service-features-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-feature-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--slate);
  font-weight: 500;
}

.service-content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 4px 16px -2px rgba(10, 23, 48, 0.05);
}

.service-content-card h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.service-desc-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 36px;
}

.service-steps-block h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.service-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-step-item {
  display: flex;
  gap: 14px;
  background: var(--bg-subtle);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.service-step-item .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-step-item h4 {
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.service-step-item p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 992px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-detail-sidebar {
    position: static;
  }
  .service-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Специалисты
   ========================================== */
.specialists-section {
  padding: 108px 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #ffffff 100%);
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 96px;
}

.spec-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spec-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.spec-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 3px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.spec-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.spec-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.spec-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
}

.spec-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
  flex-grow: 1;
}

/* ==========================================
   Преимущества (Асимметричный Bento Grid 12 колонок)
   ========================================== */
.advantages-section {
  padding: 108px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bento-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

/* Карточка ключевого преимущества с акцентом */
.bento-card-navy {
  background: linear-gradient(145deg, #0a3e8c 0%, #0a1730 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-card-navy .bento-title {
  color: #ffffff;
}

.bento-card-navy .bento-desc {
  color: #cbd5e1;
}

.bento-card-navy .icon-box {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  border-color: rgba(255, 255, 255, 0.2);
}

.bento-card-warm {
  background: #fdfaf6;
  border-color: #fde68a;
}

.bento-card-warm .icon-box {
  background: #fef3c7;
  color: #d97706;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

.bento-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.bento-tag-amber {
  background: var(--amber-subtle);
  color: var(--accent);
}

.bento-tag-navy {
  background: rgba(255, 255, 255, 0.15);
  color: #fef08a;
}

/* Совместимость со старыми карточками */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 96px;
}

.adv-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.adv-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.adv-card-blue:hover {
  border-color: #7dd3fc;
  box-shadow: 0 12px 28px -6px rgba(2, 132, 199, 0.16);
}

.adv-card-amber:hover {
  border-color: #fde68a;
  box-shadow: 0 12px 28px -6px rgba(217, 119, 6, 0.16);
}

.adv-card-green:hover {
  border-color: #a7f3d0;
  box-shadow: 0 12px 28px -6px rgba(5, 150, 105, 0.16);
}

.adv-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  color: #ffffff;
}

.adv-icon-blue {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
}

.adv-icon-amber {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

.adv-icon-green {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.adv-icon-wrap {
  margin-bottom: 20px;
}

.adv-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.adv-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================
   Отзывы
   ========================================== */
.reviews-section {
  padding: 108px 0;
  background: var(--bg-subtle);
}

.yandex-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.yandex-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #eab308;
}

.yandex-stars-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
}

.reviewer-child {
  font-size: 0.84rem;
  color: var(--muted);
}

.review-source-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  background: #fef08a;
  color: #854d0e;
}

.review-source-tag.vk {
  background: #e0f2fe;
  color: #0369a1;
}

.review-text {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
}

/* ==========================================
   О нас
   ========================================== */
.about-section {
  padding: 108px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-text-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.about-text-content p {
  color: var(--slate);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px -2px rgba(10, 23, 48, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 154px;
}

.stat-box:hover {
  box-shadow: 0 10px 24px -4px rgba(10, 23, 48, 0.09);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.stat-box-blue {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.stat-box-blue .stat-icon-wrap {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.28);
}
.stat-box-blue .stat-number {
  color: #0369a1;
}
.stat-box-blue .stat-label {
  color: #0c4a6e;
}

.stat-box-amber {
  background: #fffbeb;
  border-color: #fde68a;
}
.stat-box-amber .stat-icon-wrap {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.28);
}
.stat-box-amber .stat-number {
  color: #b45309;
}
.stat-box-amber .stat-label {
  color: #78350f;
}

.stat-box-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.stat-box-green .stat-icon-wrap {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
}
.stat-box-green .stat-number {
  color: #047857;
}
.stat-box-green .stat-label {
  color: #064e3b;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  display: block;
  line-height: 1.15;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.about-banner-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(10, 23, 48, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: var(--surface);
  aspect-ratio: 1 / 1;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.25s ease;
}

/* ==========================================
   Контакты
   ========================================== */
.contacts-section {
  padding: 108px 0;
  background: var(--bg-subtle);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
}

.contact-card {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-details strong {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-details a, .contact-details span {
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 600;
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--border);
  background: #e2e8f0;
}

/* ==========================================
   Секция формы консультации с фирменным ненавязчивым фоном
   ========================================== */
.form-section-highlight {
  position: relative;
  width: 100%;
  background-color: #f6fafe;
  background-image: url('/assets/form_subtle_bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 104px 0;
  margin: 0;
}

.form-highlight-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  padding: 54px 64px;
  box-shadow: 0 16px 40px -10px rgba(10, 23, 48, 0.07), 0 2px 8px rgba(0, 0, 0, 0.02);
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.form-highlight-intro {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 34px;
}

.form-highlight-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.form-highlight-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   Подвал (Footer)
   ========================================== */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 68px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-wrap {
  display: inline-block;
}

.footer-brand .logo-img-main {
  max-height: 80px !important;
  width: auto;
  max-width: 280px;
  margin-bottom: 16px;
  display: block;
}

.footer-brand .logo-title {
  color: #ffffff;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.vk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.vk-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.86rem;
}

/* ==========================================
   Модальные окна
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 38px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-float);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border);
  color: var(--dark);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ==========================================
   Формы и Инпуты
   ========================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--slate);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: 0.98rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Стандарт оформления выпадающих списков (select): безопасный отступ справа у стрелочки 36-38px */
select,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  padding-right: 38px !important;
  cursor: pointer;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 2px;
}

.form-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================
   Cookie Banner (152-ФЗ РФ)
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 660px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(140%);
  transition: transform var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.45;
}

/* ==========================================
   Кнопка «Наверх»
   ========================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85);
  transition: var(--transition-fast);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
  transform: scale(1.06);
}

/* Сетка для 2-колоночных форм */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ==========================================
   Адаптивность (Mobile & Tablet)
   ========================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-8, .bento-col-4, .bento-col-6, .bento-col-12 {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-bar-items {
    display: none;
  }
  .top-bar-inner {
    justify-content: flex-end;
  }
  .burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
    border-bottom: 1px solid var(--border);
    gap: 8px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-menu.open {
    display: flex;
  }
  .main-menu li {
    width: 100%;
  }
  .main-menu li a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }
  .main-menu li a:hover,
  .main-menu li.active a {
    background: var(--primary-subtle);
  }
  .main-menu li.active a::after {
    display: none;
  }
  .main-menu li.has-dropdown {
    display: flex;
    flex-direction: column;
  }
  .main-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin: 4px 0 8px 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    min-width: auto;
  }
  .main-menu .dropdown-menu li a {
    padding: 8px 12px !important;
    font-size: 0.92rem !important;
  }
  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .hero-section {
    background-image: 
      linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.25) 60%, rgba(255, 255, 255, 0) 80%),
      url('/assets/Logos.png');
    padding-top: 40px;
    padding-bottom: 50px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  }
  .site-header-inner {
    padding: 10px 16px;
  }
  .logo-img-main {
    height: 40px;
    max-width: 180px;
  }
  .hero-section {
    margin-top: 0;
    background-image: none;
    background-color: #f8fbfe;
    padding-top: 28px;
    padding-bottom: 36px;
  }
  .hero-content-wrapper {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.2rem);
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-mobile-visual {
    display: block;
    width: 100%;
    margin: 20px 0 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.1);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
  }
  .hero-mobile-visual picture,
  .hero-mobile-visual img {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-features-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-feature-card {
    padding: 14px 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .specialists-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-section-highlight {
    padding: 72px 0;
    margin: 0;
  }
  .form-highlight-card {
    padding: 32px 22px 26px;
    border-radius: var(--radius-lg);
  }
  .form-highlight-intro {
    margin-bottom: 24px;
  }
  .form-control {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none;
  }
  .header-cta-btn {
    display: none;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }
  .btn-hero-gold, .btn-hero-outline {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quiz-card {
    padding: 22px 14px;
    border-radius: var(--radius-lg);
  }
  .quiz-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quiz-option-btn {
    padding: 14px 16px;
    min-height: 48px;
    font-size: 0.95rem;
  }
  .quiz-step-node {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .quiz-footer {
    gap: 10px;
  }
  .quiz-footer .btn {
    flex: 1;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
    gap: 14px;
  }
  .cookie-banner .btn {
    width: 100%;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-window {
    padding: 28px 18px 22px;
    border-radius: var(--radius-lg);
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
  .scroll-top-btn {
    bottom: 20px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}
