/* БМТ Трейдинг. Одна страница, без сборщиков.
   Порядок: шрифт → цвета → основа → кнопки и панели → шапка → первый экран → общее движение → блоки. */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Заголовки с засечками, как у референса */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Запасной шрифт с метриками Inter: текст не прыгает, пока грузится основной */
@font-face {
  font-family: "Inter fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ---------- Цвета: светлые в :root, тёмные ниже дважды ---------- */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #FBF9F4; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --raised { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #1C1A16; }
@property --text-2 { syntax: "<color>"; inherits: true; initial-value: #5E5A52; }
@property --text-3 { syntax: "<color>"; inherits: true; initial-value: #6F6A61; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #E9E4D8; }
@property --outline { syntax: "<color>"; inherits: true; initial-value: #D5CEBD; }
@property --btn-bg { syntax: "<color>"; inherits: true; initial-value: #C9A84C; }
@property --btn-text { syntax: "<color>"; inherits: true; initial-value: #1A1208; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #8A6A14; }
@property --chat-bg { syntax: "<color>"; inherits: true; initial-value: #DFE7EC; }
@property --chat-k { syntax: "<color>"; inherits: true; initial-value: #FFFFFF; }
@property --chat-u { syntax: "<color>"; inherits: true; initial-value: #EFFDDE; }

:root {
  color-scheme: light dark;

  --bg: #FBF9F4;
  --panel: #FFFFFF;
  --raised: #FFFFFF;
  --raised-shadow: 0 1px 2px rgba(60, 45, 10, .06), 0 12px 32px rgba(60, 45, 10, .08);
  --text: #1C1A16;
  --text-2: #5E5A52;
  --text-3: #6F6A61;
  --line: #E9E4D8;
  --outline: #D5CEBD;
  --btn-bg: #C9A84C;
  --btn-text: #1A1208;
  --accent: #8A6A14;
  --head: #0E0D0B;
  --gold: #A88A3A;
  --fx: 150, 116, 28;
  --fx-hi: 40, 34, 20;
  --gold-line: rgba(138, 106, 20, .45);
  --chat-bg: #DFE7EC;
  --chat-k: #FFFFFF;
  --chat-u: #EFFDDE;
  --chat-u-meta: #3D7A33;            /* время в сообщении ученика: контраст 4.5:1 на --chat-u */
  --chat-head: #FFFFFF;
  --chat-meta: #65717B;
  --chat-blue: #1F6FB5;
  --chat-chip: rgba(0, 0, 0, .07);
  --header-bg: rgba(251, 249, 244, .9);
  --glow: rgba(138, 106, 20, .55);      /* подсветка рамки панели у курсора */
  --glare: rgba(255, 255, 255, .4);  /* блик на главной кнопке: светлее самой кнопки */
  --bar: #9A9488;                     /* полосы виджета суток: 3:1 к дорожке */
  --hover: rgba(60, 45, 10, .05);
  --scrim: rgba(20, 16, 6, .5);      /* затемнение под окном <dialog> */

  /* На обложке видео цвета одни в обеих темах: кадр всегда тёмный */
  --on-video: #FFFFFF;
  --glass-bg: rgba(0, 0, 0, .55);
  --glass-line: rgba(255, 255, 255, .28);

  --pad: clamp(20px, 5vw, 72px);
  --wrap: 1088px;
  --wrap-wide: 1296px;
  --r: 16px;
  --gap-block: 56px;
  --header-h: 56px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --display: "Playfair Display", "Times New Roman", Georgia, serif;

  transition: --bg .2s, --panel .2s, --raised .2s, --text .2s, --text-2 .2s, --text-3 .2s, --line .2s,
    --outline .2s, --btn-bg .2s, --btn-text .2s, --accent .2s, --chat-bg .2s, --chat-k .2s, --chat-u .2s;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%,
      1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%,
      .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A;
    --panel: #121212;
    --raised: #1A1A1A;
    --raised-shadow: none;
    --text: #E8E4DF;
    --text-2: #9A9690;
    --text-3: #85827D;
    --line: #1F1F1F;
    --outline: #2E2E2E;
    --btn-bg: #C9A84C;
    --btn-text: #1A1208;
    --accent: #DFC06E;
    --head: #FAFAFA;
    --gold: #C9A84C;
    --fx: 201, 168, 76;
    --fx-hi: 232, 228, 223;
    --gold-line: rgba(223, 192, 110, .5);
    --chat-bg: #0E1621;
    --chat-k: #182533;
    --chat-u: #2B5278;
    --chat-u-meta: #A8CBEA;
    --chat-head: #17212B;
    --chat-meta: #7F91A4;
    --chat-blue: #6AB2F2;
    --chat-chip: rgba(255, 255, 255, .12);
    --header-bg: rgba(10, 10, 10, .86);
    --glow: rgba(223, 192, 110, .6);
    --glare: rgba(255, 255, 255, .4);
    --bar: #6A665F;
    --hover: rgba(255, 255, 255, .05);
    --scrim: rgba(0, 0, 0, .72);
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --panel: #121212;
  --raised: #1A1A1A;
  --raised-shadow: none;
  --text: #E8E4DF;
  --text-2: #9A9690;
  --text-3: #85827D;
  --line: #1F1F1F;
  --outline: #2E2E2E;
  --btn-bg: #C9A84C;
  --btn-text: #1A1208;
  --accent: #DFC06E;
  --head: #FAFAFA;
  --gold: #C9A84C;
  --fx: 201, 168, 76;
  --fx-hi: 232, 228, 223;
  --gold-line: rgba(223, 192, 110, .5);
  --chat-bg: #0E1621;
  --chat-k: #182533;
  --chat-u: #2B5278;
  --chat-u-meta: #A8CBEA;
  --chat-head: #17212B;
  --chat-meta: #7F91A4;
  --chat-blue: #6AB2F2;
  --chat-chip: rgba(255, 255, 255, .12);
  --header-bg: rgba(10, 10, 10, .86);
  --glow: rgba(223, 192, 110, .6);
  --glare: rgba(255, 255, 255, .4);
  --bar: #6A665F;
  --hover: rgba(255, 255, 255, .05);
  --scrim: rgba(0, 0, 0, .72);
}

@media (min-width: 900px) {
  :root {
    --r: 20px;
    --gap-block: 112px;
    --header-h: 78px;
  }
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 900px) { body { line-height: 26px; } }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.015em; color: var(--head); text-wrap: balance; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li, dd, blockquote { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--text); color: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--pad); top: 8px; z-index: 100; padding: 12px 16px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none; transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 899.98px) { .only-d { display: none !important; } }
@media (min-width: 900px) { .only-m { display: none !important; } }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--pad), var(--wrap-wide)); }

.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--text-2); }
.caption { font-size: 14px; line-height: 20px; color: var(--text-3); }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }

.link {
  display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: var(--text-3); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: text-decoration-color .2s;
}
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }

/* Текст блока */
.prose { max-width: 60ch; }
.prose > * + * { margin-top: 16px; }
.prose--mute, .prose--soft { color: var(--text-2); }
.prose--soft > p:first-child, .prose b { color: var(--text); }
.prose b { font-weight: 600; }

/* ---------- Блоки ---------- */
.block { padding-block: calc(var(--gap-block) / 2); }
.block__head { display: grid; gap: 12px; margin-bottom: 32px; }
.block__title { font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.block__lead { max-width: 30em; font-size: 18px; line-height: 27px; text-wrap: balance; }
@media (min-width: 900px) {
  .block__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; margin-bottom: 56px; }
  .block__title { font-size: 50px; }
  .block__head { align-items: end; }
  /* Две колонки той же сетки, что у шапки блока */
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 20px; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--spring), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); transition-duration: .12s, .2s, .2s, .2s; transition-timing-function: ease-out; }
.btn:focus-visible { border-radius: 12px; }
.btn--primary { width: 100%; border-color: rgba(255, 233, 168, .5); color: var(--btn-text); font-weight: 600;
  background: linear-gradient(135deg, #A88A3A 0%, #C9A84C 24%, #F0CB6C 52%, #D4B257 74%, #B8943F 100%); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, 50%), var(--glare), transparent 72%);
  transition: opacity .3s;
}
.btn--outline { border-color: var(--outline); background: var(--hover); font-weight: 600; }
.btn--sm { min-height: 48px; padding-inline: 20px; font-size: 15px; }
.btn--auto { width: auto; }
@media (min-width: 900px) {
  .btn { min-height: 52px; }
  .btn--primary { width: auto; }
  .header__cta { min-height: 44px; padding-inline: 18px; font-size: 14px; }
  .header__cta, .header__cta.btn--outline { border-color: var(--gold-line); color: var(--accent); }
}
@media (hover: hover) {
  .btn--primary:hover::after { opacity: 1; }
  .btn--outline:hover { border-color: var(--text-3); background: var(--hover); }
}
.btn .ic--arrow { width: 16px; height: 16px; transition: transform .3s var(--ease); }
@media (hover: hover) { .btn:hover .ic--arrow { transform: translateX(3px); } }
/* Ссылка, адрес которой команда ещё не прислала: кнопка на месте, по нажатию честная подсказка */
[data-unset] { cursor: help; }

/* Повтор главной кнопки в конце длинного блока (только компьютер) */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.cta-inline p { font-size: 14px; line-height: 20px; color: var(--text-2); white-space: nowrap; }

/* ---------- Панели ---------- */
.panel {
  position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
}
.panel--raised { border-color: transparent; background: var(--raised); box-shadow: var(--raised-shadow); }
@media (min-width: 900px) { .panel { padding: 32px; } }
/* Рамка подсвечивается рядом с курсором; координаты ставит один обработчик в script.js */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .panel::before {
    content: ""; position: absolute; inset: -1px; z-index: 1; padding: 1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), var(--glow), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    opacity: var(--lit, 0); transition: opacity .35s;
  }
}

/* Подписанная заглушка под фото, скриншот, видео */
.ph {
  display: grid; place-items: center; padding: 16px; border: 1px dashed var(--outline); border-radius: var(--r);
  background: var(--panel); color: var(--text-3); font-size: 14px; line-height: 20px; text-align: center;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), background-color .25s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-101%); }
@media (min-width: 900px) { .header.is-hidden { transform: none; } }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.header__brand {
  display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--head); gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.header__logo { width: 34px; height: 34px; flex: none; }
@media (max-width: 899.98px) {
  .header__in { gap: 10px; }
  .header__brand { gap: 8px; font-size: 17px; }
  .header__logo { width: 30px; height: 30px; }
  .header__tools { gap: 6px; }
  .header__cta.btn--sm { padding-inline: 14px; }
}
.header__nav { display: none; }
.header__cta { flex: none; }
@media (max-width: 899.98px) {
  /* На первом экране кнопки в шапке нет: она появляется, когда главная кнопка ушла с экрана */
  .header__cta { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .25s; }
  .header.is-past .header__cta { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (min-width: 900px) {
  .header__brand { font-size: 18px; }
  .header__nav { display: flex; gap: 8px; margin-inline: auto; }
  .header__nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
    font-size: 14px; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s;
  }
  .header__nav a[aria-current="true"] { color: var(--accent); }
}
@media (min-width: 900px) and (max-width: 1099.98px) { .header__nav { gap: 0; } .header__nav a { padding: 0 8px; } }
@media (hover: hover) { .header__nav a:hover { color: var(--text); background: var(--hover); } }

/* Переключатель темы: светлая или тёмная. Без JS его нет, тема тогда идёт по устройству */
.theme { display: none; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--outline); border-radius: 50%;
  background: none; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s, background-color .2s, transform .5s var(--spring); }
.js .theme { display: grid; }
.theme:active { transform: scale(.94); transition-duration: .2s, .2s, .12s; }
.theme:focus-visible { border-radius: 50%; }
.theme .ic { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .25s, transform .5s var(--ease); }
/* В тёмной теме показано солнце (включит светлую), в светлой — луна */
.theme__moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="light"] .theme__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="light"] .theme__moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
  :root:not([data-theme="dark"]) .theme__moon { opacity: 1; transform: none; }
}
@media (hover: hover) { .theme:hover { border-color: var(--text-3); background: var(--hover); } }
.header__tools { display: flex; align-items: center; gap: 8px; }
@media (max-width: 899.98px) { .header__tools { flex-direction: row-reverse; } }

/* Полоса прогресса чтения под шапкой */
.header__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(var(--read, 0)); transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .header__progress { animation: read-progress linear both; animation-timeline: scroll(root block); }
    @keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Первый экран ----------
   Слева заголовок и кнопки, справа Кирилл. За ним на холсте живой график: свечи, линии разметки, сетка.
   Холст рисует script.js; без скрипта и при reduced-motion остаётся спокойный тёмный фон. */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* 3D-сцена на телефоне занимает только верх экрана, где стоит фото */
@media (max-width: 899.98px) {
  .hero .hero__canvas { top: auto; bottom: 0; height: min(100%, 470px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); mask-image: linear-gradient(to bottom, transparent, #000 34%); }
}
/* мягкое затемнение по краям, чтобы график не спорил с текстом и плавно уходил в следующий блок */
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: -1; height: 12%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero__in { display: flex; flex-direction: column; padding-block: 20px 24px; }
.hero__photo { order: 1; position: relative; align-self: center; width: min(74%, 300px); height: clamp(230px, 36svh, 330px); margin-top: 28px; }
/* мягкий золотой ореол за Кириллом отделяет его от графика */
.hero__photo::before { content: ""; position: absolute; inset: -6% -34% 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 168, 76, .2), rgba(201, 168, 76, .07) 55%, transparent 78%); }
.hero__figure { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 1100 / 1350; transform: translateX(-50%); }
.hero__figure img { display: block; width: 100%; height: 100%; max-width: none; }
/* свет от графика на фигуре: золотой блик слева и справа, по форме самого фото; яркость ведёт скрипт сцены */
.hero__lit { position: absolute; inset: 0; opacity: .4; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask: url("img/kirill.webp") center / 100% 100% no-repeat; mask: url("img/kirill.webp") center / 100% 100% no-repeat;
  background: radial-gradient(58% 60% at 0% 26%, rgba(255, 206, 120, .62), transparent 72%), radial-gradient(42% 44% at 100% 14%, rgba(255, 206, 120, .34), transparent 72%); }
