/* ============================================================
   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;
  --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%); }

#how { border-top: 0; }
#pricing { background: radial-gradient(90% 60% at 50% 0%, rgba(var(--gold-rgb), .07), 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; }

.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;
}
.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;
}
.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: .5;
  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 img {
  /* Абстракция «жидкое золото» (1672×941): золото справа, тьма слева под текст.
     Заполняет секцию целиком, cover. */
  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(--serif);
  font-style: italic;
  font-weight: 500;
  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;
}

/* --- Как это работает --- */
/* Вертикальный путь по шагам: ряды друг под другом, шахматный порядок,
   центральная золотая линия-«стержень» с узлами связывает шаги в процесс. */
.process {
  position: relative;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vh, 128px);
}

/* Стержень: 1px приглушённое золото; top/height (от первого до последнего узла)
   ставит js/main.js. Внутри — заполняемая при скролле часть. */
.process__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(var(--gold-rgb), .16);
  z-index: 0;
  pointer-events: none;
}
.process__line-fill {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .7), rgba(var(--gold-rgb), .35));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* Ряд шага. Изображение шире текста, между ними воздух — в этом промежутке
   проходит центральная линия. Чётные ряды зеркалятся (шахматный порядок). */
.process__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48% 40%;
  justify-content: space-between;
  align-items: center;
  grid-template-areas: "media body";
}
.process__step:nth-of-type(even) {
  grid-template-columns: 40% 48%;
  grid-template-areas: "body media";
}
.process__media { grid-area: media; }
.process__body  { grid-area: body; }

/* Крупное изображение 4:3, целиком (картинки 4:3 — cover не режет). Только
   тонкая золотая линия по контуру, тёмная подложка (аккуратно и в светлой теме). */
.process__media {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(var(--gold-rgb), .14);
  border-radius: 3px;
  overflow: hidden;
  background: #14100a;
}
.process__media picture { display: block; width: 100%; height: 100%; }
.process__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Текст — по вертикальному центру относительно изображения. */
.process__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 clamp(6px, 1.5vw, 26px);
}
.process__num {   /* крупный золотой якорь ряда */
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1;
}
.process__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.2;
  color: var(--ink);
}
.process__text {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.6;
  color: var(--ink-4);
  max-width: 42ch;
}

/* Узел на линии — золотая окружность со свечением (перекликается с узлами
   нейросети на картинке шага 03). Притушён, загорается на .is-lit (только opacity). */
.process__node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid rgba(var(--gold-edge-rgb), .85);
  z-index: 2;
  opacity: .5;
  transition: opacity .5s var(--ease);
}
.process__node::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-rgb), .6), rgba(var(--glow-rgb), 0) 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.process__node.is-lit { opacity: 1; }
.process__node.is-lit::before { opacity: 1; }

/* Появление ряда при скролле: изображение и текст со сдвигом задержки 100ms. */
.js .process__media,
.js .process__body {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.process__step.is-in .process__media { opacity: 1; transform: none; }
.process__step.is-in .process__body { opacity: 1; transform: none; transition-delay: .1s; }

/* --- Leadership Discovery --- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.split > div > * + * { margin-top: 20px; }
.split > div > .h2 + .lead { margin-top: 24px; }

/* Отчёт: крупное изображение без плашки/рамки/бордера, растворяется краями. */
.report { position: relative; }
.report picture { display: block; }
.report img {
  display: block;
  width: 100%;
  height: auto;
  /* Растворение левого и нижнего краёв в фон секции (как в hero); правый и
     верхний края уже уходят в темноту в самой картинке. Обрезки нет. */
  -webkit-mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0), #000 16%),
    linear-gradient(to top, rgba(0, 0, 0, 0), #000 14%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0), #000 16%),
    linear-gradient(to top, rgba(0, 0, 0, 0), #000 14%);
  mask-composite: intersect;
}
/* Лёгкое тёплое свечение под изображением — вписывает его в секцию. */
.report::before {
  content: "";
  position: absolute;
  inset: 4% 5% 2% 3%;
  z-index: -1;
  background: radial-gradient(58% 62% at 46% 48%, rgba(var(--glow-rgb), .10), rgba(var(--bg-rgb), 0) 70%);
  pointer-events: none;
}

/* Раскладка: крупная картинка слева уходит ближе к краю вьюпорта (вне общей
   сетки), текст — справа по правому краю контейнера. */
#leadership .split {
  max-width: none;
  margin: 0;
  padding-left: 5vw;
  padding-right: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
}
/* 900–1200: пропорции ближе к 50/45, левый отступ чуть больше */
@media (min-width: 900px) and (max-width: 1200px) {
  #leadership .split {
    padding-left: 6vw;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
  }
}
/* <900: одна колонка — сначала изображение на всю ширину, под ним текст */
@media (max-width: 899px) {
  #leadership .split {
    grid-template-columns: 1fr;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gut);
    padding-right: var(--gut);
    gap: 30px;
  }
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Особенности психики ---
   Карточки зеркалятся через одну: в левой колонке гифка слева, в правой —
   справа. Получается симметричный разворот вместо четырёх одинаковых строк. */
/* Крупные золотые объекты «в темноте»: без карточек, рамок и круглых вырезов.
   Сетка 2×2, в ячейке картинка слева / текст справа по вертикальному центру.
   Фон блока чёрный, чтобы чёрный фон картинок сливался с ним бесшовно. */
