/*
 * ======================================================
 * АКАДЕМИЯ ОБРАЗОВАНИЯ ТПП СМОЛЕНСКОЙ ОБЛАСТИ
 * Главная таблица стилей | v1.0
 * ======================================================
 * Содержание:
 *   1. CSS-переменные (дизайн-токены)
 *   2. Сброс и базовые стили
 *   3. Типографика
 *   4. Компоненты UI (кнопки, карточки, теги, формы)
 *   5. Хедер и навигация
 *   6. Хиро-секция
 *   7. Секция преимуществ (статистика)
 *   8. Программы обучения
 *   9. Новости
 *  10. Отзывы
 *  11. FAQ
 *  12. Футер
 *  13. Анимации и утилиты
 *  14. Внутренние страницы (svedeniya, programs, contacts)
 *  15. Адаптивность (Media Queries)
 * ======================================================
 */


/* =====================================================
   1. CSS-ПЕРЕМЕННЫЕ
   ===================================================== */

/* Импорт шрифтов Google Fonts */
/* =====================================================
   ЛОКАЛЬНЫЕ ШРИФТЫ (variable fonts, woff2)
   Источник: fonts.gstatic.com, загружены локально
   ===================================================== */

/* ——— Inter v20 (300–700) ——— */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ——— Playfair Display v40 (400–800) ——— */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ——— JetBrains Mono v24 (400–500) ——— */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jbmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ——— Цветовая палитра (светлая тема) ——— */
  --c-bg:             #FFFFFF;
  --c-bg-alt:         #F8FAFC;
  --c-bg-elevated:    #EEF2F8;
  --c-text:           #0A1628;
  --c-text-sec:       #334155;
  --c-text-muted:     #64748B;
  --c-accent:         #C9A96E;      /* золотой акцент */
  --c-accent-hover:   #B8955A;
  --c-accent-rgb:     201, 169, 110;
  --c-border:         #E2E8F0;
  --c-border-s:       #CBD5E1;
  --c-success:        #059669;
  --c-navy:           #0A1628;
  --c-navy-mid:       #1E3A5F;
  --c-navy-deep:      #051020;
  --c-card-bg:        #FFFFFF;
  --c-hero-text:         #FFFFFF;
  --c-hero-text-sec:     rgba(255,255,255,0.78);
  --c-hero-text-muted:   rgba(255,255,255,0.65);
  --c-hero-stat-bg:      rgba(255,255,255,0.06);
  --c-hero-stat-hover:   rgba(255,255,255,0.10);
  --c-hero-stat-shadow:  none;
  --c-hero-stat-border:  rgba(255,255,255,0.12);
  --c-hero-divider:      rgba(255,255,255,0.12);
  --c-hero-badge-bg:     rgba(5,150,105,0.15);
  --c-hero-badge-border: rgba(52,211,153,0.30);
  --c-hero-badge-color:  #4ADE80;
  --c-hero-badge-dot:    #4ADE80;
  --c-hero-pulse-1:      rgba(74,222,128,0.30);
  --c-hero-pulse-0:      rgba(74,222,128,0);
  --c-hero-blob2:        #1E3A5F;
  --c-hero-blob-op:      0.10;
  --c-hero-blob3-op:     0.06;
  --c-hero-grid:         rgba(201,169,110,0.06);

  /* ——— Градиенты ——— */
  --g-hero:      linear-gradient(135deg, #122848 0%, #182E50 40%, #2C4E7C 70%, #182E50 100%);
  --g-page-hero: linear-gradient(135deg, #051020 0%, #0A1628 40%, #1E3A5F 70%, #0A1628 100%);
  --g-cta:       linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  --g-gold:    linear-gradient(135deg, #C9A96E 0%, #E8D5A3 50%, #C9A96E 100%);
  --g-nav-bg:  rgba(255, 255, 255, 0.88);

  /* ——— Тени ——— */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --sh-md: 0 8px 24px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.05);
  --sh-lg: 0 24px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --sh-xl: 0 48px 96px rgba(0,0,0,0.14);
  --sh-gold: 0 6px 28px rgba(201,169,110,0.32);
  --sh-card-hover: 0 20px 48px rgba(10,22,40,0.14), 0 6px 16px rgba(10,22,40,0.08);

  /* ——— Типографика ——— */
  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', Consolas, monospace;

  /* Fluid type (min — fluid — max) */
  --fs-xs:   clamp(0.75rem,  1.5vw,  0.8125rem);
  --fs-sm:   clamp(0.875rem, 2vw,    0.9375rem);
  --fs-base: clamp(1rem,     2vw,    1.0625rem);
  --fs-md:   clamp(1.0625rem,2.5vw,  1.2rem);
  --fs-lg:   clamp(1.2rem,   3vw,    1.4rem);
  --fs-xl:   clamp(1.4rem,   4vw,    1.8rem);
  --fs-2xl:  clamp(1.8rem,   5vw,    2.4rem);
  --fs-3xl:  clamp(2.2rem,   6vw,    3.2rem);
  --fs-4xl:  clamp(2.8rem,   8vw,    4.8rem);

  /* ——— Отступы ——— */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;    --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem;    --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  /* ——— Радиусы ——— */
  --r-sm: 4px;   --r-md: 8px;    --r-lg: 14px;
  --r-xl: 20px;  --r-2xl: 32px;  --r-full: 9999px;

  /* ——— Переходы ——— */
  --t-fast:   120ms ease-out;
  --t-base:   250ms ease-out;
  --t-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 380ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ——— Макет ——— */
  --header-h: 80px;
  --max-w:    1280px;
  --cont-w:   960px;
  --side-pad: clamp(1rem, 5vw, 2.5rem);

  /* ——— Фильтр карты ——— */
  --map-filter: none;
}

/* Тёмная тема */
[data-theme="dark"] {
  --c-bg:          #0F172A;
  --c-bg-alt:      #1E293B;
  --c-bg-elevated: #263447;
  --c-text:        #F1F5F9;
  --c-text-sec:    #CBD5E1;
  --c-text-muted:  #94A3B8;
  --c-accent:      #D4AF37;
  --c-accent-hover:#C9A030;
  --c-accent-rgb:  212, 175, 55;
  --c-border:      #2D4060;
  --c-border-s:    #3D526E;
  --c-success:     #34D399;
  --c-navy:        #F1F5F9;
  --c-navy-mid:    #CBD5E1;
  --c-navy-deep:   #020917;
  --c-card-bg:     #1E293B;

  --c-hero-text:         #FFFFFF;
  --c-hero-text-sec:     rgba(255,255,255,0.78);
  --c-hero-text-muted:   rgba(255,255,255,0.65);
  --c-hero-stat-bg:      rgba(255,255,255,0.06);
  --c-hero-stat-hover:   rgba(255,255,255,0.10);
  --c-hero-stat-border:  rgba(255,255,255,0.12);
  --c-hero-stat-shadow:  none;
  --c-hero-divider:      rgba(255,255,255,0.12);
  --c-hero-badge-bg:     rgba(5,150,105,0.15);
  --c-hero-badge-border: rgba(52,211,153,0.30);
  --c-hero-badge-color:  #4ADE80;
  --c-hero-badge-dot:    #4ADE80;
  --c-hero-pulse-1:      rgba(74,222,128,0.30);
  --c-hero-pulse-0:      rgba(74,222,128,0);
  --c-hero-blob2:        #1E3A5F;
  --c-hero-blob-op:      0.10;
  --c-hero-blob3-op:     0.06;
  --c-hero-grid:         rgba(201,169,110,0.06);

  --g-hero:      linear-gradient(135deg, #0A1C30 0%, #0D1E38 40%, #1A3260 70%, #0D1E38 100%);
  --g-page-hero: linear-gradient(135deg, #0A1C30 0%, #0D1E38 40%, #1A3260 70%, #0D1E38 100%);
  --g-cta:    linear-gradient(135deg, #020917 0%, #0A1628 100%);
  --g-nav-bg: rgba(15, 23, 42, 0.92);

  --sh-sm: 0 2px 8px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.18);
  --sh-md: 0 8px 24px rgba(0,0,0,0.38), 0 3px 8px rgba(0,0,0,0.22);
  --sh-lg: 0 24px 48px rgba(0,0,0,0.48), 0 8px 16px rgba(0,0,0,0.28);
  --sh-gold: 0 6px 28px rgba(212,175,55,0.22);
  --sh-card-hover: 0 20px 48px rgba(0,0,0,0.55), 0 6px 16px rgba(0,0,0,0.30);

  --map-filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.92) saturate(.85);
}


/* =====================================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ===================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Предотвращаем вспышку темы при загрузке */
  color-scheme: light dark;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  /* Плавный переход темы без перерисовки */
  transition: background var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Отключаем анимации для пользователей с ограниченным движением */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-accent-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }


/* =====================================================
   3. ТИПОГРАФИКА
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  transition: color var(--t-slow);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

.text-gradient {
  background: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: textShine 4s linear infinite;
}

@keyframes textShine {
  to { background-position: 200% center; }
}

/* Лид-текст */
.lead {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--c-text-sec);
  line-height: 1.65;
}

