/* ==========================================================================
   Дизайн-система лендинга MESA. Светлая тема, сначала под телефон.
   Стиль: светло-серый фон, почти белые карточки с большими скруглениями,
   чёрный текст и иконки, сочный лайм как единственный яркий акцент,
   шрифт Geist. Первый экран: текст, наклонённый iPhone на фоне огромного
   бледного «MESA», под ним лаймовая кнопка. С 1024px две колонки.
   Все значения взяты из навыка landing-page-design: шкала шрифтов,
   шкала отступов, радиусы Tailwind.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---------- Цвета ---------- */
  /* Светлая тема по референсу: светло-серый фон, почти белые карточки,
     чёрный для текста и иконок, сочный лайм как единственный яркий акцент */

  /* Фоны */
  --bg: #E4E4E4;
  --surface-1: #F2F2F2;
  --surface-2: #EAEAEA;
  --surface-3: #DCDCDC;
  --card: #FFFFFF;
  --ink: #0A0A0A;               /* текст, иконки, рамка телефона */

  /* Текст */
  --text: #0A0A0A;
  --text-2: #5E5E5E;            /* второстепенный текст */
  --text-3: #858585;            /* подписи, мелкий шрифт */
  --text-on-ink: #FFFFFF;
  --tagline-muted: 0.25;        /* приглушённые слова в «бегущем» слогане */

  /* Линии и фокус */
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.14);
  --focus-ring: #0A0A0A;

  /* Лайм: кнопки, плашки, свечение */
  --lime: #C7F33C;
  --lime-pale: #E1F2AE;
  --lime-hover: #B8E62A;
  --lime-glow: rgba(199, 243, 60, 0.6);
  --lime-dark: #4D7C0F;         /* лаймово-зелёный текст на белом */

  /* Совместимость со старыми названиями */
  --brand: #0A0A0A;
  --brand-light: #0A0A0A;
  --brand-glow: rgba(199, 243, 60, 0.55);
  --telegram: #2AABEE;
  --telegram-name: #0A0A0A;

  /* Смысловые цвета */
  --positive: #22C55E;          /* живая точка */
  --positive-text: #4D7C0F;
  --target-line: #8DB600;
  --negative: #EF6B6B;
  --pending: #F5A524;

  /* Пропуск на экране 7 */
  --pass-bg: #121212;
  --pass-bg-2: #050505;
  --pass-muted: #8C8C8C;
  --pass-line: rgba(255, 255, 255, 0.14);
  --pass-chip: rgba(199, 243, 60, 0.14);
  --slot: #1C1C1C;
  --slot-gap: #000000;
  --led-off: #3D3D3D;

  /* Графики в сигналах */
  --chart-line: #0A0A0A;
  --hatch: rgba(10, 10, 10, 0.22);

  /* Кнопки */
  --btn-primary-bg: #0A0A0A;     /* чёрная кнопка: самый сильный контраст на сером */
  --btn-primary-fg: #FFFFFF;
  --btn-primary-hover: #262626;
  --btn-primary-shadow: 0 12px 28px rgba(10, 10, 10, 0.28);
  --btn-secondary-bg: #F2F2F2;
  --btn-secondary-hover: #EAEAEA;

  /* Сцена с телефоном */
  --stage-word: #D6D6D6;        /* огромное бледное «MESA» */
  --stage-shadow: rgba(84, 98, 140, 0.45);

  /* Стекло и тени */
  --glass: rgba(255, 255, 255, 0.8);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-float: 0 16px 40px rgba(20, 24, 40, 0.12), 0 2px 8px rgba(20, 24, 40, 0.06);
  --shadow-phone: 0 32px 64px rgba(40, 48, 80, 0.22);

  /* iPhone */
  --phone-rim: #2B2B2B;
  --phone-edge: rgba(255, 255, 255, 0.08);
  --phone-home: #0A0A0A;

  /* Меню */
  --nav-surface: rgba(242, 242, 242, 0.8);
  --menu-surface: rgba(228, 228, 228, 0.94);

  /* Экран телефона: Telegram в светлой теме */
  --chat-bg: #EFEFEF;
  --chat-bubble: #FFFFFF;
  --chat-pill: rgba(10, 10, 10, 0.07);

  /* Градиент заголовка: слева направо, чёрный → серый */
  --hero-grad-from: #0A0A0A;
  --hero-grad-to: #6B6B6B;

  /* ---------- Шрифт ---------- */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------- Отступы (только эти значения) ---------- */
  --space-0: 0;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* ---------- Радиусы (шкала Tailwind) ---------- */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-4xl: 32px;
  --radius-full: 9999px;

  /* ---------- Движение ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-move: 500ms;     /* перемещения и смена положения */
  --dur-fade: 300ms;     /* смена цвета и прозрачности при наведении */
  --dur-reveal: 700ms;   /* появление секций при прокрутке */

  /* ---------- Раскладка ---------- */
  --container: 1200px;
  --gutter: var(--space-200);
  --section-pad: var(--space-500);
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--space-400);
    --section-pad: var(--space-700);
  }
}

/* ==========================================================================
   База
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-900);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Полоса под системной панелью телефона */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

em, i {
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li, dd, blockquote {
  text-wrap: pretty;
}

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

::selection {
  background: var(--lime);
  color: var(--ink);
}

/* Ссылка «Перейти к содержимому» для клавиатуры */
.skip-link {
  position: fixed;
  top: calc(var(--space-200) + env(safe-area-inset-top, 0px));
  left: max(var(--space-200), env(safe-area-inset-left, 0px));
  z-index: 100;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-full);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  transform: translateY(calc(-100% - var(--space-600)));
  transition: transform var(--dur-move) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* ==========================================================================
   Раскладка
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section {
  padding-block: var(--section-pad);
}

/* ==========================================================================
   Текстовые стили (названия из навыка, в kebab-case)
   ========================================================================== */

.heading-1 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.04em; }
.heading-2 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.heading-3 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; }
.heading-4 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }

@media (min-width: 640px) {
  .heading-2 { font-size: 48px; line-height: 48px; }
  .heading-3 { font-size: 36px; line-height: 40px; }
  .heading-4 { font-size: 30px; line-height: 36px; }
}

@media (min-width: 1024px) {
  .heading-1 { font-size: 72px; line-height: 72px; }
}

.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; }

.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.body-7 { font-size: 18px; line-height: 28px; font-weight: 400; }  /* подзаголовок первого экрана */

.button-lg  { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md  { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm  { font-size: 14px; line-height: 20px; font-weight: 600; }
.button-xsm { font-size: 12px; line-height: 16px; font-weight: 600; }

.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.is-positive { color: var(--positive-text); }

/* Градиент на заголовке первого экрана: слева направо, чёрный → серый */
.text-gradient {
  background: linear-gradient(90deg, var(--hero-grad-from), var(--hero-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition:
    background-color var(--dur-fade) var(--ease),
    color var(--dur-fade) var(--ease),
    transform var(--dur-move) var(--ease);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  border-radius: var(--radius-full);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--btn-primary-shadow);
}

.btn--primary:hover {
  background: var(--btn-primary-hover);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--btn-secondary-hover);
}

/* Кнопка «Получить доступ»: чёрная капсула, справа лаймовый кружок
   с бумажным самолётиком. Время от времени и при наведении самолётик
   улетает за край кружка и возвращается с другой стороны. */
.btn--send {
  justify-content: space-between;
  gap: var(--space-100);
  padding: var(--space-75) var(--space-75) var(--space-75) var(--space-300);
}

.btn__label {
  flex: 1;
  text-align: center;
}

.btn__plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
}

.btn .btn__plane svg {
  width: 20px;
  height: 20px;
  animation: plane-idle 5s var(--ease) 1.5s infinite;
}

.btn--send:hover .btn__plane svg {
  animation: plane-fly 800ms var(--ease);
}

/* Улёт: разгоняется к краю. Возврат: мягко тормозит на месте */
@keyframes plane-fly {
  0% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  40% { transform: translate(24px, -24px); opacity: 0; }
  41% { transform: translate(-24px, 24px); opacity: 0; animation-timing-function: var(--ease); }
  100% { transform: none; opacity: 1; }
}

/* Кнопки «Получить доступ» внутри блоков мягко «дышат»:
   медленно и чуть-чуть увеличиваются, вокруг проявляется и тает
   тонкое кольцо их цвета. Кривая плавная в обе стороны, без рывков.
   При наведении пульс замирает, чтобы не мешать нажатию. */
.btn[data-cta] {
  position: relative;
  isolation: isolate;
  --pulse-color: var(--btn-primary-bg);
  --pulse-curve: cubic-bezier(0.37, 0, 0.63, 1);
  animation: cta-breathe 3600ms var(--pulse-curve) 1200ms infinite;
}

.btn--lime[data-cta] {
  --pulse-color: var(--lime);
}

/* Кольцо на 8px шире кнопки, в начале сжато до её края */
.btn[data-cta]::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-75));
  z-index: -1;
  border-radius: inherit;
  border: 1.5px solid var(--pulse-color);
  opacity: 0;
  pointer-events: none;
  animation: cta-ring 3600ms var(--pulse-curve) 1200ms infinite;
}

.btn[data-cta]:hover,
.btn[data-cta]:active {
  animation: none;
}

@keyframes cta-breathe {
  0%, 100% { transform: none; }
  50% { transform: scale(1.015); }
}

@keyframes cta-ring {
  0% { opacity: 0; transform: scale(0.96, 0.8); }
  35% { opacity: 0.3; }
  100% { opacity: 0; transform: none; }
}

