/* ============================================================
   The Genius — Главная
   Визуальный язык бренда The Genius: те же токены, шапка, подвал
   и компоненты, что на лендингах AI-теста, «Сознания», «Курсов»
   и «Мастер-классов». Ниже — общая база, затем компоненты страницы.
   ============================================================ */

/* --- Tokens --- */
/* Тёмная тема — база. Светлая ниже переопределяет только цвета:
   каналы (*-rgb) перекрашивают разом все полупрозрачные рамки и свечения. */
:root {
  /* Каналы для rgba() */
  --bg-rgb: 12, 11, 9;
  --ink-rgb: 236, 230, 218;
  --gold-rgb: 194, 161, 94;
  --gold-edge-rgb: 220, 193, 137;
  --glow-rgb: 201, 168, 102;

  --bg: #0c0b09;
  --ink: #ece6da;
  --ink-2: #e8e1d2;
  --ink-3: #e4dccb;
  --ink-4: #dbd3c4;
  --ink-dim: #a69d8e;
  --placeholder: #8f8676;
  --selection-ink: #fff;
  /* Цвет центрального диска знака. По умолчанию = фон (в тёмной теме знак
     читается на тёмном). В светлой теме знак кладём на тёмный медальон и
     переопределяем этот токен точечно. */
  --sign-center: var(--bg);

  --gold: #c2a15e;
  --gold-soft: #dcc189;
  --gold-light: #ecd4a0;
  --gold-mid: #c9a866;
  --gold-deep: #9c7c3a;
  /* Текст на золотых плашках */
  --on-gold: #0c0b09;

  --gold-grad: linear-gradient(180deg, #ecd4a0, #c9a866 48%, #9c7c3a);
  --gold-btn: linear-gradient(180deg, #e6d0a0, #c2a15e 60%, #9c7c3a);
  --panel: linear-gradient(180deg, rgba(var(--ink-rgb), .028), rgba(var(--ink-rgb), .006));

  --line: rgba(var(--gold-rgb), .14);
  --line-strong: rgba(var(--gold-rgb), .55);
  --hair: rgba(var(--ink-rgb), .08);

  --serif: 'Playfair Display', serif;
  --sans: Manrope, sans-serif;
  --display: Cinzel, serif;

  --wrap: 1200px;
  --gut: 32px;
  /* Реально измеренная высота липкой шапки; первый экран вычитает её,
     чтобы занять остаток вьюпорта. Держать в синхроне с паддингами шапки. */
  --header-h: 90px;
  /* Отступ сверху и снизу у каждой секции — как на aitest.thegenius.academy */
  --section-y: clamp(88px, 12vh, 150px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Светлая тема --- */
:root[data-theme="light"] {
  --bg-rgb: 246, 244, 238;
  --ink-rgb: 25, 23, 20;
  --gold-rgb: 168, 117, 42;
  --gold-edge-rgb: 168, 117, 42;
  --glow-rgb: 168, 117, 42;

  --bg: #f6f4ee;
  --ink: #191714;
  --ink-2: #2c2820;
  --ink-3: #464036;
  --ink-4: #5d584e;
  --ink-dim: #6f685c;
  --placeholder: #a49b8c;
  --selection-ink: #191714;

  /* Сплошное золото для текста чуть глубже, чем каналы рамок, — иначе мелкие
     надписи на кремовом не проходят по контрасту (WCAG AA). */
  --gold: #8a5e1c;
  --gold-soft: #714e18;
  --gold-light: #7a5417;
  --gold-mid: #a8752a;
  --gold-deep: #5f4211;
  --on-gold: #191714;

  --gold-grad: linear-gradient(180deg, #b3812f, #96681f 45%, #7a5417);
  --gold-btn: linear-gradient(180deg, #e3c682, #c9a24f 60%, #a8752a);
  --panel: linear-gradient(180deg, #f3efe6, #f3efe6);

  --line: #e7dcc9;
  --line-strong: rgba(var(--gold-rgb), .5);
  --hair: rgba(var(--ink-rgb), .1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; margin: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

::selection { background: rgba(var(--gold-rgb), .28); color: var(--selection-ink); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg); color: var(--gold);
  padding: 12px 20px; border: 1px solid var(--gold);
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Utilities --- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  /* Нижние выносные (g, y, у, р, ц) обрезались: background-clip: text заливает
     только высоту строки, а хвосты букв уходят ниже неё. Растягиваем клип-бокс
     вниз паддингом и гасим сдвиг отрицательным margin — вёрстка не меняется. */
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
/* Классический амперсанд: у Playfair Display он слишком вычурный —
   для «&» в заголовках берём привычную форму из классической антиквы.
   Золотую заливку сохраняет родительский .gold-text (clip по всему тексту). */
.amp {
  font-family: Georgia, "Times New Roman", "Times", serif;
  font-style: normal;
  font-weight: 500;
  padding: 0 .02em;
}

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.container--narrow { max-width: 1160px; }
.container--sm { max-width: 1000px; }

.section {
  padding: var(--section-y) 0;
  scroll-margin-top: 84px;
  border-top: 1px solid rgba(var(--ink-rgb), .07);
}
.section--glow-top { background: radial-gradient(90% 60% at 50% 0%, rgba(var(--gold-rgb), .06), rgba(var(--bg-rgb), 0) 60%); }
.section--glow-bottom { background: radial-gradient(90% 60% at 50% 100%, rgba(var(--gold-rgb), .06), rgba(var(--bg-rgb), 0) 60%); }
.section--glow-left { background: radial-gradient(80% 60% at 20% 0%, rgba(var(--gold-rgb), .06), rgba(var(--bg-rgb), 0) 60%); }


.section__head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Заголовок «по левому краю» — чтобы страница не читалась как один
   бесконечный столбик по центру. Чередуется с обычным центрированным. */
.section__head--left {
  max-width: 880px;
  margin: 0;
  text-align: left;
  align-items: flex-start;
}

.eyebrow {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Инлайн-акцент для «продающих» фраз в тексте */
.accent { color: var(--gold); font-weight: 700; }
.nowrap { white-space: nowrap; }

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
/* Заголовок с ручными переносами строк — balance не должен их перекраивать */
.h2--lines { text-wrap: wrap; }
.h2--md { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.15; }

.lead {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.62;
  color: var(--ink-4);
}
.lead--sm { font-size: 19px; line-height: 1.55; }

.dot {
  flex: none;
  width: 20px; height: 20px;
  border: 1px solid rgba(var(--gold-rgb), .7);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.dot::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.dot--sm { width: 16px; height: 16px; border-color: rgba(var(--gold-rgb), .6); margin-top: 3px; }
.dot--sm::after { width: 3px; height: 3px; }

.checklist { display: flex; flex-direction: column; gap: 16px; }
.check {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink-4);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  border-radius: 2px;
  transition: filter .3s, transform .3s, background .3s, border-color .3s, color .3s;
  cursor: pointer;
}
.btn--gold {
  color: var(--on-gold);
  background: var(--gold-btn);
  border: 1px solid rgba(var(--gold-edge-rgb), .5);
  padding: 15px 36px;
}
.btn--gold:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--on-gold); }
.btn--ghost {
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb), .45);
  padding: 15px 30px;
}
.btn--ghost:hover { background: rgba(var(--gold-rgb), .09); border-color: var(--gold); color: var(--gold-light); }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--block { display: block; width: 100%; text-align: center; padding: 14px; font-family: var(--sans); }

/* --- Фирменный знак --- */
@keyframes tg-rotate { to { transform: rotate(360deg); } }
@keyframes tg-breathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* Знак: 112 «дышащих» лучей рисует js/main.js, кольцо и точка берут currentColor. */
.tg-sign {
  color: #c2a15e;
  transform-origin: 50% 50%;
  animation: tg-rotate 60s linear infinite;
}

.sign { position: relative; }
.sign__glow {
  position: absolute; inset: -42%;
  background: radial-gradient(circle, rgba(var(--glow-rgb), .32), rgba(var(--bg-rgb), 0) 62%);
  animation: tg-breathe 6.5s ease-in-out infinite;
}
.sign__img { position: relative; width: 100%; height: 100%; }
.sign--small { width: 70px; height: 70px; }
.sign--small .sign__glow { inset: -40%; animation-duration: 7s; }

/* --- Header ---
   Бар (фон/линия) на всю ширину вьюпорта; содержимое (.header__inner) —
   в центрированной читаемой колонке --wrap, как .container и .footer__inner,
   чтобы лого и кнопки не липли к краям. Липкая, выше всех секций.
   Тёмная в обеих темах (токены переопределены ниже, в блоке светлой темы). */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(var(--bg-rgb), .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* При скролле — чуть плотнее фон, тонкая золотая линия снизу и мягкая тень.
   Класс .is-scrolled навешивает js/main.js. Переход плавный, без скачка. */
.header.is-scrolled {
  background: rgba(var(--bg-rgb), .94);
  border-bottom-color: rgba(var(--gold-rgb), .42);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .30);
}
.header__inner {
  width: 100%;
  /* Колонка совпадает с .hero__inner (1340px), чтобы лого встало ровно над
     заголовком первого экрана, а кнопка — к правому краю зоны контента. */
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__mark { width: 50px; height: 50px; }
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  letter-spacing: .16em;
  white-space: nowrap; /* «THE GENIUS» не переносится на две строки */
}
.brand__name--sm { font-size: 24px; }

/* Правая группа: навигация → соцсети → разделитель → тумблер → CTA */
.header__menu { display: flex; align-items: center; gap: 22px; }

.nav { display: flex; gap: 30px; align-items: center; }
.nav__link {
  position: relative;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink-4);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link:hover { color: var(--gold-soft); }
/* Активный пункт (текущая страница) — золотой, с раскрытым подчёркиванием */
.nav__link--active { color: var(--gold); }

.header__cta { white-space: nowrap; }
.header__cta-short { display: none; }

/* Тонкий вертикальный разделитель перед тумблером темы */
.header__divider {
  flex: none;
  width: 1px;
  height: 26px;
  background: var(--line-strong);
}

/* --- Соцсети (линейные монохромные иконки, рисует js/main.js) --- */
.socials { display: flex; align-items: center; gap: 12px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: var(--gold-soft);
  opacity: .78;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.social svg { display: block; width: 21px; height: 21px; }
.social:hover { color: var(--gold-light); opacity: 1; }
.social[aria-disabled="true"] { cursor: default; }
.social[aria-disabled="true"]:hover { color: var(--gold-soft); opacity: .78; }

/* --- Переключатель темы --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.theme-toggle {
  flex: none;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
  border-radius: 999px;
}
.theme-toggle__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 62px; height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), .06);
  transition: border-color .3s, background .3s;
}
.theme-toggle:hover .theme-toggle__track { border-color: var(--gold); }
.theme-toggle__icon {
  position: relative;
  z-index: 1;
  width: 14px; height: 14px;
  color: var(--gold-soft);
  opacity: .6;
  transition: color .3s, opacity .3s;
}
.theme-toggle__knob {
  position: absolute;
  top: 50%; left: 3px;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--gold-btn);
  box-shadow: 0 1px 6px rgba(var(--bg-rgb), .5);
  transition: transform .3s var(--ease);
}
/* Ползунок стоит на активной иконке: луна — тёмная тема, солнце — светлая.
   Сдвиг = расстояние между центрами иконок (32px), чтобы ползунок вставал
   ровно по центру солнышка, а не чуть левее. */
.theme-toggle[aria-checked="true"] .theme-toggle__knob { transform: translateX(32px); }
.theme-toggle[aria-checked="false"] .theme-toggle__icon--moon,
.theme-toggle[aria-checked="true"] .theme-toggle__icon--sun {
  color: var(--on-gold);
  opacity: 1;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 2px;
  cursor: pointer;
}
.burger__bar {
  display: block;
  width: 20px; height: 1.5px;
  margin: 0 auto;
  background: var(--gold-soft);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Hero ---
   Full-bleed портрет справа растворяется в фоне без единой видимой границы;
   слева — знак, надзаголовок, заголовок и кнопки поверх.

   Первый экран — постоянный тёмный остров: цвет фона взят пипеткой с левого
   (пустого) края изображения — #100804 — чтобы стык картинки и фона был
   невидим в любой теме. Поэтому здесь жёстко фиксируем тёмную палитру
   токенов (в светлой теме секцию не трогаем — см. блок светлой темы). */
.hero {
  --bg-rgb: 10, 7, 5;
  --ink-rgb: 236, 230, 218;
  --gold-rgb: 194, 161, 94;
  --gold-edge-rgb: 220, 193, 137;
  --glow-rgb: 224, 176, 96;

  --bg: #0a0705;
  --ink: #f4ede0;
  --ink-2: #ece3d2;
  --ink-4: #ccbfa8;
  --gold: #c2a15e;
  --gold-soft: #dcc189;
  --gold-light: #ecd4a0;
  --on-gold: #100804;
  --gold-grad: linear-gradient(180deg, #ecd4a0, #c9a866 48%, #b3893f);
  --gold-btn: linear-gradient(180deg, #e6d0a0, #c2a15e 60%, #9c7c3a);
  --sign-center: #0a0705;

  position: relative;
  isolation: isolate;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 5vh, 76px) 0;
  /* Фон первого экрана — воссоздан по цвету исходной фотографии: тёплый
     янтарный подсвет за людьми (центр-справа), уходящий в почти-чёрный по
     краям. Люди теперь отдельный PNG поверх этого фона (+ слой .hero__aura). */
  background: radial-gradient(88% 96% at 61% 41%, #2b1a0b 0%, #160d05 45%, #090603 100%);
  color: var(--ink);
}

/* Живой фон: три компактных тёплых источника света (золото, бронза, светлое
   золото) медленно дрейфуют и пульсируют яркостью. Слой над фоном секции
   (z-index 1), под изображением (z-index 2). Пятна разнесены: одно за
   текстом слева, одно внизу по центру, одно в верхнем левом крае (в зоне,
   где картинка растворена маской). Тёмную виньетку краёв даёт отдельный слой
   .hero::before (см. ниже) — раньше она сидела внутри этого слоя и глушила
   пятна. Только transform/opacity — композитор тянет без перерисовки, 60fps. */
.hero__aura {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
/* Виньетка тёмных краёв. Раньше жила внутри .hero__aura (::after) и красилась
   ПОВЕРХ пятен в том же слое — глушила их. Вынесена в .hero::before на
   отдельный слой (z-index 2): как первый потомок секции она красится ДО
   .hero__media (тот же z-index 2, но позже в потоке), то есть лежит НАД пятнами
   (тёмные углы) и ПОД изображением — героиню не затемняет. Прозрачный центр
   расширен (34%), чтобы центральный тёплый перелив за текстом читался. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 38% 50%, transparent 42%, rgba(6, 4, 2, .66) 100%);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32; /* статичный запас для prefers-reduced-motion (анимация перекрывает) */
  will-change: transform;
}
/* Тёплое золото — за текстовым блоком слева (основной перелив).
   Ядро держит цвет до ~22% радиуса (не только в точке центра) — иначе
   blur(90px) разжижает пятно почти в ноль. */
.hero__blob--1 {
  width: 44vw; height: 44vw;
  left: -8%; top: 22%;
  background: radial-gradient(circle, rgba(230, 182, 108, 1) 0%, rgba(230, 182, 108, .82) 22%, rgba(var(--bg-rgb), 0) 72%);
  animation: drift-1 32s ease-in-out infinite alternate, pulse-1 23s ease-in-out infinite alternate;
  animation-delay: -7s, -13s;
}
/* Бронза / тёмный янтарь — внизу по центру */
.hero__blob--2 {
  width: 40vw; height: 40vw;
  left: 26%; bottom: -16%;
  background: radial-gradient(circle, rgba(172, 120, 58, 1) 0%, rgba(172, 120, 58, .82) 22%, rgba(var(--bg-rgb), 0) 72%);
  animation: drift-2 41s ease-in-out infinite alternate, pulse-2 29s ease-in-out infinite alternate;
  animation-delay: -22s, -6s;
}
/* Светлое золото — перенесено из правого верхнего угла (там его полностью
   скрывала непрозрачная правая часть картинки) в верхний левый край, где
   изображение уже растворено mask-image, — иначе пятно бесполезно. */
.hero__blob--3 {
  width: 34vw; height: 34vw;
  left: 8%; top: -14%;
  background: radial-gradient(circle, rgba(238, 214, 164, 1) 0%, rgba(238, 214, 164, .82) 24%, rgba(var(--bg-rgb), 0) 74%);
  animation: drift-3 27s ease-in-out infinite alternate, pulse-3 19s ease-in-out infinite alternate;
  animation-delay: -15s, -25s;
}
/* Дрейф: амплитуда 15–25% вьюпорта, дыхание масштабом 0.85–1.25.
   Пульсация яркости на своей (некратной сдвигу) длительности — перелив
   не зацикливается заметно. Только transform/opacity — композитор без
   перерисовки. */
@keyframes drift-1 {
  from { transform: translate3d(-10vw, -6vh, 0) scale(.88); }
  to { transform: translate3d(12vw, 14vh, 0) scale(1.2); }
}
@keyframes drift-2 {
  from { transform: translate3d(11vw, 8vh, 0) scale(1.22); }
  to { transform: translate3d(-13vw, -12vh, 0) scale(.86); }
}
@keyframes drift-3 {
  from { transform: translate3d(-8vw, -5vh, 0) scale(1.05); }
  to { transform: translate3d(14vw, 16vh, 0) scale(1.24); }
}
@keyframes pulse-1 { from { opacity: .26; } to { opacity: .46; } }
@keyframes pulse-2 { from { opacity: .24; } to { opacity: .42; } }
@keyframes pulse-3 { from { opacity: .22; } to { opacity: .38; } }

/* Слой изображения. Отдалён от зрителя: масштаб 0.78 (−22%) с опорой в
   правом нижнем углу — фигура остаётся прижата к правому низу и уходит за
   нижний край, но над головой открывается ~26% пустого фона, а между
   текстом и лицом появляется воздух. Верхний и левый края картинки теперь
   внутри секции — их растворяет mask-image (сверху и слева), правый и
   нижний уходят за кромку секции. z-index 2 — над живым фоном aura. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden; /* клипаем сдвинутую вправо картинку */
  /* Левый край картинки растворяем — под текстом проступает живой слой .hero__aura
     (анимированные золотые пятна), как на aitest.thegenius.academy. Справа — золото. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 18%, #000 50%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 18%, #000 50%, #000 100%);
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media video { display: block; background: #0a0705; }
.hero__media img,
.hero__media video {
  /* Молекула ДНК (видео 1920×1080): справа спираль, слева тьма под текст.
     Заполняет секцию целиком, cover, прижата к правому краю — js/main.js
     пересчитывает по этим же правилам точки для подписей. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Overlay: прозрачен почти везде, чтобы живой фон aura просвечивал.
   Мягкий почти-чёрный эллипс за текстом поднимает читаемость (это не
   заливка — свет aura виден по краям от него). Нижнего затемнения нет. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* Лёгкое затемнение слева под текст, но не глушим живое золотое свечение aura. */
  background:
    linear-gradient(to right,
      rgba(6, 4, 2, .5) 0%,
      rgba(6, 4, 2, .34) 28%,
      rgba(6, 4, 2, .12) 48%,
      rgba(6, 4, 2, 0) 64%);
}

.hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--gut);
  /* Без сдвига вверх: с двумя абзацами текста контент центрируется ровно,
     а заголовок больше не уезжает под липкую шапку. */
  transform: none;
}
.hero__copy {
  /* Текстовый блок — левые ~46% ширины, поверх пустого фона (лицо отодвинуто) */
  width: min(47%, 640px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
  text-wrap: balance;
  /* Мягкая тёмная тень — гарантирует читаемость поверх тёплого фона */
  text-shadow: 0 1px 24px rgba(6, 4, 2, .55);
}
.hero__lead {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30em;
  text-shadow: 0 1px 18px rgba(6, 4, 2, .5);
}
/* Второй абзац первого экрана — поясняющий, спокойный (не курсив) */
.hero__note {
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.62;
  color: var(--ink-4);
  max-width: 33em;
  text-shadow: 0 1px 16px rgba(6, 4, 2, .5);
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}


/* --- Отзывы (слайдер) --- */
.reviews { margin-top: 48px; }
.reviews__viewport {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews__viewport::-webkit-scrollbar { display: none; }
.review { flex: 0 0 100%; scroll-snap-align: center; padding: 2px; display: flex; }
.review__inner {
  flex: 1;
  position: relative;
  border: 1px solid rgba(var(--gold-rgb), .16);
  border-radius: 14px;
  background:
    radial-gradient(130% 90% at 10% 0%, rgba(var(--gold-rgb), .07), rgba(var(--bg-rgb), 0) 48%),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-rgb), .10),
    0 36px 84px -48px rgba(0, 0, 0, .7);
  padding: clamp(30px, 3.4vw, 50px);
  display: grid;
  grid-template-columns: clamp(180px, 21vw, 250px) minmax(0, 1fr);
  gap: clamp(30px, 3.6vw, 54px);
  align-items: center;   /* портрет по центру по вертикали — без пустоты под ним */
}
.review__photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #11100d;
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), .3),
    0 28px 54px -28px rgba(0, 0, 0, .85);
}
.review__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
/* мягкое тёплое затемнение снизу — портрет сцепляется с тёмной карточкой */
.review__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, .5), rgba(10, 8, 5, 0) 40%);
  pointer-events: none;
}
/* Отзыв без фото: одна колонка, текст по центру карточки читаемой ширины. */
.review__inner--text { grid-template-columns: minmax(0, 760px); justify-content: center; }
.review__body { display: flex; flex-direction: column; gap: 18px; }
.review__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(58px, 6vw, 80px);
  line-height: .5;
  margin: 0 0 -8px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.review__text { display: flex; flex-direction: column; gap: 15px; }
.review__text p { font-size: clamp(16px, 1.28vw, 18px); line-height: 1.72; color: var(--ink-3); }
.review__name {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--gold-light);
  margin-top: 12px;
  padding-top: 22px;
}
/* короткий золотой штрих вместо блёклой линии на всю ширину */
.review__name::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
}