#traits {
  position: relative;
  padding-block: clamp(100px, 14vh, 176px);
  background: #000;
  border-top-color: transparent;
}
.traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5.5vw, 96px) clamp(36px, 4vw, 72px);
  margin-top: clamp(46px, 5vw, 72px);
}
.trait {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
}
/* Обёртка изображения: к НЕЙ привязаны размер и mix-blend, чтобы позже <img>
   можно было заменить на <video> без правки стилей. mix-blend-mode: screen
   на чёрном фоне блока = тождество для чёрного фона картинки → бесшовно. */
.trait__media {
  flex: 0 0 42%;
  position: relative;
  aspect-ratio: 1 / 1;
  mix-blend-mode: screen;   /* чёрный фон картинки сливается с чёрным фоном блока */
}
.trait__media picture { display: block; width: 100%; height: 100%; }
.trait__media img,
.trait__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.trait__body { min-width: 0; }
.trait__title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2vw, 28px); color: var(--gold-light); }
.trait__text { font-size: 17px; line-height: 1.6; color: var(--ink-4); margin-top: 12px; }

/* Появление рядов: 500ms, ступень 100ms между соседними. */
.js .traits.reveal.stagger > * { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .traits.reveal.stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.js .traits.reveal.stagger.is-visible > *:nth-child(2) { transition-delay: .1s; }
.js .traits.reveal.stagger.is-visible > *:nth-child(3) { transition-delay: .2s; }
.js .traits.reveal.stagger.is-visible > *:nth-child(4) { transition-delay: .3s; }

/* --- Тарифы --- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 56px;
  align-items: stretch;
}
.plan {
  position: relative;
  border: 1px solid rgba(var(--gold-rgb), .16);
  background: var(--panel);
  border-radius: 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.plan--featured {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .1), rgba(var(--gold-rgb), .02));
  box-shadow: 0 0 50px rgba(var(--gold-rgb), .1);
}
/* Плашка висит на верхней кромке карточки — освобождаем ей место, иначе
   двухстрочная «Максимальная эффективность» упирается в название тарифа. */
.plan:has(.plan__badge) { padding-top: 48px; }

.plan__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--gold-btn);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}
.plan__badge--ghost {
  color: var(--gold-soft);
  background: var(--bg);
  border: 1px solid rgba(var(--gold-rgb), .5);
  max-width: calc(100% - 32px);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.plan__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  white-space: pre-line;
}
.plan--featured .plan__name { color: var(--gold-light); }
.plan__text {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan__rule { height: 1px; background: rgba(var(--gold-rgb), .16); }
.plan--featured .plan__rule { background: rgba(var(--gold-rgb), .24); }
.plan__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1;
}

/* --- Другие AI-портреты: полноширинные чередующиеся ряды --- */
/* Ряды идут во всю ширину секции (вне .container). Крупное изображение уходит
   к своей кромке вьюпорта, текст — в читаемой зоне и по вертикали по центру
   картинки. Ни карточек, ни рамок, ни плашек: ряд живёт в тёмном пространстве
   секции, а обращённая к тексту кромка изображения растворяется. */
.portraits {
  margin-top: clamp(48px, 6vw, 88px);
  display: flex;
  flex-direction: column;
}

/* Тонкая золотая разделительная линия — по контентной сетке, не во всю ширину. */
.portraits__rule {
  align-self: center;
  width: min(var(--wrap), calc(100% - 2 * var(--gut)));
  height: 1px;
  background: rgba(var(--gold-rgb), .16);
}

/* Текст — в центральной колонке (по центру лендинга, все блоки друг под другом),
   карта — в боковой колонке и уходит к своему краю. Симметричные 1fr по бокам
   держат текст ровно по центру страницы. */
.portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 3.2vw, 64px);   /* ≈46px — прежний отступ карты от текста */
  padding: clamp(52px, 6.5vw, 104px) var(--gut);
}
.portrait__body { grid-column: 2; grid-row: 1; }
/* Карта в боковой колонке, прижата к тексту (justify-self к внутренней кромке);
   column-gap задаёт отступ до текста. grid-row: 1 держит её в одной строке с
   текстом (иначе авто-раскладка роняет текст ниже). */
.portrait--left  .portrait__media { grid-column: 1; grid-row: 1; justify-self: end; }
.portrait--right .portrait__media { grid-column: 3; grid-row: 1; justify-self: start; }

/* Изображение: фон совпадает с фоном секции; крупное, чтобы читалась
   структура страниц отчёта. Мягкое тёплое свечение вокруг. */
.portrait__media {
  position: relative;
  width: 100%;              /* заполняет свою боковую колонку */
  max-width: 460px;         /* но не разрастается на широких экранах */
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 80px -42px rgba(var(--glow-rgb), .22);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease);
}
.portrait__media picture { display: block; width: 100%; height: 100%; }
.portrait__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
/* Растворяется всегда ПРАВЫЙ край карты — в обоих типах рядов, в т.ч. когда
   картинка справа (левую, обращённую к тексту сторону не затемняем). */