:root[data-theme="light"] .hero__lit { mix-blend-mode: soft-light; }
/* низ фигуры растворяется вместе со свечением: маска стоит на внешней обёртке, фильтр на внутренней */
.hero__fade { position: absolute; inset: 0 -30% -18%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 86%); mask-image: linear-gradient(to bottom, #000 62%, transparent 86%); }
/* золотая кромка и свечение вокруг фигуры: фильтр стоит на обёртке, а маска на самом фото */
.hero__shape { position: absolute; inset: 0; filter: drop-shadow(0 0 1px rgba(223, 192, 110, .9)) drop-shadow(0 0 20px rgba(201, 168, 76, .3)) drop-shadow(0 14px 36px rgba(0, 0, 0, .6)); }
:root[data-theme="light"] .hero__shape { filter: drop-shadow(0 0 1px rgba(138, 106, 20, .6)) drop-shadow(0 0 22px rgba(201, 168, 76, .32)) drop-shadow(0 14px 30px rgba(60, 45, 10, .16)); }
.hero__title { font-size: clamp(33px, 9.4vw, 40px); line-height: 1.08; letter-spacing: -.025em; }
.gold, .hero__title .gold .w__in {
  color: var(--accent);
  background: linear-gradient(135deg, #A88A3A 0%, #C9A84C 22%, #F0CB6C 46%, #DFC06E 70%, #B8943F 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .gold, :root[data-theme="light"] .hero__title .gold .w__in { background-image: linear-gradient(135deg, #7A5C10 0%, #9A7818 40%, #B8943F 70%, #8A6A14 100%); }
.hero__sub { margin-top: 14px; max-width: 36em; font-size: 16px; line-height: 24px; color: var(--text); }
.hero__why { padding-block: 15px; color: var(--accent); font-style: italic; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--gold-line); }
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 20px; }
.facts { display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 0; margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.facts li { display: flex; align-items: center; }
.facts li:nth-child(even)::before { content: ""; width: 1px; height: 14px; margin-inline: 14px; background: var(--outline); }
.facts a { display: inline-block; padding-block: 12px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.facts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .facts a:hover { color: var(--text); } .hero__why:hover { text-decoration-color: currentColor; } }
@media (max-width: 899.98px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .facts li { display: block; }
  .facts li:nth-child(even)::before { display: none; }
  .facts a { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--hover); font-size: 13px; line-height: 18px; }
  .facts b { display: block; font-size: 15px; line-height: 20px; }
}
/* ---------- Объёмная книга ----------
   Обложка из PDF, корешок, обрез страниц и задняя крышка собраны из граней в 3D.
   Размер задаёт --w (ширина обложки), толщина и высота считаются от неё. */
.book { --w: 150px; --h: calc(var(--w) * 1.469); --d: calc(var(--w) * .15); position: relative; display: block; width: var(--w); height: var(--h); perspective: calc(var(--w) * 7); }
.book__in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateZ(var(--rz, 0deg)) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -32deg)); transition: transform .9s var(--ease); }
.book__front, .book__back { position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; }
.book__front { overflow: hidden; background: #111419; transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.book__front img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* сгиб у корешка и мягкий блик по обложке */
.book__front::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0, rgba(255, 255, 255, .13) 2.4%, rgba(0, 0, 0, .2) 4.6%, transparent 9%),
    linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .09) 50%, transparent 64%); }
.book__back { background: #0B0D10; transform: translateZ(calc(var(--d) / -2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.book__spine { position: absolute; top: 0; bottom: 0; left: calc(var(--d) / -2); width: var(--d); transform: rotateY(-90deg);
  background: linear-gradient(90deg, #0A0C0F, #1B2028 46%, #0D0F13); }
/* обрез страниц справа и сверху: тонкие линии, как у настоящего блока */
.book__pages { position: absolute; top: 1%; bottom: 1%; left: calc(100% - var(--d) / 2 - 2px); width: var(--d); transform: rotateY(90deg);
  background: linear-gradient(90deg, #D9D2C0, #F3EEE2 30%, #E4DDCC 55%, #F1ECE0 78%, #CFC8B6); box-shadow: inset 0 0 6px rgba(0, 0, 0, .35); }
.book__top { position: absolute; left: 0; right: 2px; top: calc(var(--d) / -2 + 1%); height: var(--d); transform: rotateX(90deg);
  background: linear-gradient(0deg, #D9D2C0, #F3EEE2 30%, #E4DDCC 55%, #F1ECE0 78%, #CFC8B6); box-shadow: inset 0 0 6px rgba(0, 0, 0, .35); }
.book__shadow { position: absolute; left: 4%; right: -22%; bottom: -9%; height: 16%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35) 55%, transparent); filter: blur(7px); }
:root[data-theme="light"] .book__shadow { background: radial-gradient(closest-side, rgba(60, 45, 10, .4), rgba(60, 45, 10, .16) 55%, transparent); }
@media (hover: hover) { .book:hover .book__in { --ry: -14deg; --rx: 2deg; } }
@media (prefers-reduced-motion: no-preference) {
  .book { animation: book-float 6s ease-in-out infinite; }
  @keyframes book-float { 50% { translate: 0 -6px; } }
}

/* книга рядом с Кириллом на первом экране */
.hero__book { position: absolute; left: -19%; bottom: 9%; z-index: 2; --w: 92px; --rz: -5deg; filter: drop-shadow(0 0 18px rgba(201, 168, 76, .22)); }

/* ---------- Факты: книга, разбор из канала, фото с конференции ---------- */
.me__bookstage { display: grid; place-items: center; min-height: 236px; padding: 22px 12px 26px; border-radius: calc(var(--r) - 8px); overflow: hidden;
  background: radial-gradient(90% 80% at 50% 8%, rgba(var(--fx), .16), transparent 66%), var(--bg); }
.me__book { --w: 124px; --rz: -3deg; }
.me__shot { position: relative; overflow: hidden; border-radius: calc(var(--r) - 8px); background: #0B0E14; }
.me__card .me__shot-img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 62% 50%; transition: transform 1s var(--ease); }
.me__shot::after, .me__conf::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gold-line); pointer-events: none; }
.me__conf { position: relative; overflow: hidden; border-radius: 12px; }
.me__card .me__conf-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 78%; transition: transform 1s var(--ease); }
.me__conf-cap { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(10, 10, 10, .78); color: #E8E4DF; font-size: 13px; line-height: 18px; }
@media (hover: hover) { .me__shot:hover .me__shot-img, .me__conf:hover .me__conf-img { transform: scale(1.04); } }
@media (min-width: 900px) { .me__wide .me__card .me__shot-img { aspect-ratio: auto; min-height: 244px; } }

/* ---------- Ученики: скриншоты в рамках телефона, отзыв ---------- */
.phone .phone__shot { display: block; width: 100%; height: 100%; border-radius: 23px; object-fit: cover; object-position: 50% 0; background: #0B0B0F; }
.res__ava--k { display: grid; place-items: center; border-style: solid; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--accent); }
.res__quote .res__src { min-height: 0; }

/* ---------- Академия: настоящий скриншот ---------- */
.work__ac-zoom { position: relative; overflow: hidden; border-radius: 14px; }
.work__academy .work__ac-img { display: block; width: 100%; aspect-ratio: 643 / 432; object-fit: cover; }
.work__ac-zoom::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gold-line); pointer-events: none; }

@media (max-width: 899.98px) and (max-height: 700px) {
  :root { --header-h: 48px; }
  .hero__photo { height: 220px; }
  .hero__sub { margin-top: 10px; font-size: 15px; line-height: 22px; }
  .hero__actions { margin-top: 14px; }
}
@media (min-width: 900px) {
  .hero__in {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 32px; align-items: center;
    min-height: min(860px, calc(100svh - var(--header-h))); padding-block: 40px 72px;
  }
  .hero__text { grid-column: 1; max-width: 610px; }
  .hero__photo { order: 0; grid-column: 2; grid-row: 1; align-self: end; justify-self: center; width: min(100%, 520px); height: min(715px, 78svh); margin: 0; }
  .hero__book { left: -9%; bottom: 8%; --w: clamp(140px, 14vw, 204px); }
  .hero__fade { inset: 0 -30%; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
  .hero__title { font-size: clamp(44px, 12px + 3.3vw, 62px); line-height: 1.06; letter-spacing: -.03em; }
  .hero__sub { margin-top: 22px; font-size: 18px; line-height: 28px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
  .facts { margin-top: 24px; font-size: 14px; }
}

/* ---------- Видео: отдельный блок сразу под первым экраном ---------- */
.vid { padding-block: 8px calc(var(--gap-block) / 2); }
.vid .video__frame { box-shadow: inset 0 0 0 1px var(--gold-line), 0 30px 80px rgba(0, 0, 0, .35); }
.vid .video__play { border-color: rgba(223, 192, 110, .55); color: #F3DFA6; }
.vid .video__play-ic { color: #1A1208; background: linear-gradient(135deg, #C9A84C, #F0CB6C 55%, #B8943F); }
.hero__video { container-type: inline-size; }

/* Панель видео */
.video__frame {
  position: relative; overflow: hidden; margin-inline: var(--pad); aspect-ratio: 16 / 9;
  border-radius: var(--r); background: #111111; color: var(--on-video);
}
.video__cover {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.video__cover:focus-visible { outline-offset: -4px; border-radius: var(--r); }
.video__img, .video__loop {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
}
.video__loop { opacity: 0; transition: opacity .5s; }
.video__loop.is-ready { opacity: 1; }
.video__play {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 20px 4px 4px; border-radius: 999px; font-size: 16px; font-weight: 500; line-height: 20px;
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .5s var(--spring);
}
.video__play-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.video__play-ic .ic { width: 14px; height: 14px; margin-left: 2px; }
.video__ph {
  position: absolute; right: 16px; top: 14px; max-width: calc(100% - 32px);
  font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .72); text-align: right;
}
.video__note {
  position: absolute; left: 16px; right: 16px; top: 44px; font-size: 14px; line-height: 20px; color: var(--on-video);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease);
}
.video__cover.is-soon .video__note { opacity: 1; transform: none; }
.video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video__end {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 16px; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade-in .4s var(--ease) both;
}
.video__end .btn--primary { width: auto; }
.btn--glass { background: var(--glass-bg); border-color: var(--glass-line); color: var(--on-video); }
.video__again {
  min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--on-video); font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
@keyframes fade-in { from { opacity: 0; } }
@media (hover: hover) { .video__cover:hover .video__play { transform: scale(1.03); } }

@media (min-width: 900px) {
  /* Панель лежит во всю ширину окна и обрезана до ширины контента. При прокрутке обрезка раскрывается:
     панель растёт до краёв окна, скругление уходит. Двигается только clip-path. */
  .video__frame {
    --gut: max(var(--pad), calc((100% - var(--wrap-wide)) / 2));
    margin-inline: 0; aspect-ratio: auto; border-radius: 0;
    height: calc(min(var(--wrap-wide), 100vw - 2 * var(--pad)) * 9 / 16);
    height: calc(min(var(--wrap-wide), 100cqw - 2 * var(--pad)) * 9 / 16);
    clip-path: inset(0 var(--gut) round var(--r));
  }
  .video__play {
    left: calc(var(--gut) + 24px); top: 24px; bottom: auto; gap: 12px; padding: 8px 22px 8px 8px;
  }
  .video__play-ic { width: 38px; height: 38px; }
  .video__play-ic .ic { width: 12px; height: 12px; }
  .video__ph { left: var(--gut); right: var(--gut); top: 188px; max-width: none; text-align: center; font-size: 14px; line-height: 20px; }
  .video__note { left: calc(var(--gut) + 28px); right: auto; top: 96px; max-width: 420px; }
  .video__player, .video__end { inset-inline: var(--gut); width: auto; border-radius: var(--r); }
  .video__frame.is-playing { animation: none !important; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .video__frame { animation: video-grow linear both; animation-timeline: view(); animation-range: entry 5% cover 46%; }
    @keyframes video-grow { to { clip-path: inset(0 0 round 0); } }
  }
}

/* ---------- Закреплённая кнопка на телефоне ---------- */
.stick {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  transition: transform .7s var(--spring), visibility 0s;
}
.stick::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-top: 1px solid var(--line);
  background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.stick.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .3s ease-in, visibility 0s .3s; }
@media (min-width: 900px) { .stick { display: none; } }

/* ---------- Подсказка-тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  max-width: min(440px, calc(100% - 2 * var(--pad))); padding: 12px 18px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-text); font-size: 14px; line-height: 20px; text-align: center;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--spring), opacity .25s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Окно просмотра: подтверждение факта или скриншот в полный размер ---------- */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: inherit; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.zoom:focus-visible { border-radius: var(--r); }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px var(--pad) 24px; border: 0;
  background: transparent; color: var(--text); overflow: auto;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__box { display: grid; gap: 12px; justify-items: center; width: min(100%, 720px); }
[data-lightbox-content] { display: grid; justify-items: center; width: 100%; }
.lightbox__media { width: auto; max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); border-radius: var(--r); }
.lightbox__media.ph { width: min(100%, 520px); font-size: 16px; line-height: 24px; background: var(--panel); }
.lightbox__cap { color: var(--text); text-align: center; }
.lightbox__close {
  position: fixed; right: max(12px, calc(var(--pad) - 12px)); top: 12px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--outline); border-radius: 50%; background: var(--panel); color: var(--text); cursor: pointer;
}
.lightbox__close .ic { width: 16px; height: 16px; }