.reviews__bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.reviews__nav {
  flex: none;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--gold-rgb), .4);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: border-color .3s, background .3s, opacity .3s;
}
.reviews__nav::before {
  content: "";
  width: 8px; height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.reviews__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.reviews__nav--next::before { transform: translateX(-2px) rotate(45deg); }
.reviews__nav:hover:not(:disabled) { border-color: var(--gold); background: rgba(var(--gold-rgb), .08); }
.reviews__nav:disabled { opacity: .3; cursor: default; }
.reviews__count {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-4);
  min-width: 5.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.reviews__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.reviews__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), .28);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.reviews__dot[aria-current="true"] { background: var(--gold); transform: scale(1.25); }

/* --- Контакты --- */
.brandblock { padding: var(--section-y) 0; }
.brandblock .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.contact__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 340px));
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}
.contact__card {
  border: 1px solid rgba(var(--gold-rgb), .18);
  background: var(--panel);
  border-radius: 4px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact__label {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__value { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); }
.contact__value:hover { color: var(--gold-light); }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { font-size: 13.5px; color: var(--ink-dim); }
.footer__legal a:hover { color: var(--gold-soft); }
.footer__copy { font-size: 12.5px; color: var(--ink-dim); }


/* --- Reveal on scroll (only when JS is active) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Вовлечение: прогресс, каскадные появления, ховеры, микроанимации
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), .25), var(--gold));
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* Каскадное появление детей блока при прокрутке */
.js .reveal.stagger { opacity: 1; transform: none; }
.js .reveal.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .5s var(--ease),
    border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.js .reveal.stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal.stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.js .reveal.stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.js .reveal.stagger.is-visible > *:nth-child(3) { transition-delay: .20s; }
.js .reveal.stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
.js .reveal.stagger.is-visible > *:nth-child(5) { transition-delay: .36s; }
.js .reveal.stagger.is-visible > *:nth-child(6) { transition-delay: .44s; }

/* Подъём и мягкое золотое свечение карточек при наведении */
.contact__card {
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.contact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), .5);
  box-shadow: 0 18px 50px -22px rgba(var(--gold-rgb), .45);
}