.portrait--left  .portrait__media img,
.portrait--right .portrait__media img {
  -webkit-mask-image: linear-gradient(to right, #000 66%, transparent 100%);
          mask-image: linear-gradient(to right, #000 66%, transparent 100%);
}
/* Ховер по изображению: лёгкое увеличение и усиление тёплого свечения. */
.portrait__media:hover { box-shadow: 0 38px 100px -34px rgba(var(--glow-rgb), .42); }
.portrait__media:hover img { transform: scale(1.02); }

/* Текстовая часть: содержимое сверху вниз, название — крупный якорь ряда.
   max-width (без width:100%) задаёт ширину центральной auto-колонки без
   циклической зависимости, ломавшей раскладку. */
.portrait__body {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portrait__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}
.portrait__text { font-size: 17px; line-height: 1.6; color: var(--ink-4); }
.portrait__prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--hair);
  padding-top: 18px;
}
.portrait__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: 16px;
  color: var(--ink-dim);
}
.portrait__price b { font-family: var(--serif); font-size: 20px; color: var(--gold-soft); font-weight: 600; }
.portrait__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.portrait__actions .btn { font-size: 15.5px; padding: 13px 22px; text-align: center; }

/* Появление при скролле: картинка выезжает со своей стороны, текст проявляется
   с задержкой 120мс (анимируются только transform и opacity). */
.js .portrait__media { opacity: 0; }
.js .portrait--left  .portrait__media { transform: translateX(-40px); }
.js .portrait--right .portrait__media { transform: translateX(40px); }
.js .portrait__body { opacity: 0; transition: opacity .6s var(--ease) .12s; }
.js .portrait.is-in .portrait__media { opacity: 1; transform: none; }
.js .portrait.is-in .portrait__body { opacity: 1; }

/* 900–1200: текст чуть уже, чтобы боковой карте оставалось больше места. */
@media (min-width: 900px) and (max-width: 1199px) {
  .portrait__body { max-width: 440px; }
  .portrait__title { font-size: clamp(28px, 3.4vw, 38px); }
}

/* <900: одна колонка, чередование выключено. Картинка на всю ширину контейнера
   сверху, под ней — название, описание, цены и кнопки; кромка тает снизу. */
@media (max-width: 899px) {
  .portrait,
  .portrait--left,
  .portrait--right {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(44px, 9vw, 68px) var(--gut);
    column-gap: 0;
    row-gap: 26px;
  }
  /* Одна колонка: сбрасываем колонку и строку (на десктопе оба в grid-row 1),
     иначе картинка и текст лягут в одну ячейку и перекроются. Карта — во всю
     ширину контейнера (снимаем боковую ширину и отступ). */
  .portrait--left  .portrait__media,
  .portrait--right .portrait__media,
  .portrait--left  .portrait__body,
  .portrait--right .portrait__body { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .portrait__media { width: auto; max-width: none; margin: 0; }
  .portrait__body { width: 100%; max-width: 620px; }
  .portrait--left  .portrait__media img,
  .portrait--right .portrait__media img {
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 16%);
            mask-image: linear-gradient(to top, transparent 0%, #000 16%);
  }
  /* На мобиле картинка выезжает снизу, а не сбоку. */
  .js .portrait--left  .portrait__media,
  .js .portrait--right .portrait__media { transform: translateY(32px); }
}

/* --- Персональная работа --- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.service {
  border: 1px solid rgba(var(--gold-rgb), .16);
  background: var(--panel);
  border-radius: 4px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.28;
  color: var(--ink);
}
.service__list { flex: 1; gap: 14px; }
.service__list .check { font-size: 16.5px; }
.service__price { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.8vw, 44px); line-height: 1; }
.service__note { font-size: 16.5px; line-height: 1.5; color: var(--ink-4); }

/* --- Отзывы (слайдер) --- */
.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__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: clamp(84px, 11vh, 140px) 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: flex-start;
}
.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); }
.contact__cta { margin-top: clamp(20px, 2.5vw, 32px); text-align: center; }

/* --- 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); }

/* --- Страница-заглушка «Раздел в разработке» --- */
.stub {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 72px var(--gut);
}
.stub .h2 { max-width: 16ch; }
.stub .lead { max-width: 46ch; }
.stub__actions { margin-top: 8px; }

/* --- 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; }

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

/* Дышащее свечение рекомендованного тарифа */
.plan--featured { animation: plan-glow 4.5s ease-in-out infinite; }
@keyframes plan-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(var(--gold-rgb), .08); }
  50% { box-shadow: 0 0 60px rgba(var(--gold-rgb), .18); }
}

/* Золотой блик, проходящий по кнопке при наведении */
.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);
}


/* ============================================================
   Responsive
   ============================================================ */

/* «Как это работает» — компактнее на средних экранах (пропорции ближе к 50/45) */
@media (min-width: 900px) and (max-width: 1200px) {
  .process { gap: clamp(56px, 8vh, 96px); }
  .process__step { grid-template-columns: 50% 44%; }
  .process__step:nth-of-type(even) { grid-template-columns: 44% 50%; }
}

/* «Как это работает» — одна колонка, линия у левого края, узел + номер слева,
   изображение на всю ширину, под ним текст. Шахматный порядок отключён. */
