/* Лендинг heroicme.org. Токены те же, что в приложении: docs/08-design.md. Тема одна, тёмная (решение 6). */

@font-face {
  font-family: "Alegreya";
  src: url("fonts/Alegreya-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Кнопки «скоро» и «скачать» переключает site.js по /download/latest.json: у .btn свой display. */
[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  --ground: #11131B;
  --surface: #191C27;
  --surface-sunk: #13151E;
  --surface-warm: #1F1C17;
  --line: #2B3043;
  --divider: #252939;
  --text: #EFE8D8;
  --text-2: #B8B1A3;
  --text-muted: #8F897C;
  --gold: #E2B25F;
  --gold-hover: #F0CA85;
  --gold-text: #C9A563;
  --gold-deep: #6E5A34;
  --gold-wash: #2A2518;
  --on-gold: #1A1508;
  --ember: #C8574D;
  --steel: #8FA6C8;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text);
}

.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 36em; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn-gold { background: var(--gold); color: var(--on-gold); border: 0; }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-gold:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--gold-deep); }
.btn-line:hover { border-color: var(--gold); color: var(--text); }
.btn small { font-weight: 500; font-size: 13px; opacity: 0.8; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 19, 27, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease-out);
}
.top.scrolled { border-bottom-color: var(--divider); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.brand-name b { color: var(--gold); font-weight: 700; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--text); }
.top nav a.btn-gold, .top nav a.btn-gold:hover { color: var(--on-gold); }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }

/* Первый экран */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(226, 178, 95, 0.13), rgba(226, 178, 95, 0.04) 55%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 30%, var(--gold-deep) 70%, transparent);
  opacity: 0.6;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.01em; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 21px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-promise { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--text-muted); font-size: 15px; padding: 0; list-style: none; }
.hero-promise li { display: flex; align-items: center; gap: 8px; }
.hero-promise svg { flex: none; }

/* Витрина: телефон и карточка героя */
.stage { position: relative; display: flex; justify-content: flex-start; padding: 10px 0 40px; }
.phone {
  position: relative; width: 340px; max-width: 100%;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #262A38, #14161E 40%, #1B1E29);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px #2E3345, inset 0 0 0 1px #3A3F52;
}
.screen { border-radius: 34px; background: var(--ground); overflow: hidden; padding: 20px 16px 18px; position: relative; }
.screen-head { display: flex; justify-content: space-between; align-items: flex-end; }
.screen-day small { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.screen-day strong { font-family: var(--serif); font-size: 27px; line-height: 1.1; }
.chips { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700;
}
.gm-line {
  margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  display: flex; gap: 10px; font-family: var(--serif); font-size: 14.5px; line-height: 1.42; color: #E7E0CF;
}
.gm-mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.boss-mini { margin-top: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.boss-mini .row { display: flex; justify-content: space-between; font-size: 13px; }
.boss-mini .row span:last-child { color: var(--text-2); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 7px; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width 400ms var(--ease-out); }
.bar.ember > i { background: var(--ember); }
.bar.thick { height: 8px; border-radius: 4px; }
.q-title { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 8px; }
.q-title strong { font-family: var(--serif); font-size: 18px; }
.q-title span { font-size: 12px; color: var(--text-muted); }
.quest {
  padding: 11px 13px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line);
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 7px;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.quest.done, .quest.min { background: #1B1D24; border-color: #4A3E26; }
.quest .q-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quest .anchor { font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.quest .act { font-size: 15.5px; font-weight: 700; }
.quest.done .act { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--gold-deep); }
.quest.min .act { color: var(--text-2); }
.quest .reward { font-size: 12px; color: var(--gold-text); }
.mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.mark.half { background: linear-gradient(90deg, var(--gold) 50%, #1B1D24 50%); border: 1.5px solid var(--gold); }
.quest.open { flex-direction: column; align-items: stretch; gap: 10px; }
.quest-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.quest-btns button {
  min-height: 40px; border-radius: 12px; font-size: 14px; cursor: pointer;
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.quest-btns .do { border: 0; background: var(--gold); color: var(--on-gold); font-weight: 700; }
.quest-btns .do:hover { background: var(--gold-hover); }
.quest-btns .mini { border: 1px solid var(--gold-deep); background: transparent; color: var(--text); }
.quest-btns .mini:hover { border-color: var(--gold); }
.close-day {
  margin-top: 10px; min-height: 44px; border-radius: 14px; border: 1px dashed #3A4058;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-muted);
}
.close-day.ready { border: 1px solid var(--gold-deep); color: var(--gold); background: var(--gold-wash); }
.try-hint {
  position: absolute; left: -4px; bottom: 6px; display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--gold-text); font-family: var(--serif); font-style: italic;
}

.hero-card {
  position: absolute; right: -40px; top: 150px; width: 196px;
  padding: 18px 16px 14px; border-radius: 22px; background: rgba(25, 28, 39, 0.94);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.75);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  backdrop-filter: blur(6px);
}
.seal {
  width: 62px; height: 62px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--surface), 0 0 30px rgba(226, 178, 95, 0.15);
}
.seal b { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1; color: var(--gold); }
.seal small { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); margin-top: 2px; }
.hero-card .name { font-family: var(--serif); font-weight: 700; font-size: 24px; margin-top: 12px; line-height: 1.1; }
.hero-card .title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); margin-top: 4px; }
.hero-card .xp { width: 100%; margin-top: 14px; }
.hero-card .xp .row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); }
.xp-gain {
  position: absolute; top: -14px; right: 14px; padding: 4px 10px; border-radius: 10px;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 13px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
}
.xp-gain.show { animation: gain 1600ms var(--ease-out) forwards; }
@keyframes gain {
  0% { opacity: 0; transform: translateY(8px); }
  15% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-12px); }
}

