/* ═══════════════════════════════════════════════════════════
   РЫЧАГ — лендинг. «Бумага на графите»
   Палитра и шрифты — из брендбука приложения (lib/core/theme.dart)
   ═══════════════════════════════════════════════════════════ */

:root {
  --graphite: #16181D;
  --graphite-2: #1E222A;
  --graphite-3: #272C36;
  --graphite-line: #31363F;

  --bone: #EFE9DC;
  --bone-2: #E3DACB;
  --bone-dim: #D6CDBC;
  --mute: #918878;

  --ink: #1B1712;
  --ink-soft: #6A6152;

  --oxblood: #A02B23;
  --oxblood-deep: #7C1F19;
  --brass: #B08D57;
  --brass-bright: #C9A76B;
  --terracotta: #C97B4A;
  --flame: #D2691E;
  --ok: #3C6E47;

  --font-head: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 18px;
  --paper-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --container: 1140px;
}

@font-face { font-family: 'IBM Plex Serif'; src: url('../fonts/IBMPlexSerif-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Serif'; src: url('../fonts/IBMPlexSerif-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* Mono — два веса: 400 для подписей, 600 для акцентов */
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ── База ─────────────────────────────────────────────── */

/* Клавиатурная навигация: латунный фокус */
:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .diag__opt:focus-visible, .pill-link:focus-visible {
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(176, 141, 87, .22);
}
summary:focus-visible { outline-offset: 4px; }

.skip-link {
  position: absolute; left: -9999px; z-index: 100;
  padding: 12px 20px; background: var(--bone); color: var(--ink);
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--graphite);
  color: var(--bone-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--oxblood); color: var(--bone); }

h1, h2, h3 { font-family: var(--font-head); color: var(--bone); font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: .01em; }
h3 { font-size: 20px; }

.accent { color: var(--brass); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { color: var(--mute); }

/* ── Кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--oxblood);
  color: var(--bone);
  box-shadow: 0 10px 26px rgba(160, 43, 35, .35);
}
.btn--primary:hover { background: var(--oxblood-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(160, 43, 35, .45); }
.btn--brass {
  background: transparent;
  color: var(--brass-bright);
  border-color: var(--brass);
}
.btn--brass:hover { background: rgba(176, 141, 87, .12); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--bone-dim);
  border-color: var(--graphite-line);
}
.btn--ghost:hover { border-color: var(--mute); color: var(--bone); transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.play-icon { flex: none; }

/* ── Header ───────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(22, 24, 29, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header--scrolled { border-bottom-color: var(--graphite-3); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo__icon { border-radius: 8px; }
.logo__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: var(--bone);
  letter-spacing: .02em;
}
.logo__word em { font-style: normal; color: var(--oxblood); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--bone); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; padding: 172px 0 110px; overflow: hidden; }
/* Дрейфующие сферы героя (адаптация Ambient Aurora, 21st.dev) */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: .9;
}
.aurora canvas { display: block; }
.hero__inner { z-index: 1; }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__title { font-size: clamp(42px, 5.6vw, 72px); margin-bottom: 22px; }
.hero__sub { font-size: 19px; color: var(--bone-dim); max-width: 520px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.hero__trust i { font-style: normal; color: var(--brass); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.seal {
  position: absolute;
  bottom: -30px;
  right: 60px;
  width: 138px; height: 138px;
  color: var(--brass);
  opacity: .95;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
.phone {
  position: relative;
  width: 300px;
  border-radius: 38px;
  border: 3px solid var(--graphite-3);
  background: var(--graphite);
  padding: 12px;
  box-shadow: var(--paper-shadow), 0 0 90px rgba(176, 141, 87, .10);
}
.phone.tilt { transform: rotate(2.4deg); transition: transform .5s ease; }
.phone.tilt:hover { transform: rotate(0deg) translateY(-6px); }
.phone img { display: block; width: 100%; border-radius: 26px; }
.phone__notch {
  position: absolute; top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: var(--graphite);
  border-radius: 12px;
  z-index: 2;
}

.seal {
  position: absolute;
  bottom: -30px;
  right: 60px;
  width: 138px; height: 138px;
  color: var(--brass);
  opacity: .95;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
/* Вращается только кольцо — «РЫЧАГ» в центре недвижим */
.seal__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  fill: var(--brass-bright);
  letter-spacing: .12em;
}
.seal__rotor {
  transform-origin: 60px 60px;
  animation: seal-spin 36s linear infinite;
}
.seal__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  fill: var(--brass);
}
.seal__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  fill: var(--brass);
  letter-spacing: .1em;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ── «Бумажная» карточка ──────────────────────────────── */
.paper {
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
  padding: 40px 44px;
}
.paper h2, .paper h3 { color: var(--ink); }
.paper .eyebrow { color: var(--oxblood); }
.paper .accent { color: var(--oxblood); }

/* ── Диагностика ──────────────────────────────────────── */
.diag__stage {
  max-width: 680px;
  margin: 0 auto;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.diag__stage[data-mode="intro"] { min-height: 430px; }
.diag__stage[data-mode="result"] { min-height: 680px; }
.diag__progress {
  display: flex; gap: 8px; margin-bottom: 26px;
}
.diag__progress span {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(27, 23, 18, .14);
  transition: background .3s ease;
}
.diag__progress span.done { background: var(--oxblood); }
.diag__q {
  font-family: var(--font-head);
  font-size: 25px;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.25;
}
.diag__opts { display: grid; gap: 10px; }
.diag__opt {
  text-align: left;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid rgba(27, 23, 18, .22);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.diag__opt:hover { border-color: var(--oxblood); background: rgba(160, 43, 35, .06); transform: translateX(3px); }
.diag__back {
  margin-top: 18px;
  background: none; border: none;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .1em;
  color: var(--ink-soft);
  cursor: pointer;
}
.diag__back:hover { color: var(--oxblood); }

.diag__intro h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.diag__intro p { color: var(--ink-soft); margin-bottom: 24px; }

.diag__result { text-align: center; }
.diag__result h2 { margin-bottom: 8px; }
.diag__verdict {
  max-width: 470px;
  margin: 0 auto 6px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.68;
  text-wrap: balance;
}
.diag__verdict b { color: var(--oxblood); }
.diag__note { font-size: 13px; color: var(--ink-soft); opacity: .85; margin-top: 16px; }
.diag__restart {
  display: inline-block;
  margin-left: 6px;
  border: 1.5px solid rgba(27, 23, 18, .32);
  border-radius: 9px;
  padding: 6px 14px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.diag__restart:hover { border-color: var(--oxblood); color: var(--oxblood); background: rgba(160, 43, 35, .06); }
.diag__result .btn { margin-top: 20px; }
.radar-wrap { display: flex; justify-content: center; margin: 6px 0 18px; }

/* ── Четыре «Д» ───────────────────────────────────────── */
.pains { position: relative; overflow: hidden; background: var(--graphite-2); border-block: 1px solid var(--graphite-3); }
.pains::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,
    transparent 0 26px,
    rgba(239, 233, 220, .04) 26px 27px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .35) 90%);
          mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .35) 90%);
  animation: hatch-drift 60s linear infinite;
  pointer-events: none;
}
.pains .container { position: relative; }
@keyframes hatch-drift { to { background-position: 27px 0; } }
.pains__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.pain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 1px solid var(--graphite-3);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  background: var(--graphite);
  transition: transform .25s ease, border-color .25s ease;
}
.pain-card:hover { transform: translateY(-5px); border-color: var(--brass); }
.pain-card__num {
  position: absolute;
  top: 8px; right: 16px;
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  color: rgba(176, 141, 87, .10);
  line-height: 1;
  user-select: none;
}
.pain-card__glyph {
  display: inline-flex;
  align-self: center; /* во flex-колонке без этого иконка прижимается влево */
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(160, 43, 35, .12);
  border: 1px solid rgba(160, 43, 35, .35);
  color: var(--oxblood);
  margin-bottom: 16px;
}
.pain-card__glyph svg { width: 22px; height: 22px; }
.pain-card h3 { margin-bottom: 10px; }
.pain-card p { font-size: 15px; color: var(--mute); }
.pain-card__quote {
  margin: auto 0 0; /* фраза-зона прижата к нижней границе карточки */
  min-height: 4.35em; /* зона на три строки: черты всех карточек на одном уровне */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 13px;
  border-top: 1px solid rgba(239, 233, 220, .10);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--bone-dim);
}
.pains__src {
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
  margin: 0 0 36px;
}
.pains__close { text-align: center; font-size: 19px; color: var(--bone-dim); }
.pains__close b { color: var(--brass); }