@media (max-width: 899px) {
  .process { padding-left: 40px; gap: clamp(44px, 7vh, 64px); }
  .process__line { left: 7px; transform: none; }

  .process__step,
  .process__step:nth-of-type(even) {
    display: flex;
    flex-direction: column;
    gap: 14px;
    grid-template-columns: none;
    grid-template-areas: none;
    align-items: stretch;
  }
  .process__body { display: contents; }
  .process__num   { order: 1; }
  .process__media { order: 2; }
  .process__title { order: 3; }
  .process__text  { order: 4; max-width: none; }

  .process__node { left: -40px; top: 12px; transform: none; }

  /* на мобиле проявляется весь ряд целиком (не раздельно картинка/текст) */
  .js .process__media, .js .process__body { opacity: 1; transform: none; transition: none; }
  .js .process__step { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .process__step.is-in { opacity: 1; transform: none; }
}

/* Планшет (768–1200): текст занимает больше половины, фигура (уже
   отдалённая масштабом) сидит в правом нижнем углу. */
@media (max-width: 1200px) {
  .hero__copy { width: min(52%, 560px); }
}

/* Мобильный (<768): изображение снова full-bleed на всю ширину (масштаб и
   маску сбрасываем), лицо чуть правее центра; поверх — затемняющий overlay,
   текст читается по левому краю. Живой фон aura здесь скрыт под картинкой. */
@media (max-width: 767px) {
  .hero { min-height: 88vh; min-height: 88dvh; }
  .hero__copy { width: 100%; max-width: 560px; }
  .hero__media { transform: none; }
  .hero__media img {
    object-position: 72% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Плотный вертикальный overlay: снизу — сплошной фон под текстом и кнопками,
     сверху — полупрозрачный, чтобы лицо оставалось видимым. */
  .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(var(--bg-rgb), .35) 0%,
        rgba(var(--bg-rgb), .62) 42%,
        rgba(var(--bg-rgb), .92) 72%,
        var(--bg) 100%);
  }
}

/* Высокие/узкие окна (аспект < ~1.55: портретные планшеты, телефоны, узкие
   окна). Подгон по высоте сделал бы картинку шире вьюпорта — она наехала бы
   на текст. Переключаемся на подгон по ширине: обе фигуры целиком в верхней
   части кадра, текстовый блок ниже по центру секции. */
@media (max-aspect-ratio: 14 / 9) {
  /* Узкие/портретные окна: полный холст по ширине (люди справа вверху, вокруг
     прозрачно), текст ниже. Тут фигуры «висят» (низ обрезан в кадре), поэтому
     возвращаем мягкий обрыв торсов; на десктопе он не нужен (низ уходит за
     кромку секции). Подъём текста тут не нужен. */
  .hero__media img {
    width: 100%; height: auto; transform: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0) 88%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0) 88%);
  }
  .hero__inner { transform: none; }
}

/* «Особенности психики» — 900–1200: 2×2, объекты чуть меньше, отступы плотнее. */
@media (min-width: 900px) and (max-width: 1199px) {
  .traits { gap: clamp(38px, 4.5vw, 64px) clamp(28px, 3vw, 48px); }
  .trait { gap: clamp(18px, 2.4vw, 34px); }
  .trait__media { flex-basis: 38%; }
}
/* <900: одна колонка, объект по центру сверху, под ним текст; картинка крупная. */
@media (max-width: 899px) {
  .traits { grid-template-columns: 1fr; gap: clamp(50px, 11vw, 88px); }
  .trait { flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 4vw, 28px); }
  .trait__media { flex: none; width: min(60vw, 360px); }
  .trait__body { text-align: center; }
}

/* Small tablet / large phone */
@media (max-width: 760px) {
  :root { --gut: 20px; }

  .split { grid-template-columns: 1fr; }
  .services, .plans { grid-template-columns: 1fr; }

  /* Фото автора отзыва уходит наверх и уменьшается */
  .review__inner { grid-template-columns: 1fr; gap: 22px; }
  .review__photo { width: 132px; }
}

/* Phone */
@media (max-width: 560px) {
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .plan { padding: 32px 24px; }
  .plan:has(.plan__badge) { padding-top: 46px; }
  .service { padding: 30px 22px; }

  .actions { width: 100%; flex-direction: column; }
  .actions .btn { width: 100%; text-align: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Компактный режим 900–1200: подписи и отступы плотнее, CTA сжимается. */
@media (min-width: 900px) and (max-width: 1200px) {
  .header__inner { padding: 15px var(--gut); }
  .header__menu { gap: 16px; }
  .nav { gap: 20px; }
  .nav__link { font-size: 15px; }
  .socials { gap: 9px; }
  .social { width: 30px; height: 30px; }
  .social svg { width: 20px; height: 20px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 22px; }
  /* CTA в компактный вид: короткая подпись, плотнее паддинги */
  .header__cta-long { display: none; }
  .header__cta-short { display: inline; }
  .header__cta.btn--sm { padding: 9px 16px; }
}

/* Mobile nav (<900): бургер + выпадающая панель со всем содержимым меню. */
@media (max-width: 899px) {
  /* Шапка ниже: эмблема уменьшается, но остаётся видимой. */
  :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; }

  /* Меню — выпадающая панель под шапкой (sticky = containing block, поэтому
     top:100% всегда встречает нижнюю кромку при любой реальной высоте). */
  .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; }

  .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; }
}

/* --- 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; }
  /* Степпер: всё сразу, линия отрисована полностью, узлы горят. */
  .js .process__media, .js .process__body, .js .process__step { opacity: 1; transform: none; }
  .process__node, .process__node::before { opacity: 1; }
  .process__line-fill { transform: scaleY(1); }
  /* Портреты: изображение и текст появляются сразу, без выезда. */
  .js .portrait__media, .js .portrait__body { opacity: 1; transform: none; }
}

/* ============================================================
   Светлая тема — тёмные акценты
   Островки тёмного внутри светлой темы: премиальность, акценты
   и читаемость. Внутри острова подменяем токены темы на тёмные —
   потомки автоматически рисуются как в тёмной теме.
   ============================================================ */