/* Золотой блик, проходящий по кнопке при наведении */
.btn { position: relative; overflow: hidden; }
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease);
  pointer-events: none;
}
.btn--gold:hover::after { transform: translateX(120%); }

/* Подчёркивание пунктов меню при наведении */
.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }

/* Золотая линия-акцент прорисовывается под заголовком секции */
.section__head::after {
  content: "";
  align-self: center;
  width: 0; height: 2px;
  margin-top: -6px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1s var(--ease) .15s;
}
.section__head.is-visible::after { width: 72px; }
/* У левого заголовка линия начинается от края и растёт вправо */
.section__head--left::after {
  align-self: flex-start;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* --- Тег над карточкой-услугой (сертификации, бизнес, планы) --- */
.tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(var(--gold-rgb), .08);
  border: 1px solid rgba(var(--gold-rgb), .4);
  border-radius: 999px;
  padding: 6px 14px;
}
.tag--gold { color: var(--on-gold); background: var(--gold-btn); border-color: transparent; }
.note-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  border: 1px solid rgba(var(--gold-rgb), .2);
  border-left: 3px solid var(--gold);
  background: var(--panel);
  border-radius: 4px;
  padding: 24px 28px;
}
.note-strip__text { font-size: 16.5px; line-height: 1.55; color: var(--ink-4); max-width: 66ch; }
.note-strip__text b { color: var(--gold-soft); font-weight: 700; }
/* «Стоимость: …» — с новой строки (не липнет к концу предложения). */
.note-strip__price { display: block; margin-top: 6px; }
.note-strip .btn { white-space: nowrap; }