/* ---------- Режим запуска (launch: true в config.js) ----------
   Всё, чего команда не прислала, с боевой страницы уходит: кнопки без адреса, рамки-заглушки, место под отзыв. */
.is-launch [data-unset]:not([data-inline]), .is-launch [data-placeholder], .is-launch .zoom:has(.ph), .is-launch .res__quote:has(.res__ava.ph), .is-launch .me__wide .zoom:has(.ph),
.is-launch .res__orbit:has(.ph), .is-launch .guide__col:has(.btn[data-unset]), .is-launch .soc li:has([data-unset]) { display: none !important; }
.no-video #video, .no-video .hero__watch { display: none !important; }
.is-launch .guide__cols:has(.btn[data-unset]) { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
.is-launch .final2__guide:has(.btn[data-unset]) { max-width: 580px; margin-inline: auto; }
.is-launch .guide:has(.btn[data-unset]) { width: min(100% - 24px, 600px); }
.is-launch .footer__grid > div:has(.footer__list):not(:has(.footer__a:not([data-unset]))),
.is-launch .soc:not(:has(.soc__a:not([data-unset]))),
.is-launch:not(:has([data-link="instagram"]:not([data-unset]))) [data-ig-note] { display: none !important; }
.is-launch [data-unset][data-inline] { color: inherit; font-weight: inherit; text-decoration: none; cursor: auto; pointer-events: none; }

/* ---------- Подвал ---------- */
.footer { position: relative; padding-block: 40px 48px; border-top: 1px solid var(--line); margin-top: calc(var(--gap-block) / 2); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); opacity: .6; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 30px; height: 30px; }
.footer__brand { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--head); }
.footer__risk { max-width: 78ch; font-size: 14px; line-height: 20px; color: var(--text-2); }
.footer__risk + .footer__risk { margin-top: 10px; }
.footer__grid { display: grid; gap: 28px; }
.footer__h { margin-bottom: 4px; font: 600 13px/18px Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.footer__list { display: grid; justify-items: start; }
.footer__a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; line-height: 20px; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--outline); text-underline-offset: 4px; cursor: pointer; }
.footer__req { display: grid; gap: 4px; width: fit-content; margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--outline); border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.footer__req div { display: flex; gap: 10px; }
.footer__req dt { min-width: 64px; }
.footer__req dd { margin: 0; }
.footer__notes { margin-top: 28px; }
.footer__notes::before { content: ""; display: block; height: 1px; margin-bottom: 20px; background: var(--line); }
@media (hover: hover) { .footer__a:hover { color: var(--accent); text-decoration-color: currentColor; } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; } }
@media (max-width: 899.98px) { .footer { padding-bottom: 64px; } }

/* ---------- Общее движение ----------
   Скрытые начальные состояния включаются только классом js на <html> и только если человек не просил
   убрать движение. Без JS и при prefers-reduced-motion всё видно сразу. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Загрузка первого экрана: одна сцена на 0,8 с. Заголовок и кнопка видны с первого кадра. */
  .js .hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em .16em; margin-block: -.1em -.16em; }
  .js .hero__title .w__in { display: inline-block; animation: rise-line .3s var(--ease) both; animation-delay: calc(var(--l, 0) * 33ms); }
  .js .hero__sub { animation: rise-soft .4s var(--ease) 90ms both; }
  .js .hero__actions > * { animation: rise-btn .3s var(--ease) 100ms both; }
  .js .hero__facts > * { animation: rise-soft .45s var(--ease) both; animation-delay: calc(260ms + var(--i, 0) * 40ms); }
  .js .hero__photo { animation: rise-photo .9s var(--ease) 80ms both; }
  @keyframes rise-line { from { transform: translateY(62%); opacity: .35; } }
  @keyframes rise-soft { from { transform: translateY(8px); opacity: 0; } }
  @keyframes rise-btn { from { transform: translateY(8px); opacity: .55; } }
  @keyframes rise-photo { from { transform: translateY(18px); opacity: 0; } }

  /* Появление при прокрутке: [data-reveal] получает класс is-in один раз */
  .js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}

/* Переходы View Transitions: короткие, без движения при reduced-motion */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Блоки ниже первого экрана не отрисовываются, пока до них далеко */
.block:not(.block--pin), .footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }
/* Оценка высоты каждого блока, пока он не отрисован: чуть больше настоящей, чтобы блоки не «наезжали» друг на друга в расчётах */
#fit { contain-intrinsic-size: auto 1200px; } #life { contain-intrinsic-size: auto 1340px; } #markets { contain-intrinsic-size: auto 1300px; }
#about { contain-intrinsic-size: auto 3250px; } #story { contain-intrinsic-size: auto 1940px; } #work { contain-intrinsic-size: auto 3400px; }
#results { contain-intrinsic-size: auto 2330px; } #faq { contain-intrinsic-size: auto 1260px; } #final { contain-intrinsic-size: auto 990px; }
.footer { contain-intrinsic-size: auto 760px; }
@media (min-width: 900px) {
  #fit { contain-intrinsic-size: auto 800px; } #life { contain-intrinsic-size: auto 680px; } #markets { contain-intrinsic-size: auto 790px; }
  #about { contain-intrinsic-size: auto 1900px; } #story { contain-intrinsic-size: auto 1620px; } #work { contain-intrinsic-size: auto 1840px; }
  #results { contain-intrinsic-size: auto 2130px; } #faq { contain-intrinsic-size: auto 1050px; } #final { contain-intrinsic-size: auto 890px; }
  .footer { contain-intrinsic-size: auto 420px; }
}

/* ==================== Варианты мест под картинки ====================
   Черновой слой для выбора: рядом стоят «Вариант 1» и «Вариант 2». После выбора лишний вариант и подписи убрать.
   В режиме запуска (launch: true) подписи и вторые варианты не показываются. */

/* ==================== Блоки 2–4: кому подходит, сутки, рынки ==================== */
/* ==================== Блоки 2–4: кому подходит, сутки, рынки ==================== */

/* Общее для карточек этих блоков: мягкий золотой свет под курсором.
   Координаты --mx/--my и видимость --lit ставит общий обработчик панелей в script.js */
.fit__spot { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fit__spot {
    background: radial-gradient(340px circle at var(--mx, -400px) var(--my, -400px), rgba(var(--fx), .13), transparent 68%);
    opacity: var(--lit, 0); transition: opacity .35s;
  }
}

/* ---------- Блок 2: кому подойдёт ---------- */
.fit__grid { display: grid; gap: 12px; }
.fit__cell.panel {
  padding: 20px 20px 22px; color: var(--text-2);
  background: linear-gradient(180deg, rgba(var(--fx), .06), rgba(var(--fx), 0) 44%), var(--panel);
}
/* золотая волосяная линия по верхнему краю карточки */
.fit__cell::after {
  content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); opacity: .6;
  transform-origin: 0 50%;
}
.fit__n {
  display: inline-grid; place-items: center; min-width: 40px; height: 28px; margin-bottom: 16px; padding: 0 9px;
  border: 1px solid var(--gold-line); border-radius: 8px; background: rgba(var(--fx), .09); color: var(--accent);
  font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.fit__cell b { display: block; margin-bottom: 8px; color: var(--head); font-family: var(--display); font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.fit__fig { color: var(--text); font-weight: 600; }
/* главная ситуация для этой страницы: дополнительный доход без ухода с работы */
.fit__cell--key.panel {
  border-color: var(--gold-line);
  background: linear-gradient(155deg, rgba(var(--fx), .2), rgba(var(--fx), .05) 46%, rgba(var(--fx), 0) 72%), var(--panel);
}
.fit__cell--key .fit__n { border-color: transparent; background: linear-gradient(135deg, #A88A3A, #F0CB6C 55%, #B8943F); color: #1A1208; }
.fit__cell--key .fit__fig { color: var(--accent); }
@media (max-width: 899.98px) {
  /* на телефоне номер стоит в правом верхнем углу карточки: блок короче */
  .fit__n { position: absolute; right: 18px; top: 18px; margin: 0; }
  .fit__cell b { padding-right: 52px; }
}
@media (min-width: 900px) {
  .fit__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .fit__cell.panel { grid-column: span 2; padding: 28px 28px 30px; }
  .fit__cell:nth-child(n+4) { grid-column: span 3; }
  .fit__cell::after { left: 28px; right: 28px; }
  .fit__n { margin-bottom: 22px; }
  .fit__cell b { font-size: 22px; line-height: 28px; }
}
@media (hover: hover) {
  .fit__n { transition: transform .5s var(--spring), background-color .25s; }
  .fit__cell:hover .fit__n { transform: translateY(-2px); }
  .fit__cell:not(.fit__cell--key):hover .fit__n { background: rgba(var(--fx), .18); }
}

/* ---------- Блок 3: сутки циферблатом ---------- */
.day { margin-top: 32px; }
.day__panel.panel {
  display: grid; gap: 20px; justify-items: center;
  background: radial-gradient(120% 90% at 30% 0%, rgba(var(--fx), .09), rgba(var(--fx), 0) 60%), var(--panel);
}
.day__dial { position: relative; width: min(100%, 236px); aspect-ratio: 1; }
.day__dial svg { width: 100%; height: 100%; overflow: visible; }
.day__dial circle, .day__dial line { fill: none; }
/* 24 часовые риски по кругу, каждые шесть часов риска ярче */
.day__ticks { stroke: var(--text-3); stroke-width: 5; stroke-dasharray: .7 9.3; stroke-dashoffset: .35; opacity: .5; }
.day__ticks--major { stroke: var(--accent); stroke-width: 8; stroke-dasharray: 1 59; stroke-dashoffset: .5; opacity: .9; }
.day__rail { stroke: var(--line); stroke-width: 16; }
.day__arc { stroke: var(--bar); stroke-width: 16; cursor: default; transition: stroke-width .35s var(--ease), opacity .3s, stroke-dasharray 1s var(--ease); }
.day__arc--a { opacity: .5; }
.day__arc--b { opacity: 1; }
.day__arc--c { opacity: .72; }
.day__arc--trade { stroke: var(--gold); stroke-width: 26; opacity: 1; filter: drop-shadow(0 0 7px rgba(var(--fx), .85)); }
.day__arc.is-on { stroke-width: 22; opacity: 1; }
.day__arc--trade.is-on { stroke-width: 30; }
.day__panel.is-pick .day__arc:not(.is-on) { opacity: .28; }
.day__panel.is-pick .day__arc--trade:not(.is-on) { opacity: .7; }
/* стрелка показывает на выбранную часть суток; по умолчанию на час торговли */
.day__hand { transform-box: view-box; transform-origin: 120px 120px; transform: rotate(var(--deg, 247.5deg)); }
.day__hand line { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
.day__hand circle { fill: var(--accent); }
.day__center {
  position: absolute; inset: 30%; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 1px var(--line);
}
.day__center b { font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.day__center span[data-day-l] { font-size: 13px; line-height: 16px; color: var(--text-2); }
.day__list { width: 100%; }
.day__row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; min-height: 44px; padding: 6px 2px; color: var(--text-2); transition: color .25s; -webkit-tap-highlight-color: transparent; }
.day__row + .day__row { border-top: 1px solid var(--line); }
.day__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--bar); }
.day__row--a .day__dot { opacity: .5; }
.day__row--c .day__dot { opacity: .72; }
.day__name { color: var(--text); font-weight: 500; }
.day__val { font-variant-numeric: tabular-nums; }
.day__row--trade .day__dot { background: var(--gold); box-shadow: 0 0 8px rgba(var(--fx), .9); }
.day__row--trade .day__name, .day__row--trade .day__val { color: var(--accent); font-weight: 600; }
.day__row.is-on .day__val { color: var(--text); }
.day__row--trade.is-on .day__val { color: var(--accent); }
.js .day__row { cursor: pointer; }
@media (max-width: 899.98px) {
  /* На телефоне виджет суток идёт сразу после подводки, абзацы под ним */
  .life__cols { display: flex; flex-direction: column; }
  .life__cols .day { order: -1; margin: 0 0 32px; }
}
.day figcaption { margin-top: 12px; }
@media (min-width: 900px) {
  .day { margin-top: 0; }
  .day__panel.panel { grid-template-columns: 212px minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px 28px 28px 24px; }
  .day__dial { width: 212px; }
}

/* ---------- Блок 4: рынки ---------- */
.mkt__grid { display: grid; gap: 12px; margin-bottom: 36px; }
.mkt__cell.panel { padding: 0;
  background: linear-gradient(180deg, rgba(var(--fx), .055), rgba(var(--fx), 0) 50%), var(--panel); }
.mkt__chart { position: relative; height: 92px; overflow: hidden; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.mkt__body { padding: 14px 20px 18px; }
.mkt__chart svg, .mkt__chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mkt__chart svg { inset: 18% 4%; width: 92%; height: 64%; overflow: visible; }
.mkt__chart path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
.mkt__cell.is-live .mkt__chart svg { display: none; }
.mkt__cell h3 { margin: 0 0 4px; font-size: 20px; line-height: 26px; }
.mkt__cell p { color: var(--text-2); }
.mkt__text .prose + .prose { margin-top: 20px; }
/* две главные мысли блока: с золотой линией слева */
.mkt__keys > p { padding-left: 18px; border-left: 2px solid var(--gold-line); color: var(--text-2); }
.mkt__keys > p + p { margin-top: 20px; }
.mkt__keys b { color: var(--accent); font-weight: 600; }
@media (min-width: 900px) {
  .mkt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
  .mkt__chart { height: 140px; }
  .mkt__body { padding: 22px 28px 26px; }
  .mkt__cell h3 { font-size: 24px; line-height: 30px; }
  .mkt__text .prose + .prose { margin-top: 0; }
  .mkt__keys > p { font-size: 18px; line-height: 28px; }
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* блок 2: золотая линия карточки проводится при появлении */
  .js .fit__cell::after { transition: transform .9s var(--ease) calc(var(--i, 0) * 60ms + .25s); }
  .js .fit__cell:not(.is-in)::after { transform: scaleX(0); }
  /* блок 3: секторы суток рисуются по часовой стрелке, час торговли последним; стрелка доходит до него */
  .js .day__arc--b { transition-delay: 0s, 0s, .18s; }
  .js .day__arc--c { transition-delay: 0s, 0s, .36s; }
  .js .day__arc--trade { transition-delay: 0s, 0s, .95s; }
  .js .day__panel:not(.is-in) .day__arc { stroke-dasharray: 0 24 !important; }
  .js .day__hand { transition: transform 1.1s var(--ease); }
  .js .day__panel:not(.is-in) .day__hand { transform: rotate(0deg); transition-duration: 0s; }
  .js .day__panel.is-in:not(.is-ready) .day__hand { transition: transform 1.7s cubic-bezier(.3, .1, .2, 1) .15s; }
  .js .day__ticks { transition: opacity .8s; }
  .js .day__panel:not(.is-in) .day__ticks { opacity: 0; }
  /* блок 4: запасная линия прорисовывается, пока не включился живой график */
  .js .mkt__chart path { transition: stroke-dashoffset 1.2s var(--ease) calc(var(--i, 0) * 60ms + .3s); }
  .js .mkt__cell:not(.is-in) .mkt__chart path { stroke-dashoffset: 1.05; }
  .js .mkt__chart canvas { opacity: 0; transition: opacity .7s calc(var(--i, 0) * 90ms + .2s); }
  .js .mkt__cell.is-in .mkt__chart canvas { opacity: 1; }
}

/* ==================== Блок 5: как я торгую, график по прокрутке ==================== */
/* ---------- 5. Как я торгую: сделка, которая разыгрывается по мере прокрутки ----------
   Прогресс сделки лежит в --p (0…1), его ставит скрипт. График рисуется на холсте (b5.js),
   сообщения Кирилла и пометки на графике выводятся из --p здесь.
   Без скрипта и при reduced-motion --p равен 1: блок обычной высоты, вместо холста готовый SVG. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }

.sys { --p: 1; }
/* Доля появления элемента: 0 до своего порога --t, 1 сразу после */
.sys__a, .sys__msg { --k: clamp(0, calc((var(--p) - var(--t, 0)) * var(--s, 40)), 1); }

.sys__panel { display: flex; flex-direction: column; padding: 0; overflow: clip; }
/* когда цель взята, панель получает золотую кромку */
.sys__panel::after {
  content: ""; position: absolute; inset: -1px; z-index: 1; border: 1px solid var(--gold); border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 44px rgba(var(--fx), .22), inset 0 0 28px rgba(var(--fx), .08);
  opacity: calc(clamp(0, calc((var(--p) - .965) * 30), 1) * .75);
}

/* ---- График ---- */
.sys__chart { order: -1; margin: 0; background: var(--bg); }
.sys__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.sys__inst { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.sys__inst::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--fx), .16); }
.sys__eg, .sys__tag { padding: 2px 9px; border: 1px solid var(--outline); border-radius: 999px; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; }
.sys__plot { position: relative; aspect-ratio: 640 / 380; overflow: hidden; }
.sys__svg, .sys__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.sys__cv { display: none; }
.sys.is-live .sys__cv { display: block; }
.sys.is-live .sys__svg { opacity: 0; }

/* Готовый график для режима без движения: те же цвета, что на холсте */
.sys__svg path { fill: none; vector-effect: non-scaling-stroke; }
.sv-grid { stroke: rgba(var(--fx), .09); stroke-width: 1; }
.sys__svg .sv-fill { fill: rgba(var(--fx), .04); }
.sys__svg .sv-area { fill: rgba(var(--fx), .09); }
.sys__svg .sv-vol { fill: rgba(var(--fx), .22); }
.sys__svg .sv-tp { fill: rgba(var(--fx), .16); }
.sys__svg .sv-sl { fill: rgba(var(--fx-hi), .07); }
.sv-ch { stroke: rgba(var(--fx), .75); stroke-width: 1.2; }
.sv-lvl { stroke: var(--text-3); stroke-width: 1.4; stroke-dasharray: 5 5; }
.sv-stop { stroke: var(--text-2); stroke-width: 1.3; stroke-dasharray: 4 4; }
.sv-goal { stroke: var(--gold); stroke-width: 1.7; }
.sv-ma { stroke: rgba(var(--fx-hi), .55); stroke-width: 1.3; }
.sys__svg .sv-u { fill: var(--gold); stroke: var(--gold); stroke-width: 1.2; }
.sys__svg .sv-d { fill: var(--bg); stroke: var(--gold-line); stroke-width: 1.2; }

/* Номера, подписи и точки лежат поверх графика обычной вёрсткой: кегль не зависит от масштаба */
.sys__a { position: absolute; left: var(--x); top: var(--y); opacity: var(--k); transform: translate(-50%, -50%) scale(calc(.6 + .4 * var(--k))); }
.sys__n, .sys__num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.sys__n { border: 1px solid var(--gold-line); background: var(--bg); color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--fx), .1); }
.sys__lbl { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); transform: translate(0, -50%) scale(calc(.6 + .4 * var(--k))); transform-origin: 0 50%; }
.sys__lbl--goal { color: var(--accent); }
.sys__dot { width: 12px; height: 12px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); }
.sys.is-live .sys__dot { display: none; }      /* точки входа и цели на холсте рисуются со свечением */