/* Монопространственные цифры (статистика) */
.stat-num {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: var(--fs-3xl);
  color: var(--c-accent);
  letter-spacing: -0.02em;
}

/* Метка секции */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

/* Раздел-заголовок */
.section-title {
  font-size: var(--fs-3xl);
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.15;
  margin-top: var(--sp-3);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  max-width: 580px;
  margin-top: var(--sp-4);
  line-height: 1.7;
}


/* =====================================================
   4. КОМПОНЕНТЫ UI
   ===================================================== */

/* ——— Контейнер ——— */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* ——— Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition:
    transform var(--t-spring),
    box-shadow var(--t-base),
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base);
  user-select: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Основная (золотая) */
.btn-primary {
  background: var(--c-accent);
  color: #0A1628;
  box-shadow: var(--sh-gold);
}
.btn-primary:hover {
  background: var(--c-accent-hover);
  box-shadow: 0 8px 36px rgba(var(--c-accent-rgb), 0.45);
  color: #0A1628;
}

/* Outline */
.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* Outline тёмная */
.btn-outline-dark {
  border-color: var(--c-border-s);
  color: var(--c-text);
}
.btn-outline-dark:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), 0.06);
}

/* Размер большой */
.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--fs-base);
  border-radius: var(--r-xl);
}

/* Размер малый */
.btn-sm {
  padding: .4rem .9rem;
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
  min-height: 32px;
}

/* Иконка */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ——— Карточки ——— */
.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    transform var(--t-slow),
    box-shadow var(--t-slow),
    border-color var(--t-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--c-border-s);
}

/* ——— Теги/бейджи ——— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.badge-gold {
  background: rgba(var(--c-accent-rgb), 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(var(--c-accent-rgb), 0.25);
}

.badge-navy {
  background: rgba(10,22,40,0.06);
  color: var(--c-navy);
  border: 1px solid var(--c-border);
}

.badge-success {
  background: rgba(5,150,105,0.1);
  color: var(--c-success);
  border: 1px solid rgba(5,150,105,0.2);
}

/* ——— Разделитель ——— */
.divider {
  height: 1px;
  background: var(--c-border);
  margin: var(--sp-8) 0;
}

/* ——— Иконка-круг ——— */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: rgba(var(--c-accent-rgb), 0.12);
  color: var(--c-accent);
  flex-shrink: 0;
  transition: background var(--t-base), transform var(--t-spring);
}

.card:hover .icon-circle {
  background: var(--c-accent);
  color: #0A1628;
  transform: scale(1.1) rotate(5deg);
}

/* ——— Форма ——— */
.form-group { margin-bottom: var(--sp-6); }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-sec);
  margin-bottom: var(--sp-2);
}

.form-control {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-slow);
  appearance: none;
}

.form-control:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), 0.18);
  background: var(--c-bg);
}

.form-control::placeholder { color: var(--c-text-muted); }

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* ——— Аккордеон ——— */
.accordion-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.accordion-item + .accordion-item { margin-top: var(--sp-3); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  background: var(--c-card-bg);
  transition: background var(--t-fast);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--c-text);
  user-select: none;
}

.accordion-header:hover { background: var(--c-bg-alt); }

.accordion-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--c-accent);
  transition: transform var(--t-base);
}

.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-base);
  background: var(--c-bg-alt);
  color: var(--c-text-sec);
  line-height: 1.7;
}

.accordion-body.is-open {
  max-height: 600px;
  padding: var(--sp-5) var(--sp-6);
}

/* ——— Вкладки ——— */
.tabs-nav {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 2px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--c-text); }
.tab-btn.active {
  color: var(--c-accent);
  border-color: var(--c-accent);
  font-weight: 600;
}

.tab-panel { display: none; padding-top: var(--sp-8); }
.tab-panel.active { display: block; }

/* ——— Скелетон (загрузка) ——— */
.skeleton {
  background: linear-gradient(90deg, var(--c-bg-alt) 25%, var(--c-bg-elevated) 50%, var(--c-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--r-md);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* =====================================================
   5. ХЕДЕР И НАВИГАЦИЯ
   ===================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--g-nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    background var(--t-slow),
    border-color var(--t-slow),
    box-shadow var(--t-slow),
    height var(--t-slow);
}

/* Добавляет тень и рамку при прокрутке */
.header.scrolled {
  box-shadow: var(--sh-md);
  border-color: var(--c-border);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  width: 100%;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text);
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}

.logo:hover { opacity: 0.85; color: var(--c-text); }

.logo-emblem {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-emblem img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* SVG-плейсхолдер логотипа (если нет картинки) */
.logo-emblem-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-accent);
}