/* Мягкая помощь с выбором — по центру под сеткой карточек. */
.help-line {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.help-line p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-4); max-width: 48ch; }


/* --- Отзывы: подпись курса под именем автора --- */
.review__course {
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--ink-dim);
  margin-top: 6px;
}


/* --- Модальные окна (поп-апы) --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 1, .74);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: modal-fade .25s var(--ease);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 500px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(194, 161, 94, .09), rgba(20, 16, 10, 0) 60%),
    #14100a;
  border: 1px solid rgba(194, 161, 94, .32);
  border-radius: 16px;
  padding: clamp(30px, 4vw, 46px) clamp(26px, 3.5vw, 40px) clamp(26px, 3.5vw, 38px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85);
  color: #ece6da;
  animation: modal-pop .3s var(--ease);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(194, 161, 94, .28);
  border-radius: 50%;
  background: transparent;
  color: #c2a15e;
  cursor: pointer;
  transition: border-color .3s, background .3s, color .3s;
}
.modal__close:hover { border-color: #c2a15e; background: rgba(194, 161, 94, .1); color: #ecd4a0; }
.modal__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c2a15e;
  margin-bottom: 12px;
}
.modal__text {
  font-size: 16px;
  line-height: 1.6;
  color: #ded6c6;
}
.modal__price {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: #ecd4a0;
}
/* Поп-ап «Ключевые темы»: подзаголовок + список тем (текст светлый — модалка
   тёмная в обеих темах). */