/* ── Цикл дня ─────────────────────────────────────────── */
.cycle__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 0;
}
.cycle__line {
  position: absolute;
  top: 22px; left: 0;
  width: 100%; height: 2px;
  background: var(--graphite-3);
  transform-origin: left;
}
.cycle__line::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brass), var(--oxblood));
  transform: scaleX(0);
  transform-origin: left;
}
.cycle.in-view .cycle__line::before { animation: line-grow 1.8s ease forwards; }
@keyframes line-grow { to { transform: scaleX(1); } }
.cycle-step { position: relative; }
.cycle-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(176, 141, 87, .10);
  border: 1.5px solid var(--brass);
  color: var(--brass-bright);
  margin-bottom: 16px;
}
.cycle-step__icon svg { width: 21px; height: 21px; }
.cycle-step--series .cycle-step__icon {
  color: var(--okBright);
  border-color: var(--ok);
  background: rgba(60, 110, 71, .12);
}

.cycle-step__time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}
.cycle-step h3 { margin-bottom: 8px; font-size: 21px; }
.cycle-step p { font-size: 15px; color: var(--mute); }
.cycle__close {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--bone);
}

/* ── Со временем ──────────────────────────────────────── */
.time__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.time-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--graphite-3);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 26px 24px;
}

.time-card p { margin-bottom: 22px; }
.time-card__note { margin-bottom: 22px; }
.time-card__mark {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--flame);
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid var(--graphite-3);
  border-radius: 100px;
  padding: 4px 12px;
}
.time-card h3 { margin-bottom: 10px; font-size: 21px; }
.time-card p { font-size: 15px; color: var(--mute); }
.time-card__note { margin-top: 12px; font-style: italic; }
.time-card__shot {
  margin-top: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--graphite-3);
  height: 190px;
  position: relative;
}
.time-card:hover .time-card__shot::after { opacity: 0; }
/* Свёрнутая карточка — своя высота; при наведении пик скрина растёт вниз */
@media (hover: hover) {
  .time-card__shot { transition: height .65s cubic-bezier(.4, 0, .2, 1); }
  .time-card:hover .time-card__shot { height: 400px; }
}
.time-card__shot img { display: block; width: 62%; height: auto; margin: 0 auto; }
.time-card__shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30, 34, 42, .05) 40%, var(--graphite-2) 96%);
  transition: opacity .5s ease;
}
@media (hover: none) {
  .time-card__shot { height: 320px; }
  .time-card__shot::after { display: none; }
}
.time-card__viz {
  margin-top: 18px;
  border: 1px solid var(--graphite-3);
  border-radius: 12px;
  background: var(--graphite-2);
  padding: 10px;
}
.time-card__viz svg { display: block; width: 100%; height: auto; }