/* SVG логотип */
.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-path-dark {
  fill: #0B2C4E;
  transition: fill 0.3s;
}
.logo-path-gold {
  fill: #D48E22;
}
[data-theme="dark"] .logo-path-dark {
  fill: #E8EEF9;
}
/* Футер — всегда тёмный фон, пути всегда светлые */
.footer-logo-emblem .logo-path-dark {
  fill: #FFFFFF;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.01em;
}

.logo-tagline {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Основное меню */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-sec);
  border-radius: var(--r-md);
  transition: color var(--t-base), background var(--t-base);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--c-text);
  background: var(--c-bg-elevated);
}

.nav-link.active {
  color: var(--c-accent);
  font-weight: 600;
}

/* Дроп-меню */
.nav-item:hover .dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Мост: закрывает зазор между ссылкой и выпадашкой, чтобы hover не слетал */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(var(--sp-2) + 4px);
  display: none;
}
.nav-item:hover::after { display: block; }

.dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  min-width: 240px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
  transition-delay: 0ms;
  z-index: 200;
}

/* Небольшая задержка перед скрытием — страховка */
.nav-item:not(:hover) .dropdown {
  transition-delay: 100ms;
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--c-text-sec);
  font-size: var(--fs-sm);
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1.4;
}

.dropdown-link:hover {
  background: var(--c-bg-alt);
  color: var(--c-accent);
}

/* Правая панель хедера */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Переключатель темы */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base);
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), 0.08);
  border-color: var(--c-accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform var(--t-spring), opacity var(--t-base);
}

.icon-sun  { opacity: 1; transform: scale(1); }
.icon-moon { opacity: 0; transform: scale(0.5) rotate(-90deg); }

[data-theme="dark"] .icon-sun  { opacity: 0; transform: scale(0.5) rotate(90deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }

/* Гамбургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  transition: background var(--t-base);
}

.burger:hover { background: var(--c-bg-elevated); }

.burger span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast), width var(--t-base);
  transform-origin: center;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню — drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100vw);
  background: var(--c-card-bg);
  border-left: 1px solid var(--c-border);
  box-shadow: var(--sh-xl);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
}
.mobile-menu-close:hover { color: var(--c-text); background: var(--c-bg-elevated); }

.mobile-nav { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  color: var(--c-text-sec);
  font-size: var(--fs-md);
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}

.mobile-nav-link:hover {
  background: var(--c-bg-alt);
  color: var(--c-accent);
}

.mobile-nav-link svg { width: 20px; height: 20px; color: var(--c-accent); flex-shrink: 0; }

/* Оверлей */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.overlay.is-active { opacity: 1; pointer-events: auto; }


/* =====================================================
   6. ХИРО-СЕКЦИЯ
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--g-hero);
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Анимированный фон-сетка */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Canvas нейросети */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Прожектор курсора */
.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 169, 110, 0.10) 0%,
    rgba(201, 169, 110, 0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 2;
}
.hero.cursor-active .hero-spotlight { opacity: 1; }

/* Плавающие блобы (немного тише — нейросеть теперь в фокусе) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--c-hero-blob-op, 0.10);
  animation: blobFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--c-accent);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--c-hero-blob2);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--c-accent);
  top: 60%;
  right: 30%;
  animation-delay: -8s;
  opacity: var(--c-hero-blob3-op, 0.06);
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -25px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* ——— Аврора (мягкие световые пятна за нейросетью) ——— */
.ha {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;               /* ниже canvas (z=1) и контента (z=2) */
}
.ha1 {
  width: 750px; height: 550px;
  top: -150px; left: -120px;
  background: radial-gradient(ellipse, rgba(110,70,240,0.42) 0%, rgba(80,50,200,0.18) 40%, transparent 68%);
  filter: blur(75px);
  animation: ha1 11s ease-in-out infinite alternate;
}
.ha2 {
  width: 650px; height: 500px;
  bottom: -120px; right: -100px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.36) 0%, rgba(180,130,60,0.14) 42%, transparent 68%);
  filter: blur(70px);
  animation: ha2 13s ease-in-out infinite alternate;
}
.ha3 {
  width: 420px; height: 380px;
  top: 25%; left: 30%;
  background: radial-gradient(ellipse, rgba(20,160,200,0.18) 0%, transparent 62%);
  filter: blur(85px);
  animation: ha3 15s ease-in-out infinite alternate;
}
@keyframes ha1 {
  0%   { transform: translate(0, 0) scale(1);          opacity: 0.70; }
  100% { transform: translate(90px, 70px) scale(1.2);  opacity: 1.00; }
}
@keyframes ha2 {
  0%   { transform: translate(0, 0) scale(1);            opacity: 0.60; }
  100% { transform: translate(-80px, -80px) scale(1.18); opacity: 0.95; }
}
@keyframes ha3 {
  0%   { transform: translate(0, 0) scale(1);           opacity: 0.35; }
  100% { transform: translate(70px, -60px) scale(1.3);  opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .ha1, .ha2, .ha3 { animation: none; }
}

/* Контент хиро */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-16);
  align-items: center;
  padding: var(--sp-20) 0;
  width: 100%;
}

.hero-left, .hero-right { min-width: 0; }
.hero-left { display: flex; flex-direction: column; gap: var(--sp-6); }

/* Бейдж аккредитации */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-hero-badge-bg);
  border: 1px solid var(--c-hero-badge-border);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-hero-badge-color);
  letter-spacing: 0.06em;
  width: fit-content;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-hero-badge-dot);
  box-shadow: 0 0 0 3px var(--c-hero-pulse-1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--c-hero-pulse-1); }
  50%       { box-shadow: 0 0 0 7px var(--c-hero-pulse-0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-family: var(--ff-head);
  font-weight: 800;
  color: var(--c-hero-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-title .accent { color: var(--c-accent); }

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--c-hero-text-sec);
  line-height: 1.65;
  max-width: 480px;
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

/* Контакт-бар в хиро */
.hero-contacts {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.72s both;
  border-top: 1px solid var(--c-hero-divider);
  padding-top: var(--sp-6);
  margin-top: var(--sp-2);
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-hero-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}
.hero-contact-item:hover { color: var(--c-accent); }
.hero-contact-item svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; }

/* Правая часть хиро */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  animation: heroEntranceRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* Мини-карточки статистики в хиро */
.hero-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-4);
}

.hero-stat-card { min-width: 0; }
.hero-stat-label { overflow-wrap: break-word; }

.hero-stat-card {
  background: var(--c-hero-stat-bg);
  border: 1px solid var(--c-hero-stat-border);
  box-shadow: var(--c-hero-stat-shadow, none);
  backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  transition: background var(--t-base), transform var(--t-spring), box-shadow var(--t-base);
}

.hero-stat-card:hover {
  background: var(--c-hero-stat-hover);
  transform: translateY(-3px);
}

.hero-stat-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-2xl);
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--c-hero-text-muted);
  line-height: 1.4;
}