@keyframes plane-idle {
  0%, 72% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  80% { transform: translate(24px, -24px); opacity: 0; }
  81% { transform: translate(-24px, 24px); opacity: 0; animation-timing-function: var(--ease); }
  94%, 100% { transform: none; opacity: 1; }
}

/* ==========================================================================
   Навигация: компактная плавающая стеклянная панель
   ========================================================================== */

.nav {
  position: fixed;
  top: calc(var(--space-200) + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-400);
  width: max-content;
  max-width: calc(100% - 2 * var(--space-200));
  padding: var(--space-50);
  padding-left: var(--space-75);
  background: var(--nav-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(10, 48, 74, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transform: translateX(-50%);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  white-space: nowrap;
  border-radius: var(--radius-full);
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--lime);
}

.nav__mark svg {
  width: 16px;
  height: 16px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-50);
}

.nav__link {
  display: inline-flex;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-full);
  color: var(--text-2);
  transition:
    color var(--dur-fade) var(--ease),
    background-color var(--dur-fade) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--text);
  background: var(--surface-2);
}

/* Кнопка меню: две линии превращаются в крестик */
.nav__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  transition: background-color var(--dur-fade) var(--ease);
}

.nav__toggle:hover {
  background: var(--surface-3);
}

.nav__toggle-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  margin-top: -1px;
  border-radius: var(--radius-full);
  background: var(--text);
  transition: transform var(--dur-move) var(--ease);
}

.nav__toggle-line:nth-child(1) { transform: translateY(-3px); }
.nav__toggle-line:nth-child(2) { transform: translateY(3px); }

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) { transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* Мобильное меню: панель на всю высоту экрана */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-600);
  padding-top: calc(var(--space-900) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--space-400) + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--space-300), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-300), env(safe-area-inset-right, 0px));
  background: var(--menu-surface);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fade) var(--ease),
    visibility 0s var(--ease) var(--dur-fade);
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-fade) var(--ease);
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.menu__item {
  opacity: 0;
  transform: translateY(var(--space-300));
  transition:
    opacity var(--dur-move) var(--ease),
    transform var(--dur-move) var(--ease);
}

/* Пункты появляются по очереди: шаг 60 мс, вся цепочка не дольше 400 мс */
.menu.is-open .menu__item {
  opacity: 1;
  transform: none;
  transition-delay: min(calc(var(--i, 0) * 60ms), 400ms);
}

.menu__link {
  display: inline-flex;
  padding-block: var(--space-50);
  color: var(--text);
}

.menu__link[aria-current="true"] {
  color: var(--text-3);
}

@media (min-width: 900px) {
  .menu {
    display: none;
  }
}

body.is-locked {
  overflow: hidden;
}

/* ==========================================================================
   Появление блоков при прокрутке
   Работает только при включённом JavaScript, иначе всё видно сразу.
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--space-400));
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   ЭКРАН 1. Первый экран
   ========================================================================== */

.hero {
  padding-top: var(--space-300);
  padding-bottom: var(--space-300);
  overflow-x: clip;   /* тень телефона и большое «MESA» не дают прокрутки вбок */
}

/* На узких телефонах плашка над заголовком на ступень мельче (Caption 4),
   чтобы текст помещался в одну строку */
@media (max-width: 413px) {
  .hero__eyebrow {
    font-size: 12px;
    line-height: 16px;
    padding-block: var(--space-75);
  }
}

.hero__grid {
  display: grid;
  gap: var(--space-400);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-200);
  min-width: 0;
}

/* Плашка над заголовком */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-50) var(--space-100);
  white-space: nowrap;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--text-2);
}

/* Зелёная «живая» точка: сигналы приходят в реальном времени */
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--positive);
  animation: blink 1600ms var(--ease) infinite;
}

/* Точка мигает: гаснет и снова загорается */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Заголовок всегда в три строки: «Сигналы / лучших трейдеров / Казахстана».
   На телефоне Heading 3 (36px), чтобы «лучших трейдеров» помещалось в строку */
.hero__title {
  max-width: 680px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 48px;
    line-height: 48px;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 72px;
    line-height: 72px;
  }
}

/* Подчёркивание слова «лучших»: толстая лаймовая линия,
   аккуратно огибает хвостик буквы «у» */
.underline {
  text-decoration-line: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: auto;
}

/* В португальском у подчёркнутых слов много хвостиков (g, ç, j, p):
   линия идёт сплошной, под буквами, а не рвётся на куски */
:lang(pt) .underline {
  text-decoration-skip-ink: none;
}

/* Градиент на тексте заголовка: слова уходят из чёрного в серый */
.hero__title-text {
  background: linear-gradient(90deg, var(--hero-grad-from) 30%, var(--hero-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  max-width: 680px;
  text-wrap: balance;
}

/* Кнопка под анимацией */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-100);
  min-width: 0;
}

.hero__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
}

.hero__note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--positive-text);
}

@media (min-width: 640px) {
  .hero__actions {
    align-items: flex-start;
  }

  .hero__note {
    justify-content: flex-start;
  }
}

/* ---------- Сцена: свечной график, iPhone, стикер, итог дня ---------- */

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  min-width: 0;
}

.stage {
  --phone-w: 256px;
  --screen-h: 480px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: var(--space-800);
  padding-bottom: var(--space-700);
  isolation: isolate;
}

/* Зерно, как на плёнке */
/* Огромное бледное название бренда за телефоном */
.stage__word {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  color: var(--stage-word);
  font-size: 128px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.06em;
  white-space: nowrap;
  transform: translateX(-50%);
  user-select: none;
}

/* Мягкая синеватая тень под телефоном, как у монитора в референсе */
.stage__shadow {
  position: absolute;
  left: 50%;
  bottom: var(--space-300);
  z-index: -1;
  width: 320px;
  height: 64px;
  margin-left: -160px;
  border-radius: var(--radius-full);
  background: radial-gradient(closest-side, var(--stage-shadow), transparent);
  filter: blur(12px);
}

.stage__defs {
  position: absolute;
  color: var(--hatch);
}

/* Наклон телефона в пространстве */
.phone-tilt {
  transform: perspective(1400px) rotateY(-14deg) rotateX(6deg) rotate(-4deg);
  transform-style: preserve-3d;
}

/* iPhone: рамка 32, отступ 8 → экран 24 */
.phone {
  position: relative;
  width: var(--phone-w);
  flex: none;
  padding: var(--space-75);
  background: var(--ink);
  border-radius: var(--radius-4xl);
  box-shadow:
    inset 0 0 0 1px var(--phone-edge),
    0 0 0 2px var(--phone-rim),
    var(--shadow-phone);
}

.phone__side {
  position: absolute;
  width: 3px;
  border-radius: var(--radius-sm);
  background: var(--phone-rim);
}

.phone__side--action { left: -4px; top: 88px; height: 24px; }
.phone__side--vol-up { left: -4px; top: 128px; height: 40px; }
.phone__side--vol-down { left: -4px; top: 176px; height: 40px; }
.phone__side--power { right: -4px; top: 144px; height: 64px; }

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--screen-h);
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--chat-bg);
}

.phone__island {
  position: absolute;
  top: var(--space-75);
  left: 50%;
  z-index: 6;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: var(--radius-full);
  background: var(--ink);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-100) var(--space-300) var(--space-75);
  background: var(--card);
  color: var(--text);
}

.phone__status-icons {
  display: flex;
  align-items: center;
  gap: var(--space-50);
}

.phone__status-icons svg {
  width: auto;
  height: 10px;
}

/* Шапка канала Telegram */
.tg-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-50) var(--space-100) var(--space-75);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.tg-head__back {
  display: flex;
  align-items: center;
  gap: var(--space-25);
  color: var(--telegram-name);
}

.tg-head__back svg {
  width: 14px;
  height: 14px;
}

.tg-head__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.tg-head__avatar {
  display: inline-flex;
  justify-self: end;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 2px var(--card);
}

.tg-head__avatar svg {
  width: 28px;
  height: 28px;
}

/* Лента сообщений: прижата к низу, как в Telegram */
.chat {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-75);
}

.chat__list {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-75);
  will-change: transform;
  transition: opacity 400ms var(--ease);
}

.chat.is-resetting .chat__list {
  opacity: 0;
}

.chat__date {
  align-self: center;
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  background: var(--chat-pill);
  color: var(--text-2);
}

/* Сообщение с «хвостиком» снизу слева */
.msg {
  display: flex;
  flex-direction: column;
  gap: var(--space-50);
  width: 100%;
  padding: var(--space-75) var(--space-100);
  background: var(--chat-bubble);
  border-radius: var(--radius-2xl) var(--radius-2xl) var(--radius-2xl) var(--radius);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
  transform-origin: left bottom;
  transition:
    opacity var(--dur-move) var(--ease),
    transform 600ms var(--ease);
}

.msg.is-entering {
  opacity: 0;
  transform: translateY(var(--space-200)) scale(0.96);
}

.msg--text {
  width: auto;
  max-width: 88%;
}

.msg__author {
  display: flex;
  align-items: center;
  gap: var(--space-50);
  color: var(--telegram-name);
}

.msg__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: var(--radius-full);
  color: var(--text-on-ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  transform: scale(0.85);
}

.msg__avatar--brand { background: var(--ink); }
.msg__avatar--lime { background: var(--lime); color: var(--ink); }
.msg__avatar--ink { background: #8F8F8F; }
.msg__avatar--tg { background: var(--lime-pale); color: var(--ink); }

.msg__body {
  display: flex;
  align-items: center;
  gap: var(--space-50);
}

.msg__body > span,
.msg--text .msg__body {
  text-wrap: balance;
}

/* Сообщение «Стоп в безубыток» со значком щита */
.msg__shield {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--brand-light);
}