/* ── Bento ────────────────────────────────────────────── */
.features { position: relative; overflow: hidden; background: var(--graphite-2); border-block: 1px solid var(--graphite-3); }
.features::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(239, 233, 220, .11) 1.2px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 35%, #000 25%, transparent 92%);
          mask-image: radial-gradient(80% 90% at 50% 35%, #000 25%, transparent 92%);
  animation: dots-drift 36s linear infinite;
  pointer-events: none;
}
.features .container { position: relative; }
@keyframes dots-drift { to { background-position: 26px 26px; } }

.time { position: relative; overflow: hidden; }
.time::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 88% -12%,
    transparent 0 58px,
    rgba(239, 233, 220, .06) 58px 59px,
    transparent 59px 116px);
  pointer-events: none;
}
.time .container { position: relative; }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento__cell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--graphite-3);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 28px 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.bento__cell:hover { transform: translateY(-4px); border-color: var(--brass); }
.bento__glyph {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(176, 141, 87, .10);
  border: 1px solid rgba(176, 141, 87, .35);
  color: var(--brass-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bento__glyph svg { width: 19px; height: 19px; }
.bento__cell h3 { padding-right: 46px; }
.bento__cell--cta h3 { padding-right: 0; }
.bento__cell h3 { margin-bottom: 10px; }
.bento__cell p { font-size: 15px; color: var(--mute); }
.bento__cell--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--oxblood);
  border-color: var(--oxblood);
  text-decoration: none;
}
.bento__cell--cta:hover { border-color: var(--bone); transform: translateY(-4px); }
.bento__cell--cta h3 { color: var(--bone); }
.bento__cell--cta p { color: rgba(239, 233, 220, .78); }
.bento__cta-arrow {
  position: absolute;
  right: 24px; top: 22px;
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--bone);
  transition: transform .2s ease;
}
.bento__cell--cta:hover .bento__cta-arrow { transform: translateX(5px); }
/* место бывшего .bento__flame — заменён на .bento__glyph */

/* ── Честность ────────────────────────────────────────── */
.honest { position: relative; padding: 96px 0; overflow: hidden; }
.honest::before, .honest::after {
  content: '';
  position: absolute;
  top: -15%; bottom: -15%;
  width: 110px;
  transform: skewX(-14deg);
  pointer-events: none;
}
.honest::before {
  left: 16%;
  background: linear-gradient(180deg, transparent, rgba(176, 141, 87, .13) 28% 72%, transparent);
  animation: beam-y 9s ease-in-out infinite alternate;
}
.honest::after {
  right: 14%;
  background: linear-gradient(180deg, transparent, rgba(160, 43, 35, .11) 28% 72%, transparent);
  animation: beam-y 12s ease-in-out infinite alternate-reverse;
}
@keyframes beam-y {
  from { transform: skewX(-14deg) translateY(-5%); }
  to   { transform: skewX(-14deg) translateY(5%); }
}
.honest .container { position: relative; z-index: 1; }
.honest__card { max-width: 760px; margin: 0 auto; position: relative; }
.honest__stamp {
  position: absolute;
  top: 30px; right: 34px;
  transform: rotate(8deg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oxblood);
  border: 2px solid var(--oxblood);
  border-radius: 10px;
  padding: 9px 14px 9px 18px;
  opacity: .85;
  box-shadow: inset 0 0 0 1.5px rgba(160, 43, 35, .35);
  user-select: none;
}
.honest__card h2 { margin-bottom: 24px; }
.honest__list { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.honest__list li {
  padding-left: 30px;
  position: relative;
  font-size: 16.5px;
  color: var(--ink);
}
.honest__list li::before {
  content: '×';
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--oxblood);
}
.honest__close {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--ink);
  border-top: 1px solid rgba(27, 23, 18, .16);
  padding-top: 22px;
}