/* ——— Анимации появления ——— */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Hero entrance — spring-like cubic-bezier, bigger travel */
@keyframes heroEntrance {
  0%   { opacity: 0; transform: translateY(36px); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroEntranceRight {
  0%   { opacity: 0; transform: translateX(48px) translateY(8px); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0); filter: blur(0); }
}

/* Trust-карточки в хиро */
.hero-trust-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--c-hero-stat-bg);
  border: 1px solid var(--c-hero-stat-border);
  box-shadow: var(--c-hero-stat-shadow, none);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}
.hero-trust-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-hero-text);
}
.hero-trust-card-sub {
  font-size: 0.72rem;
  color: var(--c-hero-text-muted);
}

/* Ghost-кнопка в hero — оба варианта тёмного фона */
[data-theme="light"] .hero .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  background: rgba(255,255,255,0.07);
}
[data-theme="light"] .hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}

/* Скролл-индикатор */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.45);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollHintFade 2s ease-in-out 1.5s both;
  z-index: 2;
}

.scroll-hint-wheel {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint-wheel::after {
  content: '';
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: wheelScroll 1.8s ease-in-out infinite;
}

@keyframes wheelScroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

@keyframes scrollHintFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Вращение иконки-спиннера при отправке формы */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 0.9s linear infinite; transform-origin: center; }


/* =====================================================
   7. СЕКЦИИ СТРАНИЦЫ (ОБЩИЙ СТИЛЬ)
   ===================================================== */

.section {
  padding: var(--sp-24) 0;
}

.section-alt { background: var(--c-bg-alt); }

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-subtitle {
  margin-inline: auto;
}

/* ——— Статистика / Преимущества ——— */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.stat-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--g-gold);
  opacity: 0;
  transition: opacity var(--t-base);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.stat-card-icon { color: var(--c-accent); width: 40px; height: 40px; }

.stat-card-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-3xl);
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
}

.stat-card-label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}

.stat-card-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ——— Программы ——— */
.programs-filter-track {
  position: relative;
  margin-bottom: var(--sp-8);
}
.programs-filter-track::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 8px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--c-bg));
  pointer-events: none;
  display: none;
}
.programs-filter {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-muted);
  background: transparent;
  transition: all var(--t-base);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.filter-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #0A1628;
  font-weight: 600;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.program-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-base);
  cursor: pointer;
  position: relative;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(var(--c-accent-rgb), 0.04) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
  z-index: 0;
}

.program-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--sh-card-hover);
  border-color: rgba(var(--c-accent-rgb), 0.4);
}
.program-card:hover::before { opacity: 1; }

.program-card-header {
  height: 180px;
  position: relative;
  overflow: hidden;
  background-color: var(--c-navy);
  background-size: cover;
  background-position: center;
}

/* Фоновый паттерн карточки программы */
.program-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(var(--c-accent-rgb), 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.program-card-icon {
  position: absolute;
  bottom: -1px;
  left: var(--sp-6);
  width: 56px;
  height: 56px;
  background: var(--c-accent);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-gold);
}

.program-card-icon svg { width: 28px; height: 28px; color: #0A1628; }

.program-card-body {
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.program-card-category {
  font-size: var(--fs-xs);
  color: var(--c-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.program-card-title {
  font-family: var(--ff-head);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}

.program-card-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-5);
}

.program-card-meta {
  display: flex;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.program-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 500;
}

.program-meta-item svg { width: 14px; height: 14px; color: var(--c-accent); }

/* ——— Новости ——— */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.news-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.news-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: transform 0.6s ease;
}
.news-hero-card:hover .news-hero-photo { transform: scale(1.04); }

.news-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  display: block;
}

.news-card:hover .news-card-image { transform: scale(1.04); }

.news-card-image-wrap {
  overflow: hidden;
  height: 240px;
  position: relative;
}

/* Плейсхолдер изображения */
.news-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  color: rgba(255,255,255,0.15);
}

.news-img-placeholder svg { width: 64px; height: 64px; }

.news-card-body { padding: var(--sp-6); }

.news-card-date {
  font-size: var(--fs-xs);
  font-family: var(--ff-mono);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
}

.news-card-title {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}

.news-card:hover .news-card-title { color: var(--c-accent); }

.news-card-excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* Правый столбец новостей */
.news-sidebar { display: flex; flex-direction: column; gap: var(--sp-4); }

.news-mini-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  cursor: pointer;
}

.news-mini-card:hover {
  transform: translateX(4px);
  border-color: var(--c-accent);
  box-shadow: var(--sh-sm);
}

.news-mini-img {
  width: 80px;
  height: 70px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
}

.news-mini-content { flex: 1; }

.news-mini-date {
  font-size: var(--fs-xs);
  font-family: var(--ff-mono);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-1);
}

.news-mini-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  transition: color var(--t-fast);
}

.news-mini-card:hover .news-mini-title { color: var(--c-accent); }

/* ——— Отзывы ——— */
.testimonials {
  background: var(--c-bg-alt);
  overflow: hidden;
}

.testimonials-track-wrap {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.testimonials-track-wrap:active { cursor: grabbing; }

.testimonials-track {
  display: flex;
  gap: var(--sp-6);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 380px;
  max-width: 380px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  font-family: var(--ff-head);
  font-size: 5rem;
  color: var(--c-accent);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--c-accent);
}

.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--c-text-sec);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  background: var(--c-bg-elevated);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-accent);
  border: 2px solid var(--c-border);
}

.testimonial-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
}

.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-1);
}

/* Кнопки прокрутки */
.testimonials-nav {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-8);
}

.testimonials-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  transition: all var(--t-base);
}

.testimonials-nav-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), 0.08);
}

/* ——— CTA секция ——— */
.cta-section {
  background: var(--g-cta);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--sp-24) 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-section .section-label,
.cta-section h2,
.cta-section p { position: relative; z-index: 1; }

.cta-section h2 { color: #FFFFFF; margin-top: var(--sp-3); }

.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: var(--sp-4) auto var(--sp-8);
  font-size: var(--fs-lg);
}

.cta-section .section-label { color: var(--c-accent); }
.cta-section .section-label::before { background: var(--c-accent); }

/* ——— Партнёры ——— */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.partner-logo {
  height: 48px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity var(--t-base), filter var(--t-base);
}

.partner-logo:hover { opacity: 1; filter: none; }


/* =====================================================
   8. ФУТЕР
   ===================================================== */

.footer {
  background: var(--c-navy-deep);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-16) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}

/* Золотая линия вверху */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--g-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }

.footer-logo { display: flex; align-items: center; gap: var(--sp-3); }

.footer-logo-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-accent);
}

.footer-logo-name {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

.footer-accred {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(5,150,105,0.12);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #34D399;
  letter-spacing: 0.04em;
  width: fit-content;
}

.footer-accred::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

.footer-col-title {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-5);
  letter-spacing: 0.04em;
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }

.footer-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-link:hover { color: var(--c-accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
}

.footer-contact-item a:hover { color: var(--c-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
}

.footer-legal { display: flex; gap: var(--sp-6); }
.footer-legal a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }


/* =====================================================
   9. АНИМАЦИИ ПОЯВЛЕНИЯ (SCROLL REVEAL)
   ===================================================== */

/* Базовое состояние — скрыто */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease-out,
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.from-left  { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.scale-in   { transform: scale(0.94); }

/* Видимое состояние */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Задержки */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ——— Числовой счётчик ——— */
.count-up { font-variant-numeric: tabular-nums; }


/* =====================================================
   10. ВНУТРЕННИЕ СТРАНИЦЫ
   ===================================================== */

/* Хлебные крошки */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.breadcrumb-sep { color: var(--c-border-s); }

.breadcrumb a {
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}

.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb-current { color: var(--c-text); font-weight: 500; }

/* Хлебные крошки на тёмном page-hero — всегда белые */
.page-hero .breadcrumb         { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a       { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a:hover { color: var(--c-accent); }
.page-hero .breadcrumb-sep     { color: rgba(255,255,255,0.25); }
.page-hero .breadcrumb-current { color: rgba(255,255,255,0.90); }

/* ——— Внутренний заголовок страницы ——— */
.page-hero {
  background: var(--g-page-hero);
  padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.page-hero-title {
  font-size: var(--fs-3xl);
  font-family: var(--ff-head);
  color: #FFFFFF;
  margin-bottom: var(--sp-4);
}

.page-hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

/* ——— Страница сведений ——— */
.svedeniya-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-10);
  align-items: start;
  padding: var(--sp-12) 0;
}

.svedeniya-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.svedeniya-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-3);
}

.svedeniya-nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-weight: 500;
  line-height: 1.3;
  transition: all var(--t-fast);
}

.svedeniya-nav-link span:first-child {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--c-accent);
  opacity: 0.6;
  flex-shrink: 0;
  width: 22px;
}

.svedeniya-nav-link:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
}

.svedeniya-nav-link.active {
  background: rgba(var(--c-accent-rgb), 0.1);
  color: var(--c-accent);
  font-weight: 600;
}

.svedeniya-nav-link.active span:first-child { opacity: 1; }

.svedeniya-content { min-width: 0; }

/* ——— Разделы сведений ——— */
.svedeniya-section {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--c-border);
}

.svedeniya-section:last-child { border-bottom: none; }

.svedeniya-section-title {
  font-family: var(--ff-head);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.svedeniya-section-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--c-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.svedeniya-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* Таблица сведений */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: var(--sp-6) 0;
  border: 1px solid var(--c-border);
}

.info-table th {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-bg-alt);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}

.info-table td {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-text-sec);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  line-height: 1.6;
}

.info-table tr:last-child td { border-bottom: none; }

.info-table tr:hover td { background: var(--c-bg-alt); }

/* Карточка персоны */
.person-card {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.person-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--c-border-s);
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
  border: 3px solid var(--c-border);
}

.person-info { display: flex; flex-direction: column; gap: var(--sp-2); }

.person-name {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
}

.person-title {
  font-size: var(--fs-sm);
  color: var(--c-accent);
  font-weight: 500;
}

.person-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.person-contact {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.person-contact svg { width: 14px; height: 14px; color: var(--c-accent); }
.person-contact a { color: var(--c-text-sec); }
.person-contact a:hover { color: var(--c-accent); }

/* Документ-карточка */
.doc-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  cursor: pointer;
}

.doc-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--sh-sm);
  transform: translateX(4px);
}

.doc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(220,50,47,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #dc322f;
}

.doc-info { flex: 1; min-width: 0; }

.doc-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: var(--sp-1);
  transition: color var(--t-fast);
}

.doc-card:hover .doc-name { color: var(--c-accent); }

.doc-meta {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-family: var(--ff-mono);
}

.doc-download-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.doc-card:hover .doc-download-btn {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #0A1628;
}

.doc-list { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ——— Страница контактов ——— */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-10);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }

.contact-card {
  padding: var(--sp-6);
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}

.contact-card-title {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}

.contact-row:last-child { border-bottom: none; }

.contact-row-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(var(--c-accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  flex-shrink: 0;
}

.contact-row-icon svg { width: 18px; height: 18px; }

.contact-row-label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
}

.contact-row-value {
  font-size: var(--fs-base);
  color: var(--c-text);
  font-weight: 500;
}

.contact-row-value a { color: var(--c-text); }
.contact-row-value a:hover { color: var(--c-accent); }

/* Карта */
.map-container {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  height: 350px;
  background: var(--c-bg-alt);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: var(--map-filter, none);
}

/* Форма */
.contact-form-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
}

.contact-form-title {
  font-family: var(--ff-head);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.contact-form-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-privacy {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-top: var(--sp-4);
  text-align: center;
}

.form-privacy a { color: var(--c-accent); }

/* Уведомление об успехе */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8);
  text-align: center;
}

.form-success.is-visible { display: flex; }
.form-success-icon { color: var(--c-success); }
.form-success-icon svg { width: 64px; height: 64px; }
.form-success h3 { font-family: var(--ff-head); font-size: var(--fs-2xl); color: var(--c-text); }
.form-success p { color: var(--c-text-muted); }

/* ——— Программы полная страница ——— */
.programs-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

/* Плейсхолдер «нет результатов» */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--c-text-muted);
}

.no-results svg { width: 64px; height: 64px; opacity: 0.3; margin-bottom: var(--sp-4); }


/* =====================================================
   11. УТИЛИТЫ
   ===================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-center { text-align: center; }
.text-gold    { color: var(--c-accent); }
.text-muted   { color: var(--c-text-muted); }
.text-success { color: var(--c-success); }

.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }

.rounded-xl { border-radius: var(--r-xl); }

.w-full { width: 100%; }

/* ——— Разделитель с текстом ——— */
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin: var(--sp-8) 0;
}

.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}


/* =====================================================
   12. АДАПТИВНОСТЬ
   ===================================================== */

/* ——— Планшет ≤ 1024px ——— */
@media (max-width: 1024px) {
  :root {
    --header-h: 70px;
  }

  .nav { display: none; }
  .burger { display: flex; }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-12);
    padding: var(--sp-16) 0;
  }

  .hero-right { order: -1; }

  .hero-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .news-grid { grid-template-columns: 1fr; }
  .news-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }

  .svedeniya-layout { grid-template-columns: 1fr; }
  .svedeniya-sidebar { position: static; }
  .svedeniya-nav { flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .svedeniya-nav-link { white-space: nowrap; }

  .contacts-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  /* На планшетах/ноутбуках индикатор прокрутки перекрывает контент — прячем */
  .scroll-hint { display: none; }
}

/* Низкие экраны (ноутбуки): контент героя ~935px, индикатору не хватает места */
@media (max-height: 1140px) {
  .scroll-hint { display: none; }
}