.msg__verified {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--ink);
}

.msg__pair {
  display: flex;
  align-items: center;
  gap: var(--space-75);
}

.badge {
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge--buy { background: var(--lime); color: var(--ink); }
.badge--sell { background: var(--ink); color: var(--text-on-ink); }

.msg__levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-50);
}

.msg__levels dt {
  display: flex;
  align-items: center;
  gap: var(--space-50);
}

.msg__levels dd {
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--radius-full);
}

.dot--entry { background: var(--text-3); }
.dot--target { background: var(--target-line); }
.dot--stop { background: var(--negative); }

.msg__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-75);
  font-variant-numeric: tabular-nums;
}

.msg__foot--end {
  justify-content: flex-end;
}

/* Статус сделки: «В работе» сменяется на «Закрыта +X%» */
.status {
  display: grid;
}

.status > * {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: opacity var(--dur-move) var(--ease);
}

.status__open {
  background: var(--surface-1);
  color: var(--text-2);
}

.status__open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--pending);
}

.status__done {
  background: var(--lime);
  color: var(--ink);
  opacity: 0;
}

.status__icon {
  width: 12px;
  height: 12px;
}

.msg.is-closed .status__open { opacity: 0; }
.msg.is-closed .status__done { opacity: 1; }

/* Мини-график. Шторка уезжает вправо: цена «идёт» к цели */
.chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__line {
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart__line--entry { stroke: var(--text-3); }
.chart__line--target { stroke: var(--target-line); }
.chart__line--stop { stroke: var(--negative); opacity: 0.7; }

.chart__area { fill: url(#hatch); }

.chart__price {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart__cover {
  fill: var(--chat-bubble);
  transform-box: fill-box;
  transform-origin: right center;
}

.msg.is-running .chart__cover,
.msg.is-closed .chart__cover {
  transform: scaleX(0);
}

.msg.is-running .chart__cover {
  transition: transform 3000ms cubic-bezier(0.45, 0, 0.25, 1);
}

.chart__end,
.chart__halo {
  fill: var(--lime);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity var(--dur-fade) var(--ease);
}

.msg.is-closed .chart__end { opacity: 1; fill: var(--ink); }

@keyframes halo {
  0% { transform: scale(0.6); opacity: 0.45; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Нижняя панель канала и полоска «домой» */
.tg-foot {
  padding: var(--space-100) 0 var(--space-300);
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  text-align: center;
}

.phone__home {
  position: absolute;
  bottom: var(--space-75);
  left: 50%;
  width: 88px;
  height: 4px;
  margin-left: -44px;
  border-radius: var(--radius-full);
  background: var(--phone-home);
}

/* Пуш-уведомление iOS. Радиус 16, отступ 8 → значок 8 */
.push {
  position: absolute;
  top: var(--space-500);
  left: var(--space-75);
  right: var(--space-75);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-75);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  transform: translateY(calc(-100% - var(--space-600)));
  transition:
    opacity var(--dur-move) var(--ease),
    transform 600ms var(--ease);
}

.push.is-shown {
  opacity: 1;
  transform: none;
}

.push__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--text-on-ink);
}

.push__icon svg {
  width: 18px;
  height: 18px;
  transform: translateX(-1px);
}

.push__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.push__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-75);
}

.push__body {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Стеклянная карточка «Итог дня» поверх телефона. Радиус 24, отступ 12 → значок 12 */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-100);
  padding: var(--space-100);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.float--win {
  left: var(--space-200);
  bottom: var(--space-300);
}

.float--win.is-bump {
  animation: bump 700ms var(--ease);
}

@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-full);
  color: var(--lime);
}

.float__icon svg {
  width: 24px;
  height: 24px;
}

.float__icon--ok { background: var(--ink); }

/* Круглая кнопка со стрелкой, как на карточках в референсе */
.float__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-left: var(--space-75);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--ink);
}

.float__arrow svg {
  width: 14px;
  height: 14px;
}

.float__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.float__value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Порядок появления сцены: телефон → стикер → итог дня */
.js .stage .phone,
.js .stage .float {
  opacity: 0;
}

.js .stage .phone { transform: translateY(var(--space-700)); }
.js .stage .float { transform: translateY(var(--space-200)) scale(0.96); }

.js .is-visible .stage .phone,
.js .is-visible .stage .float {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform 900ms var(--ease);
}

.js .is-visible .stage .phone { transition-delay: 150ms; }
.js .is-visible .stage .float { transition-delay: 700ms; }

@media (min-width: 640px) {
  .hero__visual {
    width: 100%;
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--space-600);
    padding-bottom: var(--space-500);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "copy visual"
      "actions visual";
    column-gap: var(--space-700);
    row-gap: var(--space-400);
  }

  .hero__copy { grid-area: copy; align-self: end; }
  .hero__actions { grid-area: actions; align-self: start; }

  .hero__visual {
    grid-area: visual;
    justify-self: end;
  }

  .stage {
    --phone-w: 280px;
    --screen-h: 540px;
    padding-top: var(--space-900);
  }

  .float--win {
    left: var(--space-400);
  }
}

/* ==========================================================================
   ЭКРАН 2. Преимущества: галерея карточек, листается вбок
   Карточка оживает (класс is-active), когда на неё перелистнули,
   и проигрывает анимацию заново при каждом возвращении.
   Переходы заданы только в активном состоянии, поэтому сброс мгновенный.
   ========================================================================== */

.section-title {
  font-weight: 400;
}

/* Перенос строки только на узких экранах */
.br-mobile {
  display: inline;
}

@media (min-width: 900px) {
  .br-mobile {
    display: none;
  }
}

/* Не разрывать «VIP-клуб» по дефису */
.nowrap {
  white-space: nowrap;
}

.benefits__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  margin-bottom: var(--space-300);
}

/* ---------- Галерея ---------- */
.gallery {
  position: relative;
}

/* Лента на всю ширину экрана; первая карточка выровнена по тексту,
   следующая выглядывает справа */
.gallery__viewport {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
}

/* Во время перетаскивания: «рука сжата», текст не выделяется.
   Доводку до карточки делает скрипт, встроенного «прилипания» нет:
   на iPhone оно спорит со свайпом и откатывает ленту */
.gallery.is-dragging .gallery__viewport {
  cursor: grabbing;
  user-select: none;
}

.gallery__viewport::-webkit-scrollbar {
  display: none;
}

.gallery__viewport:focus-visible {
  outline-offset: -2px;
  border-radius: var(--radius-4xl);
}

.gallery__track {
  display: flex;
  gap: var(--space-100);
  width: max-content;
  padding-inline: var(--edge);
}

/* Карточка: радиус 32, отступ 24 */
.bcard {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  width: min(calc(100vw - 2 * var(--gutter) - var(--space-400)), 400px);
  flex: none;
  padding: var(--space-300);
  border-radius: var(--radius-4xl);
  background: var(--surface-1);
  scroll-snap-align: start;
}

.bcard h3 {
  margin: 0;
}

.bcard__text {
  max-width: 320px;
  text-wrap: balance;
}

/* Крупная тонкая цифра */
.bcard__num {
  display: flex;
  align-items: flex-start;
  gap: var(--space-25);
  margin-top: var(--space-100);
  font-size: 60px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.bcard__num-side {
  font-size: 30px;
  line-height: 36px;
  color: var(--text-3);
  letter-spacing: -0.02em;
}

.bcard__num-unit {
  align-self: flex-end;
  margin-left: var(--space-100);
  padding-bottom: var(--space-50);
  letter-spacing: 0;
}

/* Визуализация прижата к низу карточки */
.winrate,
.hours,
.feed,
.dm {
  margin-top: auto;
  padding-top: var(--space-300);
}

/* Полоска под лентой: точки и стрелки */
.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  margin-top: var(--space-200);
}

.gallery__dots {
  display: flex;
  align-items: center;
  gap: var(--space-50);
}

.gallery__dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  transition: background-color var(--dur-fade) var(--ease);
}

.gallery__dots span.is-current {
  width: 24px;
  background: var(--ink);
}

.gallery__arrows {
  display: flex;
  gap: var(--space-75);
}

.gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--ink);
  transition:
    background-color var(--dur-fade) var(--ease),
    opacity var(--dur-fade) var(--ease),
    transform var(--dur-move) var(--ease);
}

.gallery__arrow svg {
  width: 16px;
  height: 16px;
}

.gallery__arrow:hover {
  background: var(--card);
}

.gallery__arrow:active {
  transform: scale(0.96);
}

.gallery__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Подсказка: рука тянет ленту ---------- */
.gallery__hint {
  position: absolute;
  top: 45%;
  right: var(--space-600);
  z-index: 2;
  width: 56px;
  height: 56px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(10, 10, 10, 0.25));
}

.gallery__hint svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery__hand-fill { color: var(--card); }
.gallery__hand-line { color: var(--ink); }

.gallery.is-hinting .gallery__hint {
  animation: hint-hand 2600ms var(--ease) both;
}

.gallery.is-hinting .gallery__track {
  animation: hint-track 2600ms var(--ease) both;
}

/* Рука прижимается, тянет влево и отпускает. Два раза */
@keyframes hint-hand {
  0% { opacity: 0; transform: translateX(0) scale(1); }
  10% { opacity: 1; transform: translateX(0) scale(0.92); }
  40% { opacity: 1; transform: translateX(-72px) scale(0.92); }
  50% { opacity: 1; transform: translateX(-72px) scale(1); }
  55% { opacity: 1; transform: translateX(0) scale(1); }
  62% { opacity: 1; transform: translateX(0) scale(0.92); }
  88% { opacity: 1; transform: translateX(-72px) scale(0.92); }
  100% { opacity: 0; transform: translateX(-72px) scale(1); }
}