/* Секции */
section.block { padding: 112px 0; position: relative; }
.block-head { max-width: 760px; margin-bottom: 56px; }
.block-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.block-head.center .lead { margin: 0 auto; }
.block-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 14px 0 18px; }

/* Знакомо */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain {
  padding: 28px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.pain .quote { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--text); margin-bottom: 14px; }
.pain p { color: var(--text-2); font-size: 17px; }
.turn {
  margin-top: 40px; padding: 34px 36px; border-radius: 24px;
  background: linear-gradient(135deg, var(--surface-warm), var(--surface) 70%);
  border: 1px solid #3A3222; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.turn p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.turn p span { color: var(--gold); }

/* Ритм дня */
.rhythm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.beat {
  position: relative; padding: 30px 26px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.beat.mid { background: transparent; border-style: dashed; }
.beat-time { display: flex; align-items: center; justify-content: space-between; }
.beat-time .eyebrow { color: var(--text-muted); }
.beat-dur { font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1; color: var(--gold); }
.beat-dur small { font-size: 18px; font-weight: 700; color: var(--gold-text); margin-left: 4px; }
.beat h3 { font-size: 26px; }
.beat p { color: var(--text-2); font-size: 17px; }
.beat ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.beat li { display: flex; gap: 10px; font-size: 16px; color: var(--text-2); }
.beat li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); margin-top: 9px; }
.rhythm-note { margin-top: 22px; text-align: center; color: var(--text-muted); font-size: 16px; }
.rhythm-note b { color: var(--text); font-weight: 500; }

/* Возможности: чередование текста и витрины */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--divider); }
.feature.flip .f-text { order: 2; }
.f-text h3 { font-size: clamp(30px, 3.4vw, 42px); margin: 12px 0 18px; }
.f-text > p { color: var(--text-2); font-size: 18.5px; }
.f-text > p + p { margin-top: 14px; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 17px; color: var(--text-2); }
.points li b { color: var(--text); font-weight: 700; }
.points .ic {
  width: 28px; height: 28px; border-radius: 9px; background: var(--gold-wash); border: 1px solid #3A3222;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.soon {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel); border: 1px solid #3B4760;
}