/* ── Мы только что вышли ──────────────────────────────── */
.fresh { padding-top: 0; overflow: hidden; }
.fresh .container { position: relative; z-index: 1; }
.fresh__card { max-width: 760px; margin: 0 auto; position: relative; }
.fresh__stamp {
  position: absolute;
  top: 30px; right: 34px;
  transform: rotate(-7deg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-bright, #9C7B45);
  border: 2px solid var(--brass, #B08D57);
  border-radius: 10px;
  padding: 9px 14px 9px 18px;
  opacity: .9;
  box-shadow: inset 0 0 0 1.5px rgba(176, 141, 87, .35);
  user-select: none;
}
.fresh__card h2 { margin-bottom: 24px; }
.fresh__list { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.fresh__list li {
  padding-left: 32px;
  position: relative;
  font-size: 16.5px;
  color: var(--ink);
}
.fresh__list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--brass, #B08D57);
}
.fresh__list li[hidden] { display: none; }
.fresh__list s { opacity: .55; }
.fresh__list a { color: var(--oxblood); text-underline-offset: 3px; }
.fresh__close {
  font-size: 15px;
  color: var(--mute);
  border-top: 1px solid rgba(27, 23, 18, .16);
  padding-top: 20px;
}

/* ── Тарифы ───────────────────────────────────────────── */
.pricing__toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--graphite-2);
  border: 1px solid var(--graphite-3);
  border-radius: 999px;
  padding: 5px;
  width: max-content;
  margin: -20px auto 44px;
}
.pt__opt {
  border: 0;
  background: transparent;
  color: var(--mute);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, color .2s ease;
}
.pt__opt.active { background: var(--oxblood); color: var(--bone); }
.pt__save { font-family: var(--font-mono); font-size: 11.5px; border-radius: 999px; padding: 2px 8px; background: rgba(239, 233, 220, .16); }
.pt__opt:not(.active) .pt__save { background: rgba(176, 141, 87, .15); color: var(--brass-bright); }
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--graphite-3);
  border-radius: var(--radius);
  background: var(--graphite);
  padding: 34px 32px;
}
.price-card--pro {
  border-color: var(--oxblood);
  background: linear-gradient(180deg, #1B1E24, var(--graphite));
  box-shadow: 0 20px 50px rgba(160, 43, 35, .16);
}
.price-card__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--oxblood);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.price-card h3 { font-size: 26px; margin-bottom: 8px; }
.price-card__price { font-family: var(--font-mono); font-size: 40px; font-weight: 600; color: var(--bone); margin-bottom: 4px; }
.price-card__price span { font-size: 15px; font-weight: 400; color: var(--mute); margin-left: 8px; }
.price-card__year { font-size: 14.5px; color: var(--mute); margin-bottom: 22px; }
.price-card__year.big { font-size: 15.5px; white-space: nowrap; }
.price-card__year.hidden { display: none; }
.price-card__year b { color: var(--brass-bright); }
.price-card__list { list-style: none; display: grid; gap: 11px; margin-bottom: 30px; }
.price-card__list li {
  padding-left: 28px;
  position: relative;
  font-size: 15.5px;
  color: var(--bone-dim);
}
.price-card__list li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(176, 141, 87, .14);
  border: 1.5px solid var(--brass);
}
.price-card__list li::after {
  content: '';
  position: absolute; left: 4.5px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--brass-bright);
  border-bottom: 2px solid var(--brass-bright);
  transform: rotate(-45deg);
}
.pricing__cta { margin-top: auto; justify-content: center; }
/* Кнопка Free — на уровне кнопки Pro (у Pro под кнопкой есть приписка) */
@media (min-width: 641px) {
  .price-card:not(.price-card--pro) .pricing__cta { margin-bottom: 56px; }
}
.price-card__note { margin-top: 14px; font-size: 13px; color: var(--mute); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq__list { display: grid; gap: 12px; }
.faq__list details {
  border: 1px solid var(--graphite-3);
  border-radius: 14px;
  background: var(--graphite-2);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__list details[open] { border-color: var(--brass); }
.faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 24px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--bone);
  position: relative;
  padding-right: 52px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--brass);
  transition: transform .25s ease;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { padding: 0 24px 20px; color: var(--mute); font-size: 15.5px; }