.modal__subhead {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c2a15e;
}
.modal__list { margin-top: 16px; gap: 13px; }
.modal__list .check { font-size: 15.5px; color: #ded6c6; }
.modal__dialog .btn { margin-top: 22px; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* --- Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reviews__viewport { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.stagger > * { opacity: 1; transform: none; }
}

/* ============================================================
   Светлая тема — тёмные острова
   Внутри острова подменяем токены на тёмные: потомки автоматически
   рисуются как в тёмной теме.
   ============================================================ */
:root[data-theme="light"] .footer,
/* «Отзывы» и «Контакты» в светлой теме светлые, а карточки внутри
   остаются тёмными — тёмные токены висят на самих карточках. */
:root[data-theme="light"] .review__inner,
:root[data-theme="light"] .contact__card {
  --bg-rgb: 22, 18, 12;
  --ink-rgb: 236, 230, 218;
  --gold-rgb: 194, 161, 94;
  --gold-edge-rgb: 220, 193, 137;
  --glow-rgb: 201, 168, 102;

  --bg: #16120c;
  --ink: #ece6da;
  --ink-2: #e8e1d2;
  --ink-3: #e4dccb;
  --ink-4: #d0c6b1;
  --ink-dim: #a89e8a;
  --selection-ink: #fff;

  --gold: #c2a15e;
  --gold-soft: #dcc189;
  --gold-light: #ecd4a0;
  --gold-mid: #c9a866;
  --gold-deep: #9c7c3a;
  --on-gold: #16120c;

  --gold-grad: linear-gradient(180deg, #ecd4a0, #c9a866 48%, #9c7c3a);
  --gold-btn: linear-gradient(180deg, #e6d0a0, #c2a15e 60%, #9c7c3a);
  --panel: linear-gradient(180deg, rgba(var(--ink-rgb), .028), rgba(var(--ink-rgb), .006));

  --line: rgba(var(--gold-rgb), .14);
  --line-strong: rgba(var(--gold-rgb), .55);
  --hair: rgba(var(--ink-rgb), .08);
  --sign-center: #16120c;

  color: var(--ink);
}
:root[data-theme="light"] .footer {
  background: #14100a;
  border-top-color: rgba(var(--gold-rgb), .18);
}
/* Карточка отзыва и карточки контактов: тёмная подложка задаётся явно —
   через токены она была бы почти прозрачной и просветила бы светлый фон. */
:root[data-theme="light"] .review__inner {
  background:
    radial-gradient(130% 90% at 10% 0%, rgba(var(--gold-rgb), .09), rgba(0, 0, 0, 0) 48%),
    #17130d;
  border-color: rgba(var(--gold-rgb), .26);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-rgb), .12),
    0 30px 70px -40px rgba(24, 18, 8, .55);
}
:root[data-theme="light"] .contact__card {
  background:
    linear-gradient(180deg, rgba(var(--gold-rgb), .08), rgba(var(--gold-rgb), .02)),
    #17130d;
  border-color: rgba(var(--gold-rgb), .26);
  box-shadow: 0 24px 56px -34px rgba(24, 18, 8, .5);
}

/* --- Шапка: чёрная в обеих темах --- */
:root[data-theme="light"] .header {
  --bg-rgb: 12, 11, 9;
  --ink-rgb: 236, 230, 218;
  --gold-rgb: 194, 161, 94;
  --gold-edge-rgb: 220, 193, 137;

  --ink: #ece6da;
  --ink-2: #e8e1d2;
  --ink-3: #e4dccb;
  --ink-4: #dbd3c4;
  --ink-dim: #a69d8e;

  --gold: #c2a15e;
  --gold-soft: #dcc189;
  --gold-light: #ecd4a0;
  --on-gold: #0c0b09;
  --gold-btn: linear-gradient(180deg, #e6d0a0, #c2a15e 60%, #9c7c3a);

  --line: rgba(var(--gold-rgb), .14);
  --sign-center: #0c0b09;
}

/* ============================================================
   Главная страница — компоненты поверх общего языка бренда
   ============================================================ */

/* --- Шапка: переходы на другие страницы The Genius --- */
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* --- Первый экран: текст слева, молекула ДНК справа --- */
.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
.hero__media {
  /* Картинка ДНК сдвинута вправо (часть уходит за край секции, .hero её
     обрезает) — молекула стоит правее и не спорит с текстом. Слева картинка
     и так тёмная, растворяем только край. */
  inset: 0 -9% 0 9%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 12%, #000 28%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 12%, #000 28%);
}
/* Средние экраны: картинка масштабируется по высоте и хвост спирали заходит
   под кнопки — растворяем левую часть сильнее. */
@media (min-width: 961px) and (max-width: 1199px) {
  .hero__media {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 26%, rgba(0, 0, 0, .5) 40%, #000 58%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 26%, rgba(0, 0, 0, .5) 40%, #000 58%);
  }
}

/* --- Молекула ДНК: видео без наложений, чистое --- */
/* --- Подписи паттернов на молекуле ---
   Слой поверх картинки. От точки на молекуле медленно прорисовывается линия,
   на её конце проявляется плашка, буквы названия по очереди выплывают из
   лёгкого размытия; затем подпись так же мягко растворяется. Координаты
   и тайминги задаёт js/main.js. */
.dna-callouts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  --soft: cubic-bezier(.45, 0, .15, 1);
}
.dna-callouts__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Точка, линия и карточка появляются и гаснут одним целым — одинаковая
   длительность и плавность у группы линии и у карточки */
.callout { opacity: 0; transition: opacity 1.2s var(--soft); }
.callout.is-on { opacity: 1; }
.callout.is-fading { opacity: 0; transition-duration: 1.8s; }
.callout__line {
  fill: none;
  stroke: rgba(236, 212, 160, .6);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
/* Мягкое свечение вокруг точки — проявляется вместе с ней */
.callout__halo {
  fill: rgba(236, 196, 120, .22);
  filter: blur(4px);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.2);
  opacity: 0;
  transition: transform 1.2s var(--soft), opacity 1.2s var(--soft);
}
.callout__dot {
  fill: #f1dcae;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  transition: transform .9s var(--soft), opacity .9s var(--soft);
}
.callout__ring {
  fill: none;
  stroke: rgba(236, 212, 160, .45);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.callout.is-on .callout__dot { transform: scale(1); opacity: 1; }
.callout.is-on .callout__halo { transform: scale(1); opacity: 1; }
.callout.is-on .callout__ring { animation: callout-ping 3.2s var(--soft) .6s infinite; }
@keyframes callout-ping {
  0% { opacity: .7; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(3.4); }
}
.callout__end {
  fill: #0a0705;
  stroke: rgba(236, 212, 160, .8);
  stroke-width: 1;
  opacity: 0;
  transition: opacity .8s var(--soft);
}
.callout.is-drawn .callout__end { opacity: 1; }

.callout-label {
  position: absolute;
  white-space: nowrap;
  padding: 12px 18px 13px;
  border: 1px solid rgba(236, 212, 160, .26);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(22, 15, 8, .7), rgba(10, 7, 5, .8));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(236, 212, 160, .12);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f1dcae;
  text-shadow: 0 1px 14px rgba(6, 4, 2, .9);
  /* Появление: плашка выплывает из размытия со сдвигом к линии */
  opacity: 0;
  filter: blur(8px);
  transform: translate(var(--from, 10px), -50%);
  transition: opacity 1.2s var(--soft), filter 1.2s var(--soft), transform 1.2s var(--soft);
}
.callout-label.is-in { opacity: 1; filter: blur(0); transform: translate(0, -50%); }
.callout-label.is-fading {
  opacity: 0;
  filter: blur(6px);
  transform: translate(0, calc(-50% - 6px));
  transition-duration: 1.8s;
}
.callout-label__kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(220, 193, 137, .6);
}
/* Буквы названия проявляются по очереди: из прозрачности и размытия */
.callout-label__text .ch {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(4px);
  transition: opacity .7s var(--soft), filter .7s var(--soft), transform .7s var(--soft);
}
.callout-label__text .ch.on { opacity: 1; filter: blur(0); transform: none; }
.hero .hero__copy { width: min(52%, 640px); }
.hero__title { font-size: clamp(38px, 4.5vw, 66px); }
/* Подзаголовок первого экрана — как .lead в секциях: тот же шрифт, размер и начертание */
.hero__lead { font-family: var(--sans); font-weight: 420; font-style: normal; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.62; max-width: 28em; }
.hero__note { font-size: clamp(16px, 1.25vw, 18.5px); }
.hero__actions { margin-top: 10px; }

/* --- Технология --- */
#technology { overflow-x: clip; }
.tech {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.tech__copy { display: flex; flex-direction: column; gap: 26px; }
.tech__text { display: flex; flex-direction: column; gap: 16px; max-width: 44em; }
.tech__media {
  /* Картинка-карточка: тонкая золотая рамка, снизу мягко уходит в фон */
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0a06;
  box-shadow:
    0 0 0 1px rgba(var(--gold-rgb), .28),
    0 40px 90px -40px rgba(0, 0, 0, .9);
}
.tech__media picture { display: block; width: 100%; height: 100%; }
.tech__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transition: transform 1.2s var(--ease); }
.tech__media:hover img { transform: scale(1.03); }
.tech__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, .55), rgba(10, 8, 5, 0) 32%);
  pointer-events: none;
}

