/* ───────── Токены ───────── */
:root {
  --bg: #02040a;
  --ink: #e9f4ff;
  --muted: #8fa6bd;
  --ice: #8fe6ff;
  --ice-2: #3fc6f2;
  --violet: #8a7bff;
  --amber: #ffb454;
  --ok: #46e3a0;
  --line: rgba(143, 230, 255, 0.2);
  --glass: rgba(4, 10, 20, 0.56);
  --display: "Tektur", "Arial Narrow", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(18px, 4.4vw, 76px);
  --dim: 0;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 clamp(15px, 1.08vw, 17.5px) / 1.62 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--ice); color: #00131a; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
[hidden] { display: none !important; }
code { font: 500 0.88em var(--mono); background: rgba(143, 230, 255, 0.09); padding: 1px 6px; border-radius: 4px; }
.mono { font: 500 0.7rem / 1.3 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.dim { color: var(--muted); }
.small { font-size: 0.86rem; color: var(--muted); }

/* ───────── Сцена и оверлеи ───────── */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: #000; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: calc(var(--dim) * 0.78);
  background: radial-gradient(120% 90% at 50% 50%, rgba(2, 4, 10, 0.55), rgba(2, 4, 10, 0.96)); }
.frame { position: fixed; inset: 14px; z-index: 6; pointer-events: none; }
.frame i { position: absolute; width: 22px; height: 22px; border: 1px solid var(--ice); opacity: 0.55; }
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.no-gl #gl { display: none; }
.no-gl body { background: radial-gradient(80% 60% at 70% 30%, #10244a, #02040a 70%); }

/* Загрузчик */
#loader { position: fixed; inset: 0; z-index: 100; background: #01030a; display: grid; place-items: center; transition: opacity 0.9s var(--ease), visibility 0.9s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader__box { width: min(420px, 82vw); text-align: center; display: grid; gap: 14px; }
.loader__pct { font: 800 clamp(3.4rem, 10vw, 6rem) / 1 var(--display); letter-spacing: 0.02em; background: linear-gradient(180deg, #fff, var(--ice) 70%, var(--ice-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader__pct i { font-style: normal; font-size: 0.35em; margin-left: 4px; opacity: 0.7; }
.loader__track { height: 2px; background: rgba(143, 230, 255, 0.15); overflow: hidden; }
#loader-bar { height: 100%; background: linear-gradient(90deg, var(--ice-2), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--ice); }

/* ───────── HUD ───────── */
.hud-top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); background: linear-gradient(to bottom, rgba(1, 3, 9, 0.7), transparent); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1rem var(--display); letter-spacing: 0.14em; }
.logo svg { width: 30px; height: 30px; stroke: var(--ice); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(143, 230, 255, 0.6)); }
.logo .fill { fill: var(--ice); stroke: none; }
.logo b { color: var(--ice); font-weight: 700; margin-left: 0.35em; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 8px 14px; text-decoration: none; font: 500 0.7rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(233, 244, 255, 0.7); transition: color 0.3s; position: relative; }
.links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--ice); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease); }
.links a:hover { color: #fff; }
.links a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); background: rgba(4, 10, 20, 0.6); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ice); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.hud-top.open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.hud-top.open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.hud-left { position: fixed; left: var(--pad); top: 50%; translate: 0 -50%; z-index: 15; display: flex; gap: 16px; align-items: stretch; }
.rail { width: 1px; background: rgba(143, 230, 255, 0.18); position: relative; }
.rail i { position: absolute; inset: 0; background: var(--ice); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 10px var(--ice); }
#chapters { display: grid; gap: 16px; }
#chapters li { display: flex; gap: 10px; align-items: baseline; font: 500 0.64rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(233, 244, 255, 0.34); transition: color 0.4s, transform 0.5s var(--ease); }
#chapters li b { font-weight: 500; }
#chapters li span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.6s var(--ease); }
#chapters li.on { color: var(--ice); transform: translateX(6px); text-shadow: 0 0 12px rgba(143, 230, 255, 0.6); }
#chapters li.on span { max-width: 120px; }

