/* «Делим метры»: общие стили продающей страницы и инструкции.
   Образ: макет помещения, поделённого на зоны. Четыре цвета зон = четыре этапа сделки
   (найти, посчитать, сдать, оформить) и больше ничего не означают. Тёмная «сцена» для макета
   и экранов бота, светлая «бумага» для текста, коралловая кнопка заявки. */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-cyrillic-shrp-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-latin-shrp-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* бумага */
  --paper: #f6f4ef;
  --paper-2: #eeeae2;
  --card: #fffdf9;
  --line: #e2ddd2;
  --line-2: #cdc6b8;
  --ink: #12161d;
  --ink-2: #3d4450;
  --ink-3: #5c6370;
  /* сцена */
  --night: #0e1116;
  --night-2: #151920;
  --night-3: #1b2029;
  --night-line: #272d38;
  --on-night: #eef0f3;
  --on-night-2: #a7aebb;
  --on-night-3: #858d9a;
  /* зоны: заливка, текст на бумаге, мягкий фон */
  --z1: #22b07d; --z1-ink: #08704b; --z1-soft: #d9f1e6;
  --z2: #3d63ff; --z2-ink: #2b49d8; --z2-soft: #e2e8ff; --z2-night: #7d97ff;
  --z3: #ff6b3d; --z3-ink: #ad3a12; --z3-soft: #ffe5da;
  --z4: #ffb224; --z4-ink: #8a5a00; --z4-soft: #ffefcc;
  --cor: #394150;
  /* заявка */
  --accent: #ff6b3d;
  --accent-hover: #ff8660;
  --on-accent: #12161d;
  /* Telegram на экранах бота */
  --tg-bg: #dde5d3;
  --tg-in: #fffdf9;
  --tg-out: #dcf3c8;

  --font-display: "Geologica", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --step-3: clamp(2rem, 1.3rem + 2.9vw, 3.5rem);
  --step-4: clamp(2.375rem, 1.25rem + 4.6vw, 4.5rem);

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --section: clamp(80px, 11vw, 144px);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 16px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(18, 22, 29, .05), 0 18px 40px -18px rgba(18, 22, 29, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-variation-settings: "SHRP" 40; font-weight: 700;
  margin: 0; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); letter-spacing: -0.032em; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; }