.stats {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2vw, 30px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { font-size: 15px; line-height: 1.45; color: var(--ink-4); }

.center-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* --- Что / для кого / с помощью чего / зачем --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
/* Размытый фон секции: картинка под карточками, по краям уходит в фон страницы */
.what { position: relative; overflow: hidden; isolation: isolate; }
.what__bg {
  position: absolute;
  inset: -40px;                 /* запас, чтобы размытые края не просвечивали */
  z-index: -1;
  opacity: .6;
  filter: blur(3px) saturate(110%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.what__bg picture, .what__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* Затемнение поверх фона — текст карточек остаётся читаемым */
.what::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 120% at 50% 50%, rgba(var(--bg-rgb), .35), rgba(var(--bg-rgb), .8));
}
.what .pillar {
  background: linear-gradient(180deg, rgba(var(--bg-rgb), .72), rgba(var(--bg-rgb), .82));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(var(--gold-rgb), .2);
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(.25);
  transform-origin: 0 50%;
  transition: transform .6s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), .45); box-shadow: 0 22px 50px -28px rgba(var(--gold-rgb), .45); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__num { font-family: var(--display); font-size: 15px; letter-spacing: .14em; color: var(--gold); }
.pillar__title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; color: var(--ink); }
.pillar__text { font-size: 15.5px; line-height: 1.65; color: var(--ink-4); }