@keyframes hint-track {
  0%, 10% { transform: none; }
  40% { transform: translateX(-40px); }
  55% { transform: none; }
  62% { transform: none; }
  88% { transform: translateX(-40px); }
  100% { transform: none; }
}

/* ---------- Карточка 1: график проходимости ---------- */
.winrate__plot {
  position: relative;
}

.winrate__chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.winrate__area {
  fill: url(#hatch);
}

.winrate__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.winrate__ref {
  stroke: var(--target-line);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

/* Шторка под цвет карточки: уезжает вправо, и линия «рисуется» */
.winrate__cover {
  fill: var(--surface-1);
  transform-box: fill-box;
  transform-origin: right center;
}

.winrate__dot {
  fill: var(--surface-1);
  stroke: var(--ink);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

.winrate__dot--last {
  fill: var(--lime);
}

.winrate__ref-label {
  position: absolute;
  right: 0;
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-50%);
}

.winrate__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75) var(--space-200);
  margin-top: var(--space-100);
}

.winrate__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
}

.winrate__key {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
}

.winrate__key--line { background: var(--ink); }
.winrate__key--ref { background: var(--target-line); }

/* ---------- Карточка 2: активность по часам ---------- */
.hours__plot {
  position: relative;
  height: 128px;
  margin-top: var(--space-300);
}

.hours__chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hours__bar {
  fill: var(--surface-3);
  transform-box: fill-box;
  transform-origin: center bottom;
}

.hours__bar.is-now {
  fill: var(--ink);
}

/* Лаймовая плашка «сейчас» над столбиком текущего часа */
.hours__now {
  position: absolute;
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - var(--space-75)));
}

.hours__axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-75);
  font-variant-numeric: tabular-nums;
}

/* ---------- Карточка 3: общая лента сделок ---------- */
.flow__ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: var(--radius-full);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.flow__ava--ink { background: var(--ink); color: var(--text-on-ink); }
.flow__ava--lime { background: var(--lime); color: var(--ink); }
.flow__ava--gray { background: #8F8F8F; color: var(--text-on-ink); }
.flow__ava--pale { background: var(--lime-pale); color: var(--ink); }

.feed__head {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  margin-bottom: var(--space-100);
}

.feed__avatars {
  display: inline-flex;
}

.feed__avatars .flow__ava {
  box-shadow: 0 0 0 2px var(--surface-1);
}

.feed__avatars .flow__ava + .flow__ava {
  margin-left: calc(-1 * var(--space-75));
}

.feed__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
}

/* Строка ленты: радиус 16, внутри капсулы */
.feed__row {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-75) var(--space-100) var(--space-75) var(--space-75);
  border-radius: var(--radius-2xl);
  background: var(--card);
  font-variant-numeric: tabular-nums;
}

.feed__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
  margin-left: auto;
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.feed__status--win { background: var(--lime); color: var(--ink); }
.feed__status--open { background: var(--surface-1); color: var(--text-2); }
.feed__status--new { background: var(--ink); color: var(--text-on-ink); }

.feed__status--open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--pending);
}

/* ---------- Карточка 4: окно чата с личным трейдером ---------- */
/* Окно: радиус 24, отступ 12 → пузыри 12 */
.dm {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  padding: var(--space-100);
  border-radius: var(--radius-3xl);
  background: var(--card);
}

.dm__head {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  padding-bottom: var(--space-100);
  border-bottom: 1px solid var(--line);
}

.dm__ava svg {
  width: 32px;
  height: 32px;
}

.dm__who {
  display: flex;
  flex-direction: column;
}

.dm__online {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
}

.dm__online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--positive);
}

.dm__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
  padding-bottom: var(--space-300);
}

.dm__msg {
  align-self: flex-start;
  max-width: 88%;
  margin: 0;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius);
  background: var(--surface-1);
}

.dm__msg--me {
  align-self: flex-end;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius) var(--radius-xl);
  background: var(--lime);
}

.dm__typing {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-75);
  margin: 0;
  opacity: 0;
}

.dm__dots {
  display: inline-flex;
  gap: var(--space-25);
}

.dm__dots span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-3);
}

/* ---------- Сценарии анимации карточек ---------- */
/* Начальное состояние (только с JavaScript и без «уменьшения движения») */
.gallery.is-animated .bcard .winrate__dot { opacity: 0; transform: scale(0); }
.gallery.is-animated .bcard .winrate__ref-label { opacity: 0; }
.gallery.is-animated .bcard .hours__bar { transform: scaleY(0); }
.gallery.is-animated .bcard .hours__now { opacity: 0; }
.gallery.is-animated .bcard .feed__row { opacity: 0; transform: translateY(calc(-1 * var(--space-100))); }
.gallery.is-animated .bcard .dm__msg { opacity: 0; transform: translateY(var(--space-100)); }

/* Активная карточка 1: линия рисуется слева направо, за ней точки */
.gallery.is-animated .bcard.is-active .winrate__cover {
  transform: scaleX(0);
  transition: transform 1400ms cubic-bezier(0.45, 0, 0.25, 1) 150ms;
}

.gallery.is-animated .bcard:not(.is-active) .winrate__cover {
  transform: none;
}

.gallery.is-animated .bcard.is-active .winrate__dot {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-fade) var(--ease) calc(250ms + var(--i, 0) * 165ms),
    transform var(--dur-move) var(--ease) calc(250ms + var(--i, 0) * 165ms);
}

.gallery.is-animated .bcard.is-active .winrate__ref-label {
  opacity: 1;
  transition: opacity var(--dur-move) var(--ease) 1500ms;
}

/* Активная карточка 2: столбики растут слева направо, как будто проходит день */
.gallery.is-animated .bcard.is-active .hours__bar {
  transform: none;
  transition: transform 600ms var(--ease) calc(100ms + var(--i, 0) * 35ms);
}

.gallery.is-animated .bcard.is-active .hours__now {
  opacity: 1;
  transition: opacity var(--dur-fade) var(--ease) 1000ms;
}

/* Активная карточка 3: сделки приходят в ленту одна за другой */
.gallery.is-animated .bcard.is-active .feed__row {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-move) var(--ease) calc(150ms + var(--i, 0) * 350ms),
    transform var(--dur-move) var(--ease) calc(150ms + var(--i, 0) * 350ms);
}

/* Активная карточка 4: диалог, между репликами трейдер печатает */
.gallery.is-animated .bcard.is-active .dm__msg {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-move) var(--ease) var(--d, 0ms),
    transform var(--dur-move) var(--ease) var(--d, 0ms);
}

.gallery.is-animated .bcard.is-active .dm__typing {
  animation: dm-typing 1700ms var(--ease) both;
}

.gallery.is-animated .bcard.is-active .dm__dots span {
  animation: blink 900ms var(--ease) infinite;
}

.gallery.is-animated .bcard.is-active .dm__dots span:nth-child(2) { animation-delay: 150ms; }
.gallery.is-animated .bcard.is-active .dm__dots span:nth-child(3) { animation-delay: 300ms; }

/* «печатает» видно примерно с 0,6 до 1,6 с, затем приходит ответ */
@keyframes dm-typing {
  0%, 35% { opacity: 0; }
  40%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================================================================
   ЭКРАН 3. Гарантия: чёрная панель посреди светлой страницы
   ========================================================================== */

/* Панель: радиус 32, отступ 24 (телефон) и 64 (компьютер) */
.guarantee__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-400);
  padding: var(--space-500) var(--space-300) var(--space-300);
  border-radius: var(--radius-4xl);
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
}

.guarantee__text {
  font-weight: 400;
}

/* Подчёркиваем каждое слово отдельно и сплошной линией, как маркером:
   так линия загорается вместе со словом и не рвётся на хвостиках «р» и «у» */
.guarantee__text .underline {
  text-decoration-line: none;
}

.guarantee__text .underline .tagline__word,
.guarantee__text .underline:not(:has(.tagline__word)) {
  text-decoration-line: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

/* Поле точек: каждая точка это участник, лаймовая «Вы» — ваше место */
/* 160 точек ровным прямоугольником: 16 × 10 на телефоне,
   32 × 5 на планшете, 40 × 4 на компьютере */
.members {
  display: grid;
  grid-template-columns: repeat(16, 10px);
  justify-content: space-between;
  row-gap: var(--space-75);
  padding-top: var(--space-300);
}

@media (min-width: 640px) {
  .members {
    grid-template-columns: repeat(32, 10px);
  }
}

@media (min-width: 1024px) {
  .members {
    grid-template-columns: repeat(40, 10px);
    row-gap: var(--space-100);
  }
}

.members__dot {
  position: relative;
  width: 10px;
  height: 10px;
  justify-self: center;
  border-radius: var(--radius-full);
  background: #3A3A3A;
}

.members__dot--you {
  z-index: 1;
  background: var(--lime);
  transform: scale(1.4);
}

.members__you {
  position: absolute;
  bottom: calc(100% + var(--space-50));
  left: 50%;
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
  white-space: nowrap;
  transform: translateX(-50%) scale(0.72);
  transform-origin: center bottom;
}

/* Точки проявляются волной, в конце появляется «Вы» */
.js .members .members__dot {
  opacity: 0;
}

.js .members.is-visible .members__dot {
  opacity: 1;
  transition:
    opacity 600ms var(--ease) calc(var(--i, 0) * 6ms),
    background-color var(--dur-fade) var(--ease);
}

.js .members .members__dot--you {
  transform: scale(0);
}

.js .members.is-visible .members__dot--you {
  transform: scale(1.4);
  transition:
    opacity var(--dur-move) var(--ease) 1200ms,
    transform 700ms var(--ease) 1200ms;
}

/* Вспышка: точка участника загорается, над ней всплывает сумма */
.members {
  position: relative;
}

.members__dot {
  transition: background-color var(--dur-fade) var(--ease);
}

.members__dot.is-win {
  background: var(--lime);
}

.members__win {
  position: absolute;
  z-index: 2;
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  animation: win-float 1800ms var(--ease) forwards;
}

@keyframes win-float {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, -140%) scale(1); }
  70% { opacity: 1; transform: translate(-50%, -190%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -240%) scale(1); }
}