/* ---- Лента сообщений: окно Telegram ---- */
.sys__side { position: relative; display: flex; flex-direction: column; background: var(--chat-bg); }
.sys__who { display: grid; grid-template-columns: auto auto 1fr auto; column-gap: 10px; align-items: center; padding: 10px 14px; background: var(--chat-head); }
.sys__back { width: 18px; height: 18px; margin-right: -2px; color: var(--chat-blue); }
.sys__ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(160deg, #56A8E9, #2A74C5); color: #FFFFFF; font-size: 15px; font-weight: 600; }
.sys__name { display: grid; font-size: 14px; line-height: 18px; color: var(--chat-meta); }
.sys__name b { font-size: 15px; line-height: 20px; color: var(--text); }
.sys__status { display: grid; }
.sys__status > * { grid-area: 1 / 1; transition: opacity .25s; }
.sys__status > :last-child { opacity: 0; color: var(--chat-blue); }
.sys__side.is-typing .sys__status > :first-child { opacity: 0; }
.sys__side.is-typing .sys__status > :last-child { opacity: 1; }
.sys__tag { border-color: transparent; background: var(--chat-chip); color: var(--text); }
.sys__day { display: flex; justify-content: center; padding-top: 10px; }
.sys__day span { padding: 2px 10px; border-radius: 999px; background: var(--chat-chip); font-size: 13px; line-height: 18px; color: var(--text); }

.sys__steps { display: grid; gap: 10px; padding: 10px 12px 14px; }
.sys__step { position: relative; display: flex; justify-content: flex-start; }
.sys__bub {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; max-width: 100%;
  padding: 10px 12px 9px 10px; border-radius: 16px 16px 16px 5px; background: var(--chat-k); color: var(--text-2);
  transform-origin: 0 100%;
}
.sys__bub b { color: var(--text); }
.sys__bub p::after { content: ""; display: block; clear: both; }
.sys__num { margin-top: -1px; background: var(--chat-chip); color: var(--text); transition: background-color .3s, color .3s; }
.sys__time { float: right; margin: 4px 0 0 10px; font-size: 13px; line-height: 16px; color: var(--chat-meta); }

/* Сигнал: как Кирилл присылает его в личку; строки связаны с пометками на графике */
.sys__sig .sys__bub, .sys__fin .sys__bub { grid-template-columns: 1fr; }
.sys__sig .sys__bub { gap: 0; width: 100%; padding: 11px 12px 12px; border-left: 2px solid var(--gold); border-radius: 6px 16px 16px 5px; }
.sys__sig-t { display: flex; align-items: center; gap: 8px; }
.sys__sig-t b { flex: 1; color: var(--accent); letter-spacing: .04em; }
.sys__sig-t .sys__time { float: none; margin: 0; }
.sys__sig-ic { width: 16px; height: 16px; color: var(--accent); fill: none; }
.sys__sig-rows { display: grid; gap: 5px; margin: 8px 0 0; }
.sys__sig-rows > div { display: grid; grid-template-columns: 74px 1fr; column-gap: 8px; align-items: baseline; }
.sys__sig-rows dt { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.sys__key { flex: none; width: 14px; height: 0; border-top: 2px dashed var(--text-3); }
.sys__key--tp { border-top: 2px solid var(--gold); }
.sys__key--in { width: 8px; height: 8px; margin-inline: 3px; border: 0; border-radius: 50%; background: var(--gold); }
.sys__fin .sys__bub { color: var(--text); }

/* Индикатор «печатает»: стоит на месте будущего сообщения и высоту окна не меняет */
.sys__typing { display: none; position: absolute; left: 0; top: 0; gap: 5px; padding: 14px 14px; border-radius: 16px 16px 16px 5px; background: var(--chat-k); pointer-events: none; }
.sys__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--chat-meta); }
@keyframes sys-dot { 30% { transform: translateY(-4px); opacity: .5; } 60% { transform: none; opacity: 1; } }

.sys__bar { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 14px; background: var(--chat-head); color: var(--chat-meta); font-size: 15px; line-height: 20px; }
.sys__bar span { flex: 1; }
.sys__bar .ic { width: 20px; height: 20px; }

.sys__after { display: grid; gap: 24px; margin-top: 16px; }
.sys__note-link {
  display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--text); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--text-3);
}
@media (hover: hover) { .sys__note-link:hover { text-decoration-color: currentColor; } }

/* ---- Режим «прилипает»: класс is-pin ставит скрипт, когда движение разрешено ----
   data-step: сколько сообщений уже пришло. Следующие приглушены цветом, контраст остаётся выше 4.5:1 */
.sys.is-pin .sys__bub, .sys.is-pin .sys__bub b { transition: color .45s var(--ease); }
.sys.is-pin[data-step] .sys__bub { color: var(--chat-meta); }
.sys.is-pin[data-step] .sys__bub b, .sys.is-pin[data-step] .sys__sig-rows dt { color: var(--text-2); }
.sys.is-pin[data-step="1"] .sys__step:nth-child(-n+1) .sys__bub, .sys.is-pin[data-step="2"] .sys__step:nth-child(-n+2) .sys__bub,
.sys.is-pin[data-step="3"] .sys__step:nth-child(-n+3) .sys__bub, .sys.is-pin[data-step="4"] .sys__step:nth-child(-n+4) .sys__bub,
.sys.is-pin[data-step="5"] .sys__step:nth-child(-n+5) .sys__bub, .sys.is-pin[data-step="6"] .sys__step .sys__bub { color: var(--text-2); }
.sys.is-pin[data-step="1"] .sys__step:nth-child(-n+1) :is(b, dt), .sys.is-pin[data-step="2"] .sys__step:nth-child(-n+2) :is(b, dt),
.sys.is-pin[data-step="3"] .sys__step:nth-child(-n+3) :is(b, dt), .sys.is-pin[data-step="4"] .sys__step:nth-child(-n+4) :is(b, dt),
.sys.is-pin[data-step="5"] .sys__step:nth-child(-n+5) :is(b, dt), .sys.is-pin[data-step="6"] .sys__step :is(b, dt) { color: var(--text); }
.sys.is-pin[data-step] .sys__sig-t b { color: var(--text-2); }
.sys.is-pin[data-step="5"] .sys__sig-t b, .sys.is-pin[data-step="6"] .sys__sig-t b { color: var(--accent); }
.sys.is-pin[data-step="6"] .sys__fin .sys__bub { color: var(--text); }
/* номер шага, который идёт сейчас, залит золотом */
.sys.is-pin[data-step="1"] .sys__step:nth-child(1) .sys__num, .sys.is-pin[data-step="2"] .sys__step:nth-child(2) .sys__num,
.sys.is-pin[data-step="3"] .sys__step:nth-child(3) .sys__num, .sys.is-pin[data-step="4"] .sys__step:nth-child(4) .sys__num { background: var(--gold); color: #1A1208; }

@media (max-width: 899.98px) {
  .sys__n { width: 19px; height: 19px; box-shadow: 0 0 0 3px rgba(var(--fx), .1); }
  /* График прилипает к верху, сообщения проезжают под ним */
  .sys.is-pin .sys__chart {
    position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line);
    border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; transition: transform .45s var(--ease);
  }
  .sys.is-pin .sys__steps { gap: 9vh; padding-bottom: 20px; }
  /* Шапка сайта вернулась (прокрутка вверх): график опускается на её высоту и не прячется под ней */
  .header:not(.is-hidden) ~ main .sys.is-stuck .sys__chart { transform: translateY(var(--header-h)); }
}