/* --- AI-тест: слева текст и кнопка, справа этапы друг под другом --- */
.aitest {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.aitest__intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.aitest__cta { display: flex; }
.aitest .h2 { font-size: clamp(30px, 3.9vw, 54px); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: clamp(150px, 15vw, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { border-color: rgba(var(--gold-rgb), .45); box-shadow: 0 22px 50px -30px rgba(var(--gold-rgb), .45); }
.step__media {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0d0a06;
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .22);
}
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.step:hover .step__media img { transform: scale(1.05); }
.step__num {
  position: absolute;
  left: 10px; top: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  color: #ecd4a0;
  padding: 4px 9px;
  border: 1px solid rgba(194, 161, 94, .5);
  border-radius: 999px;
  background: rgba(10, 7, 5, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.step__body { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.step__title { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--ink); }
.step__text { font-size: 15.5px; line-height: 1.6; color: var(--ink-4); }

/* --- С чего начать: маршруты --- */
.routes {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.route {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.route:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), .45); box-shadow: 0 26px 60px -34px rgba(var(--gold-rgb), .5); }
.route__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #0d0a06; }
.route__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.route:hover .route__media img { transform: scale(1.04); }
.route__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, .55), rgba(10, 8, 5, 0) 55%);
  pointer-events: none;
}
.route__tag { position: absolute; left: 18px; top: 16px; z-index: 1; }
.route__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 28px; }
.route__title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; color: var(--ink); }
.route__text { font-size: 15.5px; line-height: 1.62; color: var(--ink-4); }
.route__btn { align-self: flex-start; margin-top: auto; }
.route__text { margin-bottom: 8px; }

/* «Актуально сейчас» — широкая карточка на всю ширину: картинка слева,
   список ближайших форматов справа. Золотая рамка и живая точка. */
.route--now {
  grid-column: 1 / -1;
  flex-direction: row;
  border-color: rgba(var(--gold-rgb), .5);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(var(--gold-rgb), .10), rgba(var(--bg-rgb), 0) 60%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), .2);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--on-gold);
  animation: live-blink 1.4s ease-in-out infinite;
}
.route--now .route__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 300px; }
.route--now .route__body { padding: clamp(26px, 3vw, 40px); }
.now-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.now-list li { display: flex; }
.now-item { flex: 1; }
.now-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--gold-rgb), .2);
  border-radius: 4px;
  background: rgba(var(--gold-rgb), .04);
  transition: border-color .3s, background .3s;
}
.now-item:hover { border-color: rgba(var(--gold-rgb), .55); background: rgba(var(--gold-rgb), .09); }
.now-item__name { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.now-item__meta { font-size: 13px; color: var(--gold-soft); }

/* --- Бегущая строка «скоро старт» перед «Актуально сейчас» --- */
.ticker {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  border-top: 1px solid rgba(var(--gold-rgb), .45);
  border-bottom: 1px solid rgba(var(--gold-rgb), .45);
  background: linear-gradient(90deg, rgba(var(--gold-rgb), .04), rgba(var(--gold-rgb), .12), rgba(var(--gold-rgb), .04));
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.ticker__item::after { content: "✦"; font-size: .7em; color: var(--gold); opacity: .8; }
.ticker__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), .9);
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* --- О компании --- */
.about { position: relative; overflow: hidden; isolation: isolate; }
.about__bg {
  /* Фон на всю секцию при любой ширине экрана и любом масштабе: картинка
     заполняет блок целиком (cover), снизу плавно растворяется в фоне. */
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .32;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, .25) 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, .25) 80%, transparent 100%);
}
.about__bg picture, .about__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.genius-id {
  margin: clamp(34px, 4vw, 50px) auto 0;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  border: 1px solid rgba(var(--gold-rgb), .35);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(var(--gold-rgb), .10), rgba(var(--gold-rgb), .02)),
    rgba(var(--bg-rgb), .6);
}
.genius-id__mark { flex: none; width: 64px; height: 64px; }
.genius-id__mark svg { width: 100%; height: 100%; }
.genius-id p { font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.65; color: var(--ink-4); }
.genius-id b { color: var(--gold-soft); font-weight: 700; }

/* Общая подпись-надзаголовок блоков раздела */
.about__eyebrow {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* О The Genius и Миссия — открытый текст в две колонки, без коробок */
.about__duo {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about-block { display: flex; flex-direction: column; gap: 18px; }
.about-block p:not(.about__eyebrow) { font-size: clamp(16.5px, 1.2vw, 18px); line-height: 1.75; color: var(--ink-4); max-width: 34em; }
.about-block p.about-block__lead:not(.about__eyebrow) { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--ink-2); }
/* Миссия — крупная цитата с золотой чертой слева */
.about-quote {
  margin: 0;
  padding-left: clamp(20px, 2vw, 30px);
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.36;
  color: var(--ink);
  text-wrap: balance;
}
.about-block--mission p:not(.about__eyebrow) { padding-left: clamp(22px, 2vw, 32px); }

/* Основатель — широкий блок: фото слева, имя и три факта справа */
.founder {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: clamp(200px, 22vw, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid rgba(var(--gold-rgb), .22);
  border-radius: 8px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(var(--gold-rgb), .09), rgba(var(--bg-rgb), 0) 55%),
    rgba(var(--bg-rgb), .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.founder__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .35), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.founder__photo picture { display: block; width: 100%; height: 100%; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder__body { display: flex; flex-direction: column; gap: 14px; }
.founder__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  color: var(--ink);
}
.founder__facts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}
.founder__facts p {
  position: relative;
  padding-top: 18px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-4);
}
.founder__facts p::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
}