/* Лаймовая кнопка: на чёрном она самая заметная */
.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  background: var(--lime-hover);
}

.btn--lime .btn__plane {
  background: var(--ink);
  color: var(--lime);
}

.guarantee__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-100);
}

.guarantee__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  color: #A3A3A3;
  text-wrap: balance;
}

.guarantee__note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--lime);
}

@media (min-width: 640px) {
  .guarantee__actions {
    align-items: flex-start;
  }

  .guarantee__note {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .bcard {
    padding: var(--space-400);
  }

  .bcard__num {
    font-size: 72px;
  }

  .gallery__track {
    gap: var(--space-200);
  }

  .benefits__head {
    margin-bottom: var(--space-400);
  }
}

@media (min-width: 1024px) {
  .guarantee__panel {
    padding: var(--space-700);
    gap: var(--space-500);
  }

  .guarantee__text {
    max-width: 960px;
    font-size: 48px;
    line-height: 48px;
  }

}

/* ==========================================================================
   ЭКРАН 4. «Торгуйте по сигналам по-новому»: карточки-стопка
   Каждая карточка прилипает к верху экрана, следующая наезжает на неё.
   Прилипание делает сам браузер, без скрипта.
   Цвета карточек: светлая, чёрная, лаймовая.
   ========================================================================== */

.method__title {
  margin-bottom: var(--space-400);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
}

/* Карточка: радиус 32, отступ 24 → вложенные блоки радиусом 8–24 */
.scard {
  --top: calc(var(--space-200) + env(safe-area-inset-top, 0px) + var(--i, 0) * var(--space-200));
  position: sticky;
  top: var(--top);
  display: flex;
  flex-direction: column;
  gap: var(--space-400);
  min-height: 440px;
  padding: var(--space-300);
  border-radius: var(--radius-4xl);
  transform-origin: center top;
  box-shadow: 0 -8px 32px rgba(10, 10, 10, 0.08);
}

.scard--light { background: var(--surface-1); color: var(--text); }
.scard--dark { background: var(--ink); color: var(--text-on-ink); }
.scard--lime { background: var(--lime); color: var(--ink); }

.scard__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  max-width: 520px;
}

.scard__title {
  font-weight: 500;
}

.scard__lead {
  text-wrap: balance;
}

.scard--light .scard__lead { color: var(--text-2); }
.scard--dark .scard__lead { color: #A3A3A3; }
.scard--lime .scard__lead { color: #3B4A10; }

.many,
.clubs,
.curator {
  margin-top: auto;
}

/* ---------- Карточка 1: много аналитиков, ваш итог растёт ---------- */
.many {
  position: relative;
}

.many__chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.many__area {
  fill: url(#hatch);
}

.many__line {
  fill: none;
  stroke: #BDBDBD;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Красным только сам провал «плохого дня» */
.many__line--bad {
  stroke: var(--negative);
  stroke-width: 2;
}

.many__total {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Шторка под цвет карточки: уезжает вправо, линии «рисуются» */
.many__cover {
  fill: var(--surface-1);
  transform-box: fill-box;
  transform-origin: right center;
}

.many__dip { fill: var(--negative); }
.many__end { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }

.many__tag {
  position: absolute;
  padding: 0 var(--space-75);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.many__tag--bad {
  background: #FDE2E2;
  color: #B42318;
  transform: translate(var(--space-100), -50%);
}

.many__tag--total {
  background: var(--lime);
  color: var(--ink);
  transform: translate(calc(-100% - var(--space-100)), -50%);
}

/* ---------- Карточка 2: клубы зачёркиваются, остаётся MESA ---------- */
.clubs {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.clubs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
}

.clubs__item {
  position: relative;
  padding: var(--space-75) var(--space-200);
  border-radius: var(--radius-full);
  background: #1F1F1F;
  color: #8A8A8A;
}

/* Линия, которая перечёркивает клуб */
.clubs__item::after {
  content: "";
  position: absolute;
  left: var(--space-100);
  right: var(--space-100);
  top: 50%;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--negative);
  transform-origin: left center;
}

.clubs__one {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  padding: var(--space-75) var(--space-200) var(--space-75) var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
}

.clubs__mark svg {
  width: 40px;
  height: 40px;
}

.clubs__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-wrap: balance;
}

.clubs__check {
  display: inline-flex;
  margin-left: auto;
}

.clubs__check svg {
  width: 20px;
  height: 20px;
}

/* ---------- Карточка 3: профиль куратора ---------- */
/* Карточка куратора: радиус 24, отступ 16 → плитки 8 */
.curator {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  padding: var(--space-200);
  border-radius: var(--radius-3xl);
  background: var(--card);
}

.curator__head {
  display: flex;
  align-items: center;
  gap: var(--space-100);
}

.curator__ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--lime);
}

.curator__ava svg {
  width: 24px;
  height: 24px;
}

.curator__who {
  display: flex;
  flex-direction: column;
}

.curator__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-75);
}

.curator__fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
  padding: var(--space-100);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.curator__value {
  display: inline-flex;
  align-items: center;
  gap: var(--space-25);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.curator__value svg {
  width: 14px;
  height: 14px;
}

.curator__fact--mesa {
  background: var(--ink);
  color: var(--text-on-ink);
}

.curator__fact--mesa .caption-5 {
  color: #A3A3A3;
}

/* ---------- Анимации карточек: при появлении на экране (класс is-in) ---------- */
.stack.is-animated .many__cover { transform: none; }
.stack.is-animated .many__tag,
.stack.is-animated .many__dip,
.stack.is-animated .many__end { opacity: 0; }
.stack.is-animated .clubs__item::after { transform: scaleX(0); }
.stack.is-animated .clubs__one { opacity: 0; transform: translateY(var(--space-200)); }
.stack.is-animated .curator__fact { opacity: 0; transform: translateY(var(--space-100)); }

.stack.is-animated .scard.is-in .many__cover {
  transform: scaleX(0);
  transition: transform 1600ms cubic-bezier(0.45, 0, 0.25, 1) 200ms;
}

.stack.is-animated .scard.is-in .many__dip,
.stack.is-animated .scard.is-in .many__tag--bad {
  opacity: 1;
  transition: opacity var(--dur-move) var(--ease) 1000ms;
}

.stack.is-animated .scard.is-in .many__end,
.stack.is-animated .scard.is-in .many__tag--total {
  opacity: 1;
  transition: opacity var(--dur-move) var(--ease) 1700ms;
}

.stack.is-animated .scard.is-in .clubs__item::after {
  transform: none;
  transition: transform var(--dur-move) var(--ease) calc(300ms + var(--i, 0) * 180ms);
}

.stack.is-animated .scard.is-in .clubs__one {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-move) var(--ease) 1300ms,
    transform var(--dur-reveal) var(--ease) 1300ms;
}

.stack.is-animated .scard.is-in .curator__fact {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-move) var(--ease) calc(300ms + var(--i, 0) * 150ms),
    transform var(--dur-move) var(--ease) calc(300ms + var(--i, 0) * 150ms);
}

@media (min-width: 900px) {
  .method__title {
    margin-bottom: var(--space-600);
  }

  .scard {
    --top: calc(var(--space-600) + var(--i, 0) * var(--space-300));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: var(--space-700);
    min-height: 420px;
    padding: var(--space-600);
  }

  .scard__text {
    align-self: start;
  }

  .scard__title {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.03em;
  }

  .many,
  .clubs,
  .curator {
    margin-top: 0;
  }
}

/* ==========================================================================
   ЭКРАН 5. «Как мы создали систему, которая работает» и отзывы
   Отзывы — та же лента, что на втором экране: свайп, стрелки, точки.
   Нажатие на скриншот открывает его крупно.
   ========================================================================== */

.reviews__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  margin-bottom: var(--space-300);
}

/* Карточка отзыва: ширина под скриншот телефона */
.review {
  flex: none;
  width: min(72vw, 300px);
  scroll-snap-align: start;
}

/* Рамка скриншота: радиус 24, внутри картинка с радиусом 16 (отступ 8) */
.review__shot {
  display: block;
  width: 100%;
  padding: var(--space-75);
  border-radius: var(--radius-3xl);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
  cursor: zoom-in;
  transition: transform var(--dur-move) var(--ease);
}

/* Скриншоты бывают чуть разной высоты: приводим к одной пропорции
   (как у экрана iPhone), лишнее аккуратно срезается снизу */
.review__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 591 / 1280;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-2xl);
}

.review__shot:hover {
  transform: translateY(-2px);
}

.review__shot:active {
  transform: scale(0.98);
}

/* Заглушка, пока скриншота нет */
.review__shot--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border: 1px dashed var(--line-strong);
  background: var(--surface-1);
  box-shadow: none;
  cursor: default;
}