@media (min-width: 900px) {
  .sys__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 408px); gap: 20px; align-items: stretch; padding: 20px; overflow: visible; }
  .sys__chart { order: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
  .sys__cap { padding: 14px 18px 10px; }
  .sys__plot { flex: 1; aspect-ratio: auto; min-height: 340px; }
  .sys__n, .sys__num { width: 24px; height: 24px; }
  /* График слева, окно с сообщениями справа */
  .sys__side { order: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
  .sys__steps { gap: 8px; padding: 10px 10px 12px; }
  .sys__bub { grid-template-columns: 24px 1fr; padding: 9px 12px 8px 9px; font-size: 14px; line-height: 20px; }
  .sys__sig .sys__bub { padding: 10px 12px 11px; }
  .sys__after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; margin-top: 20px; }

  /* Сообщение приходит на своём шаге прокрутки вместе с тем, что оно описывает на графике.
     Перед ним на долю секунды показывается «печатает». */
  .sys.is-pin .sys__bub { opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 10px)) scale(calc(.96 + .04 * var(--k))); }
  .sys.is-pin .sys__msg { --s: 18; }
  .sys.is-pin .sys__typing { display: flex; opacity: calc(clamp(0, calc((var(--p) - var(--t) + .055) * 60), 1) * (1 - var(--k))); }
  .sys.is-pin .sys__side.is-typing .sys__typing i { animation: sys-dot 1s ease-in-out infinite; }
  .sys.is-pin .sys__side.is-typing .sys__typing i:nth-child(2) { animation-delay: .15s; }
  .sys.is-pin .sys__side.is-typing .sys__typing i:nth-child(3) { animation-delay: .3s; }

  /* Блок занимает 250 % высоты экрана, панель стоит по центру под шапкой.
     --slack (ставит скрипт) убирает пустоту над и под панелью до и после прилипания. */
  .sys.is-pin .sys__track { height: 250vh; margin-block: calc(var(--slack, 0px) * -1); }
  .sys.is-pin .sys__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; align-items: center; pointer-events: none; }
  .sys.is-pin .sys__panel { pointer-events: auto; }
}
/* Невысокий экран компьютера (ноутбук 768 и 720 px): окно плотнее, чтобы панель целиком помещалась и прилипала */
@media (min-width: 900px) and (max-height: 860px) {
  .sys__panel { padding: 14px; gap: 14px; }
  .sys__who { padding: 7px 12px; }
  .sys__ava { width: 32px; height: 32px; }
  .sys__day, .sys__bar { display: none; }
  .sys__steps { gap: 6px; padding: 8px; }
  .sys__bub { padding: 7px 11px 6px 8px; font-size: 13px; line-height: 18px; }
  .sys__sig .sys__bub { padding: 8px 11px; }
  .sys__sig-rows { gap: 2px; margin-top: 4px; }
  .sys__cap { padding: 10px 14px 6px; }
  .sys__plot { min-height: 280px; }
}

/* ==================== Блоки 6–7: факты и история ==================== */
/* ==================== Блоки 6–7: факты и история ==================== */

/* ---------- Блок 6, вариант 1: карточки фактов ----------
   Карточка наклоняется за курсором и ловит блик (координаты ставит скрипт), числа досчитываются,
   рядом с числом рисунок: 11 столбиков по одному на год и 200 точек по одной на ученика. */
.me__grid { display: grid; gap: 12px; }
.me__grid > li { display: grid; }
.me__card {
  position: relative; display: flex; flex-direction: column; padding: 8px;
  background:
    linear-gradient(90deg, transparent 10%, rgba(var(--fx), .6) 50%, transparent 90%) top / 100% 1px no-repeat,
    radial-gradient(120% 70% at 50% 0%, rgba(var(--fx), .08), transparent 62%),
    var(--panel);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .6s var(--ease), border-color .3s;
}
.me__card.is-tilt { transition: transform .12s linear, border-color .3s; }
/* блик под курсором */
.me__card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 0%), rgba(var(--fx), .16), transparent 62%);
  transition: opacity .35s;
}
.me__card--num { justify-content: space-between; gap: 18px; padding: 22px 20px 20px; }
.me__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 12px 8px; }
.me__fact { color: var(--text-2); }
.me__fact b { color: var(--text); }
.me__big { display: block; margin-bottom: 10px; font-family: var(--display); font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -.025em; color: var(--accent); }
.me__big [data-count] { display: inline-block; }
.me__more { font-size: .38em; letter-spacing: -.01em; color: var(--text); -webkit-text-fill-color: currentColor; }
.me__card--num > .me__years { margin-top: auto; }
.me__since { margin-top: -6px; }
.me__link { gap: 6px; margin-top: auto; color: var(--accent); text-decoration-color: var(--gold-line); }
.me__link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.me__card--num .me__link { margin-bottom: -10px; }

/* одиннадцать лет: одиннадцать столбиков */
.me__years { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.me__years i { flex: 1; height: calc(26% + var(--k) * 7.4%); border-radius: 2px 2px 0 0; background: linear-gradient(to top, rgba(var(--fx), .14), rgba(var(--fx), .62)); transform-origin: 50% 100%; }
.me__years i:nth-child(1) { --k: 0; } .me__years i:nth-child(2) { --k: 1; } .me__years i:nth-child(3) { --k: 2; } .me__years i:nth-child(4) { --k: 3; }
.me__years i:nth-child(5) { --k: 4; } .me__years i:nth-child(6) { --k: 5; } .me__years i:nth-child(7) { --k: 6; } .me__years i:nth-child(8) { --k: 7; }
.me__years i:nth-child(9) { --k: 8; } .me__years i:nth-child(10) { --k: 9; }
.me__years i:nth-child(11) { --k: 10; background: linear-gradient(to top, rgba(var(--fx), .5), var(--gold)); box-shadow: 0 0 18px rgba(var(--fx), .5); }

/* больше двухсот учеников: 20 × 10 точек и ещё один тающий столбец */
.me__dots {
  position: relative; display: block; width: 210px; max-width: 100%; height: 100px;
  background: radial-gradient(circle at 5px 5px, rgba(var(--fx), .22) 1.7px, transparent 2.3px) 0 0 / 10px 10px;
  -webkit-mask: linear-gradient(90deg, #000 200px, transparent 210px); mask: linear-gradient(90deg, #000 200px, transparent 210px);
}
.me__dots::before {
  content: ""; position: absolute; inset: 0 10px 0 0;
  background: radial-gradient(circle at 5px 5px, var(--gold) 1.9px, transparent 2.5px) 0 0 / 10px 10px;
}

/* рамка под подтверждение: и пустой выглядит как место под кадр */
.me__ph {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 16 / 9;
  border: 1px dashed var(--gold-line); border-radius: calc(var(--r) - 8px); color: var(--text-2);
  background: radial-gradient(110% 90% at 50% 0%, rgba(var(--fx), .1), transparent 62%), var(--bg);
  transition: border-color .3s, background-color .3s;
}
.me__ph::before {   /* уголки видоискателя */
  content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--gold); border-radius: 5px; pointer-events: none; opacity: .85;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 16px 16px no-repeat, linear-gradient(#000 0 0) 100% 0 / 16px 16px no-repeat,
    linear-gradient(#000 0 0) 0 100% / 16px 16px no-repeat, linear-gradient(#000 0 0) 100% 100% / 16px 16px no-repeat;
  mask: linear-gradient(#000 0 0) 0 0 / 16px 16px no-repeat, linear-gradient(#000 0 0) 100% 0 / 16px 16px no-repeat,
    linear-gradient(#000 0 0) 0 100% / 16px 16px no-repeat, linear-gradient(#000 0 0) 100% 100% / 16px 16px no-repeat;
  transition: inset .4s var(--ease);
}
.me__ic { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  /* Ряд 1: «11 лет», книга, сообщество. Ряд 2: «больше 200» и широкая карточка канала */
  .me__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .me__grid > li:nth-child(1) { grid-area: 1 / 1; }
  .me__grid > li:nth-child(2) { grid-area: 1 / 2; }
  .me__grid > li:nth-child(3) { grid-area: 1 / 3; }
  .me__grid > li:nth-child(5) { grid-area: 2 / 1; }
  .me__grid > .me__wide { grid-area: 2 / 2 / 3 / 4; }
  .me__ph { aspect-ratio: 4 / 3; }
  .me__wide .me__card { flex-direction: row; }
  .me__wide .zoom { flex: 0 0 44%; display: flex; }
  .me__wide .me__ph { flex: 1; aspect-ratio: auto; min-height: 244px; }
  .me__wide .me__body { flex: 1; justify-content: center; gap: 14px; padding: 20px 20px 20px 32px; }
  .me__wide .me__fact { max-width: 52ch; }
  .me__wide .me__link { margin-top: 0; }
  .me__body { padding: 20px 20px 12px; }
  .me__card--num { padding: 28px 28px 26px; gap: 22px; }
  .me__big { font-size: 76px; }
  .me__years { height: 60px; }
}
@media (hover: hover) {
  .me__link:hover .ic { transform: translateX(3px); }
  .me__card:hover { border-color: var(--gold-line); }
  .me__card:hover::after { opacity: 1; }
  .zoom:hover .me__ph { border-color: var(--gold); }
  .zoom:hover .me__ph::before { inset: 14px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .me__card:hover { --lift: -4px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* рисунки у чисел появляются, когда карточка показалась (is-in ставит общий скрипт) */
  .js .me__grid .me__years i { transform: scaleY(0); transition: transform .7s var(--ease) calc(.25s + var(--k) * 55ms); }
  .js .me__grid > .is-in .me__years i { transform: none; }
  .js .me__grid .me__dots::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s steps(20, end) .35s; }
  .js .me__grid > .is-in .me__dots::before { clip-path: inset(0 0 0 0); }
}

/* ---------- Блок 6, вариант 2: список фактов и большая рамка ---------- */

/* полоска под активным фактом: заполняется, пока факты листаются сами */

@keyframes me2-fill { to { transform: scaleX(1); } }
/* Со скриптом видна одна рамка, остальные сменяются; без скрипта все стоят друг под другом */

/* ---------- Блок 7, вариант 1: фото и история ----------
   Портрет в золотой рамке со сдвигом, второе фото внахлёст; при прокрутке они едут с разной скоростью.
   Вдоль текста линия пути: заполняется золотом по мере чтения, точка у каждого абзаца загорается. */

.story__text { position: relative; padding-left: 28px; --sp: 1; }
.story__text > .story__rail { position: absolute; left: 4px; top: 12px; bottom: 14px; width: 1px; margin: 0; background: var(--line); }
.story__rail i { position: absolute; inset: 0; background: linear-gradient(var(--gold), var(--accent)); transform: scaleY(var(--sp)); transform-origin: 50% 0; }
.story__text > p { position: relative; }
.story__text > p::before {
  content: ""; position: absolute; left: -28px; top: 7px; z-index: 1; width: 9px; height: 9px; border: 1.5px solid var(--gold); border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--fx), .18); transition: background-color .35s, box-shadow .35s;
}
/* со скриптом точки загораются по мере чтения; без него и при reduced-motion горят сразу */
.js .story__text.is-live > p:not(.is-past)::before { background: var(--bg); box-shadow: none; }
.story__hl { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--accent); letter-spacing: -.005em; }

@media (min-width: 900px) {
  .story__text { padding-left: 36px; }
  .story__text > p::before { left: -36px; top: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Фото выходит из-под маски снизу вверх. Класс is-in ставится на обёртку:
     наблюдатель не видит элемент, который сам полностью обрезан маской */
  
}

/* ---------- Блок 7, вариант 2: галерея из пяти фото ----------
   Компьютер: фото стоят плотным рядом, под курсором одно раскрывается. Телефон: лента с прокруткой вбок. */

/* ==================== Блок 8: как проходит работа, переписка ==================== */
/* ---------- Блок 8. Как проходит работа ----------
   Слева окно переписки в виде Telegram (пример, собран вёрсткой), справа четыре шага с линией прогресса.
   Ниже «Почему бесплатно» со схемой, кто что получает, и сумма для старта с кнопкой. */
.work { --w-shadow: 0 24px 60px rgba(60, 45, 10, .16); --w-node: var(--panel); }
:root[data-theme="dark"] .work { --w-shadow: 0 30px 80px rgba(0, 0, 0, .6); --w-node: #101010; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .work { --w-shadow: 0 30px 80px rgba(0, 0, 0, .6); --w-node: #101010; } }

.work__stage { display: grid; gap: 40px; }
.work__window { position: relative; min-width: 0; }
/* золотой свет за окном переписки */
.work__window::before {
  content: ""; position: absolute; inset: -10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--fx), .16), rgba(var(--fx), .05) 55%, transparent 80%);
}

/* ---- окно переписки ---- */
.chat {
  position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px;
  background: var(--chat-bg); box-shadow: var(--w-shadow);
}
@supports (border-color: color-mix(in srgb, red 10%, blue)) { .chat { border-color: color-mix(in srgb, var(--gold) 38%, var(--line)); } }
.chat__head {
  display: grid; grid-template-columns: auto auto 1fr; column-gap: 10px; align-items: center; padding: 10px 14px;
  background: var(--chat-head); border-bottom: 1px solid var(--line);
}
.chat__back { grid-row: 1 / 3; width: 18px; height: 18px; margin-right: -2px; color: var(--chat-blue); }
.chat__ava {
  grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(160deg, #3D8FE0, #1F62B0); color: #FFFFFF; font-size: 16px; font-weight: 600;
}
.chat__name { font-size: 16px; line-height: 20px; color: var(--text); }
.chat__sub { grid-column: 3; display: grid; font-size: 14px; line-height: 18px; color: var(--chat-meta); }
.chat__sub > * { grid-area: 1 / 1; transition: opacity .25s; }
.chat__sub > :last-child, .chat.is-typing .chat__sub > :first-child { opacity: 0; }
.chat.is-typing .chat__sub > :last-child { opacity: 1; color: var(--chat-blue); }
/* пометка «пример переписки» видна всегда */
.chat__tag {
  grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 8px 0 2px; padding: 2px 10px; border: 1px solid var(--chat-meta); border-radius: 999px;
  font-size: 13px; line-height: 18px; color: var(--chat-meta); white-space: nowrap;
}

.chat__list {
  display: grid; gap: 8px; padding: 14px 14px 12px;
  background: radial-gradient(circle at 1px 1px, rgba(127, 145, 164, .2) 1px, transparent 1.6px) 0 0 / 22px 22px;
}
.chat__row { position: relative; display: flex; }
.chat__row--u { justify-content: flex-end; }
.chat__msg {
  position: relative; max-width: 88%; padding: 8px 12px 7px; border-radius: 16px 16px 16px 0; background: var(--chat-k);
  color: var(--text); font-size: 15px; line-height: 21px; transform-origin: 0 100%;
  transition: opacity .3s, transform .5s var(--spring);
}
.chat__row--u .chat__msg { border-radius: 16px 16px 0 16px; background: var(--chat-u); transform-origin: 100% 100%; }
.chat__msg::after { content: ""; display: block; clear: both; }
/* хвостик пузыря */
@supports (clip-path: path("M0 0h1v1z")) {
  .chat__msg::before {
    content: ""; position: absolute; left: -8px; bottom: 0; width: 8px; height: 13px; background: inherit;
    clip-path: path("M8 0V13H0C4.5 12 7.5 7 8 0Z");
  }
  .chat__row--u .chat__msg::before { left: auto; right: -8px; clip-path: path("M0 0V13H8C3.5 12 .5 7 0 0Z"); }
}
.chat__time { float: right; margin: 5px 0 0 12px; font-size: 13px; line-height: 17px; color: var(--chat-meta); }
.chat__row--u .chat__time { color: var(--chat-u-meta); }
.chat__read { display: inline-block; width: 17px; height: 11px; margin-left: 3px; vertical-align: -1px; }

/* мини-график в сообщении: свечи, канал, уровень, вход, стоп и цель */
.chat__chart { display: block; width: 100%; height: auto; margin: 2px 0 8px; border-radius: 10px; background: var(--chat-bg); fill: none; }
.chat__ch { stroke: var(--chat-meta); stroke-width: 1; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease) .1s; }
.chat__ch + .chat__ch { transition-delay: .25s; }
.chat__level { stroke: var(--chat-meta); stroke-width: 1.2; stroke-dasharray: 2 4; transition: opacity .4s .7s; }
.chat__candles path { stroke-width: 1.2; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .25s, transform .4s var(--ease); transition-delay: calc(.25s + var(--i) * 45ms); }
.chat__candles .u { fill: var(--accent); stroke: var(--accent); }
.chat__candles .d { fill: var(--chat-bg); stroke: var(--chat-meta); }
.chat__stop { stroke: var(--chat-meta); stroke-width: 1.4; stroke-dasharray: 4 3; transition: opacity .3s 1.45s; }
.chat__goal { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; transition: opacity .3s 1.55s; }
.chat__dot { fill: var(--text); stroke: var(--chat-bg); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: opacity .2s 1.25s, transform .5s var(--spring) 1.25s; }
.chat__ring { stroke: var(--accent); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transition: opacity .3s 1.3s, transform .6s var(--ease) 1.3s; }

/* индикатор «печатает»: стоит на месте будущего сообщения, высоту окна не меняет */
.chat__typing {
  position: absolute; left: 0; top: 0; display: flex; gap: 5px; padding: 14px 14px; border-radius: 16px 16px 16px 0;
  background: var(--chat-k); opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--chat-meta); }
.chat__row.is-typing .chat__typing { opacity: 1; transform: none; }
.chat__row.is-typing .chat__typing i { animation: chat-dot 1s ease-in-out infinite; }
.chat__row.is-typing .chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__row.is-typing .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 30% { transform: translateY(-4px); opacity: .5; } 60% { transform: none; opacity: 1; } }