/* Почему выбирают нас — четыре плитки с номерами */
.why { margin-top: clamp(56px, 7vw, 96px); }
.why__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.why__grid {
  margin-top: clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.why__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(var(--bg-rgb), .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.why__item:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), .45); box-shadow: 0 22px 50px -28px rgba(var(--gold-rgb), .45); }
.why__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.why__item p { font-size: 15.5px; line-height: 1.65; color: var(--ink-4); }

/* --- Отзывы: длинные тексты — чуть компактнее --- */
.review__text p { font-size: clamp(15.5px, 1.18vw, 17px); line-height: 1.68; }
.review__inner--text { grid-template-columns: minmax(0, 860px); }

/* --- FAQ --- */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq__item[open] { border-color: rgba(var(--gold-rgb), .45); background: rgba(var(--gold-rgb), .04); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.35;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--gold-soft); }
.faq__icon {
  flex: none;
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 50%;
  transition: transform .35s var(--ease), background .3s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  margin: -.75px 0 0 -5.5px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform .35s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: rgba(var(--gold-rgb), .12); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.faq__a p, .faq__steps li { font-size: 16px; line-height: 1.7; color: var(--ink-4); }
.faq__a b { color: var(--ink-2); }
.faq__steps { list-style: none; counter-reset: fs; display: flex; flex-direction: column; gap: 12px; }
.faq__steps li { counter-increment: fs; position: relative; padding-left: 44px; }
.faq__steps li::before {
  content: counter(fs, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--gold);
}
.faq__list { gap: 12px; }
.faq__list .check { font-size: 16px; }

/* --- Контакты --- */
.contact__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(var(--gold-rgb), .4);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--gold-soft);
  transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease);
}
.social-pill:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), .09); color: var(--gold-light); transform: translateY(-2px); }
.social-pill svg { width: 19px; height: 19px; display: block; }
.contact__sub {
  margin-top: 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__grid { margin-top: 0; }

/* --- Светлая тема: точечные правки страницы --- */
:root[data-theme="light"] .about__bg { opacity: .16; }
:root[data-theme="light"] .what__bg { opacity: .18; }
:root[data-theme="light"] .what .pillar { background: rgba(251, 249, 244, .88); }
:root[data-theme="light"] .genius-id { background: linear-gradient(90deg, rgba(var(--gold-rgb), .10), rgba(var(--gold-rgb), .03)), #fbf9f4; }
:root[data-theme="light"] .founder { background: rgba(251, 249, 244, .92); }
:root[data-theme="light"] .why__item { background: rgba(251, 249, 244, .9); }
:root[data-theme="light"] .route__media::after { background: linear-gradient(to top, rgba(10, 8, 5, .35), rgba(10, 8, 5, 0) 55%); }

@media (prefers-reduced-motion: reduce) {
}

/* ============================================================
   Responsive — страница
   ============================================================ */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route--now { flex-direction: column; }
  .route--now .route__media { flex: none; aspect-ratio: 16 / 7; min-height: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding: 48px 0 56px; }
  .hero .hero__copy { width: 100%; max-width: 640px; }
  .hero__media { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, #000 70%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, #000 70%); opacity: .55; }
  .dna-callouts { display: none; }
  .tech { grid-template-columns: 1fr; }
  .aitest { grid-template-columns: 1fr; }
  .aitest__intro { position: static; }
  .tech__media { max-width: 420px; order: -1; }
  .about__duo { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder__facts { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 760px) {
  .review__photo { width: 132px; }
  .review__inner, .review__inner--text { grid-template-columns: 1fr; gap: 22px; }
  /* Высота слайдера — по самому длинному отзыву; короткие прижимаем к верху,
     чтобы над текстом не зияла пустота. */
  .review__inner { align-content: start; }
}

@media (max-width: 640px) {
  .pillars, .routes, .now-list { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step__body { padding: 0 4px 6px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat__label { font-size: 13.5px; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 220px; }
  .why__grid { grid-template-columns: 1fr; }
  .genius-id { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .faq__q { padding: 18px 18px; }
  .faq__a { padding: 0 18px 20px; }
  .route__btn { align-self: stretch; text-align: center; }
}

@media (max-width: 560px) {
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================
   Шапка: адаптив. Пунктов меню больше, чем на других страницах
   (пять переходов), поэтому бургер включается раньше — до 1100px.
   ============================================================ */
/* В шапке пять переходов, соцсети, кнопка и тумблер — на средних ширинах
   уплотняем отступы и размеры, чтобы всё стояло в одну строку. */
@media (min-width: 1100px) {
  .header__menu { gap: 18px; }
  .nav { gap: 24px; }
  .header .socials { gap: 6px; }
}
@media (min-width: 1100px) and (max-width: 1180px) {
  .header__inner .nav { gap: 18px; }
  .header__inner .header__menu { gap: 14px; }
}
@media (min-width: 1100px) and (max-width: 1360px) {
  .header__inner { padding: 15px var(--gut); }
  .header__menu { gap: 18px; }
  .nav { gap: 22px; }
  .nav__link { font-size: 15px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 22px; }
  .header__cta-long { display: none; }
  .header__cta-short { display: inline; }
  .header__cta.btn--sm { padding: 9px 16px; }
}

@media (max-width: 1099px) {
  :root { --header-h: 64px; }

  .header__inner { padding: 12px var(--gut); }
  .brand { gap: 11px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 19px; }

  .burger { display: flex; }

  .header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gut) 22px;
    background: rgba(var(--bg-rgb), .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .header__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .header__menu .nav { order: 1; }
  .header__menu .socials { order: 2; }
  .header__menu .theme-toggle { order: 3; }
  .header__menu .header__cta { order: 4; }

  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 15px 2px; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav__link::after { display: none; }

  .socials { justify-content: center; gap: 22px; padding: 18px 0 6px; }
  .social { width: 42px; height: 42px; }
  .social svg { width: 23px; height: 23px; }

  .header__divider { display: none; }

  .theme-toggle { align-self: center; margin: 10px 0 14px; }

  .header__cta { width: 100%; text-align: center; }
  .header__cta.btn--sm { padding: 14px; font-size: 16px; }
  .header__cta-long { display: inline; }
  .header__cta-short { display: none; }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
}