.f-visual { position: relative; display: flex; justify-content: center; }
.card {
  width: 100%; max-width: 440px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.card + .card { margin-top: 12px; }
.card-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.stack { width: 100%; max-width: 440px; }

/* Лестница */
.ladder { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 6px; }
.ladder i { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--gold-deep); }
.ladder i.now { background: var(--gold); box-shadow: 0 0 24px rgba(226, 178, 95, 0.35); }
.ladder i.next { background: transparent; border: 1.5px dashed #4A4F66; }
.ladder-cap { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.dots { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; margin-top: 16px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.dots i.h { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); }
.dots i.e { background: var(--line); }

/* Босс и SOS */
.boss {
  display: flex; flex-direction: column; gap: 10px;
}
.boss-top { display: flex; align-items: center; gap: 14px; }
.boss-sigil {
  flex: none; width: 54px; height: 54px; border-radius: 16px; background: #22171A; border: 1px solid #5A2E2A;
  display: flex; align-items: center; justify-content: center;
}
.boss-top h4 { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.boss-top p { font-size: 14px; color: var(--text-muted); }
.boss .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.boss .row b { color: var(--text); }
.sos {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
}
.breath {
  width: 92px; height: 92px; border-radius: 50%; border: 1.5px solid var(--ember);
  display: flex; align-items: center; justify-content: center; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: #E89A92;
}
.breath::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; background: rgba(200, 87, 77, 0.12);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(0.7); opacity: 0.6; } 50% { transform: scale(1.12); opacity: 1; } }
.sos .plan { font-size: 13px; color: var(--text-muted); }
.sos .plan-text { font-family: var(--serif); font-size: 18px; line-height: 1.35; margin-top: 4px; }
.sos-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sos-btns span {
  min-height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.sos-btns .held { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.sos-btns .fell { border: 1px solid var(--line); color: var(--text-2); }

/* Герой: карточка и радар */
.hero-show { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; }
.card.wide { max-width: 520px; }
.arch {
  position: relative; width: 150px; height: 190px; margin: 0 auto 30px;
  border-radius: 75px 75px 16px 16px; border: 1px solid var(--gold-deep); padding: 5px;
}
.arch-in {
  width: 100%; height: 100%; border-radius: 70px 70px 12px 12px; overflow: hidden;
  background: radial-gradient(110% 80% at 50% 18%, #30364D 0%, #1C1F2C 72%);
  display: flex; align-items: flex-end; justify-content: center;
}
.arch .seal { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); }
.hero-show .name { font-family: var(--serif); font-weight: 700; font-size: 30px; text-align: center; margin-top: 6px; }
.hero-show .title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); text-align: center; margin-top: 2px; }
.radar text { font-family: var(--sans); font-size: 16px; fill: var(--text-2); }
.radar text.v { font-weight: 700; fill: var(--text); font-size: 16px; }
.stat-legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stat-legend i { width: 16px; height: 0; border-top: 2px solid var(--gold); }
.stat-legend i.d { border-top: 2px dashed var(--text-muted); }
.trophies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.trophy {
  padding: 12px 8px; border-radius: 14px; background: var(--surface-sunk); border: 1px solid var(--line);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.trophy b { font-size: 18px; line-height: 1; }
.trophy span { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
.trophy.ahead { border-style: dashed; background: transparent; }
.trophy.ahead b { color: var(--text-muted); }

/* Гейм-мастер: тоны */
.tones { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-sunk); border: 1px solid var(--line); margin-bottom: 18px; }
.tones button {
  flex: 1; min-height: 42px; border-radius: 12px; border: 0; background: transparent; cursor: pointer;
  font-size: 14.5px; color: var(--text-muted); transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.tones button:hover { color: var(--text); }
.tones button[aria-selected="true"] { background: var(--gold-wash); color: var(--gold); font-weight: 700; }
.chapter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.chapter-head strong { font-family: var(--serif); font-size: 22px; }
.chapter-head span { font-size: 13px; color: var(--text-muted); }
.chapter-text { font-family: var(--serif); font-size: 18.5px; line-height: 1.55; color: #E7E0CF; min-height: 9.5em; }
.chapter-text p + p { margin-top: 10px; }
.chapter-text.swap { animation: swap 250ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chapter-sign { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 15px; }
.question { display: flex; flex-direction: column; gap: 8px; }
.question .qq { font-family: var(--serif); font-size: 19px; line-height: 1.35; margin-bottom: 4px; }
.question span {
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; color: var(--text-2);
}
.question span.pick { background: var(--surface-warm); border-color: var(--gold-deep); color: var(--text); }

/* Досье */
.axis { padding: 14px 0; border-top: 1px solid var(--divider); }
.axis:first-of-type { border-top: 0; padding-top: 0; }
.axis-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.axis-top b { font-size: 16.5px; font-weight: 700; }
.axis-top a { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.axis p { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.conf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 9px; max-width: 160px; }
.conf i { height: 4px; border-radius: 2px; background: var(--line); }
.conf i.on { background: var(--gold-deep); }
.method {
  margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-warm); border: 1px solid #3A3222;
}
.method small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.method b { display: block; font-size: 17px; margin-top: 4px; }
.method span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }

/* Неделя вперёд */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week small { font-size: 12px; color: var(--text-muted); }
.week i {
  width: 100%; aspect-ratio: 0.62; border-radius: 10px; background: var(--surface-sunk); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 6px 5px;
}
.week i::before, .week i::after { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--gold-deep); }
.week i.rest { border-color: #3B4760; background: #151A26; }
.week i.rest::after { background: var(--steel); opacity: 0.5; }
.week i.today { border-color: var(--gold); }
.signal { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunk); border: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.signal svg { flex: none; }

/* Библиотека */
.article-card { display: flex; flex-direction: column; gap: 8px; }
.article-card .meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.article-card h4 { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.article-card p { font-size: 15.5px; color: var(--text-2); line-height: 1.6; }
.word {
  color: var(--text); background: var(--gold-wash); border-bottom: 1px solid var(--gold); padding: 0 2px; border-radius: 3px; position: relative;
}
.tip {
  margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunk); border: 1px solid var(--gold-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px;
}
.tip b { font-family: var(--serif); font-size: 18px; }
.tip span { color: var(--text-muted); }
.tip em { font-style: normal; font-size: 13px; color: var(--gold); white-space: nowrap; }

/* Возвращение */
.return {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center;
}
.return-card { max-width: 460px; justify-self: center; width: 100%; }
.return-card h4 { margin: 0; font-family: var(--serif); font-size: 28px; }
.return-card .sub { font-size: 15.5px; color: var(--text-2); margin: 6px 0 18px; }
.kept { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kept li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.small-start {
  margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface-warm); border: 1px solid #3A3222;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.small-start b { font-size: 16px; }
.small-start span { font-size: 13px; color: var(--gold-text); white-space: nowrap; }
.safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.safety-item { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.safety-item b { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.safety-item p { font-size: 15.5px; color: var(--text-2); }

/* Начало пути */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--serif); font-weight: 800; font-size: 22px;
  margin-bottom: 18px; background: var(--ground);
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 17px; }

/* Принципы */
.principles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pr-col { padding: 32px 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.pr-col h3 { font-size: 26px; margin-bottom: 18px; }
.pr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pr-col li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17px; color: var(--text-2); }
.pr-col li b { color: var(--text); }
.pr-col.no li { color: var(--text-2); }

/* Дальше в пути */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 8px; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-deep) 30%, #3A4058); }
.road div { position: relative; padding-right: 20px; }
.road div::before {
  content: ""; display: block; width: 23px; height: 23px; border-radius: 50%; background: var(--ground);
  border: 1.5px dashed #4A4F66; margin-bottom: 16px;
}
.road div.now::before { border: 1.5px solid var(--gold); background: var(--gold); box-shadow: 0 0 0 5px var(--ground), 0 0 20px rgba(226, 178, 95, 0.4); }
.road b { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.road p { font-size: 15.5px; color: var(--text-2); }

/* Вопросы */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 24px; color: var(--text-2); font-size: 17.5px; max-width: 40em; }
.faq details p + p { margin-top: -12px; }
.faq p.apk-check { font-size: 15px; color: var(--text-muted); }
.apk-check code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; color: var(--text-2); }

/* Финал */
.final { padding: 120px 0 128px; text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(226, 178, 95, 0.12), transparent 70%); pointer-events: none;
}
.final .wrap { position: relative; }
.final .seal { width: 84px; height: 84px; margin: 0 auto 30px; }
.final .seal b { font-size: 34px; }
.final h2 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.final .lead { margin: 20px auto 0; text-align: center; }
.final .hero-cta { justify-content: center; }
.final .fine { margin-top: 18px; color: var(--text-muted); font-size: 15px; }

footer { border-top: 1px solid var(--divider); padding: 36px 0 44px; color: var(--text-muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .brand-name { font-size: 20px; }

/* Появление при прокрутке: только если пользователь не отключил анимации */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Планшет */
@media (max-width: 1020px) {
  .top nav a:not(.btn) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .stage { padding-bottom: 20px; justify-content: center; }
  .hero-card { right: calc(50% - 330px); }
  .feature, .return { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .f-text { order: 0; }
  .pain-grid, .rhythm, .steps { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .road::before { display: none; }
}

/* Телефон */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  section.block { padding: 76px 0; }
  .block-head { margin-bottom: 36px; }
  .hero h1 { margin-top: 14px; }
  .hero .lead, .lead { font-size: 18.5px; }
  .hero-cta .btn { width: 100%; }
  .stage { flex-direction: column; align-items: center; padding-bottom: 0; }
  .hero-card {
    position: relative; right: auto; top: auto; width: 100%; max-width: 300px; margin-top: 14px;
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; text-align: left; padding: 14px 16px;
  }
  .hero-card .seal { grid-row: 1 / 4; width: 54px; height: 54px; box-shadow: none; }
  .hero-card .seal b { font-size: 22px; }
  .hero-card .name { margin-top: 0; font-size: 21px; }
  .hero-card .xp { margin-top: 8px; }
  .phone { width: 300px; }
  .try-hint { display: none; }
  .turn { grid-template-columns: 1fr; padding: 26px 22px; }
  .feature { padding: 40px 0; }
  .card { padding: 18px; }
  .hero-show { grid-template-columns: 1fr; }
  .principles, .safety-list { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; }
  .pr-col { padding: 26px 22px; }
  .tones button { font-size: 13px; }
  .top .btn small { display: none; }
}