:root[data-theme="light"] .plan--featured,
:root[data-theme="light"] .brandblock,
:root[data-theme="light"] #portraits,
:root[data-theme="light"] #traits,
:root[data-theme="light"] .footer {
  --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);
}

/* Фон островов (класс сам по себе, без наследования токенов, — задаём явно).
   Первый экран — тёмный остров в обеих темах, палитра зашита в базовом
   правиле .hero (цвет фона под изображение), поэтому здесь его не трогаем. */
:root[data-theme="light"] .footer {
  background: #14100a;
  border-top-color: rgba(var(--gold-rgb), .18);
}
:root[data-theme="light"] .brandblock {
  background:
    radial-gradient(90% 90% at 50% 100%, rgba(var(--gold-rgb), .12), rgba(var(--bg-rgb), 0) 60%),
    #16120c;
  border-top-color: rgba(var(--gold-rgb), .18);
}
:root[data-theme="light"] .plan--featured {
  background:
    linear-gradient(180deg, rgba(var(--gold-rgb), .12), rgba(var(--gold-rgb), .03)),
    #17130d;
  border-color: rgba(var(--gold-rgb), .5);
  box-shadow: 0 18px 50px rgba(20, 15, 6, .28);
}
/* Портреты — тёмный остров в светлой теме: фон совпадает с фоном изображений,
   поэтому растворяющиеся кромки картинок остаются бесшовными. */
:root[data-theme="light"] #portraits {
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(var(--gold-rgb), .06), rgba(var(--bg-rgb), 0) 60%),
    #16120c;
  border-top-color: rgba(var(--gold-rgb), .18);
}
/* «Особенности психики» — тёмный остров в светлой теме (объекты со screen
   работают только на тёмном). Сверху и снизу — плавный градиентный стык из
   кремового фона соседних секций в тёмный, чтобы граница читалась намеренной. */
:root[data-theme="light"] #traits {
  background: linear-gradient(
    to bottom,
    #f6f4ee 0,
    #000 clamp(88px, 12vh, 150px),
    #000 calc(100% - clamp(88px, 12vh, 150px)),
    #f6f4ee 100%);
  border-top-color: transparent;
}
/* В светлой теме показываем разворот отчёта чётко: без растворения краёв
   (mask) и без тёмной подложки — она была нужна только под растворение. */
:root[data-theme="light"] .report img {
  -webkit-mask-image: none;
  mask-image: none;
}
:root[data-theme="light"] .report::before { display: none; }

/* --- Шапка: чёрная в обеих темах --- */
: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;

  /* Фон/линию задают базовые .header и .header.is-scrolled через токены выше
     (--bg-rgb/--gold-rgb переопределены на тёмные) — так скролл-состояние
     работает одинаково в обеих темах. */
}

/* ============================================================
   Страница «Курсы» — компоненты поверх общего визуального языка
   ============================================================ */

/* --- Сила Четырёх: четыре крупных курса-карточки с «камнем» уровня --- */
/* Ровная сетка 2×2 на десктопе — четыре уровня психики парами; на узких
   экранах сворачивается в одну колонку. */
.courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .courses { grid-template-columns: 1fr; }
}
.course {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--gold-rgb), .16);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.course:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), .5);
  box-shadow: 0 22px 60px -26px rgba(var(--gold-rgb), .5);
}
/* «Камень» уровня психики. Тайл всегда тёмный (в обеих темах), фон камня —
   чёрный: mix-blend screen растворяет его в тайле бесшовно, объект остаётся
   ярким. Мягкое тёплое свечение по центру придаёт глубину. */
.course__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(60% 60% at 50% 46%, rgba(201, 168, 102, .12), rgba(0, 0, 0, 0) 70%),
    #060402;
  border-bottom: 1px solid rgba(var(--gold-rgb), .14);
  overflow: hidden;
}
.course__media picture { display: block; width: 100%; height: 100%; }
.course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform .5s var(--ease);
}
.course:hover .course__media img { transform: scale(1.04); }
/* Мягкое затемнение снизу картинки — плавный переход к тексту карточки */
.course__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(6, 4, 2, .55));
  pointer-events: none;
}

.course__badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--gold-btn);
  border-radius: 999px;
  padding: 6px 14px;
}
.course__badge--soon {
  color: var(--gold-soft);
  background: rgba(6, 4, 2, .72);
  border: 1px solid rgba(var(--gold-rgb), .5);
}

.course__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 32px;
  flex: 1;
}
.course__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.15;
  color: var(--gold-light);
}
.course__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.course__desc { font-size: 16px; line-height: 1.55; color: var(--ink-4); }
.course__themes-label {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.course__themes { gap: 12px; }
.course__themes .check { font-size: 16px; }
.course__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.course__actions .btn { font-size: 15.5px; padding: 13px 24px; text-align: center; }

/* --- Тег над карточкой-услугой (сертификации, бизнес, планы) --- */
.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; }
.tag--live {
  color: #f0c98a;
  border-color: rgba(214, 96, 77, .55);
  background: rgba(214, 96, 77, .12);
}
.tag--live .tag__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e0654d;
  box-shadow: 0 0 0 0 rgba(224, 101, 77, .6);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 101, 77, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(224, 101, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 101, 77, 0); }
}

/* Секции с числом карточек, не кратным трём (5 сертификаций, 4 плана):
   flex-раскладка с центровкой — «остаточный» ряд встаёт по центру, а не
   липнет к левому краю, и выглядит намеренным. */
.services--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.services--center > .service { flex: 1 1 300px; }
#certification .services--center > .service { max-width: 384px; }