/* строка ввода: только вид, печатать в неё нельзя */
.chat__bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--chat-head); border-top: 1px solid var(--line); color: var(--chat-meta); font-size: 15px; line-height: 20px; }
.chat__bar span { flex: 1; }
.chat__bar .ic { width: 20px; height: 20px; }

/* ---- шаги ---- */
.work__steps { position: relative; }
.work__step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding-bottom: 28px; }
.work__step:last-child { padding-bottom: 0; }
.work__n {
  font-family: var(--display); font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--accent); transition: color .4s;
}
/* линия прогресса: дорожка и золотая заливка, которая растёт вниз */
.work__step:not(:last-child)::before, .work__step:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 42px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line);
}
.work__step:not(:last-child)::after { background: linear-gradient(var(--gold), var(--accent)); transform-origin: 50% 0; transition: transform .7s var(--ease); }
.work__step h3 { font-size: 22px; line-height: 28px; transition: color .4s; }
.work__step p { margin-top: 8px; color: var(--text-2); }
.work__step a { padding-block: 12px; color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--gold-line); }
@media (hover: hover) { .work__step a:hover { color: var(--accent); text-decoration-color: currentColor; } }
/* пока скрипт ведёт по шагам: будущие шаги приглушены (контраст текста остаётся выше 4.5:1), пройденные горят */
.work__steps.is-live .work__step:not(.is-done):not(.is-active) .work__n { color: var(--text-3); }
.work__steps.is-live .work__step:not(.is-done):not(.is-active) h3 { color: var(--text-2); }
.work__steps.is-live .work__step:not(.is-done)::after { transform: scaleY(0); }
.work__steps.is-live .work__step.is-active .work__body { animation: work-in .5s var(--ease); }
@keyframes work-in { from { transform: translateX(6px); } }

.work__academy { display: flex; gap: 14px; align-items: flex-start; max-width: 720px; margin-block: 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.work__academy .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }

/* ---- почему бесплатно: приподнятая панель с золотой кромкой и схемой ---- */
.work__free {
  display: grid; gap: 28px; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px);
  border: 1px solid var(--gold-line);
}
@supports (background: linear-gradient(red, red) padding-box) {
  .work__free {
    border-color: transparent;
    background: linear-gradient(var(--raised), var(--raised)) padding-box,
      linear-gradient(135deg, rgba(var(--fx), .85), rgba(var(--fx), .12) 38%, rgba(var(--fx), .1) 62%, rgba(var(--fx), .5)) border-box;
  }
}
.work__free::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at 0 0, rgba(var(--fx), .12), transparent 62%), radial-gradient(420px circle at 100% 100%, rgba(var(--fx), .07), transparent 60%);
}
.work__free > * { position: relative; z-index: 1; }
.work__free h3 { font-size: 26px; line-height: 32px; }
.work__free-text p { margin-top: 14px; max-width: 46ch; }
.work__why { max-width: 40ch; padding-left: 16px; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 19px; line-height: 27px; font-weight: 700; color: var(--head); }

/* схема: в каждый узел приходит то, что он получает; пунктир слева замыкает круг от «Я» обратно к «Вы» */
.flow__row { position: relative; min-height: 44px; padding: 0 0 30px 82px; }
.flow__row:last-child { padding-bottom: 0; }
.flow dt { font-size: 14px; line-height: 20px; color: var(--text-2); }
.flow__who { margin-right: .15em; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--head); }
.flow dd { margin-top: 2px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text); text-wrap: wrap; }
/* узел */
.flow dt::before, .flow dt::after { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 44px; border-radius: 50%; }
.flow dt::before { border: 1px solid var(--gold); background: var(--w-node); box-shadow: 0 0 0 4px rgba(var(--fx), .08); }
.flow dt::after {
  background: var(--accent);
  -webkit-mask: var(--ico) center / 20px 20px no-repeat; mask: var(--ico) center / 20px 20px no-repeat;
}
.flow__row--you { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 10.200a3.600 3.600 0 1 0 0-7.200 3.600 3.600 0 0 0 0 7.200Zm-6.300 6.300a6.300 6.300 0 0 1 12.600 0 .700.700 0 0 1-.700.700H4.400a.700.700 0 0 1-.700-.700Z'/%3E%3C/svg%3E"); }
.flow__row--broker { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.300 2.800 6.200v1.600h14.400V6.200L10 2.300ZM4.300 9v5.500h1.800V9H4.300Zm4.800 0v5.500h1.800V9H9.100Zm4.800 0v5.500h1.800V9h-1.800ZM2.800 15.700v1.800h14.400v-1.800H2.800Z'/%3E%3C/svg%3E"); }
.flow__row--me dt::after { content: "К"; display: grid; place-items: center; background: none; -webkit-mask: none; mask: none; font-size: 17px; font-weight: 600; color: var(--accent); }
/* стрелка вниз к следующему узлу */
.flow__row:not(:last-child)::after {
  content: ""; position: absolute; left: 45px; top: 50px; bottom: 9px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--gold), var(--accent)); transform-origin: 50% 0;
}
.flow__row:not(:last-child) dd::after {
  content: ""; position: absolute; left: 41px; bottom: 3px; border: 5px solid transparent; border-bottom-width: 0; border-top: 7px solid var(--accent);
}
/* обратный путь слева: от «Я» вверх к «Вы» */
.flow__row::before { content: ""; position: absolute; left: 2px; width: 22px; border: 0 dashed var(--gold); border-left-width: 1.5px; }
.flow__row--you::before { top: 22px; bottom: 0; border-top-width: 1.5px; border-top-left-radius: 16px; }
.flow__row--broker::before { top: 0; bottom: 0; }
.flow__row--me::before { top: 0; height: 22px; border-bottom-width: 1.5px; border-bottom-left-radius: 16px; }
.flow__row--you dd::before {
  content: ""; position: absolute; left: 16px; top: 17px; border: 5px solid transparent; border-right-width: 0; border-left: 7px solid var(--accent);
}

@media (hover: hover) {
  .flow dt::before { transition: box-shadow .3s; }
  .flow__row:hover dt::before { box-shadow: 0 0 0 6px rgba(var(--fx), .2); }
}