/* ── Финал ────────────────────────────────────────────── */
.final {
  position: relative;
  padding: 130px 0 150px;
  text-align: center;
  background:
    radial-gradient(55% 80% at 50% 115%, rgba(160, 43, 35, .18) 0%, transparent 70%),
    var(--graphite);
  border-top: 1px solid var(--graphite-3);
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239, 233, 220, .05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 60%, #000 30%, transparent 100%);
          mask-image: radial-gradient(70% 80% at 50% 60%, #000 30%, transparent 100%);
  pointer-events: none;
}
.final__ghost {
  opacity: 0;
  transition: opacity 1.3s ease .15s;
  position: absolute;
  left: 50%; bottom: -7%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(140px, 26vw, 400px);
  line-height: 1;
  color: rgba(239, 233, 220, .045);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.final.ghost-on .final__ghost { opacity: 1; }
.final__inner { position: relative; z-index: 1; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--mute); margin-bottom: 34px; }
.final__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.final__cta .btn--pill {
  background: #161A21;
  border: 1px solid #343B47;
  color: var(--bone);
  border-radius: 999px;
  padding: 16px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 34px rgba(0, 0, 0, .4);
}
.final__cta .btn--pill:hover {
  border-color: var(--brass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 16px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(176, 141, 87, .16);
}
.final__cta .btn--pill-play:hover { border-color: var(--oxblood); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(160, 43, 35, .2); }
.final__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill-link {
  border: 1px solid var(--graphite-3);
  border-radius: 999px;
  padding: 9px 20px;
  color: var(--mute);
  font-size: 14px;
  text-decoration: none;
  background: rgba(16, 19, 24, .5);
  transition: color .2s ease, border-color .2s ease;
}
.pill-link:hover { color: var(--bone); border-color: var(--mute); }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--graphite-3); padding: 44px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
.footer__brand p { font-size: 14px; color: var(--mute); }
.footer__word { font-size: 22px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__links a { color: var(--mute); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer__links a:hover { color: var(--bone); }
.footer__copy { width: 100%; color: var(--mute); font-size: 13px; }

/* ── Фишки: якоря, прогресс-бар, spotlight, живой дашборд ─── */
section[id], main[id] { scroll-margin-top: 92px; }

.header .progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brass), var(--oxblood));
  transition: width .1s linear;
}

/* Spotlight за курсором на карточках */
.bento__cell::after, .pain-card::after, .time-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(176, 141, 87, .13), transparent 65%);
  pointer-events: none;
}
.bento__cell:hover::after, .pain-card:hover::after, .time-card:hover::after { opacity: 1; }
.time-card { position: relative; }
.bento__cell--cta::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 233, 220, .14), transparent 65%); }

/* Ступенчатое появление героя */
.hero__copy > .reveal:nth-child(2) { transition-delay: .07s; }
.hero__copy > .reveal:nth-child(3) { transition-delay: .14s; }
.hero__copy > .reveal:nth-child(4) { transition-delay: .21s; }
.hero__copy > .reveal:nth-child(5) { transition-delay: .28s; }
.hero__copy > .reveal:nth-child(6) { transition-delay: .35s; }

/* Статистика в герое */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--graphite-3);
}
.hero__stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--brass-bright);
  line-height: 1.1;
  white-space: nowrap;
}
.hero__stat > span { font-size: 12.5px; color: var(--mute); line-height: 1.35; display: block; margin-top: 5px; }

/* ── Живой дашборд в телефоне ─────────────────────────── */
.phone { aspect-ratio: 9 / 16.4; }
.live {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 30px 12px 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, #191C22, var(--graphite));
  overflow: hidden;
}
.live__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.live__logo { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--bone); }
.live__logo em { font-style: normal; color: var(--oxblood); }
.live__chips { font-size: 11px; color: var(--bone-dim); font-family: var(--font-mono); }
.live__chips b { color: var(--flame); }

.live__card {
  background: var(--bone);
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.live__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 7px;
}
.live__streak { display: flex; align-items: center; gap: 9px; }
.live__flame { animation: flame-pulse 1.8s ease-in-out infinite; }
.live__flame svg { width: 26px; height: 26px; color: var(--flame); }
.live__streak b { font-family: var(--font-head); font-size: 27px; font-weight: 700; color: var(--ink); }
@keyframes flame-pulse {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.14) rotate(3deg); }
}
.live__sub { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 5px; }

.live__row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--graphite-2);
  border: 1px solid var(--graphite-3);
  border-radius: 11px;
  padding: 10px 11px;
  transition: border-color .4s ease, background .4s ease;
}
.live__rowtext b { display: block; font-size: 11.5px; color: var(--bone); font-weight: 600; line-height: 1.3; }
.live__rowtext small { display: block; font-size: 9.5px; color: var(--mute); line-height: 1.35; }
.live__sub { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-soft); margin-top: 5px; }
.live__sub svg { width: 12px; height: 12px; flex: none; }
.live__chip { display: inline-flex; align-items: center; gap: 3px; }
.live__chip svg { width: 11px; height: 11px; color: var(--bone-dim); }

.live__row.live__row--focus .live__rowtext small { font-family: var(--font-mono); color: var(--brass-bright); }
.live__ico { display: inline-flex; color: var(--brass-bright); }
.live__ico svg { width: 15px; height: 15px; }
.live__sub { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-soft); margin-top: 5px; }
.live__sub svg { width: 12px; height: 12px; flex: none; }
.live__chip { display: inline-flex; align-items: center; gap: 3px; }
.live__chip svg { width: 11px; height: 11px; color: var(--bone-dim); }