::selection { background: var(--z4); color: var(--ink); }
:focus-visible { outline: 3px solid var(--z2); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .site-head :focus-visible { outline-color: var(--z4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; border-radius: 10px;
  background: var(--z4); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.e { margin-right: .32em; }
.night { background: var(--night); color: var(--on-night); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 var(--step-0)/1.25 var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn .i { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.btn:hover .i { transform: translate(2px, -2px); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-line { border-color: rgba(238, 240, 243, .28); color: var(--on-night); }
.btn-line:hover { border-color: var(--on-night); background: rgba(238, 240, 243, .06); }
.btn-small { min-height: 44px; padding: 9px 18px; font-size: var(--step--1); }
.btn-big { min-height: 60px; padding: 16px 32px; font-size: var(--step-1); }

/* ---------- шапка: тёмная «таблетка», висит над страницей ---------- */
.site-head { position: fixed; top: 10px; left: 0; right: 0; z-index: 40; padding-inline: 10px; pointer-events: none; }
.head-bar {
  pointer-events: auto; max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-md); min-height: 60px; padding: 7px 7px 7px 14px;
  border-radius: 999px; color: var(--on-night);
  background: rgba(14, 17, 22, .8); border: 1px solid rgba(238, 240, 243, .09);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .55);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; }
.brand b { font: 700 1.0625rem/1 var(--font-display); letter-spacing: -0.01em; }
.site-nav { display: none; gap: 2px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--on-night-2); text-decoration: none; font-size: var(--step--1); font-weight: 500;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.site-nav a:hover { color: var(--on-night); background: rgba(238, 240, 243, .07); }
.head-bar > .btn { margin-left: auto; }
@media (min-width: 1000px) {
  .site-nav { display: flex; }
  .site-nav + .btn { margin-left: 8px; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden; padding: 116px 0 var(--space-2xl);
  background: radial-gradient(ellipse 60% 55% at 76% 48%, #1b212b 0%, rgba(27, 33, 43, 0) 72%), var(--night);
}
.hero-grid { display: grid; gap: var(--space-xl); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--night-line); background: rgba(238, 240, 243, .03);
  font-size: var(--step--1); line-height: 1.35; color: var(--on-night-2);
}
.dots { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; flex: none; }
.dots i { width: 7px; height: 7px; border-radius: 2px; background: var(--z1); }
.dots i:nth-child(2) { background: var(--z2); }
.dots i:nth-child(3) { background: var(--z3); }
.dots i:nth-child(4) { background: var(--z4); }
.hero h1 { margin-top: var(--space-lg); max-width: 14ch; }
.hero h1 span { color: var(--on-night-3); }
.hero .lead { margin-top: var(--space-lg); max-width: 52ch; font-size: var(--step-1); line-height: 1.5; color: var(--on-night-2); }
.hero .actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero .note { margin-top: var(--space-md); display: flex; gap: 8px; max-width: 48ch; font-size: var(--step--1); color: var(--on-night-3); }
.hero .note .i { width: 18px; height: 18px; margin-top: 2px; color: var(--z1); }
.hero-visual { margin: 0 calc(var(--gutter) * -1); }
.iso svg { width: 100%; height: auto; overflow: visible; }
.iso [data-z] { cursor: pointer; }
.iso .is-dim { opacity: .14; }
.hero-legend { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-legend a {
  display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 10px 14px 10px 10px;
  border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-line); text-decoration: none;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.hero-legend a:hover, .hero-legend a.is-on { background: var(--night-3); border-color: #3a4250; }
.hero-legend b { display: block; font: 600 var(--step--1)/1.25 var(--font-body); color: var(--on-night); }
.hero-legend small { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.2; color: var(--on-night-3); }
.n {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 700 .9375rem/1 var(--font-display); color: var(--ink); background: var(--c, var(--z1));
}
.c1 { --c: var(--z1); --c-ink: var(--z1-ink); --c-soft: var(--z1-soft); --c-night: var(--z1); }
.c2 { --c: var(--z2); --c-ink: var(--z2-ink); --c-soft: var(--z2-soft); --c-night: var(--z2-night); }
.c3 { --c: var(--z3); --c-ink: var(--z3-ink); --c-soft: var(--z3-soft); --c-night: var(--z3); }
.c4 { --c: var(--z4); --c-ink: var(--z4-ink); --c-soft: var(--z4-soft); --c-night: var(--z4); }
.c2 .n, .n.c2 { color: #fff; }
@media (max-width: 999px) {
  .iso { margin-inline: -7%; }
}
@media (min-width: 1000px) {
  .hero { padding: 136px 0 var(--space-3xl); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-lg); }
  .hero h1 { font-size: clamp(3rem, 1.4rem + 3.1vw, 4rem); max-width: none; }
  .hero-visual { width: 124%; margin: 0 0 0 -8%; }
  .hero-legend { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-lg); }
}

/* ---------- разделы ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md);
  font: 600 var(--step--1)/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--k, var(--accent)); flex: none; }
.night .kicker { color: var(--on-night-3); }
.section-head h2 { max-width: 21ch; }
.section-head > p:not(.kicker) { margin-top: var(--space-lg); max-width: 56ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.night .section-head > p:not(.kicker) { color: var(--on-night-2); }
.section-head .more { margin-top: var(--space-lg); }

/* ---------- кому подойдёт ---------- */
.who { display: grid; gap: var(--space-md); }
.who-card {
  display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.who-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.who-card h3 { display: flex; align-items: center; gap: 12px; font-size: var(--step-1); }
.who-card h3 .i { width: 26px; height: 26px; color: var(--ink); }
.who-card p { color: var(--ink-2); max-width: 58ch; }
.who-card .best { margin-top: auto; padding-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.best > span { width: 100%; font-size: var(--step--1); font-weight: 600; color: var(--ink-3); }
.tag {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; line-height: 1.2; text-decoration: none;
  background: var(--c-soft, var(--paper-2)); color: var(--c-ink, var(--ink-2));
  transition: filter .2s var(--ease-out);
}
.tag:hover { filter: brightness(.96) saturate(1.2); }
.who-free {
  justify-content: center; text-decoration: none; background: transparent;
  border: 2px dashed var(--line-2);
}
.who-free:hover { border-color: var(--ink); box-shadow: none; }
.who-free .plus {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-xs);
  background: var(--ink); color: var(--paper);
}
.who-free .plus .i { width: 24px; height: 24px; }
.who-free .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--z3-ink); }
.who-free .go .i { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.who-free:hover .go .i { transform: translateX(3px); }
@media (min-width: 760px) { .who { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .who { grid-template-columns: repeat(3, 1fr); }
  .who-card.wide { grid-column: span 2; }
}

/* ---------- деление плана: до и после ---------- */
.split { display: grid; gap: var(--space-2xl); align-items: center; }
.split .lead { margin-top: var(--space-lg); font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.checks { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks .i { width: 22px; height: 22px; margin-top: 2px; color: var(--z1-ink); }
.compare { margin: 0; }
.compare-box {
  --pos: 50%;
  position: relative; aspect-ratio: 1000 / 643; overflow: hidden; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.compare-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare-box .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-box input {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.c-line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.c-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 18px rgba(18, 22, 29, .3);
}
.c-knob svg { width: 26px; height: 26px; }
.compare-box input:focus-visible ~ .c-line .c-knob { outline: 3px solid var(--z2); outline-offset: 3px; }
.c-tag {
  position: absolute; z-index: 2; top: 14px; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  font-size: var(--step--1); font-weight: 600; line-height: 1.2; background: rgba(18, 22, 29, .84); color: #fff;
}
.c-tag.b { left: 14px; }
.c-tag.a { right: 14px; }
.compare figcaption { margin-top: var(--space-md); font-size: var(--step--1); color: var(--ink-3); max-width: 64ch; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--space-3xl); }
}

/* ---------- вопросы: мини-переписки ---------- */
.chats { display: grid; gap: var(--space-md); }
.chat {
  margin: 0; padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--paper-2);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.chats > * { min-width: 0; }
.bubble { max-width: 90%; padding: 12px 16px; border-radius: 20px; line-height: 1.5; overflow-wrap: break-word; }
.bubble.q {
  align-self: flex-end; margin: 0; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px;
  font: 600 var(--step-1)/1.35 var(--font-display); font-variation-settings: "SHRP" 30; letter-spacing: -0.01em;
}
.answer { display: flex; align-items: flex-end; gap: 10px; max-width: 94%; }
.answer img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.bubble.a { background: var(--card); color: var(--ink-2); border-bottom-left-radius: 6px; box-shadow: 0 1px 1px rgba(18, 22, 29, .06); }
.bubble.a a { color: var(--ink); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (min-width: 900px) { .chats { grid-template-columns: 1fr 1fr; gap: var(--space-lg); } }

/* ---------- инструменты: четыре зоны на тёмной сцене ---------- */
.tools-sec { padding-block: var(--section); }
.tools-sec .section-head { margin-bottom: 0; }
.zone { display: grid; gap: var(--space-xl); padding-top: clamp(72px, 10vw, 128px); scroll-margin-top: 40px; }
.zone-tag { display: flex; align-items: center; gap: 12px; font-size: var(--step--1); font-weight: 600; color: var(--on-night-2); }
.zone h3 { margin-top: var(--space-md); font-size: var(--step-3); letter-spacing: -0.032em; line-height: 1.02; }
.zone-intro { margin-top: var(--space-md); max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: var(--on-night-2); }
.tool-list { margin: var(--space-xl) 0 0; }
.tool { padding: 18px 0; border-top: 1px solid var(--night-line); }
.tool:last-child { border-bottom: 1px solid var(--night-line); }
.tool dt { display: flex; align-items: center; gap: 14px; font: 650 var(--step-1)/1.25 var(--font-display); font-variation-settings: "SHRP" 30; }
.tool dt .i { width: 24px; height: 24px; color: var(--c-night); }
.tool dd { margin: 6px 0 0 38px; color: var(--on-night-2); max-width: 56ch; }
/* сцена: цветной «пол» зоны в плитку и экраны бота на нём */
.stage {
  position: relative; overflow: hidden; isolation: isolate; min-height: clamp(460px, 118vw, 560px);
  border-radius: var(--radius-lg); background-color: var(--c);
  background-image: linear-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .07) 1px, transparent 1px);
  background-size: 36px 36px; background-position: -1px -1px;
}
.ph { position: absolute; width: min(60%, 300px); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .34)); }
.ph-back { left: 6%; top: 7%; transform: rotate(-6deg); }
.ph-front { right: 6%; top: 17%; transform: rotate(4deg); }
.deck { position: absolute; left: 6%; top: 7%; width: 74%; aspect-ratio: 16 / 9; }
.deck img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 20px 36px -14px rgba(0, 0, 0, .45);
}
.deck img:nth-child(1) { transform: translate(-3%, 16%) rotate(-8deg); }
.deck img:nth-child(2) { transform: translate(2%, 7%) rotate(-3deg); }
.deck img:nth-child(3) { transform: translate(7%, -2%) rotate(2deg); }
.stage-kp .ph-front { top: 34%; }
@media (min-width: 1000px) {
  .zone { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: var(--space-4xl); align-items: center; }
  .zone.flip .zone-info { order: 2; }
  .stage { min-height: 640px; }
  .ph { width: 44%; }
  .stage-kp .ph-front { top: 30%; }
}

/* лента слайдов Авто-КП */
.tools-sec { overflow-x: clip; }
.rail-block { margin-top: var(--space-2xl); }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.rail-note { display: flex; align-items: center; gap: 12px; color: var(--on-night-2); font-size: var(--step--1); }
.rail-nav { display: none; gap: 8px; flex: none; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--on-night); border: 1px solid var(--night-line);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.rail-btn:hover { border-color: var(--on-night-3); background: var(--night-2); }
.rail-btn[data-dir="-1"] .i { transform: scaleX(-1); }
.rail-btn .i { width: 20px; height: 20px; }
.rail-note .i { width: 22px; height: 22px; color: var(--c-night); }
.kp-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 440px); gap: var(--space-sm);
  margin: var(--space-md) calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) var(--space-md);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--night-line) transparent;
}
.kp-rail img { width: 100%; border-radius: 12px; scroll-snap-align: start; background: #fff; }
.kp-rail:focus-visible { outline-offset: -3px; }
@media (min-width: 1000px) {
  .rail-nav { display: flex; }
  .kp-rail { margin-left: 0; padding-left: 0; scroll-padding-inline: 0; margin-right: calc((100% - 100vw) / 2); }
}

/* ---------- под вашу работу ---------- */
.gains { display: grid; gap: 0 var(--space-2xl); }
.gain { padding: var(--space-xl) 0; border-top: 1px solid var(--line-2); display: grid; gap: var(--space-sm); align-content: start; }
.gain .i { width: 28px; height: 28px; margin-bottom: var(--space-xs); }
.gain p { color: var(--ink-2); }
@media (min-width: 760px) { .gains { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gains { grid-template-columns: repeat(3, 1fr); } }

/* калькулятор дохода от подписки */
.calc { margin-top: var(--space-3xl); display: grid; border-radius: var(--radius-lg); overflow: hidden; }
.calc-in { padding: var(--space-xl) var(--space-lg); display: grid; gap: var(--space-md); }
.calc-in h3 { font-size: var(--step-2); max-width: 22ch; }
.calc-in > p { color: var(--on-night-2); }
.field { display: grid; grid-template-rows: 1fr auto; gap: 8px; }
.field label { align-self: end; font-size: var(--step--1); font-weight: 600; color: var(--on-night-2); }
.field input {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 14px;
  font: 600 var(--step-1)/1.2 var(--font-body); font-variant-numeric: tabular-nums; color: var(--on-night);
  background: var(--night-2); border: 1px solid var(--night-line);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field input::placeholder { color: var(--on-night-3); font-weight: 400; }
.field input:hover { border-color: #3a4250; }
.field input:focus { outline: none; border-color: var(--z4); box-shadow: 0 0 0 3px rgba(255, 178, 36, .22); }
.calc-out {
  padding: var(--space-xl) var(--space-lg); display: grid; align-content: center; gap: var(--space-sm);
  border-top: 1px solid var(--night-line); background: var(--night-2);
}
.calc-out .label { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); }
.calc-out .big {
  font: 700 clamp(2.5rem, 1.7rem + 3vw, 4rem)/1 var(--font-display); letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc-out .per-day { font-size: var(--step-1); font-weight: 600; color: var(--accent); }
.calc-out .hint { font-size: var(--step--1); color: var(--on-night-3); max-width: 42ch; }
@media (min-width: 900px) {
  .calc { grid-template-columns: 1.3fr 1fr; }
  .calc-in { grid-template-columns: 1fr 1fr; align-content: start; padding: var(--space-2xl); column-gap: var(--space-lg); }
  .calc-in h3, .calc-in > p { grid-column: 1 / -1; }
  .calc-out { padding: var(--space-2xl); border-top: 0; border-left: 1px solid var(--night-line); }
}

/* ---------- админка: макет окна ---------- */
.admin { display: grid; gap: var(--space-2xl); align-items: start; }
.browser {
  container-type: inline-size; border-radius: 18px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(18, 22, 29, .45);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar > i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser-bar .url {
  margin-left: 10px; flex: 1; max-width: 340px; padding: 5px 12px; border-radius: 8px; background: var(--card);
  font-size: .8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm { display: grid; grid-template-columns: 172px minmax(0, 1fr); font-size: .875rem; }
.adm-side { padding: 14px 10px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.adm-side .logo { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font: 700 .9375rem/1 var(--font-display); }
.adm-side .logo img { width: 22px; height: 22px; }
.adm-side span { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; color: var(--ink-3); }
.adm-side span .i { width: 16px; height: 16px; }
.adm-side span.on { background: var(--z2-soft); color: var(--ink); font-weight: 600; }
.adm-main { padding: 18px; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-top b { font: 650 1.125rem/1 var(--font-body); }
.adm-btn { padding: 7px 14px; border-radius: 8px; background: var(--z2); color: #fff; font-weight: 600; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.adm-filters span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); font-size: .8125rem; }
.adm-filters span.on { background: var(--z2-soft); border-color: #c4d0ff; color: var(--ink); font-weight: 600; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { text-align: left; font-weight: 500; font-size: .8125rem; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td small { display: block; color: var(--ink-3); font-size: .8125rem; }
.adm-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.st.ok { background: var(--z1-soft); color: var(--z1-ink); }
.st.warn { background: var(--z4-soft); color: var(--z4-ink); }
.st.none { background: var(--paper-2); color: var(--ink-3); }
@container (max-width: 620px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { display: none; }
  .adm-table .opt { display: none; }
}
@container (max-width: 440px) {
  .adm-main { padding: 14px 12px; }
  .adm-table { font-size: .8125rem; }
  .adm-table th, .adm-table td { padding: 8px 5px; }
  .adm-table .opt2 { display: none; }
}
.admin-list { margin: 0; display: grid; gap: 0 var(--space-xl); }
.admin-list > div { padding: var(--space-md) 0; border-top: 1px solid var(--line-2); }
.admin-list dt { display: flex; align-items: center; gap: 14px; font: 650 var(--step-0)/1.35 var(--font-body); }
.admin-list .i { width: 22px; height: 22px; }
.admin-list dd { margin: 4px 0 0 36px; color: var(--ink-2); }
@media (min-width: 760px) { .admin-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .admin-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- запуск ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: var(--space-lg); border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); display: grid; gap: var(--space-xs); align-content: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); margin-bottom: var(--space-lg);
  font: 700 var(--step-3)/1 var(--font-display); letter-spacing: -0.04em; color: var(--line-2);
}
.steps p { color: var(--ink-2); }
.steps li:last-child { background: var(--night); border-color: var(--night); color: var(--on-night); }
.steps li:last-child::before { color: var(--accent); }
.steps li:last-child p { color: var(--on-night-2); }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- вопросы ---------- */
.faq-grid { display: grid; gap: var(--space-xl); }
.faq-grid .section-head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  min-height: 76px; padding: var(--space-md) 0; font: 650 var(--step-1)/1.3 var(--font-display); font-variation-settings: "SHRP" 30;
}
.faq summary::-webkit-details-marker { display: none; }
.pm {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); transition: transform .35s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.pm .i { width: 20px; height: 20px; }
.faq summary:hover .pm { border-color: var(--ink); }
.faq details[open] .pm { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq details p { padding: 0 56px var(--space-lg) 0; color: var(--ink-2); max-width: 64ch; }
.link-accent { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; color: var(--z3-ink); text-underline-offset: 4px; }
.link-accent .i { width: 18px; height: 18px; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-3xl); }
  .faq-grid .section-head { position: sticky; top: 112px; align-self: start; }
}

/* ---------- финальный призыв и подвал ---------- */
.final { padding-top: var(--section); overflow: hidden; }
.final-in { display: grid; gap: var(--space-2xl); align-items: end; }
.final-text { display: grid; justify-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.final h2 { font-size: var(--step-4); max-width: 13ch; letter-spacing: -0.035em; line-height: 1; }
.final-text > p:not(.kicker) { margin-top: var(--space-lg); max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: var(--on-night-2); }
.final .btn { margin-top: var(--space-xl); }
.final-ph {
  justify-self: center; width: min(76%, 330px); margin-bottom: -150px; transform: rotate(5deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
}
.strip { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.strip span {
  display: flex; align-items: flex-end; min-height: 76px; padding: 14px var(--gutter);
  font: 700 var(--step--1)/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  background: var(--c);
}
.strip .c2 { color: #fff; }
@media (min-width: 900px) {
  .final-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .final-ph { margin-bottom: -210px; }
}
@media (min-width: 760px) {
  .strip { grid-template-columns: 4fr 3fr 4fr 3fr; }
  .strip span { min-height: 96px; padding-inline: 20px; }
  .strip span:first-child { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
}
.site-foot { padding-block: var(--space-xl); background: var(--night); color: var(--on-night-3); font-size: var(--step--1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-xl); }
.site-foot .brand { color: var(--on-night); }
.site-foot a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night-2); text-underline-offset: 4px; }
.site-foot a:not(.brand):hover { color: var(--on-night); }
@media (min-width: 760px) { .site-foot .to-right { margin-left: auto; } }

/* ---------- появление ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s var(--ease-expo) backwards; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .3s; }
  .hero-legend li { animation: rise .8s var(--ease-expo) backwards; animation-delay: calc(1.3s + var(--n, 0) * 80ms); }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
/* экраны на сцене плывут с разной скоростью при прокрутке (где браузер умеет) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ph-back, .deck { animation: drift-a linear both; animation-timeline: view(); }
    .ph-front { animation: drift-b linear both; animation-timeline: view(); }
  }
}
@keyframes drift-a { from { translate: 0 36px; } to { translate: 0 -36px; } }
@keyframes drift-b { from { translate: 0 80px; } to { translate: 0 -50px; } }

/* ---------- страница 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: var(--space-md); padding-block: var(--space-3xl); }
.nf .brand { margin-bottom: var(--space-2xl); }
.nf .lead { max-width: 44ch; font-size: var(--step-1); line-height: 1.5; color: var(--on-night-2); }
.nf .btn { margin-top: var(--space-md); }

/* ---------- экран Telegram (служебная screens.html, из неё снимаются картинки) ---------- */
.phone {
  width: 360px; margin: 0; padding: 9px; border-radius: 50px; background: #0b0d11;
  box-shadow: inset 0 0 0 1.5px #3a404b, 0 0 0 1px #1c2028;
}
.tg { position: relative; border-radius: 41px; overflow: hidden; background: var(--tg-bg); display: flex; flex-direction: column; height: 640px; }
.tg::before {
  content: ""; position: absolute; z-index: 2; top: 11px; left: 50%; width: 94px; height: 26px;
  transform: translateX(-50%); border-radius: 999px; background: #0b0d11;
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 10px; background: #fbfaf7; border-bottom: 1px solid #e4e0d7; }
.tg-ava { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--night); }
.tg-ava img { width: 100%; height: 100%; object-fit: cover; }
.tg-head b { display: block; font: 650 .95rem/1.2 var(--font-body); color: var(--ink); }
.tg-head small { font-size: .8rem; color: var(--ink-3); }
.tg-body {
  flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  font-size: .875rem; line-height: 1.4; color: var(--ink);
  -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent);
}
.msg { max-width: 90%; padding: 8px 11px 7px; border-radius: 16px 16px 16px 5px; background: var(--tg-in); box-shadow: 0 1px 0 rgba(18, 22, 29, .1); align-self: flex-start; }
.msg.out { align-self: flex-end; background: var(--tg-out); border-radius: 16px 16px 5px 16px; }
.msg p + p { margin-top: 6px; }
.msg .t { display: block; text-align: right; font-size: .6875rem; color: var(--ink-3); margin-top: 2px; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 90%; }
.kb.one { grid-template-columns: 1fr; }
.kb span { background: rgba(255, 255, 255, .62); border-radius: 10px; padding: 7px 6px; text-align: center; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.kb .wide { grid-column: 1 / -1; }
.day { align-self: center; font-size: .75rem; font-weight: 600; background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }

/* ---------- инструкция для пользователей ---------- */
.guide-top { padding: 128px 0 var(--space-3xl); }
.demo-note {
  display: inline-flex; margin-bottom: var(--space-lg); padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 178, 36, .1); border: 1px solid rgba(255, 178, 36, .38); color: var(--z4); font-size: var(--step--1);
}
.guide-top h1 { max-width: 15ch; }
.guide-top .lead { margin-top: var(--space-lg); max-width: 60ch; font-size: var(--step-1); line-height: 1.5; color: var(--on-night-2); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-xl); }
.toc a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--night-line); background: var(--night-2); color: var(--on-night); text-decoration: none;
  font-size: var(--step--1); font-weight: 600; white-space: nowrap; transition: border-color .2s var(--ease-out);
}
.toc a::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--on-night-3)); }
.toc a:hover { border-color: var(--on-night-3); }
.toc .t1 { --c: var(--z1); } .toc .t2 { --c: var(--z2); } .toc .t3 { --c: var(--z3); } .toc .t4 { --c: var(--z4); }
.legend { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--step--1); color: var(--on-night-3); }
.zone-label {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font: 700 var(--step--1)/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.zone-label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.zl-1 { --c: var(--z1); color: var(--z1-ink); background: var(--z1-soft); }
.zl-2 { --c: var(--z2); color: var(--z2-ink); background: var(--z2-soft); }
.zl-3 { --c: var(--z3); color: var(--z3-ink); background: var(--z3-soft); }
.zl-4 { --c: var(--z4); color: var(--z4-ink); background: var(--z4-soft); }
.zone-break { display: flex; width: fit-content; margin: var(--space-3xl) 0 var(--space-sm); }
.guide { padding-block: var(--space-2xl); border-top: 1px solid var(--line-2); display: grid; gap: var(--space-xl); scroll-margin-top: 96px; }
.guide h2 { display: flex; align-items: center; gap: 14px; font-size: var(--step-2); }
.guide h2 .i { width: 30px; height: 30px; color: var(--c-ink); }
.guide h3 {
  margin: var(--space-lg) 0 var(--space-xs); font: 700 var(--step--1)/1.3 var(--font-body);
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
}
.guide .about { margin-top: var(--space-sm); font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.guide p, .guide li { color: var(--ink-2); max-width: 66ch; }
.guide ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.guide li::marker { font-weight: 700; color: var(--ink); }
.guide ol + p { margin-top: var(--space-sm); }
.tip { margin-top: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--radius); background: var(--paper-2); max-width: 66ch; }
.tip b { color: var(--ink); }
.guide .visual { display: grid; gap: var(--space-md); justify-items: center; align-content: start; }
.guide .visual .shot { width: min(100%, 340px); }
.guide .visual .wide { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.plan-demo { position: relative; margin: 0; width: 100%; padding: 18px 0 0 18px; }
.plan-demo .after { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan-demo .before {
  position: absolute; left: 0; top: 0; width: 36%;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff; box-shadow: var(--shadow);
}
.plan-demo figcaption { margin-top: var(--space-sm); font-size: var(--step--1); color: var(--ink-3); max-width: 60ch; }
@media (min-width: 900px) {
  .guide.has-visual { grid-template-columns: 1.25fr 1fr; gap: var(--space-3xl); }
}