/* ---- с какой суммы начинать ---- */
.work__start { display: grid; gap: 28px; margin-top: 40px; }
.work__money > h3 { font-size: 22px; line-height: 28px; }
.work__money > p { max-width: 60ch; margin-top: 16px; }
.work__sums { display: grid; gap: 16px; }
.sum { display: grid; gap: 2px; }
.sum__l { font-size: 14px; line-height: 20px; color: var(--text-2); }
.sum__v { font-family: var(--display); font-size: clamp(24px, 6.9vw, 30px); line-height: 36px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: lining-nums; color: var(--accent); white-space: nowrap; }
.work__risk { padding-left: 16px; border-left: 2px solid var(--gold); color: var(--text); }
.work__cta { display: grid; gap: 10px; justify-items: center; align-content: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.work__cta p { font-size: 14px; line-height: 20px; color: var(--text-2); }

@media (min-width: 900px) {
  .work__stage { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .work__window::before { inset: -14% -10%; }
  .chat { border-radius: 22px; }
  .chat__head { grid-template-columns: auto auto 1fr auto; padding: 12px 16px; }
  .chat__tag { grid-column: 4; grid-row: 1 / 3; align-self: center; margin: 0; }
  .chat__list { padding: 18px 18px 14px; gap: 10px; }
  .chat__msg { max-width: 80%; }
  .work__step { grid-template-columns: 68px minmax(0, 1fr); padding-bottom: 34px; }
  .work__n { font-size: 34px; line-height: 36px; }
  .work__step:not(:last-child)::before, .work__step:not(:last-child)::after { left: 19px; top: 48px; }
  .work__step h3 { font-size: 24px; line-height: 30px; margin-top: 2px; }
  .work__academy { margin-block: 56px; }
  .work__free { grid-template: "text flow" auto "why flow" 1fr / minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; row-gap: 24px; padding: 40px; }
  .work__free h3 { font-size: 32px; line-height: 38px; }
  .work__free-text { grid-area: text; }
  .work__why { grid-area: why; align-self: start; font-size: 21px; line-height: 29px; }
  .flow { grid-area: flow; align-self: center; }
  .flow__row { padding: 0 0 38px 104px; }
  .flow dd { font-size: 18px; line-height: 26px; }
  .flow dt::before, .flow dt::after { left: 40px; }
  .flow__row:not(:last-child)::after { left: 61px; }
  .flow__row:not(:last-child) dd::after { left: 57px; }
  .flow__row::before { left: 8px; width: 32px; }
  .flow__row--you dd::before { left: 32px; }
  .work__start { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; margin-top: 56px; }
  .work__sums { grid-template-columns: auto auto; justify-content: start; column-gap: 48px; }
  .sum__l { white-space: nowrap; }
  .sum__v { font-size: 32px; line-height: 40px; }
  .work__cta { padding: 32px; }
}

/* ---- движение: только при включённом скрипте и без просьбы убрать движение ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .chat.is-armed .chat__row:not(.is-on) .chat__msg { opacity: 0; transform: translateY(10px) scale(.96); }
  .js .chat.is-armed .chat__row:not(.is-on) .chat__ch { stroke-dashoffset: 1; }
  .js .chat.is-armed .chat__row:not(.is-on) .chat__candles path { opacity: 0; transform: scaleY(.3); }
  .js .chat.is-armed .chat__row:not(.is-on) :is(.chat__level, .chat__stop, .chat__goal) { opacity: 0; }
  .js .chat.is-armed .chat__row:not(.is-on) .chat__dot { opacity: 0; transform: scale(0); }
  .js .chat.is-armed .chat__row:not(.is-on) .chat__ring { opacity: 0; transform: scale(.3); }
  .js .chat__row.is-on .chat__ring { animation: chat-ring 1.4s ease-out 1.9s 2; }
  @keyframes chat-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }

  /* схема рисуется по узлам: узел, текст, стрелка вниз, в конце обратный путь слева */
  .js .flow dt::before, .js .flow dt::after { transition: transform .55s var(--spring), opacity .3s; transition-delay: calc(var(--n) * .5s); }
  .js .flow dt, .js .flow dd { transition: opacity .45s; transition-delay: calc(var(--n) * .5s + .12s); }
  .js .flow__row::after { transition: transform .4s var(--ease); transition-delay: calc(var(--n) * .5s + .28s); }
  .js .flow__row::before { transition: clip-path .3s linear; }
  .js .flow__row--me::before { transition-delay: 1.55s; }
  .js .flow__row--broker::before { transition-delay: 1.85s; }
  .js .flow__row--you::before { transition-delay: 2.15s; }
  .js .flow__row--you dd::before { transition: opacity .25s 2.45s; }
  .flow__row--you { --n: 0; } .flow__row--broker { --n: 1; } .flow__row--me { --n: 2; }
  .js .flow:not(.is-in) dt::before, .js .flow:not(.is-in) dt::after { transform: scale(.4); opacity: 0; }
  .js .flow:not(.is-in) dt, .js .flow:not(.is-in) dd { opacity: 0; }
  .js .flow:not(.is-in) .flow__row::after { transform: scaleY(0); }
  .js .flow:not(.is-in) .flow__row::before { clip-path: inset(100% 0 0 0); }
  .js .flow.is-in .flow__row::before { clip-path: inset(-2px); }
  .js .flow:not(.is-in) .flow__row--you dd::before { opacity: 0; }
  /* круг замкнулся: узел «Вы» отзывается */
  .js .flow.is-in .flow__row--you dt::before { animation: flow-ping 1s ease-out 2.6s both; }
  @keyframes flow-ping { from { box-shadow: 0 0 0 0 rgba(var(--fx), .55); } to { box-shadow: 0 0 0 4px rgba(var(--fx), .08), 0 0 0 18px rgba(var(--fx), 0); } }
}

/* ==================== Блоки 9–11: ученики, вопросы, финал ==================== */
/* ---------- Блок 9. Результаты учеников ---------- */
.res__top { display: grid; gap: 24px; }
.res__group { margin-top: 20px; }

/* Цитата: крупный шрифт с засечками, золотые кавычки, место под фото. Пока это подписанная заглушка */
.res__quote {
  position: relative; overflow: hidden; padding: 28px 22px 22px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--fx), .14), transparent 58%), var(--panel);
}
.res__quote::after {
  content: "«"; position: absolute; right: 10px; top: -30px; pointer-events: none;
  font: 700 120px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(var(--fx), .24);
}
.res__quote blockquote { position: relative; font-family: var(--display); font-size: 21px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--head); text-wrap: balance; }
.res__q { color: var(--accent); }
.res__quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.res__ava { flex: none; width: 48px; height: 48px; padding: 0; border: 1px dashed var(--gold-line); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px rgba(var(--fx), .08); }
.res__src { min-height: 44px; font-weight: 400; color: var(--text-2); }

/* Вариант 1: карточки. На телефоне лента с прокруткой вбок, лента выходит к краям экрана */

/* Значок «увеличить» в углу карточки */

/* Нижняя строка: обещание показать переписку и кнопка */
.res__foot { position: relative; display: grid; gap: 20px; margin-top: 44px; padding-top: 28px; }
.res__foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--gold-line), rgba(var(--fx), .06) 70%, transparent); }
.res__ask { font-family: var(--display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--head); text-wrap: balance; }

@media (min-width: 900px) {
  .res__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .res__quote { padding: 36px 32px 28px; }
  .res__quote::after { right: 18px; top: -48px; font-size: 190px; -webkit-text-stroke-color: rgba(var(--fx), .3); }
  .res__quote blockquote { font-size: 24px; line-height: 34px; }
  .res__foot { grid-template-columns: 1fr auto; column-gap: 56px; align-items: center; margin-top: 72px; padding-top: 36px; }
  .res__ask { max-width: 560px; font-size: 24px; line-height: 32px; }
}

/* ---------- Блок 9, вариант 2: телефоны по орбите ----------
   Кольцо в настоящем 3D. Ближний телефон резкий и подсвечен, дальние темнее и мягче (глубина резкости),
   под кольцом лежит диск со шкалой, рамки отражаются в «полу». Углы и степень резкости ставит скрипт;
   без скрипта кольцо стоит на месте лицом первым телефоном. */
.orbit { --w: 150px; --rad: 196px; position: relative; }
.orbit__stage {
  position: relative; display: grid; place-items: center; height: 452px; margin-inline: calc(-1 * var(--pad)); padding-bottom: 46px; overflow: hidden;
  perspective: 1000px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.orbit__stage.is-drag { cursor: grabbing; }
.orbit__glow {
  position: absolute; left: 50%; top: 44%; width: min(94%, 760px); aspect-ratio: 1.45; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--fx), .26), rgba(var(--fx), .07) 56%, transparent 76%);
}
.orbit__ring {
  position: relative; width: var(--w); aspect-ratio: 9 / 19; transform-style: preserve-3d;
  /* кольцо отодвинуто назад на свой радиус: ближний телефон в натуральную величину */
  transform: translateZ(calc(var(--rad) * -1)) rotateX(-7deg);
}
.orbit__item {
  position: absolute; inset: 0; will-change: transform;
  /* телефон стоит на кольце и повёрнут к зрителю; на боках кольца скрипт слегка разворачивает его ребром (--ry) */
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--rad)) rotateY(calc(var(--i) * -360deg / var(--n)));
}
/* свет вокруг ближнего телефона: яркость ставит скрипт */
.orbit__halo {
  position: absolute; inset: -16% -34%; border-radius: 50%; pointer-events: none; opacity: 0; will-change: opacity;
  background: radial-gradient(closest-side, rgba(var(--fx), .4), rgba(var(--fx), .1) 55%, transparent 74%);
}
.orbit__item:first-child .orbit__halo { opacity: 1; }
.orbit__btn { position: relative; height: 100%; cursor: inherit; border-radius: 30px; }
.orbit__item.is-front .orbit__btn { cursor: zoom-in; }