/* Расширение карточки-услуги для курсов: тег, подзаголовок, две кнопки. */
.service__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.service__lead { font-size: 16px; line-height: 1.55; color: var(--ink-4); }
.service__themes-label {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.service__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.service__pdf {
  align-self: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(var(--gold-rgb), .4);
  padding-bottom: 1px;
}
.service__pdf:hover { color: var(--gold-light); }

/* --- Полоса-примечание (сессия после курса, помощь с выбором) --- */
.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 .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;
}


@media (max-width: 560px) {
  .course__actions { flex-direction: column; }
  .course__actions .btn { width: 100%; }
  .note-strip { flex-direction: column; align-items: flex-start; }
  .note-strip .btn { width: 100%; text-align: center; }
}

/* Отзывы — тёмный остров в светлой теме (как .brandblock), чтобы монограммы
   и тёплое свечение карточек читались премиально. */
:root[data-theme="light"] #reviews {
  --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;

  --gold: #c2a15e;
  --gold-soft: #dcc189;
  --gold-light: #ecd4a0;
  --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);
  --hair: rgba(var(--ink-rgb), .08);

  background:
    radial-gradient(90% 60% at 50% 0%, rgba(var(--gold-rgb), .06), rgba(var(--bg-rgb), 0) 60%),
    #16120c;
  border-top-color: rgba(var(--gold-rgb), .18);
  color: var(--ink);
}


/* ============================================================
   Программы сертификации — витрина-коллаж (Вариант 4)
   Заголовок слева, декор-сертификаты справа-внизу, ниже — карусель программ.
   Секция тёмная в обеих темах (светлый декор читается на тёмном).
   ============================================================ */
#certification { position: relative; overflow: hidden; }
/* Компактнее по вертикали, чтобы секция помещалась в один экран. */
#certification.section { padding-block: clamp(40px, 5.5vh, 72px); }

.cert-hero {
  position: relative;
  min-height: clamp(260px, 24vw, 380px);
  padding-block: clamp(2px, 0.6vw, 8px) clamp(8px, 1.2vw, 18px);
}
.cert-hero__text {
  position: relative;
  z-index: 2;
  max-width: clamp(440px, 47vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  text-align: left;
}
/* Компактные лиды в шапке секции — экономим высоту, но сохраняем читабельность. */
.cert-hero__text .lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.cert-hero__text .lead--sm { font-size: clamp(15px, 1.2vw, 16.5px); }
.cert-badge { margin-top: 2px; }
.cert-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gold-light);
  border: 1px solid rgba(var(--gold-rgb), .5);
  background: rgba(var(--gold-rgb), .08);
  border-radius: 999px;
  padding: 10px 20px;
  margin-top: 6px;
}
/* Декор из 2 сертификатов — справа, прижат к правому краю контента, по центру по вертикали.
   right привязан к краю контейнера (не к вьюпорту), чтобы картинка всегда была видна. */
.cert-hero__decor {
  position: absolute;
  z-index: 1;
  right: max(-46px, calc((100vw - var(--wrap)) / 2 - 50px));
  /* Прижимаем к низу героя с зазором, чтобы сертификаты стояли в правом-верхнем
     углу и НЕ наезжали на карточки программ снизу (растут вверх, в свободное
     место рядом с заголовком). */
  bottom: 10px;
  width: min(40%, 540px);
  pointer-events: none;
  /* Тень мягкая, но с небольшим выносом — чтобы не падала на карточки ниже. */
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .45));
}
.cert-hero__decor img { display: block; width: 100%; height: auto; }

/* --- Карточки программ (перевёртыши) ---
   Все 5 видны сразу; лицо — описание курса + «Подробнее»,
   оборот — «Ключевые темы» с подпунктами + «Выбрать». Весь текст из документа сохранён. */