.live__check {
  flex: none;
  width: 17px; height: 17px;
  border-radius: 6px;
  border: 1.5px solid var(--graphite-line);
  position: relative;
  transition: background .35s ease, border-color .35s ease;
}
.live__row.done { border-color: rgba(60, 110, 71, .55); background: rgba(60, 110, 71, .10); }
.live__row.done .live__check { background: var(--ok); border-color: var(--ok); }
.live__row.done .live__check::after {
  content: '';
  position: absolute;
  left: 4.5px; top: 4px;
  width: 6px; height: 3.5px;
  border-left: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
  transform: rotate(-45deg);
}
.live__row.done .live__rowtext b { text-decoration: line-through; text-decoration-color: rgba(135, 126, 110, .7); }
.live__row.done .live__rowtext { opacity: .72; }


/* Тёмная капсула с чипом — «Открыть веб-версию» */
.btn--web {
  background: #12151B;
  border: 1px solid #2A303B;
  color: var(--bone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .35);
}
.btn--web:hover {
  border-color: var(--brass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .45), 0 0 24px rgba(176, 141, 87, .18);
}
.btn__chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: #16181D; flex: none;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.btn__chip svg { width: 15px; height: 15px; }
.btn--web:hover .btn__chip, .btn--pill:hover .btn__chip { transform: scale(1.12) rotate(-6deg); }

/* Переливающийся градиент — платёжные CTA */
.btn--grad {
  background: linear-gradient(110deg, var(--oxblood-deep), var(--oxblood) 35%, var(--terracotta) 55%, var(--oxblood) 75%, var(--oxblood-deep));
  background-size: 250% 100%;
  animation: grad-shift 5s ease infinite;
}
.btn--grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(160, 43, 35, .38);
}
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Тёмные капсулы hero-кнопок — в стиле финального блока */
.btn--dark {
  background: #161A21;
  border: 1px solid #343B47;
  color: var(--bone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 26px rgba(0, 0, 0, .38);
}
.btn--dark:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 32px rgba(0, 0, 0, .46), 0 0 22px rgba(176, 141, 87, .16);
}
.btn--dark.play-btn:hover {
  border-color: rgba(160, 43, 35, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 32px rgba(0, 0, 0, .46), 0 0 22px rgba(160, 43, 35, .22);
}
.btn__ico { flex: none; width: 18px; height: 18px; }

/* ── Кнопка AntiMetal (шапка): заливка слева при наведении ── */
.btn--metal {
  position: relative;
  overflow: hidden;
  height: 42px;
  padding: 0 16px 0 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1A1D24 0%, #0E1013 100%);
  border: 1px solid #2A303B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .25);
  color: var(--bone);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -.01em;
  transition: transform .15s ease;
}
.btn--metal:active { transform: scale(.98); }
.metal__dots {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
  border-radius: 9px;
  padding-left: 10px;
  padding-right: 10px;
  background: linear-gradient(180deg, var(--brass-bright) 0%, var(--brass) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 4px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .1);
  transition: width .25s cubic-bezier(.65, 0, .35, 1);
  z-index: 1;
}
.btn--metal:hover .metal__dots { width: calc(100% - 8px); }
.metal__dots svg { flex: none; overflow: visible; }
.metal__dots circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: bd-dot-wave 1.4s ease-in-out infinite;
}
@keyframes bd-dot-wave { 0%, 70%, 100% { opacity: .25; transform: scale(.85); } 35% { opacity: 1; transform: scale(1); } }
.metal__label { position: relative; z-index: 2; white-space: nowrap; opacity: 1; transition: opacity .35s ease .18s; }
.btn--metal:hover .metal__label { opacity: 0; transition: opacity .12s ease; }
@media (prefers-reduced-motion: reduce) { .metal__dots circle { animation: none; opacity: 1; } }

/* Подсветка активного раздела в меню */
.nav a { position: relative; transition: color .2s ease; }
.nav a.active { color: var(--bone); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: -7px;
  height: 2px;
  border-radius: 1px;
  background: var(--brass);
  opacity: .75;
}

/* ── Премиум-ховеры (адаптация Bento Grid, 21st.dev) ──── */
/* Точечная текстура, появляющаяся при наведении */
.bento__cell::before, .pain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at center, rgba(239, 233, 220, .055) 1px, transparent 1.5px);
  background-size: 5px 5px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.bento__cell:hover::before, .pain-card:hover::before { opacity: 1; }
.bento__cell--cta::before { display: none; }