/* ——— Мобильный ≤ 640px ——— */
@media (max-width: 640px) {
  /* Шапка: прячем CTA-кнопку и подпись лого, уменьшаем gap — иначе кнопки уходят за правый край */
  .header-actions .btn-primary { display: none; }
  .logo-tagline { display: none; }
  .header-inner { gap: var(--sp-3); }

  .hero-title { font-size: var(--fs-2xl); }

  .hero-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .hero-contacts { flex-direction: column; gap: var(--sp-3); }

  .programs-grid { grid-template-columns: 1fr; }

  .news-sidebar { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4); }
  .footer-legal { justify-content: center; flex-wrap: wrap; gap: var(--sp-3); }
  .footer-copy { max-width: 100%; word-break: break-word; }
  .footer-social { justify-content: center; }
  .footer-social-btn { flex: 1 1 calc(50% - var(--sp-2)); justify-content: center; }
  .footer-logo { justify-content: center; }
  .footer-brand { align-items: center; text-align: center; }
  .footer-accred { margin: 0 auto; }

  .testimonial-card { flex-basis: calc(100vw - 3rem); max-width: calc(100vw - 3rem); }

  .section { padding: var(--sp-16) 0; }

  .stats-grid { grid-template-columns: 1fr; }

  .cta-section { padding: var(--sp-16) 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .programs-page-grid { grid-template-columns: 1fr; }

  .programs-filter-track::after { display: block; }
  .programs-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    padding-right: 48px;
  }
  .programs-filter::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .info-table { display: block; overflow-x: auto; }

  .svedeniya-nav-link { white-space: normal; }

  .section-title { font-size: var(--fs-2xl); }

  .page-hero-title { font-size: var(--fs-2xl); }

  .section-header { margin-bottom: var(--sp-8); }
}


/* =====================================================
   16. SCROLL PROGRESS BAR
   ===================================================== */

#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent) 0%, #E8D5A3 50%, var(--c-accent) 100%);
  background-size: 200% 100%;
  z-index: 101;
  transition: width 0.08s linear;
  animation: progressShine 2.5s linear infinite;
  pointer-events: none;
}

@keyframes progressShine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}


/* =====================================================
   17. CARD HOVER LIFT (enhanced)
   ===================================================== */

/* Stat cards — deeper lift + warm shadow */
.stat-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--sh-card-hover), 0 0 0 1px rgba(var(--c-accent-rgb), 0.25);
  border-color: rgba(var(--c-accent-rgb), 0.35);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 0%, rgba(var(--c-accent-rgb), 0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.stat-card:hover::after { opacity: 1; }

/* News cards — deeper lift + gold border */
.news-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sh-card-hover), 0 0 0 1px rgba(var(--c-accent-rgb), 0.30);
  border-color: rgba(var(--c-accent-rgb), 0.40);
}

/* Program cards — already good, just tune timing */
.program-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

/* Скрываем блок «Компетентность» на мобильных */
@media (max-width: 768px) {
  #about-brief { display: none; }
}

/* Mobile news fixes */
@media (max-width: 768px) {
  /* Hero news card collapses to single column: image on top, body below */
  .news-hero-card {
    grid-template-columns: 1fr !important;
  }
  .news-hero-image {
    height: 220px;
    order: -1;
  }
  .news-hero-body {
    padding: var(--sp-6);
  }
  .news-hero-title {
    font-size: var(--fs-xl);
  }
  /* News page grid: 2 columns at tablet */
  .news-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Single column at small mobile */
  .news-page-grid {
    grid-template-columns: 1fr;
  }
  .news-hero-image {
    height: 200px;
  }
  /* News card image height reduction */
  .news-card-image,
  .news-card-image-wrap {
    height: 180px;
  }
}


/* =====================================================
   16. ПАНЕЛЬ ДОСТУПНОСТИ (ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ)
   ===================================================== */

.a11y-wrapper {
  position: relative;
}

/* ——— Кнопка-триггер ——— */
.a11y-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  background: transparent;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.04em;
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base);
  user-select: none;
}

.a11y-toggle-btn:hover,
.a11y-toggle-btn[aria-expanded="true"] {
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), 0.08);
  border-color: var(--c-accent);
}

/* ——— Панель ——— */
.a11y-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 296px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  z-index: 9999;
  padding: var(--sp-4);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  transform-origin: top right;
}

.a11y-panel.a11y-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ——— Заголовок панели ——— */
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

.a11y-panel-title {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
}

.a11y-panel-close {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}

.a11y-panel-close:hover {
  color: var(--c-text);
  background: var(--c-bg-elevated);
}

/* ——— Секция ——— */
.a11y-sec {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.a11y-sec:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.a11y-sec-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
}

/* ——— Размер шрифта ——— */
.a11y-font-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.a11y-font-btn {
  padding: 7px 0;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg-alt);
  color: var(--c-text-sec);
  font-family: var(--ff-body);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.a11y-font-btn[data-size="sm"] { font-size: 10px; }
.a11y-font-btn[data-size="md"] { font-size: 13px; }
.a11y-font-btn[data-size="lg"] { font-size: 16px; }
.a11y-font-btn[data-size="xl"] { font-size: 19px; }

.a11y-font-btn:hover {
  border-color: rgba(var(--c-accent-rgb), 0.6);
  color: var(--c-accent);
}

.a11y-font-btn.a11y-active {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), 0.1);
}

/* ——— Цветовые схемы ——— */
.a11y-color-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.a11y-color-btn {
  border: 2px solid transparent;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.a11y-color-btn:hover { transform: scale(1.06); }
.a11y-color-btn.a11y-active { border-color: var(--c-accent); }

.a11y-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 4px;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 14px;
  border-radius: 4px;
}