.hud-bottom { position: fixed; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 15; display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 56px); pointer-events: none; }
.hud-bottom > div { display: grid; gap: 4px; }
.hud-bottom strong { font: 600 clamp(1.1rem, 1.7vw, 1.5rem) var(--display); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #fff; }
.hud-bottom strong small { font: 500 0.6em var(--mono); color: var(--ice); letter-spacing: 0.1em; }
.hud-bottom .hint { margin-left: auto; align-items: center; justify-items: center; }
.hint i { width: 1px; height: 38px; background: linear-gradient(var(--ice), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: 50% 0; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Выноски к модели самолёта */
.callout { position: fixed; left: var(--ax, -999px); top: var(--ay, -999px); z-index: 12; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); --dx: 110px; --dy: -80px; }
.callout.on { opacity: 1; }
.callout::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border: 1.5px solid var(--ice); border-radius: 50%; background: rgba(143, 230, 255, 0.25); box-shadow: 0 0 14px var(--ice); }
.callout::after { content: ""; position: absolute; left: 0; top: 0; width: calc(var(--len, 120px)); height: 1px; background: linear-gradient(90deg, var(--ice), rgba(143, 230, 255, 0.1)); transform-origin: 0 0; transform: rotate(var(--rot, -30deg)); }
.callout b, .callout span { position: absolute; left: var(--dx); top: var(--dy); white-space: nowrap; }
.callout b { font: 700 0.84rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px #000; translate: 0 -1.35em; }
.callout span { font: 400 0.78rem var(--text); color: var(--ice); text-shadow: 0 2px 10px #000; }
.callout[data-anchor="nose"] { --dx: -60px; --dy: 120px; --len: 120px; --rot: 90deg; }
.callout[data-anchor="core"] { --dx: -250px; --dy: -110px; --len: 160px; --rot: -145deg; }
.callout[data-anchor="wing"] { --dx: -250px; --dy: 70px; --len: 255px; --rot: 164deg; }
.callout[data-anchor="tail"] { --dx: 60px; --dy: -68px; --len: 90px; --rot: -48deg; }

/* ───────── Главы ───────── */
#story { position: relative; z-index: 5; }
.chapter { position: relative; height: var(--h, 150vh); --v: 0; }
[data-chapter="hero"] { --h: 112vh; } [data-chapter="ch1"] { --h: 150vh; } [data-chapter="ch2"] { --h: 205vh; }
[data-chapter="ch3"] { --h: 160vh; } [data-chapter="ch4"] { --h: 160vh; } [data-chapter="ch5"] { --h: 190vh; }
.chapter__inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--pad) 90px calc(var(--pad) + 130px); pointer-events: none; opacity: var(--v); transform: translateY(calc((1 - var(--v)) * 26px)); will-change: opacity, transform; }
.chapter__inner > *, .panel { pointer-events: auto; }
.chapter--right .chapter__inner { align-items: flex-end; padding-left: var(--pad); padding-right: calc(var(--pad) + 10px); }
.chapter--center .chapter__inner { align-items: center; text-align: center; padding-left: var(--pad); }
.chapter--center .cta-row, .chapter--center .lead { justify-content: center; margin-inline: auto; }

.lab { color: var(--ice); margin-bottom: 18px; display: block; text-shadow: 0 0 12px rgba(143, 230, 255, 0.45); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.32rem); color: rgba(233, 244, 255, 0.82); max-width: 54ch; margin-top: 22px; line-height: 1.55; }
.hero-title { font: 800 clamp(2.3rem, 6.4vw, 6.1rem) / 0.97 var(--display); letter-spacing: 0.005em; text-transform: uppercase; max-width: 15ch; }
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; }
.hero-title .line > span { display: inline-block; }
.line--glow > span { background: linear-gradient(95deg, #fff 0%, var(--ice) 45%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(143, 230, 255, 0.35)); }
.js .hero-title .line > span { transform: translateY(112%); transition: transform 1.2s var(--ease); }
.js.is-ready .hero-title .line > span { transform: none; }
.js.is-ready .hero-title .line:nth-child(2) > span { transition-delay: 0.1s; } .js.is-ready .hero-title .line:nth-child(3) > span { transition-delay: 0.2s; }
.js .chapter--hero .lead, .js .chapter--hero .cta-row, .js .chapter--hero .sticker, .js .chapter--hero .lab { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }
.js.is-ready .chapter--hero .lead, .js.is-ready .chapter--hero .cta-row, .js.is-ready .chapter--hero .sticker, .js.is-ready .chapter--hero .lab { opacity: 1; transform: none; }
.sticker { margin-top: 30px; display: inline-block; padding: 7px 12px; border: 1px dashed rgba(255, 180, 84, 0.6); color: var(--amber); width: fit-content; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.panel { position: relative; max-width: min(560px, 100%); padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.6vw, 38px); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.panel::before, .panel::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--ice); pointer-events: none; filter: drop-shadow(0 0 6px var(--ice)); }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
h2 { font: 800 clamp(1.7rem, 3.5vw, 3.3rem) / 1.04 var(--display); letter-spacing: 0.01em; text-transform: uppercase; background: linear-gradient(180deg, #fff 30%, #bfeaff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
h2.big { font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 0.98; background: linear-gradient(95deg, #fff, var(--amber) 55%, #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 150, 60, 0.35)); }
.panel p { color: rgba(233, 244, 255, 0.84); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); background: rgba(143, 230, 255, 0.06); font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ice); }
.note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); border-left: 2px solid rgba(255, 180, 84, 0.6); padding-left: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.stats dt { font: 800 clamp(1.6rem, 2.6vw, 2.4rem) / 1 var(--display); color: #fff; text-shadow: 0 0 20px rgba(143, 230, 255, 0.4); }
.stats dd { margin-top: 6px; font-size: 0.78rem; line-height: 1.35; color: var(--muted); }

/* ───────── Кнопки ───────── */
.btn { --h: 46px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 24px; border: 1px solid var(--line); background: rgba(143, 230, 255, 0.05); color: #fff; text-decoration: none; cursor: pointer; font: 600 0.88rem var(--text); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s; }
.btn svg { width: 1.2em; height: 1.2em; transition: transform 0.35s var(--ease); flex: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { border-color: var(--ice); box-shadow: 0 0 26px rgba(143, 230, 255, 0.25); }
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 0.78rem; }
.btn--lg { --h: 58px; padding: 0 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { border-color: transparent; color: #021018; background: linear-gradient(100deg, var(--ice), #9fc2ff 60%, var(--violet)); box-shadow: 0 0 34px rgba(143, 230, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.btn--primary:hover { box-shadow: 0 0 54px rgba(143, 230, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }

/* ───────── Коммерческая часть ───────── */
#after { position: relative; z-index: 5; background: linear-gradient(to bottom, rgba(2, 4, 10, 0), rgba(2, 4, 10, 0.72) 260px, rgba(2, 4, 10, 0.9)); padding-top: 12vh; }
.block { padding: clamp(80px, 11vw, 150px) 0 0; }
.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin: 0 auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--pad)); }
.block-title { font-size: clamp(1.9rem, 4.6vw, 4.2rem); max-width: 18ch; }
.block-title em { font-style: normal; background: linear-gradient(95deg, var(--ice), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 46px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); background: rgba(4, 10, 20, 0.62); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 12px; transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s; }
.step:hover { border-color: rgba(143, 230, 255, 0.55); transform: translateY(-4px); box-shadow: 0 0 40px rgba(143, 230, 255, 0.12); }
.step__n { font: 800 2.6rem / 1 var(--display); color: transparent; background: linear-gradient(180deg, var(--ice), rgba(143, 230, 255, 0.1)); -webkit-background-clip: text; background-clip: text; }
.step h3 { font: 700 1.25rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.step p { color: rgba(233, 244, 255, 0.78); font-size: 0.93rem; }
.dl { display: grid; gap: 8px; margin-top: 4px; }
.dl--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.dl__btn { display: grid; gap: 2px; padding: 12px 14px 12px 44px; border: 1px solid var(--line); background: rgba(143, 230, 255, 0.06); text-decoration: none; position: relative; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.dl__btn::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; background: var(--ice); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 11l5 5 5-5M5 20h14'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 11l5 5 5-5M5 20h14'/></svg>") center / contain no-repeat; }
.dl__btn b { font: 600 0.9rem var(--text); color: #fff; }
.dl__btn span { font: 500 0.66rem var(--mono); letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.dl__btn:hover { border-color: var(--ice); background: rgba(143, 230, 255, 0.13); transform: translateX(3px); }
.warn { margin-top: 6px; padding: 12px 14px; font-size: 0.82rem; line-height: 1.5; color: #ffe2b8; background: rgba(255, 180, 84, 0.08); border-left: 3px solid var(--amber); }
.warn b { color: var(--amber); }
.warn a { color: #fff; }
.mini { display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.mini li::before { content: "▸ "; color: var(--ice); }
.code { position: relative; margin-top: 4px; background: #040a14; border: 1px solid var(--line); }
.code pre { margin: 0; padding: 14px 52px 14px 14px; overflow-x: auto; font: 500 0.74rem / 1.7 var(--mono); color: #bdeaff; white-space: pre; }
.copy { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 1px solid var(--line); background: rgba(143, 230, 255, 0.08); cursor: pointer; display: grid; place-items: center; color: var(--ice); transition: background 0.3s, border-color 0.3s; }
.copy:hover { border-color: var(--ice); background: rgba(143, 230, 255, 0.2); }
.copy svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: opacity 0.25s, transform 0.4s var(--ease); }
.copy .tick { opacity: 0; transform: scale(0.4); color: var(--ok); }
.copy.done .tick { opacity: 1; transform: none; } .copy.done svg:first-child { opacity: 0; }

.kits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 46px; }
.kit { padding: 26px 22px; border: 1px solid var(--line); background: rgba(4, 10, 20, 0.62); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 10px; transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s; }
.kit:hover { transform: translateY(-5px); border-color: rgba(143, 230, 255, 0.6); box-shadow: 0 10px 50px rgba(143, 230, 255, 0.14); }
.kit--open { border-color: rgba(138, 123, 255, 0.55); background: linear-gradient(160deg, rgba(138, 123, 255, 0.14), rgba(4, 10, 20, 0.62)); }
.kit__lvl { display: flex; gap: 5px; margin-bottom: 6px; }
.kit__lvl i { width: 30px; height: 4px; background: rgba(143, 230, 255, 0.16); }
.kit__lvl i.on { background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.kit h3 { font: 700 1.3rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.kit__tag { font: 500 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.kit p:not(.kit__tag) { color: rgba(233, 244, 255, 0.78); font-size: 0.93rem; flex: 1; }

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); }
.proof > div { padding: 26px 22px; background: rgba(2, 5, 12, 0.85); }
.proof b { display: block; font: 800 clamp(2rem, 4vw, 3.4rem) / 1 var(--display); color: #fff; text-shadow: 0 0 24px rgba(143, 230, 255, 0.45); }
.proof span { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.status, .license { margin-top: 26px; padding: 26px; border: 1px solid var(--line); background: rgba(4, 10, 20, 0.62); backdrop-filter: blur(12px); }
.status h3, .license h3 { font: 700 1.1rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.status table { width: 100%; border-collapse: collapse; }
.status td { padding: 11px 0; border-bottom: 1px solid rgba(143, 230, 255, 0.1); font-size: 0.92rem; vertical-align: top; }
.status td:last-child { text-align: right; font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding-left: 16px; }
.status .ok { color: var(--ok); } .status .mid { color: var(--ice); } .status .sim { color: var(--violet); } .status .todo { color: var(--amber); }
.status .small { margin-top: 14px; }
.license p { color: rgba(233, 244, 255, 0.82); max-width: 80ch; }

.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 14px; margin-top: 54px; position: relative; }
.road li { position: relative; padding-top: 34px; }
.road li::before { content: ""; position: absolute; top: 6px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--line), rgba(143, 230, 255, 0.05)); }
.road li::after { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ice); background: var(--bg); }
.road li.done::after { background: var(--ice); box-shadow: 0 0 16px var(--ice); }
.road li.next::after { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 16px var(--amber); animation: blip 1.6s ease-in-out infinite; }
.road li.far::after { border-color: var(--violet); box-shadow: 0 0 18px var(--violet); }
@keyframes blip { 50% { opacity: 0.35; } }
.road b { font: 500 0.68rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); }
.road h3 { font: 700 1.2rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; margin: 6px 0 8px; }
.road p { color: rgba(233, 244, 255, 0.75); font-size: 0.92rem; max-width: 36ch; }

.form { display: grid; gap: 16px; margin-top: 34px; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); background: rgba(4, 10, 20, 0.66); backdrop-filter: blur(14px); position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; }
.form label > span { font: 500 0.68rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.form label > span i { text-transform: none; letter-spacing: 0; font-style: normal; opacity: 0.7; }
.form input[type="text"], .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: rgba(143, 230, 255, 0.05); border-radius: 0; font-size: 1rem; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.form select option { background: #06101e; color: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ice); background: rgba(143, 230, 255, 0.09); box-shadow: 0 0 22px rgba(143, 230, 255, 0.15); }
.check { display: flex !important; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.88rem; color: rgba(233, 244, 255, 0.78); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1px solid var(--ice); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 10px; background: var(--ice); transform: scale(0); transition: transform 0.25s var(--ease); box-shadow: 0 0 10px var(--ice); }
.check input:checked::after { transform: scale(1); }
.check span { font: 300 0.88rem var(--text) !important; letter-spacing: 0 !important; text-transform: none !important; color: inherit !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #ff8a8a; font-size: 0.9rem; text-align: center; } .error:empty { display: none; }
.form-ok { padding: 16px; border: 1px solid rgba(70, 227, 160, 0.5); background: rgba(70, 227, 160, 0.09); color: #bff7de; text-align: center; }
.btn .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(2, 16, 24, 0.35); border-top-color: #021018; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.loading .spin { display: block; } .btn.loading span { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { position: relative; z-index: 5; margin-top: clamp(80px, 11vw, 150px); padding: 60px 0 36px; background: #01030a; border-top: 1px solid var(--line); overflow: hidden; }
.footer__word { font: 800 clamp(2.4rem, 11.5vw, 11rem) / 0.9 var(--display); letter-spacing: 0.02em; white-space: nowrap; background: linear-gradient(180deg, rgba(143, 230, 255, 0.28), rgba(143, 230, 255, 0.02)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 0.86rem; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; translate: -50% 30px; opacity: 0; padding: 12px 22px; border: 1px solid var(--ice); background: rgba(2, 8, 18, 0.92); font: 500 0.78rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ice); pointer-events: none; transition: opacity 0.35s var(--ease), translate 0.45s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
.noscript { position: relative; z-index: 9; padding: 14px var(--pad); background: #1a1200; color: var(--amber); }

/* ───────── Адаптив ───────── */
@media (max-width: 1100px) {
  .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-left { display: none; }
  .chapter__inner { padding-left: var(--pad); }
}
@media (max-width: 860px) {
  .links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 10px; background: rgba(1, 3, 9, 0.96); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); margin: 0; }
  .links a { font: 700 1.6rem var(--display); letter-spacing: 0.08em; }
  .hud-top.open .links { opacity: 1; pointer-events: auto; }
  .hud-top .btn { display: none; }
  .burger { display: block; }
  .chapter__inner, .chapter--right .chapter__inner { align-items: stretch; justify-content: flex-end; padding: 90px 16px 84px; }
  .chapter--center .chapter__inner { justify-content: center; }
  [data-chapter="hero"] .chapter__inner { justify-content: center; }
  .panel { max-width: 100%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hud-bottom > div:nth-child(2), .hud-bottom .hint { display: none; }
  .frame { inset: 8px; }
  .callouts { display: none; }
  .panel { background: rgba(2, 6, 14, 0.78); }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .steps, .kits, .road, .proof { grid-template-columns: minmax(0, 1fr); }
  .status table, .status tbody, .status tr, .status td { display: block; width: 100%; }
  .status tr { padding: 12px 0; border-bottom: 1px solid rgba(143, 230, 255, 0.1); }
  .status td { border: 0; padding: 2px 0; }
  .status td:last-child { text-align: left; padding-left: 0; font-size: 0.68rem; }
  .cta-row .btn--lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Затемнение слева под заголовком первой главы, чтобы текст читался поверх ярких городов */
.chapter--hero .chapter__inner::before { content: ""; position: absolute; inset: 0 30% 0 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(1, 3, 9, 0.72), rgba(1, 3, 9, 0.4) 55%, transparent); }

[data-chapter="hero"] .chapter__inner { padding-top: 120px; padding-bottom: 150px; }
.chapter--left .panel { max-width: 500px; }

.hud-left, .hud-bottom { transition: opacity 0.5s var(--ease); }
.past .hud-left, .past .hud-bottom { opacity: 0; pointer-events: none; }

.step, .kit, .status, .license, .form, .proof > div { min-width: 0; }
.code { max-width: 100%; }
.code pre { max-width: 100%; }
html, body { max-width: 100%; }
