/* SAFONOV DESIGN v6. Одна сцена на всю страницу: ночь → день → ночь.
   Сигнатура — знак из точек, который собирается в настоящие сайты (v6.js). Остальное тихо. */

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/onest-var-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/onest-var-latext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/onest-var-lat.woff2') format('woff2'); 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: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/jbmono-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/jbmono-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  --night: #05060b;
  --night-2: #0c1020;
  --day: #edf0f5;
  --ink: #0c0d12;
  --ink-2: #2e3039;
  --ink-3: #575a68;
  --snow: #eef0f6;
  --snow-2: #bfc2d0;
  --snow-3: #8c90a3;
  --green: #13d66f;
  --green-hi: #34e589;
  --line-d: rgba(238, 240, 246, 0.16);
  --line-l: rgba(12, 13, 18, 0.17);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 3.2vw, 56px);
  --nav: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
/* фон только у html: слой .bg с z-index −1 должен лечь над ним, а не под фоном body */
html { background: var(--night); color: var(--snow); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body { margin: 0; font: 400 17px/1.55 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-weight: 500; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

[data-scene='night'] { color: var(--snow); --sub: var(--snow-2); --line: var(--line-d); }
[data-scene='day'] { color: var(--ink); --sub: var(--ink-2); --line: var(--line-l); }

/* ---------- фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-deep { position: absolute; inset: 0; background: #0b2457; opacity: 0; }
.bg-day { position: absolute; inset: 0; background: var(--day); opacity: 0; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- кнопки ---------- */
/* скругление 3px — как у рамки знака */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 3px; border: 1px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-go { background: var(--green); color: #03140a; }
.btn-go:hover { background: var(--green-hi); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(127, 127, 140, 0.16); }
.btn-ink { background: var(--ink); color: var(--snow); }
.btn-ink:hover { background: #262833; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- шапка ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gut); color: var(--snow); border-bottom: 1px solid transparent; transition: background-color .3s, color .3s, border-color .3s; }
@media (min-width: 981px) {
  .nav.scrolled { background: rgba(5, 6, 11, 0.78); border-bottom-color: var(--line-d); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  html[data-bg='light'] .nav.scrolled { background: rgba(237, 240, 245, 0.86); border-bottom-color: var(--line-l); }
}
html[data-bg='light'] .nav { color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-text span { font-weight: 500; margin-left: 6px; opacity: .62; }
.nav-links { display: flex; gap: clamp(18px, 2vw, 30px); margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links > a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links > a:hover, .nav-links > a.on { border-bottom-color: currentColor; }
.nl-foot { display: none; }
.nav-phone { font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav-go { height: 42px; padding: 0 18px; font-size: 15px; }
/* AIСделано: вторая кнопка шапки; знак в цвет текста, нижняя половина зелёная */
.nav-ai { height: 42px; padding: 0 16px; font-size: 15px; gap: 8px; border-color: var(--green); }
.nav-ai .ai-mark, .nl-ai .ai-mark { margin: 0; color: currentColor; }
.nl-ai { display: none; }
@media (min-width: 981px) and (max-width: 1240px) { .nav-phone { display: none; } }
.burger { display: none; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 3px; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- сцена: первый экран и работы ---------- */
.stage { position: relative; height: calc(100vh * (1 + var(--T, 3.4))); }
.stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cloud { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.hero { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: clamp(24px, 5vh, 56px); will-change: opacity, transform; }
.hero-title { font: 500 clamp(44px, 8.4vw, 164px)/.9 var(--font); letter-spacing: -.052em; margin: 0 0 clamp(22px, 4vh, 44px); max-width: 11.6em; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.hero-lead { margin: 0; max-width: 31em; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; color: var(--snow-2); }
.hero-cta { display: flex; gap: 12px; flex: none; }
.hero-note { margin: 16px 0 0; font-size: 15px; color: var(--snow-3); }

/* размеры карточки с сайтом считаются здесь, скрипт берёт их из разметки */
.reel { position: absolute; inset: 0; z-index: 2; pointer-events: none; --reel: 0;
  --cw: min(64vw, (100svh - 230px) * 1.6); --ch: calc(var(--cw) / 1.6); --ct: calc((100svh - var(--ch)) / 2 + 26px); }
.reel.on { pointer-events: auto; }
.reel-card { position: absolute; right: var(--gut); top: var(--ct); width: var(--cw); height: var(--ch); }
.reel-card img, .reel-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.reel-card::after { content: ''; position: absolute; inset: -1px; border: 1px solid rgba(238, 240, 246, 0.24); opacity: var(--reel); pointer-events: none; }
.reel-side { position: absolute; left: var(--gut); top: var(--ct); height: var(--ch); width: calc(100vw - var(--cw) - 2 * var(--gut) - clamp(28px, 3vw, 56px)); display: flex; flex-direction: column; opacity: var(--reel); }
.reel-title { font: 500 clamp(30px, 3.1vw, 56px)/1 var(--font); letter-spacing: -.04em; margin: 0 0 auto; padding-bottom: 28px; scroll-margin-top: 0; }
.reel-tabs { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line-d); }
.reel-tab { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 0 15px; background: none; border: 0; color: var(--snow-3); text-align: left; cursor: pointer; transition: color .2s; }
.reel-tab b { font-size: clamp(18px, 1.4vw, 22px); font-weight: 600; }
.reel-tab span { font-size: 14px; }
.reel-tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-d); }
.reel-tab i::after { content: ''; position: absolute; inset: 0; background: var(--snow); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.reel-tab[aria-current='true'], .reel-tab:hover { color: var(--snow); }
.reel-cap { min-height: 120px; }
.reel-line { margin: 0 0 18px; color: var(--snow-2); font-size: 16px; max-width: 30em; }
.reel-links { display: flex; align-items: center; gap: 18px; margin: 0; flex-wrap: wrap; }
.reel-url { font-size: 15px; color: var(--snow-2); }

/* ---------- общий заголовок раздела ---------- */
.sec-head { margin-bottom: clamp(36px, 4.4vw, 68px); }
.sec-head h2 { font: 500 clamp(34px, 4.6vw, 84px)/1 var(--font); letter-spacing: -.045em; margin: 0 0 18px; max-width: 14em; }
.sec-head p { margin: 0; max-width: 36em; font-size: clamp(17px, 1.2vw, 19px); color: var(--sub); }

/* ---------- демо по отраслям ---------- */
.demos { position: relative; padding: clamp(96px, 11vw, 170px) var(--gut) clamp(80px, 9vw, 140px); }
.demo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; align-items: baseline; gap: 24px; width: 100%; padding: clamp(18px, 2vw, 28px) 0; background: none; border: 0; border-bottom: 1px solid var(--line-d); color: inherit; text-align: left; cursor: pointer; }
.d-kind { font: 500 clamp(26px, 3.2vw, 58px)/1.02 var(--font); letter-spacing: -.035em; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.d-name { font-size: 18px; font-weight: 600; }
.d-what { color: var(--snow-2); font-size: 16px; }
.d-go { font-size: 15px; font-weight: 600; border-bottom: 1px solid currentColor; }
.demo:hover .d-kind, .demo:focus-visible .d-kind { transform: translateX(14px); }
.demos-note { margin: 28px 0 0; color: var(--snow-2); max-width: 46em; }
.demos-note a { color: var(--snow); }
.peek { position: fixed; z-index: 40; left: 0; top: 0; width: clamp(280px, 26vw, 420px); aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid rgba(238, 240, 246, 0.3); pointer-events: none; opacity: 0; transition: opacity .2s; }
.peek.show { opacity: 1; }

/* ---------- было / стало ---------- */
.redo { position: relative; height: 260vh; }
.redo-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ba { position: absolute; top: var(--nav); left: 0; right: 0; bottom: 0; background: var(--night); }
/* снимки целиком, без обрезки: у «было» и «стало» одни пропорции, поэтому шторка режет их в одном месте */
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ba-now { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--snow); }
.ba-tag { position: absolute; top: 16px; padding: 8px 12px; background: var(--night); color: var(--snow); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ba-tag-was { right: 12px; }
.ba-tag-now { left: 12px; }
.redo-cap { position: absolute; left: var(--gut); bottom: clamp(20px, 5vh, 48px); max-width: 600px; padding: clamp(20px, 2.2vw, 30px); background: rgba(5, 6, 11, 0.92); border: 1px solid var(--line-d); }
.redo-cap h2 { font: 500 clamp(26px, 2.6vw, 42px)/1.05 var(--font); letter-spacing: -.035em; margin: 0 0 12px; }
.redo-cap p { margin: 0 0 14px; color: var(--snow-2); font-size: 16px; }
.redo-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 !important; font-size: 15px !important; }
.redo-meta a { color: var(--snow); font-weight: 600; }
.on-narrow { display: none; }

/* ---------- разбор сайта ---------- */
.check-scene { padding: clamp(90px, 10vw, 150px) var(--gut) clamp(140px, 18vw, 260px); }
.check { max-width: 1180px; }
.check label { display: block; margin-bottom: 28px; font: 500 clamp(24px, 2.7vw, 44px)/1.18 var(--font); letter-spacing: -.025em; max-width: 24em; }
.check label b { font-weight: 600; }
.check-row { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--snow); }
.check-row input { flex: 1; min-width: 0; padding: 8px 0; background: transparent; border: 0; color: var(--snow); font: 500 clamp(22px, 2.4vw, 38px)/1.2 var(--font); outline: none; }
.check-row input::placeholder { color: var(--snow-3); }
.check-out { margin: 14px 0 0; font-size: 15px; color: var(--snow-3); }
.check-out.ok { color: var(--green); }

/* ---------- день: зачем сайт ---------- */
.why { padding: clamp(110px, 13vw, 200px) var(--gut) clamp(80px, 9vw, 130px); }
.manifest { margin: 0 0 clamp(52px, 6vw, 100px); max-width: 19em; font: 500 clamp(30px, 4.3vw, 76px)/1.06 var(--font); letter-spacing: -.04em; }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 52px); }
.answers > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.answers h3 { margin: 0 0 10px; font: 600 clamp(22px, 2vw, 32px)/1.12 var(--font); letter-spacing: -.02em; }
.answers p { margin: 0; color: var(--ink-2); max-width: 24em; }
.honest { margin: clamp(44px, 5vw, 76px) 0 0; max-width: 38em; color: var(--ink-2); }

/* ---------- цены ---------- */
.prices { padding: clamp(60px, 7vw, 110px) var(--gut) clamp(70px, 8vw, 120px); }
.prices .sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.prices .sec-head h2 { margin: 0; }
.plans { border-top: 1px solid var(--line-l); }
.plan { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr) minmax(0, .65fr) minmax(0, 1.3fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: clamp(24px, 2.8vw, 44px) 0; border-bottom: 1px solid var(--line-l); }
.plan-name { margin: 0; font: 600 clamp(20px, 1.7vw, 28px)/1.15 var(--font); letter-spacing: -.015em; }
.plan-price { margin: 0; font: 500 clamp(44px, 5.4vw, 104px)/.92 var(--font); letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price small { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.plan-time { margin: 0; font-weight: 600; }
.plan-for { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 30em; }
.incl { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 3.75fr); gap: 20px clamp(16px, 2.4vw, 40px); padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line-l); }
.incl h3 { margin: 0; font: 600 18px/1.3 var(--font); }
.incl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 28px; }
.incl li { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 72px); padding-top: clamp(28px, 3vw, 44px); }
.after p { margin: 0; color: var(--ink-2); max-width: 38em; }
.after b { color: var(--ink); }
.ai-mark { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; color: var(--ink); }

/* ---------- AIСделано: текст слева, справа одна правка «было/стало» ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 120px); align-items: center; padding: clamp(56px, 7vw, 120px) var(--gut) clamp(80px, 9vw, 140px); }
.ai-name { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 700; font-size: 18px; }
.ai-name .ai-mark { width: 28px; height: 28px; margin: 0; }
.ai h2 { margin: 0 0 20px; font: 500 clamp(34px, 4.2vw, 72px)/1 var(--font); letter-spacing: -.045em; max-width: 12em; }
.ai-lead { margin: 0 0 32px; max-width: 34em; font-size: clamp(17px, 1.2vw, 19px); color: var(--ink-2); }
.ai-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ai-chat { margin: 0; padding: clamp(20px, 2.4vw, 32px); background: #fff; border: 1px solid var(--line-l); border-radius: 4px; box-shadow: 0 24px 60px -30px rgba(12, 13, 18, .35); }
.ai-msg { margin: 0 0 18px auto; width: fit-content; max-width: 86%; padding: 12px 16px; border-radius: 12px 12px 3px 12px; background: var(--ink); color: var(--snow); font-size: 16px; line-height: 1.4; }
.ai-diff { display: grid; gap: 8px; margin-bottom: 18px; font-family: 'JetBrains Mono', monospace; font-size: 15px; }
.ai-diff p { display: flex; gap: 14px; align-items: baseline; margin: 0; padding: 10px 14px; border-radius: 3px; }
.ai-diff span { width: 4.4em; flex: none; font: 600 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ai-was { background: #f1f2f5; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(87, 90, 104, .6); }
.ai-was span { text-decoration: none; }
.ai-now { background: rgba(19, 214, 111, .14); color: var(--ink); box-shadow: inset 3px 0 0 var(--green); }
.ai-btns { display: flex; gap: 10px; margin: 0 0 14px; }
.ai-btns span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 3px; font-weight: 600; font-size: 14px; }
.ai-pub { background: var(--green); color: #03140a; }
.ai-undo { border: 1px solid var(--line-l); color: var(--ink-2); }
.ai-chat figcaption { font-size: 14px; color: var(--ink-3); }

/* ---------- смета: тёмный прибор ---------- */
.est-scene { padding: 0 var(--gut) clamp(80px, 9vw, 140px); }
.est { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: var(--night); color: var(--snow); border-radius: 4px; overflow: hidden; }
.est-panel { padding: clamp(26px, 3.4vw, 56px); }
.est-panel h2 { margin: 0 0 10px; font: 500 clamp(30px, 3.2vw, 54px)/1.02 var(--font); letter-spacing: -.04em; }
.est-sub { margin: 0 0 30px; color: var(--snow-2); }
.est-row { padding: 22px 0; border-top: 1px solid var(--line-d); }
.est-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.est-head span { color: var(--snow-2); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line-d); border-radius: 4px; }
.seg button { height: 42px; padding: 0 18px; border: 0; border-radius: 2px; background: none; color: var(--snow-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--snow); color: var(--ink); }
.est-count { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-d); border-radius: 3px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; color: var(--snow); font-size: 20px; cursor: pointer; }
.stepper button:disabled { color: var(--snow-3); opacity: .5; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-blocks { display: flex; gap: 4px; align-items: flex-end; height: 30px; }
.est-blocks i { width: 12px; height: 30px; background: rgba(238, 240, 246, 0.3); animation: grow .35s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
.est-blocks i.plus { background: var(--green); }
@keyframes grow { from { transform: scaleY(0); } }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--snow-3); }
.checks { display: grid; gap: 2px; }
.checks label { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.checks .price { margin-left: auto; color: var(--snow-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-total { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 3.4vw, 56px); background: var(--night-2); }
.est-total .cap { margin: 0; color: var(--snow-2); }
.est-total .sum { margin: 6px 0 20px; font: 500 clamp(52px, 5.8vw, 108px)/.92 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-total .days { margin: 0 0 6px; color: var(--snow-2); }
.est-total .days b { color: var(--snow); font-weight: 600; }
.est-total .when { margin: 0 0 26px; color: var(--snow-2); min-height: 1.55em; }
.est-total .when b { color: var(--snow); font-weight: 600; }
.est-say { margin: 12px 0 0; font-size: 14px; color: var(--green); min-height: 1em; }
.est-form { margin-top: 6px; font-size: 15px; color: var(--snow-2); }

/* ---------- сроки: календарь ---------- */
.process { padding: clamp(40px, 5vw, 80px) var(--gut) clamp(80px, 9vw, 140px); }
.process .sec-head h2 { max-width: 16em; }
.process .sec-head h2 b { font-weight: 500; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.steps li { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line-l); }
.steps .when { grid-row: span 2; font-weight: 600; color: var(--ink-3); }
.steps h3 { margin: 0; font: 600 20px/1.25 var(--font); }
.steps p { margin: 0; color: var(--ink-2); max-width: 40em; }
/* со скриптом: слева шаг, справа дорожка по дням; дни недели — шапкой сверху */
.cal.on .steps li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: center; gap: 6px clamp(20px, 3vw, 56px); }
.cal.on .steps .when { display: none; }
.cal.on .step-text { grid-column: 1; }
.cal.on .step-text h3 { margin-bottom: 4px; }
.cal.on .step-text p { font-size: 15.5px; }
.days-row, .track { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); }
.cal-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(20px, 3vw, 56px); padding-bottom: 12px; }
.cal-head .month { align-self: end; font-weight: 600; color: var(--ink-3); }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.day i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.day b { font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; }
.day.we b, .day.we i { color: #9a9daa; }
.day.today b { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.track { position: relative; height: 40px; grid-column: 2; grid-row: 1 / span 2; }
.track { grid-template-rows: 100%; }
.track span { grid-row: 1; height: 100%; border-left: 1px solid var(--line-l); }
.track span:first-child { border-left: 0; }
.track span.we { background: rgba(12, 13, 18, 0.05); }
.track .bar { position: relative; z-index: 1; grid-row: 1; height: 100%; margin: 0 3px; background: var(--ink); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 70ms); }
.cal.go .bar { transform: none; }
.track .bar.launch { background: var(--green); }
.cal-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }

/* ---------- опасения и вопросы ---------- */
.faq-scene { padding: clamp(60px, 7vw, 110px) var(--gut) clamp(120px, 14vw, 200px); }
.risks { border-top: 1px solid var(--line-l); }
.risk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 8px clamp(20px, 3vw, 56px); align-items: baseline; padding: clamp(20px, 2.2vw, 32px) 0; border-bottom: 1px solid var(--line-l); }
.risk .if { margin: 0; font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; color: var(--ink-3); }
.risk h3 { margin: 0 0 8px; font: 500 clamp(26px, 2.6vw, 46px)/1.04 var(--font); letter-spacing: -.035em; }
.risk div p { margin: 0; color: var(--ink-2); max-width: 40em; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 24px clamp(20px, 3vw, 56px); margin-top: clamp(70px, 8vw, 130px); }
.faq-title { margin: 0; font: 500 clamp(24px, 2.2vw, 38px)/1.1 var(--font); letter-spacing: -.03em; max-width: 12em; }
.faq details { border-top: 1px solid var(--line-l); }
.faq details:last-child { border-bottom: 1px solid var(--line-l); }
.faq summary { position: relative; padding: 20px 44px 20px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: currentColor; transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open]:not(.closing) summary::after { transform: rotate(0); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0 0 22px; color: var(--ink-2); max-width: 42em; }
.fine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 24px clamp(20px, 3vw, 56px); margin-top: clamp(48px, 5vw, 80px); }
.fine > p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.checklist summary { cursor: pointer; font-weight: 600; }
.checklist ol { margin: 14px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; color: var(--ink-2); font-size: 15.5px; }
.checklist li { break-inside: avoid; margin-bottom: 6px; }