/* Рамка телефона: тёмный корпус, золотая кромка, стекло с бликом, кнопки на гранях */
.phone {
  position: relative; display: block; width: 100%; height: 100%; padding: 6px; border: 1.5px solid transparent; border-radius: 30px;
  background:
    linear-gradient(150deg, #2b2618, #0c0c0c 28%, #050505 62%, #221c10) padding-box,
    linear-gradient(140deg, #F3DB9A, #7A5F27 26%, #C9A84C 52%, #5E4A1F 74%, #E9CB7C) border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .85), inset 0 1px 0 2px rgba(255, 255, 255, .1);
  -webkit-box-reflect: below 8px linear-gradient(transparent 58%, rgba(0, 0, 0, .26));
  will-change: filter;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(#E9CB7C, #7A5F27); }
.phone::before { left: -4px; top: 21%; height: 7%; box-shadow: 0 calc(var(--w) * .2) 0 #a8893c; }
.phone::after { right: -4px; top: 27%; height: 12%; }
.phone__screen {
  width: 100%; height: 100%; padding: 30px 10px 10px; border: 0; border-radius: 23px; background: var(--panel);
  font-size: 13px; line-height: 18px; color: var(--text-2); transition: color .3s;
}
.phone__island { position: absolute; left: 50%; top: 14px; z-index: 1; width: 30%; height: 12px; border-radius: 999px; background: #000; transform: translateX(-50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* стекло: блик едет по экрану, пока телефон идёт по кольцу, дальние телефоны темнеют. Положение и яркость ставит скрипт */
.phone__glare { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; pointer-events: none; }
.phone__shine {
  position: absolute; inset: -10% -70%; will-change: transform; transform: translateX(12%);
  background: linear-gradient(104deg, transparent 41%, rgba(255, 255, 255, .16) 47%, rgba(255, 255, 255, .04) 52%, transparent 58%);
}
.phone__dim { position: absolute; inset: 0; background: #050505; opacity: 0; will-change: opacity; }
.orbit__item:not(:first-child) .phone__dim { opacity: .4; }
.js .orbit__item:not(.is-front) .phone__screen { color: transparent; }

/* диск под кольцом: свет и шкала, крутится вместе с телефонами */
.orbit__floor {
  position: absolute; left: 50%; top: 100%; width: calc(var(--rad) * 2 + var(--w) * 1.5); aspect-ratio: 1; margin-top: 16px; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%) rotateX(90deg);
  background:
    radial-gradient(closest-side, transparent 66.5%, rgba(var(--fx), .5) 67% 67.6%, transparent 68.1%),
    radial-gradient(closest-side, transparent 91%, rgba(var(--fx), .3) 91.4% 91.9%, transparent 92.4%),
    radial-gradient(closest-side, rgba(var(--fx), .22), rgba(var(--fx), .07) 58%, transparent 96%);
}
.orbit__floor::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(var(--fx), .7) 0 .45deg, transparent .45deg 6deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 70.5%, #000 71% 76%, transparent 76.5%); mask-image: radial-gradient(closest-side, transparent 70.5%, #000 71% 76%, transparent 76.5%);
}

/* строка под сценой: стрелки, номер и название ближнего скриншота */
.orbit__nav { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; max-width: 460px; margin: 6px auto 0; }
.orbit__label { display: grid; justify-items: center; gap: 2px; min-width: 0; text-align: center; }
.orbit__count { font-family: var(--display); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.orbit__name { font-size: 16px; line-height: 24px; color: var(--text); transition: opacity .25s, transform .35s var(--ease); }
.orbit__name.is-out { opacity: 0; transform: translateY(6px); }
.orbit__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--outline); border-radius: 50%; background: none; color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s, background-color .2s, color .2s, transform .5s var(--spring);
}
.orbit__arrow:active { transform: scale(.92); transition-duration: .2s, .2s, .2s, .12s; }
.orbit__arrow:focus-visible { border-radius: 50%; }
.orbit__arrow .ic { width: 18px; height: 18px; }
.orbit__arrow--next .ic { transform: scaleX(-1); }
@media (hover: hover) { .orbit__arrow:hover { border-color: var(--gold-line); background: var(--hover); color: var(--accent); } }
@media (min-width: 600px) {
  .orbit { --w: 190px; --rad: 300px; }
  .orbit__stage { height: 560px; perspective: 1300px; }
}
@media (min-width: 900px) {
  .orbit { --w: 226px; --rad: 410px; }
  .orbit__stage { height: 616px; margin-inline: 0; padding-bottom: 72px; perspective: 1700px; }
  .orbit__btn { border-radius: 40px; }
  .phone { padding: 8px; border-radius: 40px; }
  .phone__screen { padding-top: 40px; border-radius: 31px; font-size: 14px; line-height: 20px; }
  .phone__island { top: 18px; height: 17px; }
  .phone__glare { border-radius: 38px; }
  .orbit__name { font-size: 18px; line-height: 26px; }
}

/* ---------- Блок 10. Вопросы ---------- */
.faq__side { margin-bottom: 20px; }
.faq__meta { display: none; }
.js .faq__meta { display: block; }
/* счётчик: номер открытого вопроса из десяти. Цифры лежат в атрибуте, их ставит скрипт */
.faq__count { margin-top: 10px; font-family: var(--display); font-weight: 700; color: var(--accent); }
.faq__count::before { content: attr(data-n); font-size: 20px; }
.faq__count::after { content: " / 10"; font-size: 15px; color: var(--text-2); }
.faq__rail { display: none; }

.faq { counter-reset: faq; }
.faq details { position: relative; margin-inline: -12px; padding-inline: 12px; border-top: 1px solid var(--line); counter-increment: faq; transition: background-color .35s; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px; background: linear-gradient(var(--gold), rgba(var(--fx), 0)); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s var(--ease); }
.faq details[open] { background: linear-gradient(90deg, rgba(var(--fx), .1), rgba(var(--fx), .02) 62%, transparent); }
.faq details[open]::before { transform: none; }
.faq summary {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px; align-items: center; column-gap: 8px; min-height: 68px; padding-block: 14px;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq, decimal-leading-zero); align-self: start; padding-top: 5px; font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.faq__q { font-family: var(--display); font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--head); text-wrap: balance; transition: color .2s; }
.faq__ic { justify-self: end; width: 36px; height: 36px; padding: 10px; border: 1px solid var(--outline); border-radius: 50%; color: var(--text-2); transition: transform .45s var(--ease), color .2s, border-color .2s, background-color .2s; }
.faq [open] .faq__ic { transform: rotate(135deg); color: var(--accent); border-color: var(--gold-line); background: rgba(var(--fx), .1); }
.faq__a { max-width: 62ch; padding: 0 44px 22px 38px; color: var(--text-2); }
.faq [open] .faq__q { color: var(--accent); }
@media (hover: hover) { .faq summary:hover .faq__ic { color: var(--accent); border-color: var(--gold-line); } }
@media (min-width: 900px) {
  .faq__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); column-gap: 56px; align-items: start; }
  .faq__side { position: sticky; top: calc(var(--header-h) + 28px); margin: 14px 0 0; }
  .faq__count { margin-top: 28px; line-height: 1; }
  /* крупная контурная цифра открытого вопроса */
  .faq__count::before { font-size: 132px; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
  .faq__count::after { font-size: 20px; margin-left: 6px; }
  .faq__rail { display: flex; gap: 6px; margin-top: 22px; }
  .faq__rail i { width: 22px; height: 2px; border-radius: 2px; background: var(--outline); transition: background-color .3s, transform .5s var(--spring); transform-origin: 0 50%; }
  .faq__rail i.is-on { background: var(--gold); transform: scaleY(2.5); }
  .faq details { margin-inline: -20px; padding-inline: 20px; }
  .faq summary { grid-template-columns: 40px minmax(0, 1fr) 40px; min-height: 76px; padding-block: 18px; }
  .faq summary::before { padding-top: 6px; font-size: 15px; }
  .faq__q { font-size: 21px; line-height: 30px; }
  .faq__ic { width: 40px; height: 40px; padding: 12px; }
  .faq__a { padding: 0 56px 26px 48px; }
}
/* Плавное открытие там, где браузер умеет считать высоту auto; иначе вопрос открывается сразу, ответ мягко проявляется */
@media (prefers-reduced-motion: no-preference) {
  /* ответ мягко проявляется, когда вопрос открыл человек (класс ставит скрипт) */
  .faq .is-new[open] .faq__a { animation: faq-in .5s var(--ease) both; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
}
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow-y: clip;
      transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Блок 11. Финальный призыв ----------
   Последний экран страницы: свет сверху, по бокам тихий золотой график на холсте, по центру окно сообщения. */
.final { position: relative; isolation: isolate; overflow: hidden; padding-block: 72px 48px; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--gold-line) 50%, transparent) 50% 0 / min(100%, 900px) 1px no-repeat,
    radial-gradient(70% 58% at 50% 0%, rgba(var(--fx), .2), rgba(var(--fx), .05) 55%, transparent 78%);
}
.final__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 62%, #000 96%); mask-image: linear-gradient(to bottom, transparent 62%, #000 96%); }
.final__title { font-size: clamp(42px, 18px + 6.4vw, 92px); line-height: 1.02; letter-spacing: -.03em; text-align: center; }
.final__plus { display: inline-block; filter: drop-shadow(0 0 22px rgba(var(--fx), .5)); }

/* окно сообщения */

/* Поддельный курсор после «+», пока в поле не нажали */

/* подсказки */

/* подсказка, летящая в поле: двойник на время перелёта */

.final__name { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.final__name b { color: var(--text); font-weight: 600; }
.final__copy {
  min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; cursor: pointer;
}
@media (hover: hover) {
  .final__copy:hover { text-decoration-color: currentColor; }
}
@media (min-width: 900px) {
  .final { padding-block: 120px 72px; }
  .final__bg { -webkit-mask-image: radial-gradient(ellipse 44% 64% at 50% 46%, transparent 62%, #000 100%); mask-image: radial-gradient(ellipse 44% 64% at 50% 46%, transparent 62%, #000 100%); }
}

/* ---------- Движение блоков 9–11 ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes final-blink { 50% { opacity: 0; } }
  /* по кнопке раз в несколько секунд проходит блик, пока финальный блок на экране */
  
  @keyframes final-sheen { 0%, 62% { background-position: 130% 0, 0 0; } 100% { background-position: -70% 0, 0 0; } }
  @keyframes final-pulse { 35% { transform: scale(1.045); box-shadow: 0 0 0 8px rgba(var(--fx), .22); } }
}

/* ==================== Правки команды от 23.11 ====================
   Окно «Как написать мне», блок видео с пояснением, соцсети в фактах, коллаж в истории,
   четыре переписки по шагам, Академия, финальный блок. */

/* ---------- Окно «Как написать мне»: слева Telegram, справа ВКонтакте ---------- */
.guide {
  width: min(100% - 24px, 900px); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100svh - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--text); overflow: auto;
}
.guide::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.guide__box { position: relative; padding: 28px 16px 18px; border: 1px solid var(--gold-line); border-radius: 24px; background: var(--panel); }
.guide__close { position: absolute; right: 10px; top: 10px; }
.guide__title { padding-right: 48px; font-size: 28px; line-height: 1.15; }
.guide__lead { margin-top: 8px; color: var(--text-2); }
.guide__cols { display: grid; gap: 14px; margin-top: 20px; }
.guide__col { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.guide__name { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 28px; }
.guide__name .ic { width: 22px; height: 22px; color: var(--accent); }
.guide__steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: g; color: var(--text-2); font-size: 15px; line-height: 22px; }
.guide__steps li { position: relative; padding-left: 30px; counter-increment: g; }
.guide__steps li::before {
  content: counter(g); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border: 1px solid var(--gold-line); border-radius: 50%;
  color: var(--accent); font-size: 12px; line-height: 18px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
.guide__col .btn { margin-top: auto; }
.guide__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--text-2); }
@media (min-width: 700px) {
  .guide__cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .guide__box { padding: 36px 32px 28px; }
  .guide__title { font-size: 36px; }
  .guide__col { padding: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide[open] .guide__box { animation: guide-in .45s var(--ease); }
  @keyframes guide-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
}

/* ---------- Видео: заголовок и пояснение над плеером ---------- */
.vid { padding-top: calc(var(--gap-block) / 2); }
.vid__head { margin-bottom: 24px; }
.vid__note { max-width: 44em; margin-top: 10px; font-size: 15px; line-height: 23px; color: var(--text-2); }
@media (min-width: 900px) { .vid__head { margin-bottom: 40px; } }

/* ---------- Факты: карточка «Веду публичную жизнь» с соцсетями ---------- */
.me__card--soc { gap: 16px; padding: 22px 20px 18px; }
.soc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.soc__a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid var(--outline); border-radius: 12px;
  background: var(--hover); color: var(--text); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.soc__a .ic { width: 20px; height: 20px; color: var(--accent); }
.soc__note { margin-top: auto; font-size: 13px; line-height: 18px; color: var(--text-2); }
@media (hover: hover) { .soc__a:hover { border-color: var(--gold-line); color: var(--accent); } }

/* ---------- История: коллаж «тогда и сейчас» ----------
   Слева сверху старые фото (армия, молодой Кирилл), дальше нынешние. Любое фото открывается крупно. */
.collage {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 150fr 190fr 190fr 150fr;
  grid-template-areas: "a a c c" "b e d d" "f g d d" "h i j j"; gap: 6px; aspect-ratio: 560 / 704; margin: 0 0 40px; padding: 0; list-style: none;
}
.collage__item { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: var(--panel); }
.collage__item--a { grid-area: a; } .collage__item--b { grid-area: b; } .collage__item--c { grid-area: c; } .collage__item--d { grid-area: d; } .collage__item--e { grid-area: e; }
.collage__item--f { grid-area: f; } .collage__item--g { grid-area: g; } .collage__item--h { grid-area: h; } .collage__item--i { grid-area: i; } .collage__item--j { grid-area: j; }
.collage__btn { position: absolute; inset: 0; width: 100%; height: 100%; }
.collage__btn:focus-visible { outline-offset: -4px; }
.collage .collage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); transition: transform 1s var(--ease), filter .5s; }
.collage__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gold-line); pointer-events: none; }
/* старые фото чуть приглушены, чтобы читались как архив */
.collage :is(.collage__item--a, .collage__item--b, .collage__item--c, .collage__item--e) .collage__img { filter: saturate(.7) sepia(.14); }
.collage__tag {
  position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: rgba(10, 10, 10, .78);
  color: #F0CB6C; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; pointer-events: none;
}
.collage__tag--old { color: #E8E4DF; }
@media (hover: hover) { .collage .collage__item:hover .collage__img { transform: scale(1.05); filter: none; } }
@media (min-width: 900px) { .collage { gap: 8px; margin-bottom: 0; } .collage__tag { left: 10px; top: 10px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .collage[data-inview] .collage__item { clip-path: inset(100% 0 0 0 round 12px); transition: clip-path .8s var(--ease) calc(var(--i, 0) * 60ms); }
  .js .collage.is-in .collage__item { clip-path: inset(0 0 0 0 round 12px); }
}

/* ---------- Как проходит работа: четыре переписки, переключатель по шагам ---------- */
.chat__tabs { display: none; }
.js .chat.is-tabs .chat__tabs { display: flex; gap: 4px; padding: 6px 8px; background: var(--chat-head); border-bottom: 1px solid var(--line); }
.chat__tab {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 2px 4px;
  border: 0; border-radius: 10px; background: none; color: var(--chat-meta); font-size: 13px; line-height: 17px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s;
}
.chat__tab .num { font-size: 13px; line-height: 16px; font-weight: 500; }
.chat__tab.is-cur { background: var(--chat-chip); color: var(--text); }
.chat__tab.is-cur .num { color: var(--chat-blue); }
.chat__tab:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .chat__tab:hover { color: var(--text); } }
.chat__stack { display: grid; background: var(--chat-bg); }
.chat__day { display: flex; justify-content: center; margin-bottom: 2px; }
.chat__day span { padding: 2px 10px; border-radius: 999px; background: var(--chat-chip); font-size: 13px; line-height: 18px; color: var(--text); }
.js .chat.is-tabs .chat__list { grid-area: 1 / 1; align-content: end; transition: opacity .3s; }
.js .chat.is-tabs .chat__list:not(.is-cur) { visibility: hidden; opacity: 0; transition: none; }
.work__note { margin-top: 14px; text-align: center; text-wrap: balance; }
@media (min-width: 900px) {
  .chat__tab { flex-direction: row; gap: 8px; font-size: 14px; }
  .js .work__step[data-step] { cursor: pointer; }
}
@media (min-width: 900px) and (hover: hover) { .js .work__step[data-step]:hover h3 { color: var(--accent); } }

/* Академия: рамка под скриншот уроков и текст */
.work__academy.panel { display: grid; gap: 18px; max-width: none; margin-block: 40px; padding: 16px; border-radius: var(--r); }
.work__ac-ph { aspect-ratio: 16 / 10; gap: 10px; align-content: center; }
.work__ac-ph .ic { width: 28px; height: 28px; margin: 0; color: var(--accent); }
.work__ac-text h3 { font-size: 22px; line-height: 28px; }
.work__ac-text p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 900px) {
  .work__academy.panel { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 40px; align-items: center; margin-block: 56px; padding: 24px; }
  .work__ac-text h3 { font-size: 28px; line-height: 34px; }
  .work__ac-text p { max-width: 52ch; }
}
.is-launch .work__academy.panel:has(.ph) { grid-template-columns: minmax(0, 1fr); }

/* ---------- Ученики: подпись под орбитой ---------- */
.res__orbit { margin-top: 40px; }
.res__part { margin-top: 18px; text-align: center; color: var(--text-2); }
.res__part .link { color: var(--accent); text-decoration-color: var(--gold-line); }

/* ---------- Финальный блок: фото, текст и две инструкции ---------- */
.final2 { display: grid; gap: 28px; margin-top: 36px; }
.final2__photo { position: relative; justify-self: center; width: min(100%, 380px); margin: 0; }
.final2__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 32%; border-radius: 22px; box-shadow: 0 0 0 1px var(--gold-line), 0 40px 90px -46px rgba(var(--fx), .6); }
.final2__photo::before { content: ""; position: absolute; inset: 16px -12px -16px 12px; z-index: -1; border: 1px solid var(--gold-line); border-radius: 22px; }
.final2__text { display: grid; gap: 16px; align-content: center; color: var(--text-2); font-size: 17px; line-height: 27px; }
.final2__text p:first-child { color: var(--text); font-size: 18px; line-height: 28px; }
.final2__guide {
  margin-top: 40px; padding: 6px; border: 1px solid transparent; border-radius: 24px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(155deg, rgba(var(--fx), .85), rgba(var(--fx), .14) 34%, rgba(var(--fx), .1) 62%, rgba(var(--fx), .5)) border-box;
  box-shadow: 0 40px 90px -46px rgba(var(--fx), .6), 0 0 0 6px rgba(var(--fx), .04);
}
.final2__guide .guide__cols { margin-top: 0; gap: 6px; }
.final2__guide .guide__col { border-radius: 18px; }
@media (min-width: 900px) {
  .final2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; margin-top: 64px; }
  .final2__photo { justify-self: end; }
  .final2__text { font-size: 18px; line-height: 29px; }
  .final2__text p:first-child { font-size: 21px; line-height: 32px; }
  .final2__guide { margin-top: 64px; padding: 10px; }
  .final2__guide .guide__cols { gap: 10px; }
  .final2__guide .guide__col { padding: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .final2__photo[data-inview] img { clip-path: inset(100% 0 0 0 round 22px); transition: clip-path 1s var(--ease); }
  .js .final2__photo.is-in img { clip-path: inset(0 0 0 0 round 22px); }
  .js .final2__photo[data-inview]::before { opacity: 0; transition: opacity .8s .5s; }
  .js .final2__photo.is-in::before { opacity: 1; }
}

/* ==================== Лёгкий режим для телефонов ====================
   На телефоне шапка и закреплённая кнопка без размытия фона (оно дорого стоит при прокрутке),
   а появления короче: одновременно движется меньше элементов. */
@media (max-width: 899.98px) {
  .header::before, .stick::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .header.is-scrolled::before { opacity: .97; }
}
@media (max-width: 899.98px) and (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition-duration: .4s, .45s; transition-delay: calc(var(--i, 0) * 30ms); }
}