.review__shot--empty:hover,
.review__shot--empty:active {
  transform: none;
}

/* ---------- Увеличенный скриншот ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: calc(var(--space-700) + env(safe-area-inset-top, 0px)) var(--space-200) calc(var(--space-300) + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.86);
}

.lightbox__img {
  display: block;
  max-width: min(100%, 480px);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-2xl);
}

.lightbox__close {
  position: absolute;
  top: calc(var(--space-200) + env(safe-area-inset-top, 0px));
  right: max(var(--space-200), env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--card);
  color: var(--ink);
  transition: transform var(--dur-move) var(--ease);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

.lightbox__close:active {
  transform: scale(0.96);
}

@media (min-width: 900px) {
  .reviews__intro {
    margin-bottom: var(--space-400);
  }

  .review {
    width: 300px;
  }
}

/* ==========================================================================
   ЭКРАН 6. «Главный секрет успешной торговли»
   Телефон: заголовок, три шага, карточка сессии. С 1024px две колонки.
   ========================================================================== */

.secret__grid {
  display: grid;
  gap: var(--space-500);
}

.secret__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-400);
  min-width: 0;
}

/* Цепочка «причина → следствие»: номера соединены линией */
.secret__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
}

.secret__steps::before {
  content: "";
  position: absolute;
  top: var(--space-300);
  bottom: var(--space-300);
  left: 15px;
  width: 2px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}

.secret__step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-200);
}

.secret__step p {
  margin: 0;
  text-wrap: pretty;
}

.secret__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 0 0 4px var(--bg);
}

/* ---------- Скрытый текст, как в Telegram ----------
   Открытое состояние: лаймовый маркер под фразой.
   Скрытое: текст прозрачный, сверху мерцают частицы.
   Без JavaScript фраза сразу открыта. */
.spoiler {
  position: relative;
  display: inline;
  padding: 0 0.2em;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  isolation: isolate;
}

.spoiler::before {
  content: "";
  position: absolute;
  inset: 0.08em 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lime);
}

.spoiler::after {
  content: "";
  position: absolute;
  inset: 0.08em 0;
  border-radius: inherit;
  background-color: rgb(10 10 10 / 0.06);
  /* Четыре слоя точек с разным шагом: сетки накладываются
     и выглядят как случайная россыпь частиц */
  background-image:
    radial-gradient(circle, rgb(10 10 10 / 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgb(10 10 10 / 0.5) 0 0.9px, transparent 1.3px),
    radial-gradient(circle, rgb(10 10 10 / 0.62) 0 0.8px, transparent 1.2px),
    radial-gradient(circle, rgb(10 10 10 / 0.38) 0 1.2px, transparent 1.6px);
  background-size: 7px 7px, 9px 6px, 5px 9px, 11px 8px;
  background-position: 0 0, 3px 4px, 5px 2px, 1px 5px;
  opacity: 0;
  pointer-events: none;
}

.js .spoiler {
  cursor: pointer;
}

.js .spoiler:not(.is-revealed) .spoiler__text,
.js .spoiler:not(.is-revealed)::before {
  opacity: 0;
}

.js .spoiler:not(.is-revealed)::after {
  opacity: 1;
  animation: spoiler-shimmer 1200ms var(--ease) infinite alternate;
}

.js .spoiler.is-revealed {
  cursor: default;
}

/* Частицы рассыпаются, фраза и маркер проступают */
.js .spoiler.is-revealed .spoiler__text,
.js .spoiler.is-revealed::before {
  opacity: 1;
  transition: opacity 600ms var(--ease) 150ms;
}

.js .spoiler.is-revealed::after {
  opacity: 0;
  transform: scale(1.25);
  transition:
    opacity 600ms var(--ease),
    transform 700ms var(--ease);
}

@keyframes spoiler-shimmer {
  0% { background-position: 0 0, 3px 4px, 5px 2px, 1px 5px; }
  50% { background-position: 2px -1px, 1px 6px, 3px 4px, 3px 3px; }
  100% { background-position: -1px 2px, 5px 3px, 6px 0, -1px 6px; }
}

/* ---------- Карточка «Одна торговая сессия» ---------- */
/* Радиус 32, отступ 24 */
.session {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
  margin: 0;
  padding: var(--space-300);
  border-radius: var(--radius-4xl);
  background: var(--surface-1);
}

.session__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.session__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-100);
}

/* Дорожка времени: точки стоят по оси от начала до конца сессии */
.session__track {
  position: relative;
  height: 48px;
}

.session__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  transform-origin: left center;
}

.session__dot {
  position: absolute;
  top: 50%;
  left: calc(var(--t) * 100%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: var(--radius-full);
}

.session__dot--win {
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.session__dot--loss {
  background: var(--negative);
}

/* Подпись «минусовая серия» над тремя минусами подряд */
.session__streak {
  position: absolute;
  bottom: calc(50% + var(--space-100));
  left: calc(var(--from) * 100% - 10px);
  width: calc((var(--to) - var(--from)) * 100% + 20px);
  padding-bottom: var(--space-50);
  border-bottom: 2px solid var(--negative);
  color: #B42318;
  text-align: center;
  white-space: nowrap;
}

.session__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75) var(--space-200);
}

.session__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
}

.session__key {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.session__key--win { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.session__key--loss { background: var(--negative); }

/* Сессия «идёт»: линия тянется слева направо, точки появляются по времени */
.js .session .session__line { transform: scaleX(0); }
.js .session .session__dot { opacity: 0; transform: scale(0); }
.js .session .session__streak { opacity: 0; }

.js .session.is-visible .session__line {
  transform: none;
  transition: transform 2600ms cubic-bezier(0.3, 0.2, 0.7, 0.8) 300ms;
}

.js .session.is-visible .session__dot {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-fade) var(--ease) calc(300ms + var(--t) * 2600ms),
    transform var(--dur-move) var(--ease) calc(300ms + var(--t) * 2600ms);
}

.js .session.is-visible .session__streak {
  opacity: 1;
  transition: opacity var(--dur-move) var(--ease) 2200ms;
}

@media (min-width: 1024px) {
  .secret__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-700);
  }

  .session {
    padding: var(--space-400);
  }
}

/* ==========================================================================
   ЭКРАН 7. Бесплатный пробный доступ
   Телефон: текст, пропуск, кнопка.
   С 1024px текст и кнопка слева, пропуск справа.
   ========================================================================== */

.trial__grid {
  display: grid;
  grid-template-areas:
    "text"
    "pass"
    "actions";
  gap: var(--space-500);
}

.trial__text {
  grid-area: text;
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}

/* Лаймовый маркер под «бесплатный пробный доступ»:
   прорисовывается слева направо, когда текст появляется */
.marker {
  padding: 0 0.12em;
  border-radius: var(--radius-lg);
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 60% / 100% 86%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.js .trial__text .marker {
  background-size: 0% 86%;
}

.js .trial__text.is-visible .marker {
  background-size: 100% 86%;
  transition: background-size 1100ms var(--ease) 450ms;
}

.trial__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-100);
  min-width: 0;
}

/* ---------- Считыватель и пропуск ---------- */
.pass-stage {
  grid-area: pass;
  position: relative;
  width: min(100%, 360px);
  margin: 0;
  justify-self: center;
}

/* Тёмная щель, из которой выезжает пропуск */
.pass-slot {
  position: relative;
  z-index: 2;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--slot);
}

.pass-slot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--space-300);
  right: var(--space-500);
  height: 6px;
  margin-top: -3px;
  border-radius: var(--radius-full);
  background: var(--slot-gap);
}

/* Лампочка: серая, пока пропуск выезжает, лаймовая, когда доступ открыт */
.pass-slot__led {
  position: absolute;
  top: 50%;
  right: var(--space-200);
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: var(--radius-full);
  background: var(--lime);
}

/* Окно обрезает пропуск только сверху, тень по бокам и снизу видна */
.pass-window {
  margin: -12px var(--space-200) 0;
  clip-path: inset(0 -64px -64px -64px);
}

.pass {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
  padding: var(--space-400) var(--space-300) var(--space-300);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-3xl) var(--radius-3xl);
  background: linear-gradient(180deg, var(--pass-bg), var(--pass-bg-2));
  color: var(--text-on-ink);
  box-shadow: 0 24px 48px rgba(10, 10, 10, 0.22);
}

.pass__muted {
  color: var(--pass-muted);
}

.pass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-100);
}

.pass__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.pass__brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.pass__type {
  padding: var(--space-50) var(--space-100);
  border-radius: var(--radius-full);
  background: var(--pass-chip);
  color: var(--lime);
  white-space: nowrap;
}

.pass__price {
  display: flex;
  flex-direction: column;
  gap: var(--space-50);
}

.pass__price-value {
  color: var(--lime);
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.pass__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-100);
  margin: 0;
  padding-top: var(--space-200);
  border-top: 1px solid var(--pass-line);
}

/* Число сверху, подпись под ним */
.pass__facts div {
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
  min-width: 0;
}

.pass__facts dd {
  order: -1;
  margin: 0;
}

/* Отрывной корешок: пунктир и два полукруглых выреза по краям */
.pass__stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-100);
  padding-top: var(--space-300);
  border-top: 2px dashed var(--pass-line);
}

/* Вырезы: полукруги цвета фона прямо у края пропуска */
.pass__stub::before,
.pass__stub::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 12px;
  height: 24px;
  background: var(--bg);
}