.a11y-swatch[data-s="default"] { background: #0A1628; color: #C9A96E; }
.a11y-swatch[data-s="bw"]      { background: #888; color: #eee; }
.a11y-swatch[data-s="wb"]      { background: #000; color: #fff; }
.a11y-swatch[data-s="yb"]      { background: #000; color: #ff0; }

/* ——— Переключатели ——— */
.a11y-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 5px 0;
  cursor: pointer;
}

.a11y-switch-row + .a11y-switch-row { margin-top: 2px; }

.a11y-switch-label {
  font-size: var(--fs-sm);
  color: var(--c-text-sec);
  line-height: 1.4;
  flex: 1;
}

.a11y-switch {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--c-bg-elevated);
  border: 1.5px solid var(--c-border-s);
  position: relative;
  transition: background var(--t-base), border-color var(--t-base);
}

.a11y-switch[aria-checked="true"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.a11y-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: var(--r-full);
  background: var(--c-text-muted);
  transition: transform var(--t-spring), background var(--t-base);
}

.a11y-switch[aria-checked="true"] .a11y-switch-knob {
  transform: translateX(18px);
  background: white;
}

/* ——— Кнопка сброса ——— */
.a11y-reset {
  width: 100%;
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: center;
  transition: all var(--t-fast);
}

.a11y-reset:hover {
  border-color: var(--c-text-muted);
  color: var(--c-text);
  background: var(--c-bg-elevated);
}

/* =====================================================
   16b. РЕЖИМЫ ДОСТУПНОСТИ
   ===================================================== */

[data-a11y-font="sm"] { font-size: 14px; }
[data-a11y-font="lg"] { font-size: 18px; }
[data-a11y-font="xl"] { font-size: 20px; }

[data-a11y-color="bw"] {
  filter: grayscale(1);
}

[data-a11y-color="wb"] {
  --c-bg:          #000000;
  --c-bg-alt:      #0d0d0d;
  --c-bg-elevated: #1a1a1a;
  --c-text:        #ffffff;
  --c-text-sec:    #eeeeee;
  --c-text-muted:  #cccccc;
  --c-accent:      #ffffff;
  --c-accent-hover:#eeeeee;
  --c-accent-rgb:  255, 255, 255;
  --c-border:      #444444;
  --c-border-s:    #555555;
  --c-card-bg:     #111111;
  --c-navy:        #ffffff;
  --c-navy-mid:    #eeeeee;
  --g-hero:        linear-gradient(135deg, #000 0%, #111 100%);
  --g-page-hero:   linear-gradient(135deg, #000 0%, #111 100%);
  --g-cta:         linear-gradient(135deg, #000 0%, #111 100%);
  --g-nav-bg:      rgba(0, 0, 0, 0.97);
  --c-hero-text:        #ffffff;
  --c-hero-text-sec:    rgba(255,255,255,0.85);
  --c-hero-text-muted:  rgba(255,255,255,0.70);
  --c-hero-stat-bg:     rgba(255,255,255,0.06);
  --c-hero-stat-hover:  rgba(255,255,255,0.12);
  --c-hero-stat-border: rgba(255,255,255,0.18);
  --c-hero-divider:     rgba(255,255,255,0.18);
  --c-hero-badge-bg:    rgba(255,255,255,0.08);
  --c-hero-badge-border:rgba(255,255,255,0.28);
  --c-hero-badge-color: #ffffff;
  --c-hero-badge-dot:   #ffffff;
}

[data-a11y-color="wb"] .text-gradient,
[data-a11y-color="wb"] .stat-num {
  -webkit-text-fill-color: #ffffff;
  background: none;
  animation: none;
}

[data-a11y-color="wb"] .section-label::before { background: #ffffff; }

[data-a11y-color="yb"] {
  --c-bg:          #000000;
  --c-bg-alt:      #0c0c00;
  --c-bg-elevated: #1a1a00;
  --c-text:        #ffff00;
  --c-text-sec:    #eeee00;
  --c-text-muted:  #cccc00;
  --c-accent:      #ffff00;
  --c-accent-hover:#ffee00;
  --c-accent-rgb:  255, 255, 0;
  --c-border:      #333300;
  --c-border-s:    #555500;
  --c-card-bg:     #0c0c00;
  --c-navy:        #ffff00;
  --c-navy-mid:    #eeee00;
  --g-hero:        linear-gradient(135deg, #000 0%, #0c0c00 100%);
  --g-page-hero:   linear-gradient(135deg, #000 0%, #0c0c00 100%);
  --g-cta:         linear-gradient(135deg, #000 0%, #0c0c00 100%);
  --g-nav-bg:      rgba(0, 0, 0, 0.97);
  --c-hero-text:        #ffff00;
  --c-hero-text-sec:    rgba(255,255,0,0.85);
  --c-hero-text-muted:  rgba(255,255,0,0.70);
  --c-hero-stat-bg:     rgba(255,255,0,0.05);
  --c-hero-stat-hover:  rgba(255,255,0,0.10);
  --c-hero-stat-border: rgba(255,255,0,0.18);
  --c-hero-divider:     rgba(255,255,0,0.18);
  --c-hero-badge-bg:    rgba(255,255,0,0.08);
  --c-hero-badge-border:rgba(255,255,0,0.28);
  --c-hero-badge-color: #ffff00;
  --c-hero-badge-dot:   #ffff00;
}

[data-a11y-color="yb"] .text-gradient,
[data-a11y-color="yb"] .stat-num {
  -webkit-text-fill-color: #ffff00;
  background: none;
  animation: none;
}

[data-a11y-color="yb"] .section-label::before { background: #ffff00; }

/* page-hero: хардкоженные белые цвета → жёлтые в yb, белые в wb */
[data-a11y-color="yb"] .page-hero-title                 { color: #ffff00; }
[data-a11y-color="yb"] .page-hero-subtitle              { color: rgba(255,255,0,0.80); }
[data-a11y-color="yb"] .page-hero .breadcrumb           { color: rgba(255,255,0,0.65); }
[data-a11y-color="yb"] .page-hero .breadcrumb a         { color: rgba(255,255,0,0.65); }
[data-a11y-color="yb"] .page-hero .breadcrumb-sep       { color: rgba(255,255,0,0.30); }
[data-a11y-color="yb"] .page-hero .breadcrumb-current   { color: rgba(255,255,0,0.92); }
[data-a11y-color="yb"] .page-hero-label                 { color: #ffff00; }

/* Ghost-кнопка hero в yb-режиме */
[data-a11y-color="yb"] .hero .btn-outline {
  border-color: rgba(255,255,0,0.60);
  color: #ffff00;
  background: rgba(255,255,0,0.05);
}
[data-a11y-color="yb"] .hero .btn-outline:hover {
  background: rgba(255,255,0,0.15);
  border-color: #ffff00;
  color: #ffff00;
}

[data-a11y-spacing="on"] p,
[data-a11y-spacing="on"] li,
[data-a11y-spacing="on"] td,
[data-a11y-spacing="on"] .lead,
[data-a11y-spacing="on"] .section-subtitle {
  letter-spacing: 0.07em;
  line-height: 2;
  word-spacing: 0.14em;
}

[data-a11y-links="on"] a {
  text-decoration: underline;
}

[data-a11y-images="on"] .news-card-image,
[data-a11y-images="on"] .news-card-image-wrap,
[data-a11y-images="on"] .news-hero-image,
[data-a11y-images="on"] .program-card-image,
[data-a11y-images="on"] .hero-bg,
[data-a11y-images="on"] section img:not(.logo-emblem-placeholder) {
  display: none;
}

@media (max-width: 600px) {
  .a11y-panel {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: var(--side-pad);
    left: var(--side-pad);
    width: auto;
  }
}

/* =====================================================
   17. ТЁМНАЯ КАРТА (Yandex Maps — CSS variable)
   ===================================================== */
/* --map-filter определён в :root (none) и [data-theme="dark"]
   (invert+hue-rotate+...). Применяется через filter на iframe. */


/* =====================================================
   18. PREMIUM EFFECTS
   Shimmer · Flashlight · Stagger Reveal · Accent Line
   Одометр · Hero Parallax
   ===================================================== */

/* ——— 1. Shimmer на CTA-кнопках ——— */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -115%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    118deg,
    transparent       0%,
    rgba(255,255,255,.28) 50%,
    transparent       100%
  );
  transform: skewX(-18deg);
  animation: btn-shimmer 4.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  0%   { left: -115%; }
  36%  { left: 165%;  }
  100% { left: 165%;  }
}

/* ——— 2. Flashlight-эффект на карточках ——— */
/* Требует position:relative на карточке (stat/program/news уже имеют) */
.news-card { position: relative; } /* news-card не имел */

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--c-accent-rgb), .11) 0%,
    transparent 68%
  );
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
  z-index: 2;
}
.flashlight-active .card-glow { opacity: 1; }

/* ——— 3. Stagger reveal слов заголовков секций ——— */
.section-title .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(.75em) rotate(1.5deg);
  transition:
    opacity   .5s  calc(var(--i, 0) * 70ms + 80ms)  ease-out,
    transform .5s  calc(var(--i, 0) * 70ms + 80ms)  cubic-bezier(.34, 1.56, .64, 1);
}
.is-visible .section-title .word-reveal,
.section-title.is-visible .word-reveal {
  opacity: 1;
  transform: none;
}

/* ——— 4. Анимированная линия под .accent в заголовках ——— */
.section-title .accent {
  position: relative;
  display: inline-block;
}
.section-title .accent::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent) 0%, rgba(var(--c-accent-rgb), .1) 100%);
  border-radius: 2px;
  transition: width .75s .55s cubic-bezier(.4, 0, .2, 1);
}
.is-visible .section-title .accent::after,
.section-title.is-visible .accent::after { width: 100%; }

/* ——— 5. Одометр — digit roller ——— */
.odo-num {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
}
.odo-col {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
}
.odo-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 1.35s cubic-bezier(.16, 1, .3, 1);
}
.odo-d {
  display: block;
  height: 1em;
  line-height: 1;
}
.odo-sfx {
  display: inline-block;
  line-height: 1;
}

/* ——— Доступность: без анимаций ——— */
@media (prefers-reduced-motion: reduce) {
  .section-title .word-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .section-title .accent::after { display: none; }
  .btn-primary::after            { display: none; }
  .odo-reel                      { transition: none !important; }
}


/* =====================================================
   19. ПРЕЛОАДЕР
   ===================================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0A1628;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

#preloader.preloader-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Обёртка эмблемы + вращающееся кольцо */
.preloader-emblem-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  animation: p-logo-in .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes p-logo-in {
  from { opacity: 0; transform: scale(.6) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.preloader-emblem {
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(201, 169, 110, .45);
  background: rgba(201, 169, 110, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  color: #C9A96E;
  letter-spacing: -.01em;
}

/* Вращающаяся золотая дуга */
.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, .14);
  border-top-color: #C9A96E;
  border-right-color: rgba(201, 169, 110, .42);
  animation: p-spin 1.1s linear infinite;
}

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

/* Подпись */
.preloader-label {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .50);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: p-fade-up .5s .3s ease both;
}

/* Прогресс-бар */
.preloader-bar-track {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, .07);
  border-radius: 2px;
  overflow: hidden;
  animation: p-fade-up .4s .5s ease both;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C9A96E 0%, #E8D5A3 100%);
  border-radius: 2px;
  animation: p-bar 1.1s .35s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes p-fade-up {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

@keyframes p-bar {
  0%   { width: 0%; }
  65%  { width: 78%; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #preloader          { transition: none; }
  .preloader-ring     { animation: none; }
  .preloader-bar-fill { animation: none; width: 100%; }
  .preloader-emblem-wrap,
  .preloader-label,
  .preloader-bar-track { animation: none; opacity: 1; transform: none; }
}


/* =====================================================
   КАК МЫ РАБОТАЕМ
   ===================================================== */

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--sp-12);
  flex-wrap: wrap;
  justify-content: center;
}

.how-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  position: relative;
}