/* Градиентная кайма + мягкое свечение + подъём */
.bento__cell:hover:not(.bento__cell--cta),
.pain-card:hover {
  border-color: transparent;
  background: linear-gradient(var(--graphite-2), var(--graphite-2)) padding-box,
              linear-gradient(135deg, rgba(176, 141, 87, .6), rgba(160, 43, 35, .35) 55%, rgba(176, 141, 87, .22)) border-box;
  box-shadow: 0 -2px 20px rgba(239, 233, 220, .05), 0 20px 44px rgba(0, 0, 0, .45);
}

/* ── Метка блока статистики ───────────────────────────── */
.hero__stats-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 34px 0 0;
}
.hero__stats { margin-top: 10px; }

/* ── Ambient-подсветка времени суток в «карте дня» ────── */
.cycle { position: relative; overflow: hidden; }
.cycle::before {
  content: '';
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(42% 55% at var(--gx, 50%) var(--gy, 30%), var(--glow-c, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.cycle.glowing::before { opacity: 1; }
.cycle .container { position: relative; z-index: 1; }

/* Микро-анимации иконок при наведении на карточку */
.pain-card__glyph, .bento__glyph, .cycle-step__icon {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s ease,
              color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pain-card:hover .pain-card__glyph {
  transform: scale(1.12) rotate(-8deg);
  background: rgba(160, 43, 35, .25);
  color: var(--bone);
  border-color: var(--oxblood);
  box-shadow: 0 0 22px rgba(160, 43, 35, .35);
}
.bento__cell:hover .bento__glyph {
  transform: scale(1.12) rotate(-8deg);
  background: rgba(176, 141, 87, .22);
  color: var(--bone);
  border-color: var(--brass-bright);
  box-shadow: 0 0 22px rgba(176, 141, 87, .3);
}
.cycle-step:hover .cycle-step__icon {
  transform: scale(1.15);
  color: var(--bone);
  background: rgba(176, 141, 87, .22);
  box-shadow: 0 0 24px rgba(176, 141, 87, .32);
}
.cycle-step--series:hover .cycle-step__icon {
  color: var(--okBright);
  background: rgba(60, 110, 71, .2);
  border-color: var(--ok);
  box-shadow: 0 0 24px rgba(60, 110, 71, .32);
}

/* ── Диагностика: кольцо прогресса, панель, буквы вариантов ── */
.diag__panel { flex: 1; animation: panel-in .3s cubic-bezier(.2, .7, .3, 1); transition: opacity .2s ease, transform .2s ease, filter .2s ease; }
.diag__panel.leave { opacity: 0; transform: translateX(-26px) scale(.985); filter: blur(3px); }
@keyframes panel-in { from { opacity: 0; transform: translateX(26px) scale(.985); filter: blur(2px); } }
.diag__opt { transition: transform .15s ease, opacity .15s ease; opacity: 0; animation: opt-in .35s ease forwards; }
.diag__opt:nth-of-type(1) { animation-delay: .05s; }
.diag__opt:nth-of-type(2) { animation-delay: .11s; }
.diag__opt:nth-of-type(3) { animation-delay: .17s; }
.diag__opt:nth-of-type(4) { animation-delay: .23s; }
@keyframes opt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.diag__opt.picked { animation: none; opacity: 1; border-color: var(--oxblood); background: rgba(160, 43, 35, .10); transform: scale(.985); }
.diag__opt.picked .diag__opt-letter { background: var(--oxblood); color: var(--bone); border-color: var(--oxblood); }
/* Ступенчатое появление результата */
.diag__result > * { opacity: 0; animation: diag-rise .55s ease forwards; }
.diag__result > *:nth-child(1) { animation-delay: .05s; }
.diag__result > *:nth-child(2) { animation-delay: .12s; }
.diag__result > *:nth-child(3) { animation-delay: .19s; }
.diag__result > *:nth-child(4) { animation-delay: .26s; }
.diag__result > *:nth-child(5) { animation-delay: .33s; }
.diag__result > *:nth-child(6) { animation-delay: .40s; }
@keyframes diag-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateX(18px); } }
.diag__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.diag__ring { width: 42px; height: 42px; transform: rotate(-90deg); flex: none; }
.diag__ring-bg { fill: none; stroke: rgba(27, 23, 18, .12); stroke-width: 3.4; }
.diag__ring-fg {
  fill: none;
  stroke: var(--oxblood);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 106.8;
  transition: stroke-dashoffset .5s ease;
}
.diag__count { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); }
.diag__opt { display: flex; gap: 12px; align-items: flex-start; }
.diag__opt-letter {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(27, 23, 18, .08);
  border: 1px solid rgba(27, 23, 18, .18);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  margin-top: 1px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.diag__opt:hover .diag__opt-letter { background: var(--oxblood); color: var(--bone); border-color: var(--oxblood); }

/* ── Уровни опыта в статус-баре дашборда ──────────────── */
.live__chips { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; color: var(--bone-dim); font-family: var(--font-mono); }
.live__chips b { color: var(--flame); }
.live__lvl { display: inline-flex; align-items: center; gap: 6px; color: var(--brass-bright); }
.live__lvl i { width: 26px; height: 3px; border-radius: 2px; background: rgba(176, 141, 87, .25); position: relative; overflow: hidden; }
.live__lvl i::after { content: ''; position: absolute; inset: 0; width: var(--xp, 60%); background: var(--brass); border-radius: 2px; }

/* ── Кнопка «наверх» ───────────────────────────────────── */
.totop {
  position: fixed;
  right: 44px; bottom: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--graphite-3);
  background: rgba(22, 24, 29, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .2s ease, box-shadow .2s ease;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.totop svg { width: 24px; height: 24px; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--brass); box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 18px rgba(176, 141, 87, .2); }
.totop:active { transform: translateY(1px); }

/* ── Reveal-анимации (JS-фолбэк для scroll-driven) ──────
   Скрывание только при работающем JS (html.js): без JS страница
   полностью видима — прогрессивное улучшение. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .seal__rotor { animation: none; }
  .cycle.in-view .cycle__line::before { animation: none; transform: scaleX(1); }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { order: -1; }
  .phone { width: 250px; }
  .seal { width: 110px; height: 110px; bottom: -22px; right: -12px; }
  .pains__grid { grid-template-columns: repeat(2, 1fr); }
  .cycle__timeline { grid-template-columns: 1fr 1fr; gap: 44px 26px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--cta { grid-column: span 2; }
  .cycle__line { display: none; }
  .cycle-step::before { display: none; }
  .time__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  /* Навигация остаётся: горизонтальная прокручиваемая полоса разделов */
  .nav {
    display: flex; gap: 18px; margin: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 0 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
  .header__inner { gap: 14px; }
  .header__inner > .btn { margin-left: auto; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 112px 0 72px; }
  .hero__visual { order: 1; }
  .phone { width: 230px; }
  .hero__sub { font-size: 17px; }
  .hero__trust { flex-wrap: wrap; white-space: normal; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
  .seal { width: 90px; height: 90px; bottom: -18px; right: -4px; opacity: .8; }
  .paper { padding: 28px 22px; }
  .diag__stage { min-height: 660px; }
  .diag__stage[data-mode="intro"] { min-height: 480px; }
  .diag__stage[data-mode="result"] { min-height: 730px; }
  .final__ghost { font-size: clamp(110px, 34vw, 200px); }
  .diag__stage { min-height: 660px; }
  .final__ghost { font-size: clamp(110px, 34vw, 200px); }
  .pains__grid, .cycle__timeline, .time__grid, .bento, .pricing__grid { grid-template-columns: 1fr; }
  .bento__cell--cta { grid-column: auto; }
  .final__cta .btn { width: 100%; justify-content: center; }
  /* Кнопки тарифов переносятся и занимают ширину карточки —
     иначе nowrap растягивает страницу на экранах ≤375px */
  .pricing__cta { width: 100%; justify-content: center; white-space: normal; }
  .price-card { padding: 28px 22px; }
  .footer__links { margin-left: 0; }
  /* Шапка в две строки: логотип и кнопка, ниже — полоса разделов.
     padding-block — только вертикаль, боковые 24px остаются от .container */
  .header__inner { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 2px; }
  .nav { order: 3; width: 100%; }
  section[id], main[id] { scroll-margin-top: 132px; }
}

/* ── «Первые 100» + тариф «навсегда» (08.09.2026) ────────── */
/* Золотой переливающийся градиент — CTA тарифа «навсегда»
   (аналог платёжного btn--grad, но в фирменной латунной гамме;
   тёмный текст — контраст на золотом) */
.btn--gold {
  background: linear-gradient(110deg, #8A6C3C, var(--brass) 35%, var(--brass-bright) 55%, var(--brass) 75%, #8A6C3C);
  background-size: 250% 100%;
  animation: grad-shift 5s ease infinite;
  color: #16181D;
  border: 1px solid transparent;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 141, 87, .38);
}
.pricing__early {
  position: relative;
  margin: 18px 0 26px;
  padding: 20px 24px;
  border: 1px solid rgba(176, 141, 87, .55);
  border-radius: var(--radius, 14px);
  background: rgba(176, 141, 87, .08);
}
.pricing__early[hidden] { display: none; }
.pricing__early-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.pricing__early-text { margin: 0; font-size: 15px; }
.pricing__early-text s { opacity: .55; }

/* Комета, бегущая по контуру плашки «Первые 100»:
   conic-градиент с яркой головой и тающим хвостом вращается по кольцу,
   маска оставляет видимой только полосу вдоль границы */
@property --comet-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pricing__early::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--comet-angle),
    transparent 0deg 315deg,
    rgba(201, 167, 107, .12) 330deg,
    rgba(201, 167, 107, .45) 348deg,
    #F2E1B8 359deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: comet-orbit 7s linear infinite;
  pointer-events: none;
}
@keyframes comet-orbit { to { --comet-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .pricing__early::before { animation: none; opacity: .35; }
}
.price-card--forever { grid-column: 1 / -1; }
.price-card--forever .price-card__list { max-width: 560px; }
.price-card[hidden] { display: none; }