/* ---------- связь ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 96px); padding: clamp(170px, 19vw, 280px) var(--gut) clamp(80px, 9vw, 130px); }
.contact h2 { margin: 0 0 26px; font: 500 clamp(44px, 7vw, 132px)/.92 var(--font); letter-spacing: -.052em; }
.big-phone { display: inline-block; margin-bottom: 12px; font: 500 clamp(28px, 3.4vw, 58px)/1.1 var(--font); letter-spacing: -.035em; text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 2px solid var(--line-d); transition: border-color .2s; }
.big-phone:hover { border-bottom-color: var(--green); }
.contact-hours { margin: 0 0 26px; color: var(--snow-2); }
.who { display: flex; gap: 16px; align-items: flex-start; margin-top: clamp(36px, 4vw, 60px); max-width: 32em; }
.who-ava { width: 64px; height: 64px; border-radius: 3px; object-fit: cover; flex: none; }
.who p { margin: 0; color: var(--snow-2); font-size: 15.5px; }
.who b { display: block; color: var(--snow); font-size: 17px; }
.apply { align-self: start; padding: clamp(22px, 3vw, 44px); background: var(--night-2); border: 1px solid var(--line-d); border-radius: 4px; }
.f { margin-bottom: 16px; }
.f label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.f label em { font-style: normal; font-weight: 400; color: var(--snow-3); }
.f input, .f textarea { width: 100%; padding: 14px 16px; background: transparent; border: 1px solid rgba(238, 240, 246, 0.3); border-radius: 3px; color: var(--snow); font-size: 17px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f textarea:focus { border-color: var(--green); outline: none; }
.f input::placeholder, .f textarea::placeholder { color: var(--snow-3); }
.f [aria-invalid='true'] { border-color: #ff6b6b; }
.err { margin: 6px 0 0; font-size: 14px; color: #ff8a8a; min-height: 0; }
.err:empty { display: none; }
.trap { position: absolute; left: -9999px; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 4px; font-size: 14px; color: var(--snow-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.err-agree { margin-bottom: 8px; }
.apply .btn-wide { margin-top: 14px; }
.form-say { margin: 12px 0 0; font-size: 15px; color: var(--green); }
.form-say:empty { display: none; }
.form-err { color: #ff8a8a; }

/* ---------- подвал ---------- */
.footer { padding: 0; }
.footer-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr); gap: 24px clamp(24px, 3vw, 56px); align-items: start; padding: 40px var(--gut); border-top: 1px solid var(--line-d); font-size: 15px; color: var(--snow-2); }
.footer-top p { margin: 0; }
.footer-top p a { color: var(--snow); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { text-decoration: none; color: var(--snow); }
.footer-links a:hover { text-decoration: underline; }
.giant { padding: clamp(20px, 3vw, 48px) var(--gut) 0; }
.giant canvas { display: block; width: 100%; }

/* ---------- просмотр сайта ---------- */
.viewer { width: min(1440px, 100vw - 32px); height: min(940px, 100svh - 32px); max-width: none; max-height: none; padding: 0; background: var(--night); color: var(--snow); border: 1px solid var(--line-d); border-radius: 4px; overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(3, 4, 8, 0.8); }
.v-head { display: flex; align-items: center; gap: 12px 18px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line-d); flex-wrap: wrap; }
.v-title { margin: 0 auto 0 0; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.v-title b { font-weight: 600; white-space: nowrap; }
.v-title span { color: var(--snow-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-dark button { height: 36px; padding: 0 14px; font-size: 14px; }
.v-open { font-size: 14px; color: var(--snow-2); }
.v-close { height: 38px; padding: 0 14px; background: var(--snow); color: var(--ink); border: 0; border-radius: 3px; font-weight: 600; font-size: 14px; cursor: pointer; }
.v-body { position: relative; flex: 1; overflow: hidden; background: var(--night-2); }
.v-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.v-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.v-body.phone .v-stage { border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 10px #1b2032, 0 0 0 11px rgba(238, 240, 246, 0.2); }
.v-wait { position: absolute; inset: 0; display: none; place-items: center; margin: 0; color: var(--snow-2); }
.v-body.loading .v-wait { display: grid; }

/* ---------- cookie ---------- */
/* одна строка в углу: не закрывает текст страницы */
.ck { position: fixed; z-index: 60; right: 12px; bottom: 12px; display: none; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; background: var(--night-2); color: var(--snow); border: 1px solid var(--line-d); border-radius: 4px; font-size: 13px; line-height: 1.3; }
.ck.show { display: flex; }
.ck p { margin: 0; }
.ck a { color: var(--snow-2); }
.ck-b { flex: none; width: 30px; height: 30px; padding: 0; font-size: 18px; border: 1px solid var(--line-d); border-radius: 3px; background: none; color: inherit; font-weight: 400; font-family: var(--font); line-height: 1; cursor: pointer; }
.ck-b:hover { background: rgba(127, 127, 140, 0.16); }

/* ================= ширины ================= */
@media (max-width: 1240px) {
  .incl ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'name time' 'price for' 'price go'; align-items: start; }
  .plan-name { grid-area: name; }
  .plan-time { grid-area: time; }
  .plan-price { grid-area: price; }
  .plan-for { grid-area: for; }
  .plan .btn { grid-area: go; justify-self: start; }
  .incl { grid-template-columns: 1fr; }
  .est { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-top .logo { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  /* шапка без полосы: знак и кнопка меню залиты цветом фона, поэтому текст при прокрутке уходит под них, а не просвечивает */
  .nav-phone { display: none; }
  /* вместо полосы — затухание: текст у верхнего края растворяется в фоне, как буквы в подвале */
  .nav::before { content: ''; position: absolute; inset: 0; background: var(--night); -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); opacity: 0; pointer-events: none; transition: opacity .3s, background-color .3s; }
  .nav.scrolled::before { opacity: 1; }
  html[data-bg='light'] .nav::before { background: var(--day); }
  .logo { margin-right: auto; }
  .logo, .nav-go, .burger { position: relative; z-index: 2; }
  .logo-text { transition: opacity .25s, visibility .25s; }
  .nav.scrolled:not(.open) .logo-text { opacity: 0; visibility: hidden; }
  .logo-mark { border-radius: 3px; }
  .logo-mark, .burger { display: block; background: var(--night); transition: background-color .3s, color .3s; }
  html[data-bg='light'] .logo-mark, html[data-bg='light'] .burger { background: var(--day); }
  html[data-bg] .nav.open { color: var(--snow); }
  .nav.open .logo-mark, .nav.open .burger { background: var(--night); }
  .nav.open .nav-go { opacity: 0; visibility: hidden; }
  .nav-ai { position: relative; z-index: 2; background: var(--night); }
  html[data-bg='light'] .nav-ai { background: var(--day); }
  .nav.open .nav-ai { opacity: 0; visibility: hidden; }
  .nl-ai { display: inline-flex; width: 100%; gap: 10px; color: var(--snow); }

  /* меню — на весь экран, пункты выезжают по очереди */
  .nav-links { position: fixed; inset: 0; z-index: 1; margin: 0; flex-direction: column; gap: 0; padding: calc(var(--nav) + 24px) var(--gut) max(24px, env(safe-area-inset-bottom)); background: var(--night); color: var(--snow); font-size: clamp(34px, 9vw, 56px); letter-spacing: -.035em; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .nav-links > a { padding: 12px 0 10px; line-height: 1.05; border-bottom-color: var(--line-d); opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .5s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
  .nav-links > a:nth-child(2) { --i: 1; }
  .nav-links > a:nth-child(3) { --i: 2; }
  .nav-links > a:nth-child(4) { --i: 3; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav.open .nav-links > a { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 50ms); }
  .nl-foot { display: grid; gap: 14px; margin-top: auto; padding-top: 32px; font-size: 16px; letter-spacing: 0; opacity: 0; transition: opacity .4s; }
  .nav.open .nl-foot { opacity: 1; transition-delay: .28s; }
  .nl-phone { font-size: 26px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
  .nl-tg { color: var(--snow-2); }
  .nl-go { width: 100%; }
  html.menu-open { overflow: hidden; scrollbar-gutter: stable; }

  .sec-head h2 { max-width: none; }
}

@media (max-width: 900px) {
  .hero-row { flex-direction: column; align-items: stretch; }
  .answers { grid-template-columns: 1fr; gap: 28px; }
  .risk, .faq-grid, .fine, .after, .prices .sec-head { grid-template-columns: 1fr; }
  .ai { grid-template-columns: 1fr; }
  .demo { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'kind go' 'name go' 'what go'; gap: 4px 16px; }
  .d-kind { grid-area: kind; }
  .d-name { grid-area: name; }
  .d-what { grid-area: what; }
  .d-go { grid-area: go; align-self: center; }
}

/* телефон: сцена — снимок телефонной версии во весь рост, всё лишнее прячется */
@media (max-width: 700px) {
  :root { --nav: 60px; }
  body { font-size: 16px; }
  .logo-text span { display: none; }
  .nav-go { height: 40px; padding: 0 14px; }
  /* на телефоне в шапке только знак AIСделано, подпись — в меню и в блоке на странице */
  .nav-ai { width: 40px; height: 40px; padding: 0; }
  .nav-ai, .nav-go, .burger { flex: none; }
  .nav-ai span { display: none; }

  .hero-title { font-size: clamp(38px, 11.6vw, 60px); line-height: .94; letter-spacing: -.045em; }
  .hero-lead { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-note { font-size: 14px; }

  .reel { --cw: min(100vw - 2 * var(--gut), (100svh - 330px) * 0.4621); --ch: calc(var(--cw) / 0.4621); --ct: calc(var(--nav) + 60px); }
  .reel-card { right: auto; left: calc((100vw - var(--cw)) / 2); }
  .reel-side { inset: 0; top: 0; width: auto; height: auto; left: 0; }
  .reel-title { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--nav) + 12px); padding: 0; font-size: 24px; }
  .reel-tabs { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--ct) + var(--ch) + 12px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; border: 0; }
  .reel-tab { flex-direction: column; gap: 0; padding: 6px 0 8px; }
  .reel-tab b { font-size: 15px; }
  .reel-tab span { display: none; }
  .reel-cap { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--ct) + var(--ch) + 64px); min-height: 0; }
  .reel-line { font-size: 14.5px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .reel-url { display: none; }

  .demos { padding-top: 80px; }
  .demo { padding: 16px 0; }
  .d-kind { font-size: 26px; }
  .d-name { font-size: 15px; }
  .d-what { display: none; }
  .peek { display: none; }

  .redo { height: 220vh; }
  .ba img { object-fit: cover; object-position: 50% 0; }
  .redo-cap { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .redo-cap h2 { font-size: 22px; }
  .redo-cap p { font-size: 14.5px; margin-bottom: 10px; }
  .on-wide { display: none; }
  .on-narrow { display: block; }
  .ba-tag { top: 10px; font-size: 13px; padding: 6px 9px; }

  .check-row { flex-direction: column; align-items: stretch; border-bottom: 0; padding: 0; }
  .check-row input { border-bottom: 2px solid var(--snow); }

  .answers p { font-size: 15.5px; }
  .plan { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name time' 'price price' 'for for' 'go go'; gap: 10px 16px; padding: 22px 0; }
  .plan-price { font-size: 46px; }
  .plan-for { font-size: 15px; }
  .plan .btn { height: 44px; }
  .incl ul { grid-template-columns: 1fr; gap: 8px; }
  .incl li { padding-left: 18px; position: relative; }
  .incl li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--ink); }
  .after { display: none; }
  .ai-cta .btn { flex: 1 1 100%; }
  .ai-diff { font-size: 14px; }

  .est-panel h2 { font-size: 30px; }
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .seg button { padding: 0 6px; font-size: 14px; }
  .est-total .sum { font-size: 52px; }

  .cal.on .steps li { grid-template-columns: 1fr; }
  .cal.on .step-text { grid-column: 1; }
  .track { grid-column: 1; grid-row: auto; height: 22px; margin-top: 8px; }
  .cal-head { grid-template-columns: 1fr; }
  .cal-head .month { display: none; }
  .cal.on .step-text p { display: none; }
  .day i { font-size: 11px; }
  .day b { font-size: 14px; }

  .risk { gap: 4px; padding: 16px 0; }
  .risk .if { font-size: 15px; }
  .risk h3 { font-size: 24px; margin: 0; }
  .risk div p { display: none; }
  .checklist ol { columns: 1; }
  .faq summary { font-size: 16.5px; padding: 16px 40px 16px 0; }

  .contact { padding-top: 140px; }
  .big-phone { font-size: 30px; }
  .contact-side .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }

  .viewer { width: 100vw; height: 100svh; border: 0; border-radius: 0; }
  .v-head .seg { display: none; }
  .v-head { padding: 8px 8px 8px 14px; }
  .ck { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; }
  .ck-b { width: 36px; height: 36px; }
}

/* узкий телефон: в шапке знак, AIСделано, «Обсудить проект» и меню — слово SAFONOV не помещается */
@media (max-width: 520px) {
  .logo-text { display: none; }
}

@media (max-width: 380px) {
  .nav-go { display: none; }
  .hero-title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .d-kind, .burger span, .est-blocks i, .track .bar, .nav-links, .nav-links > a, .nl-foot { transition: none; animation: none; }
}