.pass__stub::before {
  left: calc(-1 * var(--space-300));
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.pass__stub::after {
  right: calc(-1 * var(--space-300));
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

/* Два статуса лежат друг на друге и сменяют друг друга */
.pass__status {
  display: grid;
  justify-items: end;
}

.pass__status > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  white-space: nowrap;
}

.pass__status i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.pass__status-wait {
  color: var(--pass-muted);
  opacity: 0;
}

.pass__status-wait i {
  background: var(--pending);
}

.pass__status-ok i {
  background: var(--lime);
}

/* Начальное состояние, пока экран не прокручен до пропуска */
.js .pass-stage:not(.is-visible) .pass {
  transform: translateY(-101%);
}

.js .pass-stage:not(.is-visible) .pass__status-wait {
  opacity: 1;
}

.js .pass-stage:not(.is-visible) .pass__status-ok {
  opacity: 0;
  transform: translateY(var(--space-75));
}

.js .pass-stage:not(.is-visible) .pass-slot__led {
  background: var(--led-off);
}

/* Пропуск выезжает, затем загорается лампочка и меняется статус */
.js .pass-stage.is-visible .pass {
  transition: transform 1600ms var(--ease) 450ms;
}

.js .pass-stage.is-visible .pass__status-wait {
  transition: opacity var(--dur-fade) var(--ease) 2000ms;
}

.js .pass-stage.is-visible .pass__status-ok {
  transition:
    opacity var(--dur-move) var(--ease) 2150ms,
    transform var(--dur-move) var(--ease) 2150ms;
}

.js .pass-stage.is-visible .pass-slot__led {
  transition: background-color var(--dur-fade) var(--ease) 2000ms;
}

@media (min-width: 640px) {
  .trial__actions {
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .trial__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "text pass"
      "actions pass";
    grid-template-rows: auto 1fr;
    column-gap: var(--space-700);
    row-gap: var(--space-500);
    align-items: start;
  }

  .pass-stage {
    width: min(100%, 400px);
    align-self: center;
  }
}

/* ==========================================================================
   ЭКРАН 8. Личный куратор
   Имя сверху, ниже композиция: фото в центре, надпись по кругу
   и четыре наклонённых стикера с фактами по углам.
   С 1024px имя слева, композиция справа.
   ========================================================================== */

/* Повёрнутое кольцо с надписью не должно расширять страницу вбок */
.mentor {
  overflow-x: clip;
}

.mentor__grid {
  display: grid;
  gap: var(--space-300);
}

/* На телефоне и планшете имя по центру, над композицией */
.mentor__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-50);
  min-width: 0;
  text-align: center;
}

.mentor__role,
.mentor__name,
.mentor__status {
  margin: 0;
}

.mentor__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  margin-top: var(--space-75);
}

/* ---------- Композиция ---------- */
.orbit {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 0.92;
  justify-self: center;
}

/* Надпись по кругу и пунктирная орбита */
.orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  margin: -40% 0 0 -40%;
  overflow: visible;
  will-change: transform;
}

.orbit__ring text {
  fill: var(--text-2);
  font-family: var(--font);
  font-size: 8.5px;
  font-weight: 500;
}

.orbit__line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 0.6;
  stroke-dasharray: 1.5 3;
}

/* Круглое фото в центре */
.orbit__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.orbit__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-phone);
}

/* ---------- Стикеры с фактами ---------- */
.orbit__facts {
  margin: 0;
}

.sticker {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
  max-width: 156px;
  padding: var(--space-100) var(--space-200);
  border-radius: var(--radius-2xl);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: rotate(var(--r, 0deg));
}

/* Расстановка по углам, чуть вразнобой */
.sticker:nth-child(1) { top: 2%; left: 0; }
.sticker:nth-child(2) { top: 14%; right: 0; }
.sticker:nth-child(3) { bottom: 18%; left: 1%; }
.sticker:nth-child(4) { bottom: 1%; right: 0; }

.sticker--lime {
  background: var(--lime);
  border-color: var(--lime);
}

.sticker--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-on-ink);
}

.sticker__value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sticker__label {
  margin: 0;
  color: var(--text-2);
}

.sticker--lime .sticker__label {
  color: var(--ink);
}

.sticker--ink .sticker__value {
  color: var(--lime);
  letter-spacing: 0.04em;
}

.sticker--ink .sticker__label {
  color: var(--pass-muted);
}

/* Стикеры «прилипают» по очереди, когда композиция появилась */
.js .orbit:not(.is-visible) .sticker {
  opacity: 0;
  transform: translateY(var(--space-200)) rotate(0deg) scale(0.92);
}

.js .orbit.is-visible .sticker {
  transition:
    opacity var(--dur-move) var(--ease) calc(300ms + var(--i) * 120ms),
    transform 800ms var(--ease) calc(300ms + var(--i) * 120ms);
}

@media (min-width: 640px) {
  .sticker {
    max-width: 180px;
    padding: var(--space-200) var(--space-300) var(--space-200) var(--space-200);
  }
}

@media (min-width: 1024px) {
  .mentor__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-700);
  }

  .mentor__head {
    align-items: flex-start;
    text-align: left;
  }

  .mentor__name {
    font-size: 48px;
    line-height: 48px;
  }

  .orbit {
    max-width: 520px;
  }
}

/* ==========================================================================
   ЭКРАН 9. Win-Win
   Заголовок по центру, под ним карточка с полоской сделки.
   ========================================================================== */

.partner__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-400);
}

.partner__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-200);
  max-width: 680px;
  text-align: center;
}

.partner__head .section-title,
.partner__lead {
  margin: 0;
}

.partner__lead {
  text-wrap: balance;
}

/* «1,8%» лаймовой плашкой, «бесплатный доступ» чёрным */
.partner__accent {
  padding: 0 0.2em;
  border-radius: var(--radius-lg);
  background: var(--lime);
  color: var(--ink);
  font-weight: 500;
}

.text-strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Карточка «как делится прибыль» ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
  width: min(100%, 560px);
  margin: 0;
  padding: var(--space-300);
  border-radius: var(--radius-4xl);
  background: var(--surface-1);
}

.split__title {
  margin: 0;
}

.split__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
}

.split__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-100);
}

/* Полоска: чёрная часть ваша, тонкая лаймовая доля MESA */
.split__bar {
  position: relative;
  display: flex;
  gap: 3px;
  height: 48px;
  padding: var(--space-50);
  border-radius: var(--radius-2xl);
  background: var(--surface-3);
}

/* Внешний радиус 16, отступ 4, внутренний 12 */
.split__you {
  flex: 1;
  border-radius: var(--radius-xl);
  background: var(--ink);
  transform-origin: left center;
}

.split__mesa {
  width: 10px;
  flex: none;
  border-radius: var(--radius-md) var(--radius-xl) var(--radius-xl) var(--radius-md);
  background: var(--lime);
}

.split__label {
  position: absolute;
  top: 50%;
  left: var(--space-300);
  color: var(--text-on-ink);
  white-space: nowrap;
  transform: translateY(-50%);
}

/* Подпись доли MESA под лаймовой полоской, справа */
.split__legend {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: var(--space-75);
  padding-right: var(--space-50);
  color: var(--text-2);
}

.split__key {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--lime);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Анимация: чёрная часть растёт, затем появляется доля MESA */
.js [data-split]:not(.is-visible) .split__you {
  transform: scaleX(0);
}

.js [data-split]:not(.is-visible) .split__mesa,
.js [data-split]:not(.is-visible) .split__legend,
.js [data-split]:not(.is-visible) .split__label {
  opacity: 0;
}

.js [data-split].is-visible .split__you {
  transition: transform 1200ms var(--ease) 300ms;
}

.js [data-split].is-visible .split__label {
  transition: opacity var(--dur-move) var(--ease) 900ms;
}

.js [data-split].is-visible .split__mesa,
.js [data-split].is-visible .split__legend {
  transition: opacity var(--dur-move) var(--ease) 1300ms;
}

/* ==========================================================================
   ЭКРАН 10. «Что внутри клуба?» — карточка тарифа
   Светлая карточка: четыре плитки с живыми сценками и чёрный блок цены
   с кнопкой. Внешний радиус 32, отступ 8, внутренний радиус 24.
   ========================================================================== */

.offer__inner {
  display: grid;
  justify-items: center;
  gap: var(--space-400);
}

.offer__title {
  margin: 0;
  text-align: center;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
  width: min(100%, 640px);
  padding: var(--space-75);
  border-radius: var(--radius-4xl);
  background: var(--surface-3);
}

/* ---------- Плитки ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-75);
  margin: 0;
  padding: 0;
  list-style: none;
}

.perk {
  display: flex;
  flex-direction: column;
  gap: var(--space-50);
  min-width: 0;
  padding: var(--space-200);
  border-radius: var(--radius-3xl);
  background: var(--card);
}

.perk__title,
.perk__text {
  margin: 0;
}

.perk__title {
  text-wrap: balance;
}

/* Окошко со сценкой: радиус 8 = 24 (плитка) − 16 (отступ) */
.mini {
  position: relative;
  height: 56px;
  margin-bottom: var(--space-100);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

/* 1. Лента сигналов: строки уезжают вверх по одной */
.mini__rows {
  position: absolute;
  top: var(--space-75);
  left: var(--space-100);
  right: var(--space-100);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini__row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
}

.mini__ava {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--stage-word);
}

.mini__ava--ink { background: var(--ink); }
.mini__ava--lime { background: var(--lime); box-shadow: inset 0 0 0 1px var(--line-strong); }

.mini__line {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}

.mini__line--short {
  flex: 0.6;
  margin-right: auto;
}