.cert-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: clamp(8px, 1.4vw, 20px);
}
/* Компактный отступ CTA-полосы под карточками */
#certification .note-strip { margin-top: clamp(16px, 2vw, 24px); }
.cert-card {
  height: clamp(430px, 34vw, 444px);
  perspective: 1500px;
}
.cert-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
.cert-card.is-flipped .cert-card__inner { transform: rotateY(180deg); }
.cert-card__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid rgba(var(--gold-rgb), .18);
  background: var(--panel);
  border-radius: 8px;
  padding: 20px 20px 18px;
  overflow: hidden;
}
/* Оборот карточки — светлый (кремовый), лицо остаётся тёмным. */
.cert-card__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #f7f3ea, #efe8d9);
  border-color: rgba(60, 48, 24, .16);
  color: #211d16;
  box-shadow: 0 20px 46px -30px rgba(0, 0, 0, .7);
}
.cert-card__face--back .cert-card__topics-title { color: #8a6a2d; }
.cert-card__face--back .cert-card__topics li { color: #4a4234; }
.cert-card__face--back .cert-card__topics li::before { background: #9c7c3a; }
.cert-card__face--back .cert-card__back { color: #6b6350; }
.cert-card__face--back .cert-card__back:hover { color: #8a6a2d; }
/* В светлой теме, наоборот, лицо светлое, а оборот при перевороте становится
   тёмным (чёрным) — премиальный контраст. */
:root[data-theme="light"] .cert-card__face--back {
  background: linear-gradient(180deg, #17130c, #0d0a06);
  border-color: rgba(194, 161, 94, .22);
  color: #ece6da;
  box-shadow: 0 20px 46px -30px rgba(0, 0, 0, .85);
}
:root[data-theme="light"] .cert-card__face--back .cert-card__topics-title { color: #dcc189; }
:root[data-theme="light"] .cert-card__face--back .cert-card__topics li { color: #d0c6b1; }
:root[data-theme="light"] .cert-card__face--back .cert-card__topics li::before { background: #c2a15e; }
:root[data-theme="light"] .cert-card__face--back .cert-card__back { color: #b8ac92; }
:root[data-theme="light"] .cert-card__face--back .cert-card__back:hover { color: #dcc189; }
.cert-card:hover .cert-card__face--front { border-color: rgba(var(--gold-rgb), .4); }
/* Лицо: контент выравниваем по верху (номера/заголовки в ряд — на одной линии),
   сверху резервируем место под бейдж, чтобы у всех карточек номер начинался одинаково. */
.cert-card__face--front { padding-top: 42px; }
/* Бейдж «Рекомендуем» — одной строкой в левом-верхнем углу, не сдвигает номер. */
.cert-card__tag {
  position: absolute;
  top: 15px;
  left: 20px;
  margin: 0;
  font-size: 9px;
  letter-spacing: .04em;
  padding: 5px 12px;
  white-space: nowrap;
}
.cert-card__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}
.cert-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.18;
  color: var(--ink);
}
.cert-card__desc {
  font-size: 14px;
  line-height: 1.48;
  color: var(--ink-4);
}
.cert-card__more {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.cert-card__more:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.cert-card__topics-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gold-light);
}
.cert-card__topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-card__topics li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.36;
  color: var(--ink-2);
}
.cert-card__topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.cert-card__actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cert-card__back {
  align-self: center;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-dim);
  background: transparent;
  border: 0;
  padding: 2px 6px;
  cursor: pointer;
  transition: color .3s;
}
.cert-card__back:hover { color: var(--gold); }

/* Тёмный остров в светлой теме — чтобы светлый декор и карточки читались премиально. */
/* В светлой теме раздел «Программы сертификации» переворачивается в светлый,
   как разделы выше: отдельного тёмного острова тут
   больше нет — используем базовые светлые токены :root[data-theme="light"].
   Оборот карточек остаётся кремовым (задаётся в .cert-card__face--back). */

/* Крупный десктоп/ноутбук: 3 карточки в ряд */
@media (max-width: 1180px) {
  .cert-hero__decor { width: min(47%, 480px); }
  .cert-hero__text { max-width: 50%; }
  .cert-cards { grid-template-columns: repeat(3, 1fr); }
  .cert-card { height: clamp(300px, 30vw, 348px); }
}

/* Планшет: 2 карточки в ряд */
@media (max-width: 820px) {
  .cert-cards { grid-template-columns: repeat(2, 1fr); }
  .cert-card { height: clamp(296px, 40vw, 340px); }
}

/* Мобильный: заголовок сверху, декор блоком под текстом, карточки в одну колонку.
   cert-hero делаем flex-колонкой и через order ставим текст выше декора
   (в разметке декор идёт первым для абсолютного позиционирования на десктопе). */
@media (max-width: 760px) {
  .cert-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-block: 0 clamp(8px, 4vw, 22px);
  }
  .cert-hero .container { order: 1; }
  .cert-hero__text { max-width: 560px; }
  .cert-hero__decor {
    order: 2;
    position: relative; right: auto; bottom: auto; top: auto;
    transform: none;
    /* Не на всю ширину, а по центру и вровень с текстом/карточками (отступ 20px по краям). */
    width: calc(100% - 40px); max-width: 440px; margin: clamp(24px, 7vw, 36px) auto 0;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
  }
}

/* Узкий мобильный: одна колонка */
@media (max-width: 600px) {
  .cert-cards { grid-template-columns: 1fr; gap: 12px; }
  .cert-card { height: clamp(338px, 92vw, 372px); }
}


/* ============================================================
   Курсы для бизнеса — 3 вертикальные карточки в ряд:
   картинка сверху, текст и кнопки снизу (как в мобильной версии).
   ============================================================ */
.biz-blocks {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
  align-items: stretch;
}
/* Карточка-панель: тонкая золотая рамка + фон панели, скругление */
.biz-block {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--gold-rgb), .18);
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 34px 80px -50px rgba(0, 0, 0, .75);
  transition: border-color .4s var(--ease);
}
.biz-block:hover { border-color: rgba(var(--gold-rgb), .34); }

.biz-block__media {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0705;
}
/* Тонкая золотая грань снизу картинки — переход к тексту */
.biz-block__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(var(--gold-rgb), .18);
}
.biz-block__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.biz-block__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(13px, 1vw, 18px);
  padding: clamp(22px, 1.7vw, 30px);
}
.biz-block__text .service__list { flex: 0 0 auto; }
/* Низ карточки (ссылка-сессия + кнопки) прижат книзу; кнопки выровнены между колонками */
.biz-block__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.biz-block__text .service__actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.biz-block__text .service__actions .btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; text-align: center; }
.biz-block__text .service__pdf { margin: 0; text-align: center; }
/* Ссылка-триггер поп-апа про сессию — над кнопками, деликатная */
.biz-session {
  align-self: center;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gold);
  background: transparent;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
  border-bottom: 1px dashed rgba(var(--gold-rgb), .5);
  transition: color .3s, border-color .3s;
}
.biz-session:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

/* --- Модальные окна (поп-апы) --- */
.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__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; } }

