/* ==========================================================
   FONS — лендинг. Цвета и размеры меняются в :root
   ========================================================== */
:root {
  --bg: #0B0C0F;
  --bg-2: #121318;
  --card: #16171D;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F4F2EF;
  --muted: #9C9AA3;
  --accent: #FF4D12;
  --accent-2: #FF7A3D;
  --glow: rgba(255, 77, 18, 0.35);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.accent { color: var(--accent); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--center { justify-content: center; }
.display {
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 900; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;
}
.display--md { font-size: clamp(30px, 3.6vw, 58px); }
.display--sm { font-size: clamp(22px, 2.3vw, 38px); line-height: 1.05; }
.title {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.025em; text-transform: uppercase;
  max-width: 20ch; margin-bottom: 20px;
}
.lead { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: #CFCCD3; max-width: 48ch; }
.hint { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden; white-space: nowrap;
  padding: 15px 28px; border-radius: 999px;
  background: var(--accent); color: #17140F;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  box-shadow: 0 10px 40px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); background: #FF5E26; box-shadow: 0 16px 50px -10px rgba(255, 77, 18, 0.6); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }
/* Блик, пробегающий по главной кнопке */
.btn:not(.btn--ghost)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.header.is-scrolled {
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.header__logo img { height: 22px; width: auto; }
.header__nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: #CFCCD3; }
.header__nav a:hover { color: #fff; }

/* ---------- 1. Скролл-видео ---------- */
.sequence { position: relative; height: 640vh; }
.sequence__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, #1a0d08 0%, var(--bg) 65%);
}
.sequence__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Подсветка сфер поверх диаграммы в телефоне (первый экран). Позиции — js/sequence.js */
.phone-spheres { position: absolute; inset: 0; pointer-events: none; opacity: 0; will-change: opacity; }
.ps__ring, .ps__label { position: absolute; left: 0; top: 0; will-change: transform; }
.ps__ring {
  width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%;
  border: 2px solid rgba(255, 200, 170, 0.0);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}
.ps__ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1.5px solid rgba(255, 140, 90, 0.9); opacity: 0;
}
.ps__label {
  display: flex; align-items: center; justify-content: center;
  padding: 0.18em 0.6em; border-radius: 999px; white-space: nowrap; font-size: 20px; line-height: 1.2; min-height: 40px;
  font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 236, 226, 0.92);
  background: rgba(24, 12, 9, 0.94); box-shadow: 0 0 0.6em 0.55em rgba(24, 12, 9, 0.9);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ps__ring.ps--on {
  border-color: rgba(255, 214, 190, 0.95); background-color: rgba(255, 120, 60, 0.18);
  box-shadow: 0 0 22px 6px rgba(255, 90, 30, 0.75), inset 0 0 18px rgba(255, 170, 120, 0.6);
}
.ps__ring.ps--on::after { animation: ps-ping 1.3s var(--ease) both; }
.ps__label.ps--on {
  color: #17140F; background: var(--accent);
  box-shadow: 0 0 0.6em 0.55em rgba(24, 12, 9, 0.9), 0 0 1.4em rgba(255, 77, 18, 0.8);
}
@keyframes ps-ping { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* Затемнение под текстом. Его сила (--shade) меняется по сценам из js/sequence.js */
.sequence__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 22%), linear-gradient(180deg, rgba(11, 12, 15, 0.6) 0%, transparent 16%);
}
.sequence__shade::before {
  content: ""; position: absolute; inset: 0; opacity: var(--shade, 1);
  background: linear-gradient(90deg, rgba(11, 12, 15, 0.85) 0%, rgba(11, 12, 15, 0.45) 32%, transparent 55%);
}
.chapter {
  position: absolute; left: var(--gutter); top: 50%;
  max-width: min(620px, 44vw); z-index: 2;
  opacity: 0; transform: translateY(calc(-50% + var(--y, 40px)));
  pointer-events: none; will-change: opacity, transform;
}
.chapter.is-active { pointer-events: auto; }
/* Заголовок сверху по центру — для сцены с двумя телефонами */
.chapter--top {
  left: 50%; top: clamp(72px, 9vh, 100px); max-width: 1100px; width: calc(100% - 2 * var(--gutter));
  text-align: center; transform: translate(-50%, var(--y, 40px));
}
.chapter--top .eyebrow { margin-bottom: 12px; }
.chapter--top .display { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.85); }
/* В новом видео телефоны начинаются почти от верха кадра — на компьютере заголовок
   становится компактной плашкой над ними */
@media (min-width: 761px) {
  .chapter--top { top: 78px; width: auto; max-width: none; }
  .chapter--top .eyebrow { display: none; }
  .chapter--top .display {
    display: inline-block; white-space: nowrap; font-size: clamp(18px, 1.6vw, 24px); padding: 10px 22px; border-radius: 999px;
    background: rgba(11, 12, 15, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); text-shadow: none;
  }
}
.chapter .lead { margin-top: 24px; }
.chapter__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.scroll-hint {
  display: flex; align-items: center; gap: 12px; margin-top: 48px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint span {
  width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.sequence__progress {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 2px; height: 140px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden;
}
.sequence__progress span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.section--glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255, 77, 18, 0.12), transparent 70%);
}
.grid { display: grid; gap: 18px; margin-top: 56px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: 30px 26px 32px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.card h3 { font-size: 19px; font-weight: 700; margin: 18px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__num { font-size: 15px; font-weight: 800; color: var(--accent); }
.big-num {
  font-size: clamp(48px, 6vw, 80px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--accent);
  white-space: nowrap;
}

/* split-раскладка */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

/* ---------- Шаги ---------- */
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; counter-reset: s; }
.step { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.step__num { font-size: 15px; font-weight: 800; color: var(--accent); min-width: 28px; padding-top: 3px; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { color: var(--muted); }
.quote {
  margin: 56px 0 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--accent);
  font-size: clamp(19px, 2vw, 25px); font-weight: 500; max-width: 40ch; color: #E9E6EA;
}

/* ---------- Пути ---------- */
.path {
  position: relative; padding: clamp(30px, 4vw, 48px); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); min-height: 380px;
}
.path--female { background: radial-gradient(ellipse at 0% 0%, rgba(255, 170, 130, 0.28), transparent 60%), linear-gradient(160deg, #24160f, #121014); }
.path--male { background: radial-gradient(ellipse at 100% 0%, rgba(255, 50, 20, 0.32), transparent 60%), linear-gradient(200deg, #1f0d0a, #0f0e12); }
.path__tag {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 77, 18, 0.14); color: var(--accent-2);
}
.path h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin: 26px 0 14px; line-height: 1.05; }
.path p { color: #CFCCD3; max-width: 38ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 77, 18, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23FF4D12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Сообщество ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list__item { padding: 26px 0 26px 28px; border-top: 1px solid var(--line); position: relative; }
.list__item::before { content: ""; position: absolute; left: 0; top: 37px; width: 14px; height: 2px; background: var(--accent); }
.list__item h3 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.list__item p { color: var(--muted); }

/* ---------- Подписка ---------- */
.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 56px; align-items: stretch; }
.price-card {
  padding: clamp(30px, 4vw, 48px); border-radius: 26px;
  background: linear-gradient(180deg, #1c1310, #121014);
  border: 1px solid rgba(255, 77, 18, 0.45);
  box-shadow: 0 30px 80px -30px rgba(255, 77, 18, 0.35);
}
.price-card__label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.price-card__price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.price-card__price span { font-size: clamp(52px, 6vw, 78px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.price-card__price small { font-size: 20px; color: var(--muted); }
.price-card__sub { color: #CFCCD3; margin-top: 10px; }
.price-card .ticks { margin: 30px 0 34px; }
.price-card__note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.referral {
  padding: clamp(30px, 4vw, 48px); border-radius: 26px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.referral h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 28px; text-transform: uppercase; }
.referral__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.referral__steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.referral__steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #17140F; font-weight: 800; font-size: 14px; }
.referral__note { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--accent), var(--accent)) center/100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center/2px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 48px 26px 0; color: #CFCCD3; }

/* ---------- Финал ---------- */
.final { text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 77, 18, 0.35), transparent 65%); pointer-events: none;
}
.final .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.final__lead { margin: 28px auto 44px; text-align: center; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 110px; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer__logo { height: 18px; width: auto; }
.footer__docs {
  width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 32px;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.footer__docs a { text-decoration: none; line-height: 1.4; }
.footer__docs a:hover { color: #fff; }
.footer__bottom { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.footer__requisites { line-height: 1.6; }

/* ---------- Липкая кнопка (телефон) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(22, 23, 29, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transform: translateY(140%); transition: transform 0.6s var(--ease);
}
.sticky-cta strong { display: block; font-size: 14px; }
.sticky-cta span { font-size: 12px; color: var(--muted); }
.sticky-cta.is-visible { transform: none; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Прогресс страницы и фоновые искры ---------- */
.page-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.page-progress span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #FF4D12, #FFB38A); }
.ambient { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Бегущая строка ---------- */
.ticker {
  position: relative; overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg), transparent 15%, transparent 85%, var(--bg));
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(20px, 2.4vw, 34px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
.ticker span:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; }
.ticker span::after { content: "✦"; color: var(--accent); -webkit-text-stroke: 0; font-size: 0.6em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Подсветка карточек за курсором ---------- */
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 110, 60, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::after { opacity: 1; }
.path, .price-card, .referral, .quiz-result__card { position: relative; }

/* Заголовки появляются снизу из-под маски */
.title.reveal { filter: blur(10px); transform: translateY(40px); transition: filter 1.1s var(--ease), transform 1.1s var(--ease), opacity 1s; }
.title.reveal.is-visible { filter: none; transform: none; }

/* ---------- Мини-диагностика ---------- */
.split--quiz { align-items: start; }
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 34px; }
.quiz__item label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.quiz__item output { color: var(--accent); font-weight: 800; }
.quiz input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--v, 50%), rgba(255, 255, 255, 0.1) var(--v, 50%) 100%);
}
.quiz input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 77, 18, 0.35), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.quiz input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 77, 18, 0.35);
}
.quiz-result { position: sticky; top: 90px; }
.radar { width: min(100%, 460px); display: block; margin: 0 auto; overflow: visible; }
/* Звезда баланса как в приложении: гранёные лучи, вершины-огоньки, кружки сфер с иконками */
#radar-star { filter: drop-shadow(0 0 16px rgba(255, 77, 18, 0.45)); }
.star-facet { stroke: none; }
.star-rib { stroke: rgba(255, 245, 238, 0.85); stroke-width: 0.6; }
.star-outline { fill: none; stroke: #F47A48; stroke-width: 0.9; stroke-linejoin: round; }
.star-orbit { fill: none; stroke: rgba(23, 20, 15, 0.08); stroke-dasharray: 2 4; }
.star-connector { stroke: rgba(255, 77, 18, 0.55); stroke-width: 0.9; }
.star-tip { fill: #fff; stroke: #FF4D12; stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(255, 77, 18, 0.9)); }
.star-node { --node: #9C6352; }
.star-node > circle { fill: var(--node); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; transition: fill 0.4s var(--ease); }
.star-node__icon { fill: #FFF6F1; }
.star-node__icon .cut { fill: none; stroke: var(--node); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.star-node__icon .cut-dot { fill: var(--node); }
.star-node text { fill: #4F4A43; font-size: 9px; font-weight: 600; font-family: Inter, sans-serif; }
.star-node.is-low { --node: var(--accent); }
.star-node.is-low > circle { stroke: rgba(255, 77, 18, 0.35); stroke-width: 5; }
.star-node.is-low text { fill: var(--accent); }
.quiz-result__card {
  margin-top: 18px; padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.quiz-result__score { display: flex; align-items: baseline; gap: 10px; }
.quiz-result__score span { font-size: 44px; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; }
.quiz-result__score small { color: var(--muted); font-size: 14px; }
.quiz-result__card p { color: #CFCCD3; margin: 8px 0 20px; min-height: 3.2em; }

/* ---------- Светлая тема ----------
   Страница на тёплом светлом фоне с оранжевыми акцентами. Видео (кадры у него чёрные)
   на первом экране стоит в «окне» справа и раскрывается при скролле. Цвета — здесь. */
body { background: #F4F0EA; }
/* Бегущая строка — оранжевая полоса, как беговая дорожка в референсе */
.ticker { background: var(--accent); border: 0; }
.ticker span { color: transparent; -webkit-text-stroke: 1px rgba(23, 20, 15, 0.55); }
.ticker span:nth-child(odd) { color: #17140F; -webkit-text-stroke: 0; }
.ticker span::after { color: #17140F; }
main > section:not(.sequence), .footer {
  --text: #17140F;
  --muted: #6E6860;
  --card: #FFFFFF;
  --bg-2: #FBF8F4;
  --line: rgba(23, 20, 15, 0.1);
  color: var(--text);
  color-scheme: light;
}
#how, #faq { background: #EBE5DC; }
main > section:not(.sequence) .lead,
.path p, .price-card__sub, .faq__item p, .quiz-result__card p { color: #4F4A43; }
.quote { color: var(--text); }
.card, .referral, .quiz-result__card { box-shadow: 0 20px 50px -30px rgba(60, 35, 15, 0.25); }
.section--glow::before { background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255, 77, 18, 0.1), transparent 70%); }
.path { border-color: rgba(23, 20, 15, 0.08); box-shadow: 0 30px 60px -36px rgba(60, 35, 15, 0.3); }
.path--female { background: radial-gradient(ellipse at 0% 0%, rgba(255, 170, 130, 0.35), transparent 60%), linear-gradient(160deg, #FFF6EF, #FFFFFF); }
.path--male { background: radial-gradient(ellipse at 100% 0%, rgba(255, 77, 18, 0.22), transparent 60%), linear-gradient(200deg, #FFEFE6, #FFFFFF); }
.path__tag { background: rgba(255, 77, 18, 0.1); color: #E0400C; }
.price-card { background: linear-gradient(180deg, #FFFFFF, #FFF6F0); box-shadow: 0 30px 80px -30px rgba(255, 77, 18, 0.3); }
.referral__steps li { background: #FBF8F4; }
.quiz input[type=range] { background: linear-gradient(90deg, var(--accent) 0 var(--v, 50%), rgba(23, 20, 15, 0.12) var(--v, 50%) 100%); }
.quiz input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 77, 18, 0.25), 0 2px 6px rgba(60, 35, 15, 0.3); }
.final::before { background: radial-gradient(ellipse at center, rgba(255, 77, 18, 0.22), transparent 65%); }
.footer { background: #17140F; --text: #F4F2EF; --muted: #9C9AA3; --line: rgba(255, 255, 255, 0.09); color: var(--muted); color-scheme: dark; }
.ambient { opacity: 0.32; }
.header.is-scrolled { background: rgba(23, 20, 15, 0.92); }


/* Первый экран: светлый фон, видео в окне со скошенным левым краем */
.sequence__sticky { background: #F4F0EA; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Интерактивный фон секций (js/hero-bg.js): холст высотой с экран + запас едет внутри секции.
   isolation — чтобы холст с z-index: -1 лёг над фоном секции, но под содержимым;
   clip-path обрезает холст по секции и, в отличие от overflow, не ломает sticky внутри */
main > section:not(.sequence) { isolation: isolate; clip-path: inset(0); }
.section-bg {
  position: absolute; left: 0; top: 0; z-index: -1; width: 100%; height: calc(100vh + 320px);
  pointer-events: none; will-change: transform;
}
/* Яркость фона с точками и линзой за курсором: меньше — тусклее */
.hero-bg, .section-bg { opacity: 0.65; }
.sequence__stage {
  position: absolute; inset: 0; background: #0B0C0F;
  clip-path: polygon(calc(54% * (1 - var(--open, 0))) 0, 100% 0, 100% 100%, calc(40% * (1 - var(--open, 0))) 100%);
}
/* Оранжевая полоса вдоль скошенного края */
.sequence__edge {
  position: absolute; inset: 0; background: var(--accent); opacity: calc(1 - var(--open, 0));
  clip-path: polygon(calc(54% * (1 - var(--open, 0)) - 14px) 0, calc(54% * (1 - var(--open, 0))) 0,
                     calc(40% * (1 - var(--open, 0))) 100%, calc(40% * (1 - var(--open, 0)) - 14px) 100%);
}
.chapter--hero .display { color: #17140F; }
.chapter--hero .lead { color: #4F4A43; }
.chapter--hero .btn--ghost { color: #17140F; box-shadow: inset 0 0 0 1px rgba(23, 20, 15, 0.3); }
.chapter--hero .btn--ghost:hover { background: rgba(23, 20, 15, 0.05); box-shadow: inset 0 0 0 1px rgba(23, 20, 15, 0.6); }
.chapter--hero .scroll-hint { color: #6E6860; }
.chapter--hero .scroll-hint span { border-color: rgba(23, 20, 15, 0.3); }
/* Шапка: на светлом фоне — тёмный логотип, после начала скролла — тёмная плашка и белый */
.header__logo .logo--light { display: none; }
.header.is-scrolled .logo--light { display: block; }
.header.is-scrolled .logo--dark { display: none; }
/* Меню прижато к логотипу — на первом экране оно стоит на светлой части, а не на видео */
.header__nav { margin-right: auto; margin-left: clamp(24px, 4vw, 64px); }
.header:not(.is-scrolled) .header__nav { color: #4F4A43; }
.header:not(.is-scrolled) .header__nav a:hover { color: #17140F; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .header__nav { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sequence { height: 540vh; }
  .sequence__shade {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 15, 0.85) 26%, transparent 46%),
                linear-gradient(180deg, rgba(11, 12, 15, 0.7) 0%, transparent 18%);
  }
  .sequence__shade::before { display: none; }
  .chapter, .chapter--top {
    top: auto; left: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom)); right: var(--gutter);
    max-width: none; width: auto; text-align: left; transform: translateY(var(--y, 40px));
  }
  .chapter--top .eyebrow--center { justify-content: flex-start; }
  .display { font-size: clamp(30px, 8.6vw, 40px); }
  .display--md { font-size: clamp(28px, 8vw, 36px); }
  .display--sm { font-size: clamp(22px, 6.4vw, 28px); }
  .title { font-size: clamp(26px, 7.4vw, 34px); }
  .lead { font-size: 15.5px; }
  .chapter .lead { margin-top: 14px; }
  .chapter__actions { margin-top: 22px; gap: 10px; }
  .btn { padding: 13px 20px; font-size: 14.5px; }
  .btn--sm { padding: 9px 15px; font-size: 13px; }
  .btn--lg { padding: 15px 26px; font-size: 15px; }
  .eyebrow { font-size: 11.5px; margin-bottom: 14px; }
  .eyebrow::before { width: 20px; }
  .header__logo img { height: 18px; }
  .scroll-hint { display: none; }
  .sequence__progress { display: none; }
  .split, .grid--2, .pricing { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  /* Первый экран: компактный текст, чтобы было видно телефон в видео */
  .chapter { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .chapter.chapter--hero { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .chapter--hero .display { font-size: clamp(26px, 7.4vw, 32px); }
  .chapter--hero .eyebrow { margin-bottom: 10px; }
  .chapter--hero .lead { font-size: 14.5px; margin-top: 10px; }
  .chapter--hero .chapter__actions { margin-top: 16px; }
  .chapter .display--md { font-size: clamp(26px, 7.4vw, 32px); }
  .chapter .lead { font-size: 14.5px; }
  .steps { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .footer__docs { grid-template-columns: 1fr; gap: 12px; }
  .sticky-cta { display: flex; }
}

@media (max-width: 760px) {
  .quiz { grid-template-columns: 1fr; gap: 14px; }
  .quiz-result { position: static; }
  .ticker { padding: 14px 0; }
}


/* ---------- Первый экран: кнопки под текстом ---------- */
.chapter--hero .chapter__actions { margin-top: 30px; }

/* Карточки траекторий: выбранная выделена */
.path { display: flex; flex-direction: column; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.5s; }
.path .ticks { margin-bottom: 28px; }
.path__choose {
  margin-top: auto; align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(23, 20, 15, 0.2); background: transparent; color: var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.path__choose:hover { border-color: var(--accent); color: var(--accent); }
.path.is-chosen { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--accent), 0 40px 80px -40px rgba(255, 77, 18, 0.5); }
.path.is-chosen .path__choose { background: var(--accent); border-color: var(--accent); color: #17140F; }
body[data-path="female"] .path--male, body[data-path="male"] .path--female { opacity: 0.6; }

/* ---------- План на первую неделю после диагностики ---------- */
.plan { margin: -6px 0 22px; }
.plan:empty { display: none; }
.plan__title { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan__list li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.35; animation: plan-in 0.5s var(--ease) both;
}
.plan__list li:nth-child(2) { animation-delay: 0.06s; }
.plan__list li:nth-child(3) { animation-delay: 0.12s; }
.plan__day { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.plan__min { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes plan-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Твой год с FONS ---------- */
.year {
  list-style: none; padding: 0; margin: 56px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
/* Линия пути через все кварталы */
.year::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 104px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 77, 18, 0.25), var(--accent));
}
.year__step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(60, 35, 15, 0.25);
}
.year__step--final { background: linear-gradient(180deg, #FFF3EC, #FFFFFF); border-color: rgba(255, 77, 18, 0.45); }
.year__when { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.year__star { width: 140px; height: 140px; align-self: center; margin: 4px 0 6px; overflow: visible; }
.year__ring { fill: none; stroke: rgba(23, 20, 15, 0.12); }
.year__ring--inner { stroke-dasharray: 2 3; }
.year__shape { transition: transform 1.2s var(--ease); filter: drop-shadow(0 0 10px rgba(255, 77, 18, 0.4)); }
.year__shape .star-rib { stroke-width: 0.5; }
.year__shape .star-outline { stroke-width: 0.7; }
.year__step h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.year__step p { color: #4F4A43; font-size: 15px; }
.year__lvl { margin-top: auto; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 77, 18, 0.1); color: #E0400C; }
.year__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: #17140F; color: #F4F2EF;
}
.year__cta p { font-size: 17px; color: #CFCCD3; }
.year__cta strong { color: #fff; }

@media (max-width: 1024px) {
  .year { grid-template-columns: repeat(2, 1fr); }
  .year::before { display: none; }
}
@media (max-width: 760px) {
  .chapter--hero .eyebrow { display: none; }
  .chapter--hero .chapter__actions { margin-top: 12px; }
  .year { gap: 10px; }
  .year__step { padding: 18px 14px 20px; gap: 8px; }
  .year__star { width: 96px; height: 96px; }
  .year__step h3 { font-size: 16px; }
  .year__step p { font-size: 13px; line-height: 1.45; }
  .year__lvl { font-size: 11px; padding: 5px 10px; }
  .year__cta { padding: 20px; }
  .year__cta .btn { width: 100%; }
  .plan__list li { grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px 12px; font-size: 13.5px; }
}

/* ---------- Зарабатывай с FONS: калькулятор, шаги, путь до амбассадора ---------- */
.earn { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; margin-top: 56px; align-items: start; }
.earn__calc {
  --text: #F4F2EF; --muted: #A8A39B; --line: rgba(255, 255, 255, 0.1);
  position: relative; overflow: hidden; color: var(--text);
  padding: clamp(28px, 4vw, 48px); border-radius: 26px;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 77, 18, 0.35), transparent 60%), #17140F;
  box-shadow: 0 40px 90px -40px rgba(255, 77, 18, 0.55);
  display: flex; flex-direction: column; gap: 26px;
}
.earn__label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.earn__big { display: flex; flex-direction: column; gap: 8px; }
.earn__big span { font-size: clamp(60px, 8vw, 112px); font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; color: var(--accent); white-space: nowrap; }
.earn__big small { font-size: 17px; color: #CFCCD3; max-width: 30ch; }
.earn__slider { display: grid; gap: 14px; font-size: 15px; font-weight: 600; }
.earn__slider > span { display: flex; justify-content: space-between; }
.earn__slider b { color: var(--accent); font-size: 20px; font-weight: 900; }
.earn__slider input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--v, 10%), rgba(255, 255, 255, 0.12) var(--v, 10%) 100%);
}
.earn__slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 77, 18, 0.35), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.earn__slider input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 77, 18, 0.35);
}
.earn__result {
  display: grid; gap: 4px; padding: 20px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.earn__result span { font-size: 14px; color: var(--muted); }
.earn__result strong { font-size: clamp(36px, 4vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.earn__result em { font-style: normal; color: var(--accent-2); font-weight: 600; font-size: 15px; }
.earn__note { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: -10px; }

.earn__side { display: grid; gap: 18px; }
.earn__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.earn__steps li {
  display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(60, 35, 15, 0.25);
}
.earn__steps li > span {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #17140F; font-weight: 800;
}
.earn__steps h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.earn__steps p { color: var(--muted); font-size: 15px; }

.ladder { padding: 24px; border-radius: var(--radius); background: #EBE5DC; }
.ladder__title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #E0400C; margin-bottom: 16px; }
.ladder__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ladder__list li {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px;
  border-radius: 14px; background: #FFFFFF;
}
.ladder__list li:not(:last-child)::after {
  content: "→"; position: absolute; right: -9px; top: 14px; z-index: 1;
  width: 18px; height: 18px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent);
}
.ladder__list b { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.ladder__list span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.ladder__top { background: var(--accent) !important; color: #17140F; }
.ladder__top span { color: rgba(23, 20, 15, 0.82); }
.ladder__note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- Экосистема: встречи, марафоны, знакомства, гайды, FONS GAMES ---------- */
#ecosystem { background: #EBE5DC; }
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.eco__card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(60, 35, 15, 0.25);
}
.eco__icon { font-size: 14px; font-weight: 800; color: var(--accent); }
.eco__card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1.15; }
.eco__card p { color: #4F4A43; font-size: 15px; }
.eco__card--accent { background: var(--accent); border-color: transparent; color: #17140F; }
.eco__card--accent .eco__icon, .eco__card--accent p { color: rgba(23, 20, 15, 0.86); }
.eco__link { margin-top: auto; padding-top: 8px; font-weight: 700; }
.eco__link:hover { text-decoration: underline; }

.games {
  grid-column: span 3; position: relative; overflow: hidden; border-radius: 26px;
  padding: clamp(28px, 4vw, 48px); color: #F4F2EF;
  background:
    linear-gradient(115deg, transparent 76%, rgba(255, 77, 18, 0.9) 76.3%, transparent 77.2%),
    linear-gradient(115deg, transparent 80%, rgba(255, 77, 18, 0.5) 80.2%, transparent 80.8%),
    radial-gradient(ellipse 70% 90% at 100% 100%, rgba(255, 77, 18, 0.45), transparent 60%),
    #17140F;
}
.games__text { max-width: 580px; }
.games__tag { display: block; line-height: 1.5; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.games h3 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; text-transform: uppercase; margin: 16px 0 14px; }
.games p { color: #CFCCD3; }
.games__facts { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.games__facts li { display: flex; align-items: center; gap: 12px; }
.games__facts b { font-size: clamp(34px, 3.6vw, 48px); font-weight: 900; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.games__facts span { font-size: 13px; line-height: 1.35; color: #CFCCD3; }
.games__more { font-size: 15px; }

@media (max-width: 1024px) {
  .earn { grid-template-columns: 1fr; }
  .eco { grid-template-columns: repeat(2, 1fr); }
  .games { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .earn, .eco { margin-top: 36px; }
  .earn__calc { gap: 20px; }
  .earn__steps li { padding: 18px; gap: 14px; }
  .ladder { padding: 18px 14px; }
  .ladder__list { grid-template-columns: 1fr; }
  .ladder__list li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%); }
  .eco { grid-template-columns: 1fr; gap: 12px; }
  .eco__card { padding: 22px 20px; }
  .games { background:
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(255, 77, 18, 0.45), transparent 60%), #17140F; }
}

.nowrap { white-space: nowrap; }
.games__link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--accent-2); }
.games__link:hover { text-decoration: underline; }

/* ---------- FONS GAMES · слайд 1: тёмный экран с фото финиша и трассой ---------- */
main > section.gx {
  --text: #F4F2EF; --muted: #A8A39B; --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark; color: var(--text);
  position: relative; min-height: 100vh; min-height: 100svh; background: #0E0B09;
  display: flex; align-items: center; padding: clamp(84px, 10vh, 110px) 0 clamp(24px, 3vh, 40px);
}
/* Фото — в правой части экрана, левый край растворяется в фоне */
/* Пропорции окна близки к пропорциям фото — кадр почти не обрезается */
.gx__bg { position: absolute; top: 0; right: 0; width: 64%; aspect-ratio: 4 / 3; max-height: 100%; }
.gx__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity 0.6s var(--ease); }
.gx__bg img.is-on { opacity: 1; }
/* Затемнение: текст слева читается, арка финиша справа видна */
.gx__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0E0B09 0%, rgba(14, 11, 9, 0.75) 22%, rgba(14, 11, 9, 0.1) 55%, rgba(14, 11, 9, 0.2) 100%),
    linear-gradient(0deg, #0E0B09 0%, rgba(14, 11, 9, 0.6) 22%, transparent 45%);
}
.gx__inner { position: relative; z-index: 1; }
.gx__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(255, 77, 18, 0.18); border: 1px solid rgba(255, 77, 18, 0.5);
}
.gx__title {
  font-size: clamp(28px, 2.6vw, 40px); font-weight: 900; line-height: 1; letter-spacing: -0.03em;
  text-transform: uppercase; max-width: 14ch; margin: 16px 0 14px;
}
.gx__lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: #D9D4CE; max-width: 52ch; }
.gx__formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.gx__chip {
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px);
}
.gx__chip b { color: var(--accent); font-weight: 900; }
.gx__chip--finish { background: var(--accent); border-color: var(--accent); color: #17140F; text-transform: uppercase; letter-spacing: 0.06em; }
.gx__op { font-size: 22px; font-weight: 900; color: var(--accent); }
.gx__facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.gx__facts li { display: flex; align-items: center; gap: 12px; }
.gx__facts b { font-size: clamp(32px, 3.2vw, 46px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.gx__facts span { font-size: 13.5px; line-height: 1.35; color: #CFCCD3; max-width: 16ch; }
.gx__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Трасса из 9 отрезков: линия прогресса и подсвеченная станция */
.track {
  --progress: 11%;
  list-style: none; padding: 0; margin: clamp(26px, 3.5vh, 40px) 0 0; position: relative;
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px;
}
.track::before, .track::after { content: ""; position: absolute; left: 0; top: -14px; height: 3px; border-radius: 3px; }
.track::before { right: 0; background: rgba(255, 255, 255, 0.14); }
.track::after { width: var(--progress); background: var(--accent); box-shadow: 0 0 14px rgba(255, 77, 18, 0.8); transition: width 0.9s var(--ease); }
.track li {
  /* Квадратные карточки: высота = ширине */
  aspect-ratio: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 9px; border-radius: 14px; cursor: pointer;
  background: rgba(20, 16, 13, 0.62); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.track__n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  font-size: 12px; font-weight: 900; background: rgba(255, 255, 255, 0.12); transition: background 0.4s var(--ease);
}
.track b { font-size: 12.5px; line-height: 1.18; font-weight: 700; }
.track em { font-style: normal; font-size: 11.5px; color: #A8A39B; }
.track small { margin-top: auto; padding-top: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.track li.is-done .track__n { background: rgba(255, 77, 18, 0.45); }
.track li.is-active { background: rgba(255, 77, 18, 0.22); border-color: var(--accent); transform: translateY(-6px); }
.track li.is-active .track__n { background: var(--accent); color: #17140F; }
.track__final { border-color: rgba(255, 77, 18, 0.45) !important; }
.track__final em { display: none; }
.track-wrap { position: relative; }
.track-hint { display: none; }
/* Невысокие экраны ноутбуков: плотнее отступы, чтобы гонка целиком помещалась в экран */
@media (min-width: 761px) and (max-height: 760px) {
  main > section.gx { padding-bottom: 16px; }
  .gx__title { font-size: clamp(26px, 2.4vw, 34px); margin: 12px 0 10px; }
  .gx__formula, .gx__facts { margin-top: 14px; }
  .gx__actions { margin-top: 16px; }
  .track { margin-top: 24px; }
}

/* ---------- FONS GAMES · слайд 2: «Бегу за…», день гонки, медаль ---------- */
.gd { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); margin-top: 48px; align-items: start; }
.gd__bib-wrap { position: sticky; top: 100px; }
.bib {
  position: relative; padding: 22px 26px 26px; border-radius: 18px; color: #17140F;
  background: linear-gradient(180deg, #FFFFFF, #F6F1EA);
  box-shadow: 0 30px 70px -30px rgba(60, 35, 15, 0.45), 0 0 0 1px rgba(23, 20, 15, 0.08);
  transform: rotate(-2deg);
}
.bib__pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #CFC6BB; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.bib__pin--tl { top: 12px; left: 12px; } .bib__pin--tr { top: 12px; right: 12px; }
.bib__pin--bl { bottom: 12px; left: 12px; } .bib__pin--br { bottom: 12px; right: 12px; }
.bib__top {
  display: flex; justify-content: space-between; margin: 0 14px; padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: #17140F; font-size: 13px; font-weight: 900; letter-spacing: 0.14em;
}
.bib__num { font-size: clamp(84px, 10vw, 140px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; text-align: center; margin: 14px 0 8px; }
.bib__for {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center;
  padding: 12px 10px 4px; border-top: 2px dashed rgba(23, 20, 15, 0.2);
  text-transform: uppercase; font-weight: 900; letter-spacing: -0.01em;
}
.bib__for span { font-size: 16px; color: var(--accent); letter-spacing: 0.1em; }
.bib__for strong { font-size: clamp(22px, 2.4vw, 32px); min-height: 1.2em; line-height: 1.15; }
.bib__for strong::after { content: ""; display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; vertical-align: -0.08em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bib__field { display: grid; gap: 8px; margin-top: 28px; font-size: 14px; font-weight: 700; }
.bib__field input {
  font: inherit; font-size: 16px; font-weight: 600; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(23, 20, 15, 0.15); background: #fff; color: #17140F; outline: none;
}
.bib__field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 77, 18, 0.15); }
.bib__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bib__chips button {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(23, 20, 15, 0.15); background: #fff; color: #17140F; transition: border-color 0.3s, background 0.3s;
}
.bib__chips button:hover { border-color: var(--accent); background: #FFF3EC; }

.gd__day { list-style: none; padding: 0; margin: 0; position: relative; }
.gd__day::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, rgba(255, 77, 18, 0.25), var(--accent)); }
.gd__day li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 0 0 22px 34px; }
.gd__day li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #F4F0EA; border: 3px solid var(--accent); }
.gd__day li > span { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.gd__day h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.gd__day p { color: #4F4A43; font-size: 15px; }
.gd__day--hot::before { background: var(--accent) !important; box-shadow: 0 0 0 6px rgba(255, 77, 18, 0.2); }

.gd__strip { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 40px; }
.gd__photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; min-height: 320px; background: #17140F; }
.gd__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; color: #D9D4CE; font-size: 14.5px;
  background: linear-gradient(0deg, rgba(14, 11, 9, 0.92), transparent);
}
.gd__photo figcaption b { display: block; color: #fff; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 4px; }
.gd__cards { display: grid; gap: 12px; }
.gd__card {
  padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(60, 35, 15, 0.25);
}
.gd__card h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; margin-bottom: 6px; }
.gd__card p { color: #4F4A43; font-size: 14.5px; }
.gd__card--medal { display: flex; align-items: center; gap: 16px; background: #17140F; color: #F4F2EF; border-color: transparent; }
.gd__card--medal img { width: 76px; height: auto; flex: none; border-radius: 10px; }
.gd__card--medal p { color: #CFCCD3; }
.gd__divs { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gd__divs li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 77, 18, 0.1); color: #E0400C; }

@media (max-width: 1024px) {
  .track { grid-template-columns: repeat(9, minmax(120px, 1fr)); overflow-x: auto; padding: 8px 2px 10px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .track::before, .track::after { display: none; }
  .gd { grid-template-columns: 1fr; }
  .gd__bib-wrap { position: static; max-width: 520px; }
  .gd__strip { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* Телефон: фото финиша — отдельной картинкой сверху, текст под ним */
  main > section.gx { min-height: 0; padding: calc(70vw + 8px) 0 40px; }
  .gx__bg { width: 100%; height: 76vw; aspect-ratio: auto; }
  .gx__bg img { object-position: 50% 50%; }
  .gx__bg::after { background: linear-gradient(0deg, #0E0B09 0%, rgba(14, 11, 9, 0.3) 35%, transparent 60%); }
  .gx__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gx__facts li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gx__facts span { font-size: 12px; }
  .gx__chip { font-size: 13.5px; padding: 8px 12px; }
  .gx__facts { gap: 14px 24px; }
  .gx__actions .btn { width: 100%; }
  /* Станции — сразу под фото: видно, как меняется картинка при нажатии */
  .gx__inner { display: flex; flex-direction: column; align-items: flex-start; }
  .gx__inner > * { max-width: 100%; }
  .track-wrap { order: -1; align-self: stretch; margin-bottom: 26px; }
  .track { margin-top: 0; grid-template-columns: repeat(9, 124px); scroll-snap-type: x proximity; }
  .track li { scroll-snap-align: center; }
  /* Правый край ленты растворяется — видно, что дальше есть ещё станции */
  .track-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--gutter)); width: 56px; pointer-events: none;
    background: linear-gradient(90deg, transparent, #0E0B09);
  }
  /* Рука-подсказка: проводит по ленте справа налево */
  .track-hint {
    position: absolute; z-index: 2; right: 6px; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 2px;
    margin-top: -34px; padding: 10px 12px 8px; border-radius: 16px; pointer-events: none;
    background: rgba(255, 77, 18, 0.92); color: #17140F; box-shadow: 0 10px 30px -8px rgba(255, 77, 18, 0.7);
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    transition: opacity 0.4s;
  }
  .track-hint svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: swipe 1.8s var(--ease) infinite; }
  .track-hint.is-hidden { opacity: 0; }
  @keyframes swipe {
    0% { transform: translateX(10px) rotate(8deg); opacity: 0; }
    20% { opacity: 1; }
    65% { transform: translateX(-14px) rotate(-6deg); opacity: 1; }
    100% { transform: translateX(-18px) rotate(-6deg); opacity: 0; }
  }
  .gd { margin-top: 32px; }
  .bib { padding: 18px 18px 22px; }
  .gd__day li { grid-template-columns: 1fr; gap: 4px; padding-bottom: 18px; }
  .gd__photo { min-height: 440px; }
  .gd__photo img { object-position: 50% 30%; }
}

/* Телефон: окно с видео сверху, скошенный нижний край, текст ниже на светлом */
@media (max-width: 760px) {
  /* Окно начинается сразу под шапкой (--win-top), скос (--cut-l слева, --cut-r справа) — как можно ниже,
     но так, чтобы не заходить на текст первого экрана на невысоких телефонах */
  .sequence__sticky {
    --win-top: 70px;
    --cut-l: min(67%, 100% - 270px);
    --cut-r: min(60%, 100% - 330px);
  }
  .sequence__stage {
    clip-path: polygon(0 calc(var(--win-top) * (1 - var(--open, 0))), 100% calc(var(--win-top) * (1 - var(--open, 0))),
                       100% calc(var(--cut-r) + (100% - var(--cut-r)) * var(--open, 0)), 0 calc(var(--cut-l) + (100% - var(--cut-l)) * var(--open, 0)));
  }
  .sequence__edge {
    clip-path: polygon(0 calc(var(--cut-l) + (100% - var(--cut-l)) * var(--open, 0)), 100% calc(var(--cut-r) + (100% - var(--cut-r)) * var(--open, 0)),
                       100% calc(var(--cut-r) + (100% - var(--cut-r)) * var(--open, 0) + 10px), 0 calc(var(--cut-l) + (100% - var(--cut-l)) * var(--open, 0) + 10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span::after, .ticker__track, .btn::after { animation: none !important; }
  .title.reveal { filter: none; }
}

/* ---------- AI-наставник GPT-Сергий ----------
   Тёмная панель как у FONS GAMES: слева портрет на орбите и что умеет наставник,
   справа пример диалога (сообщения и подсказки строит js/main.js) */
.eco__inline { text-decoration: underline; text-decoration-color: rgba(255, 77, 18, 0.5); text-underline-offset: 3px; }
.mentor {
  position: relative; overflow: hidden; margin-top: 48px; border-radius: 28px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 4vw, 52px); color: #F4F2EF;
  background:
    linear-gradient(115deg, transparent 58%, rgba(255, 77, 18, 0.85) 58.25%, transparent 58.9%),
    radial-gradient(ellipse 55% 70% at 18% 22%, rgba(255, 77, 18, 0.28), transparent 65%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(255, 77, 18, 0.22), transparent 60%),
    #17140F;
}
.mentor__intro { position: relative; display: flex; flex-direction: column; }

.mentor__avatar { position: relative; width: clamp(170px, 18vw, 220px); aspect-ratio: 1; margin: 6px 0 0 6px; }
.mentor__avatar img {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 0 4px #17140F, 0 0 0 6px rgba(255, 77, 18, 0.9), 0 0 60px 6px rgba(255, 77, 18, 0.45);
}
.mentor__orbit {
  position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
  animation: mentor-spin 26s linear infinite;
}
.mentor__orbit i { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(255, 77, 18, 0.8); }
.mentor__orbit i:nth-child(1) { left: 50%; top: 0; }
.mentor__orbit i:nth-child(2) { left: 100%; top: 50%; }
.mentor__orbit i:nth-child(3) { left: 15%; top: 85%; }
.mentor__orbit i:nth-child(4) { left: 6%; top: 26%; width: 6px; height: 6px; margin: -3px; }
@keyframes mentor-spin { to { transform: rotate(360deg); } }

.mentor__name { margin: 34px 0 26px; }
.mentor__name b { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.mentor__name span { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: #CFCCD3; }
.mentor__live { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: mentor-live 2s infinite; }
@keyframes mentor-live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.mentor__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.mentor__list li { display: flex; gap: 12px; }
.mentor__list li > span { flex: none; font-size: 13px; font-weight: 800; color: var(--accent-2); padding-top: 3px; }
.mentor__list h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.2; }
.mentor__list p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #B9B5BE; }

/* Чат */
.chat {
  position: relative; display: flex; flex-direction: column; min-height: 540px; border-radius: 22px;
  background: rgba(11, 12, 15, 0.82); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.chat__head img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); }
.chat__head b { display: block; font-size: 15px; }
.chat__head small { display: block; font-size: 12.5px; color: #3DDC84; }
.chat__tag { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8E8A93; }
.chat__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; overflow: hidden; }
.msg {
  max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45;
  animation: msg-in 0.45s var(--ease) both;
}
.msg--bot { align-self: flex-start; background: #24221F; border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--accent); color: #17140F; border-bottom-right-radius: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.msg--typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #8E8A93; animation: typing 1.1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 30% { transform: translateY(-4px); background: #CFCCD3; } }
/* Карточка задания в ответе наставника */
.task {
  align-self: flex-start; width: min(84%, 340px); padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 77, 18, 0.22), rgba(255, 77, 18, 0.06)); border: 1px solid rgba(255, 77, 18, 0.45);
  animation: msg-in 0.45s var(--ease) both;
}
.task small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.task b { display: block; margin: 6px 0 10px; font-size: 15.5px; line-height: 1.35; }
.task span { display: inline-flex; gap: 6px; margin-right: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, 0.08); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.chat__chips button {
  font: inherit; font-size: 13.5px; font-weight: 600; color: #F4F2EF; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chat__chips button:hover { border-color: var(--accent); }
.chat__chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #17140F; }
.chat__chips button:disabled { opacity: 0.45; cursor: default; }
.chat__chips button[aria-pressed="true"]:disabled { opacity: 1; }

.mentor__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 32px; }
.mentor__cta p { font-size: 14px; color: #6B655D; }

@media (max-width: 1024px) {
  .mentor { grid-template-columns: 1fr; background:
    radial-gradient(ellipse 80% 40% at 20% 0%, rgba(255, 77, 18, 0.28), transparent 65%),
    radial-gradient(ellipse 90% 50% at 100% 100%, rgba(255, 77, 18, 0.22), transparent 60%), #17140F; }
  .mentor__intro { display: grid; grid-template-columns: auto 1fr; column-gap: 32px; align-items: center; }
  .mentor__name { margin: 0; }
  .mentor__list { grid-column: 1 / -1; margin-top: 36px; }
}
@media (max-width: 760px) {
  .mentor { margin-top: 32px; padding: 26px 18px 18px; border-radius: 22px; }
  .mentor__intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mentor__avatar { width: 170px; margin: 18px 0 0; }
  .mentor__name { margin-top: 30px; }
  .mentor__name span { justify-content: center; }
  .mentor__list { grid-template-columns: 1fr; text-align: left; gap: 16px; margin-top: 28px; }
  .chat { min-height: 470px; border-radius: 18px; }
  .chat__tag { display: none; }
  .chat__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chat__chips::-webkit-scrollbar { display: none; }
  .chat__chips button { flex: none; }
  .msg { max-width: 90%; font-size: 14.5px; }
  .mentor__cta .btn { width: 100%; }
  .mentor__cta p { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mentor__orbit, .mentor__live, .msg--typing i { animation: none; }
}

.page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.page-back:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.page-back:disabled { opacity: .45; cursor: default; }
.page-back--bottom {
  width: 100%;
  margin-top: 24px;
  margin-bottom: calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  .page-back--bottom { display: none; }
}