.how-step-num {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c-accent);
  opacity: .18;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  letter-spacing: -2px;
}

.how-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201,169,110,.1);
  border: 1.5px solid rgba(201,169,110,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto var(--sp-4);
  color: var(--c-accent);
  transition: background .3s, border-color .3s, transform .3s;
}

.how-step:hover .how-step-icon {
  background: rgba(201,169,110,.2);
  border-color: rgba(201,169,110,.5);
  transform: translateY(-4px);
}

.how-step-title {
  font-family: var(--ff-head);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.how-step-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.how-step-arrow {
  display: flex;
  align-items: center;
  padding-top: 52px;
  color: rgba(201,169,110,.4);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .how-step-arrow { display: none; }
  .how-steps { gap: var(--sp-6); }
  .how-step { min-width: 140px; max-width: 180px; }
}

@media (max-width: 600px) {
  .how-steps { flex-direction: column; align-items: center; gap: var(--sp-4); }
  .how-step { max-width: 100%; width: 100%; padding: var(--sp-6); }
  .how-step-num { font-size: 2.5rem; }
}


/* =====================================================
   КНОПКА «НАВЕРХ»
   ===================================================== */

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,169,110,.35);
  background: var(--c-card-bg);
  color: var(--c-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background .2s, border-color .2s;
}
#back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--c-accent);
  color: var(--c-navy);
  border-color: var(--c-accent);
}
#back-to-top svg { display: block; }


/* =====================================================
   КНОПКИ МЕССЕНДЖЕРОВ В ФУТЕРЕ
   ===================================================== */

.footer-social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .45rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  line-height: 1;
}
.footer-social-btn:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(201,169,110,.45);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-wa svg { color: #25D366; }
.footer-social-tg svg { color: #4FC3F7; }
.footer-social-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
  #back-to-top { right: 16px; bottom: 24px; }
}


/* =====================================================
   COOKIE-БАННЕР (152-ФЗ)
   ===================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #0A1628;
  border-top: 1px solid rgba(201,169,110,.3);
  box-shadow: 0 -4px 32px rgba(0,0,0,.55);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
#cookie-banner.visible { transform: none; }

/* Иконка щита слева */
.cookie-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,169,110,.12);
  border: 1px solid rgba(201,169,110,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}
.cookie-text strong {
  display: block;
  font-family: var(--ff-head);
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 2px;
  letter-spacing: .01em;
}
.cookie-text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-accept {
  padding: 8px 20px;
  background: var(--c-accent);
  color: var(--c-navy);
  border: none;
  border-radius: var(--r-md);
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--ff-head);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.cookie-accept:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
}

.cookie-decline {
  padding: 8px 14px;
  background: transparent;
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.cookie-decline:hover {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
}

@media (max-width: 640px) {
  #cookie-banner { padding: 12px 16px; gap: 10px; }
  .cookie-icon   { display: none; }
  .cookie-text   { font-size: .78rem; min-width: 0; }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}