/* Планшет/мобильный: одна колонка (карточки друг под другом) */
@media (max-width: 980px) {
  .biz-blocks {
    grid-template-columns: 1fr;
    gap: clamp(18px, 5vw, 28px);
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================================
   S&P Certification — секции этого лендинга
   Дописано поверх общего визуального языка The Genius.
   ============================================================ */

/* --- Карточки-тезисы (уровни State/Performance, «что это даёт коучу») --- */
.sp-cards {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
}
/* Внутри узкой колонки .split карточки идут друг под другом */
.sp-cards--2 { grid-template-columns: minmax(0, 1fr); }
.sp-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(26px, 2.8vw, 40px);
}
.sp-card {
  border: 1px solid rgba(var(--gold-rgb), .18);
  background: var(--panel);
  border-radius: 14px;
  padding: clamp(20px, 1.7vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.sp-card:hover { border-color: rgba(var(--gold-rgb), .34); transform: translateY(-3px); }
.sp-card__label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.sp-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.2;
  color: var(--ink);
}
.sp-card__text { font-size: 16px; line-height: 1.6; color: var(--ink-4); }

/* Подзаголовок внутри раздела «Что такое S&P» */
.sp-subhead { margin-top: clamp(56px, 6vw, 92px); }

@media (max-width: 900px) {
  .sp-cards--3 { grid-template-columns: 1fr; }
}

/* --- Шаг «Онлайн-лекции»: вместо фотографии — список восьми модулей --- */
.process__media--list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.4vw, 20px);
  padding: clamp(22px, 2.4vw, 38px);
  background: var(--panel);
  border-color: rgba(var(--gold-rgb), .24);
}
.lecture-list__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.2;
  color: var(--ink);
}
.lecture-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px clamp(18px, 2vw, 32px);
  counter-reset: lec;
}
.lecture-list li {
  counter-increment: lec;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(15px, 1.05vw, 17px);
  color: var(--ink-3);
}
.lecture-list li::before {
  content: counter(lec, decimal-leading-zero);
  font-family: var(--serif);
  font-size: .88em;
  color: var(--gold);
}
.lecture-list__note {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Шаг «Завершение»: сертификат лежит в темноте без рамки и подложки --- */
.process__media--cert {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.process__media--cert img {
  object-fit: contain;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .5));
}

/* Список внутри шага процесса (практическая часть) */
.process__list { max-width: 44ch; }
.process__list .check { font-size: clamp(15px, 1.05vw, 17px); }

/* --- Автор сертификации --- */
.split--author {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
}
.author-photo {
  position: relative;
  margin: 0;
  max-width: 460px;
  border: 1px solid rgba(var(--gold-rgb), .18);
  border-radius: 4px;
  overflow: hidden;
  background: #0a0705;
  box-shadow: 0 34px 80px -48px rgba(var(--glow-rgb), .5);
}
.author-photo img { width: 100%; height: auto; }
/* Нижняя кромка уходит в фон секции — портрет не выглядит наклейкой */
.author-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, rgba(var(--bg-rgb), .4));
  pointer-events: none;
}
@media (max-width: 899px) {
  .split--author { grid-template-columns: minmax(0, 1fr); }
  .author-photo { max-width: 380px; }
}

/* --- Восемь модулей программы --- */
.mods {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
.mod {
  border: 1px solid rgba(var(--gold-rgb), .16);
  background: var(--panel);
  border-radius: 14px;
  padding: clamp(20px, 1.7vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.mod:hover { border-color: rgba(var(--gold-rgb), .34); transform: translateY(-3px); }
.mod__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--gold);
}
.mod__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.15;
  color: var(--ink);
}
.mod__text { font-size: 16px; line-height: 1.6; color: var(--ink-4); }

/* Каскад появления — базовый .stagger расписан до шестого элемента */
.js .reveal.stagger.is-visible > *:nth-child(7) { transition-delay: .52s; }
.js .reveal.stagger.is-visible > *:nth-child(8) { transition-delay: .60s; }

@media (max-width: 1180px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .mods { grid-template-columns: minmax(0, 1fr); } }

/* --- Светлая тема: тёмные фотографии не растворяются в кремовом фоне ---
   Растворение края рассчитано на светлые страницы отчёта (лендинг AI-теста).
   Здесь снимки тёмные, поэтому в светлой теме вместо маски даём им аккуратную
   рамку — край перестаёт выглядеть грязным пятном. */
:root[data-theme="light"] .portrait__media,
:root[data-theme="light"] #benefits .report img {
  border: 1px solid rgba(var(--gold-rgb), .22);
  border-radius: 6px;
}
:root[data-theme="light"] .portrait--left .portrait__media img,
:root[data-theme="light"] .portrait--right .portrait__media img,
:root[data-theme="light"] #benefits .report img {
  -webkit-mask-image: none;
  mask-image: none;
}

/* На мобильном .process__body раскрывается (display: contents) и порядок задают
   order у его детей — списку тоже нужен свой номер, иначе он всплывает наверх. */
@media (max-width: 899px) {
  .process__list { order: 4; max-width: none; }
}

/* .split на этой странице идёт сразу за заголовком секции, а собственного
   отступа сверху у него нет (на лендинге AI-теста он используется без
   заголовка). Без него растущая черта под заголовком упиралась в картинку. */
.section__head + .split { margin-top: clamp(40px, 5vw, 64px); }

/* Логотип-надпись в шапке и подвале — одно целое: на узких экранах
   «THE GENIUS» не должно разрываться на две строки. */
.brand__name { white-space: nowrap; }