.mini__tag {
  padding: 0 var(--space-50);
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mini__tag--sell {
  background: var(--ink);
  color: var(--text-on-ink);
}

@keyframes feed-roll {
  0%, 24% { transform: translateY(0); }
  33%, 57% { transform: translateY(-26px); }
  66%, 90% { transform: translateY(-52px); }
  100% { transform: translateY(-78px); }
}

/* 2. Обзор рынка: линия графика прорисовывается, в конце точка */
.mini--chart svg {
  position: absolute;
  inset: var(--space-75) var(--space-100);
  width: calc(100% - 2 * var(--space-100));
  height: calc(100% - 2 * var(--space-75));
  overflow: visible;
}

.mini__spark {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.mini__spark-dot {
  position: absolute;
  top: calc(var(--space-75) + (100% - 2 * var(--space-75)) * 0.2 - 5px);
  right: calc(var(--space-100) + (100% - 2 * var(--space-100)) * 0.05 - 5px);
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--ink);
}

@keyframes spark-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  45%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes spark-dot {
  0%, 40% { transform: scale(0); }
  50%, 85% { transform: scale(1); }
  100% { transform: scale(0); }
}

/* 3. Личная поддержка: куратор печатает */
.mini--chat {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  padding: 0 var(--space-100);
}

.mini__face {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.mini__bubble {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
}

.mini__bubble i {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--ink);
  opacity: 0.25;
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.25; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* 4. Промокоды: купон, код перебирается и собирается в слово */
.mini--promo {
  display: flex;
  align-items: center;
  padding: 0 var(--space-100);
}

.mini__coupon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  height: 32px;
  padding: 0 var(--space-50) 0 var(--space-100);
  border: 1.5px dashed var(--text-3);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.mini__code {
  min-width: 6ch;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.mini__pct {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--ink);
}

/* Сценки крутятся, только когда карточка уже появилась */
.js [data-plan].is-visible .mini__rows {
  animation: feed-roll 6s var(--ease) infinite;
}

.js [data-plan].is-visible .mini__spark {
  animation: spark-draw 4.5s var(--ease) infinite;
}

.js [data-plan].is-visible .mini__spark-dot {
  animation: spark-dot 4.5s var(--ease) infinite;
}

.js [data-plan].is-visible .mini__bubble i {
  animation: typing 1200ms var(--ease) infinite;
}

.js [data-plan].is-visible .mini__bubble i:nth-child(2) { animation-delay: 150ms; }
.js [data-plan].is-visible .mini__bubble i:nth-child(3) { animation-delay: 300ms; }

/* ---------- Цена и кнопка ---------- */
.plan__price {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  padding: var(--space-300);
  border-radius: var(--radius-3xl);
  background: var(--ink);
  color: var(--text-on-ink);
}

.plan__muted {
  color: var(--pass-muted);
}

.plan__price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-100);
}

/* Плашка «24 часа» с кольцом-таймером */
.plan__timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  padding: var(--space-50) var(--space-100) var(--space-50) var(--space-75);
  border-radius: var(--radius-full);
  background: var(--pass-chip);
  color: var(--lime);
  white-space: nowrap;
}

.plan__timer svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke-width: 3;
  transform: rotate(-90deg);
}

.plan__timer-track {
  stroke: var(--pass-line);
}

.plan__timer-arc {
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.plan__amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-200);
}

.plan__old {
  position: relative;
  color: var(--pass-muted);
  font-size: 30px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Лаймовая линия зачёркивания */
.plan__old::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 3px;
  margin-top: -1px;
  border-radius: var(--radius-full);
  background: var(--lime);
  transform-origin: left center;
}

.plan__new {
  color: var(--lime);
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.plan__note {
  margin: 0;
}

.plan__btn {
  width: 100%;
  margin-top: var(--space-200);
  box-shadow: none;
}

.plan__cta {
  margin: var(--space-50) 0 0;
  text-align: center;
  text-wrap: balance;
}

/* Анимация: плитки по очереди, затем цена зачёркивается,
   появляется «Бесплатно», кольцо таймера прорисовывается */
.js [data-plan]:not(.is-visible) .perk {
  opacity: 0;
  transform: translateY(var(--space-200));
}

.js [data-plan].is-visible .perk {
  transition:
    opacity var(--dur-move) var(--ease) calc(150ms + var(--i) * 100ms),
    transform var(--dur-reveal) var(--ease) calc(150ms + var(--i) * 100ms);
}

.js [data-plan]:not(.is-visible) .plan__old::after {
  transform: scaleX(0);
}

.js [data-plan].is-visible .plan__old::after {
  transition: transform 600ms var(--ease) 900ms;
}

.js [data-plan]:not(.is-visible) .plan__new {
  opacity: 0;
  transform: translateY(var(--space-100));
}

.js [data-plan].is-visible .plan__new {
  transition:
    opacity var(--dur-move) var(--ease) 1350ms,
    transform var(--dur-move) var(--ease) 1350ms;
}

.js [data-plan]:not(.is-visible) .plan__timer-arc {
  stroke-dashoffset: 1;
}

.js [data-plan].is-visible .plan__timer-arc {
  transition: stroke-dashoffset 1400ms var(--ease) 700ms;
}

@media (min-width: 640px) {
  .split {
    padding: var(--space-400);
  }

  .perk {
    padding: var(--space-300);
    gap: var(--space-75);
  }

  .mini {
    height: 64px;
  }

  .plan__price {
    padding: var(--space-400);
  }

  .plan__btn {
    width: auto;
    align-self: center;
    min-width: 320px;
  }
}

/* Имя куратора в одну строку: на широких экранах крупнее */
@media (min-width: 1280px) {
  .mentor__name {
    font-size: 60px;
    line-height: 60px;
    letter-spacing: -0.04em;
  }
}

/* ==========================================================================
   Подвал
   Снизу запас под закреплённую кнопку, чтобы она не закрывала текст.
   ========================================================================== */

.footer {
  padding: var(--space-500) 0 calc(var(--space-900) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-100);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.footer__brand svg {
  width: 28px;
  height: 28px;
}

.footer__text {
  max-width: 520px;
  margin: 0;
}

@media (min-width: 900px) {
  .footer {
    padding-bottom: var(--space-500);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

/* ---------- Вспомогательное ---------- */

/* Перенос строки только на широких экранах */
.br-desktop {
  display: none;
}

@media (min-width: 900px) {
  .br-desktop {
    display: inline;
  }
}

/* Текст только для экранных дикторов */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Закреплённая кнопка внизу экрана
   Появляется, только когда на экране нет других кнопок «Получить доступ».
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-bottom: calc(var(--space-200) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + var(--space-200)));
  transition:
    opacity var(--dur-move) var(--ease),
    transform var(--dur-move) var(--ease),
    visibility 0s var(--ease) var(--dur-move);
}

.sticky-cta.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-move) var(--ease),
    transform var(--dur-move) var(--ease);
}

.sticky-cta .btn {
  width: 100%;
  max-width: 480px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.3), 0 2px 8px rgba(10, 10, 10, 0.12);
}

.sticky-cta.is-shown .btn {
  pointer-events: auto;
}

/* Над чёрными блоками кнопка лаймовая, кружок с самолётиком чёрный */
.sticky-cta .btn__plane {
  transition:
    background-color var(--dur-fade) var(--ease),
    color var(--dur-fade) var(--ease);
}

.sticky-cta.is-on-dark .btn {
  background: var(--lime);
  color: var(--ink);
}

.sticky-cta.is-on-dark .btn__plane {
  background: var(--ink);
  color: var(--lime);
}

@media (min-width: 640px) {
  .sticky-cta .btn {
    width: auto;
  }
}

/* ==========================================================================
   Слоган, который «проявляется» по словам при прокрутке
   ========================================================================== */

.tagline {
  max-width: 880px;
}

.tagline__word {
  opacity: var(--tagline-muted);
  transition: opacity var(--dur-move) var(--ease);
}

.tagline__word.is-active {
  opacity: 1;
}

/* ==========================================================================
   Уменьшенная анимация: вместо движения только прозрачность
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sticky-cta,
  .js [data-reveal],
  .js .stage .phone,
  .js .stage .float,
  .menu__item,
  .msg.is-entering {
    transform: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .btn .btn__plane svg,
  .btn--send:hover .btn__plane svg,
  .btn[data-cta],
  .btn[data-cta]::after {
    animation: none;
  }

  .float--win.is-bump,
  .live-dot,
  .msg.is-closed .chart__halo {
    animation: none;
  }

  .tagline__word {
    opacity: 1;
    transition: none;
  }

  .gallery.is-hinting .gallery__track,
  .gallery.is-hinting .gallery__hint {
    animation: none;
  }

  .js .members .members__dot--you {
    transform: none;
  }

  .js .spoiler:not(.is-revealed)::after {
    animation: none;
  }

  .js .session .session__line,
  .js .session .session__dot {
    transform: none;
  }

  .js .pass-stage .pass,
  .js .pass-stage .pass__status-ok {
    transform: none !important;
  }

  .js .trial__text .marker {
    background-size: 100% 86%;
    transition: none;
  }

  .js .orbit .sticker {
    transform: rotate(var(--r, 0deg)) !important;
  }

  .js [data-plan] .mini__rows,
  .js [data-plan] .mini__spark,
  .js [data-plan] .mini__spark-dot,
  .js [data-plan] .mini__bubble i {
    animation: none !important;
  }

  .js [data-plan] .perk,
  .js [data-split] .split__you,
  .js [data-plan] .plan__new,
  .js [data-plan] .plan__old::after {
    transform: none !important;
  }


}
