/* WebsitesAI — строгая версия: белый, светло-серый, чернильный текст, один акцент */
:root {
  --ink: #111114;
  --text: #111114;
  --muted: #6B6B76;
  --line: #E3E3E8;
  --grey: #F4F4F6;
  --white: #FFFFFF;
  --accent: #2B44E0;
  --accent-deep: #1F34B8;
  --accent-soft: #EBEEFC;
  --on-dark: rgba(255,255,255,.82);
  --on-dark-dim: rgba(255,255,255,.6);
  --frame: #1C1C21;

  --f-display: "Geologica", "Arial", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --shadow: 0 24px 48px -28px rgba(17,17,20,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

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

/* ---------- type ---------- */
.h2 { font: 700 clamp(1.8rem, 3.8vw, 2.9rem)/1.08 var(--f-display); letter-spacing: -.02em; max-width: 20ch; }
.h3 { font: 700 clamp(1.2rem, 1.8vw, 1.45rem)/1.25 var(--f-display); letter-spacing: -.01em; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 56ch; margin-top: 16px; }
.lead--dim { color: var(--on-dark-dim); }
.lead--narrow { max-width: 48ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--big { min-height: 56px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #2A2A30; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.1rem/1 var(--f-display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.logo__mark svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top__nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top__nav { display: none; } .top__inner .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font: 700 clamp(2.4rem, 5vw, 4.3rem)/1.02 var(--f-display); letter-spacing: -.03em; max-width: 15ch; text-wrap: balance; }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero__terms { margin-top: 24px; color: var(--muted); font-size: 1rem; }
.hero__terms b { color: var(--ink); font: 700 1.05em/1 var(--f-display); }
.hero__terms a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.hero__terms a:hover { text-decoration-color: var(--ink); }

.picker { margin-top: 30px; }
.picker__label { font: 500 1.02rem/1.4 var(--f-body); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  appearance: none; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 .95rem/1 var(--f-body); padding: 10px 15px; border-radius: 8px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--accent); color: var(--white); border-color: var(--accent); }
.own { display: flex; margin-top: 12px; max-width: 420px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 3px 3px 3px 14px; }
.own:focus-within { border-color: var(--ink); }
.own__input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 400 1rem/1 var(--f-body); outline: none; }
.own__input::placeholder { color: #9A9AA6; }
.own__btn { appearance: none; border: 0; background: var(--ink); color: var(--white); font: 600 .95rem/1 var(--f-body); padding: 11px 16px; border-radius: 6px; cursor: pointer; }
.own__btn:hover { background: #2A2A30; }

/* generator */
.gen { position: relative; padding-bottom: 8%; }
.gen__log { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 500 .95rem/1.3 var(--f-body); color: var(--muted); min-height: 1.3em; }
.gen__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.gen.is-building .gen__dot { background: var(--accent); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.laptop { position: relative; }
.laptop__lid { position: relative; background: var(--frame); border-radius: 14px 14px 4px 4px; padding: 8px 8px 0; box-shadow: var(--shadow); overflow: hidden; }
.laptop__base { height: 10px; margin: 0 -3%; background: #2A2A30; border-radius: 0 0 10px 10px; }
.laptop__base::after { content: ""; display: block; width: 14%; height: 3px; margin: 0 auto; background: rgba(255,255,255,.14); border-radius: 0 0 3px 3px; }
.laptop__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; background: #2A2A30; border-radius: 6px 6px 0 0; }
.laptop__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.16); }
.laptop__url { margin-left: 10px; flex: 1; display: flex; align-items: center; gap: 6px; height: 18px; padding: 0 10px; border-radius: 4px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font: 500 .7rem/1 var(--f-body); overflow: hidden; }
.lock { width: 9px; height: 10px; fill: none; stroke: #fff; stroke-width: 1.6; opacity: 0; transition: opacity .3s; }
.lock rect { fill: #fff; stroke: none; }
.gen.s-live .lock, .stagebox[data-stage="4"] .lock { opacity: 1; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sbg, #ffffff); container-type: inline-size; transition: background-color .6s ease; }
.scan { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent 0%, rgba(17,17,20,.06) 49%, rgba(17,17,20,.14) 50%, rgba(17,17,20,.06) 51%, transparent 100%); background-size: 100% 200%; }
.gen.is-building .scan { opacity: 1; animation: scan 1.2s linear infinite; }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

.phone { position: absolute; right: -2%; bottom: -2%; width: 23%; min-width: 92px; padding: 6px; background: var(--frame); border-radius: 18px; box-shadow: var(--shadow); }
.phone::before { content: ""; position: absolute; left: 50%; top: 10px; width: 32%; height: 5px; transform: translateX(-50%); background: var(--frame); border-radius: 3px; z-index: 2; }
.phone__screen { aspect-ratio: 9 / 18.5; overflow: hidden; border-radius: 13px; background: var(--sbg, #fff); container-type: inline-size; transition: background-color .6s ease; }

.stamps { position: absolute; left: -2%; bottom: 2%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 8px; background: var(--white); color: var(--ink); border: 1px solid var(--line); font: 600 .85rem/1 var(--f-body); box-shadow: 0 10px 24px -14px rgba(17,17,20,.4); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.stamp svg { width: 20px; height: 20px; border-radius: 50%; padding: 4px; background: var(--ink); fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stamp--back svg { background: var(--accent); }
.gen.s-front .stamp--front, .gen.s-back .stamp--back { opacity: 1; transform: none; }

/* build-up: blocks appear by stage */
.gen [data-blk] { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.gen.s-nav [data-blk="nav"], .gen.s-hero [data-blk="hero"], .gen.s-row [data-blk="row"], .gen.s-form [data-blk="form"] { opacity: 1; transform: none; }

/* ---------- набросок сайта (общий рендерер) ---------- */
.ms { position: absolute; inset: 0; background: var(--ms-bg); color: var(--ms-fg); font-family: var(--f-body); font-size: 2.15cqw; line-height: 1.35; overflow: hidden; display: flex; flex-direction: column; }
.ms--phone { font-size: 5.4cqw; }
.ms__skel i { display: block; width: var(--w); height: .5em; border-radius: 1em; background: currentColor; opacity: .14; }
.ms__skel i + i { margin-top: .45em; }
.ms__nav { display: flex; align-items: center; gap: 1em; padding: .9em 1.5em; }
.ms__brand { display: inline-flex; align-items: center; gap: .45em; font: var(--ms-hw) 1.05em/1 var(--ms-head); font-style: var(--ms-hs); text-transform: var(--ms-tt); letter-spacing: -.01em; }
.ms__mark { display: inline-block; width: .9em; height: .9em; background: var(--ms-ac); }
.ms__mark--circle { border-radius: 50%; }
.ms__mark--square { border-radius: .18em; }
.ms__mark--diamond { transform: rotate(45deg) scale(.8); border-radius: .12em; }
.ms__links { display: flex; gap: 1.1em; margin-left: auto; }
.ms__skel--nav { width: 3.2em; }
.ms__skel--nav i { height: .42em; }
.ms__navbtn { font-size: .64em; font-weight: 600; padding: .5em .95em; border-radius: .4em; background: var(--ms-ac); color: var(--ms-bg); }
.ms__burger { display: none; margin-left: auto; width: 1.1em; }
.ms__burger i { display: block; height: .12em; margin: .22em 0; background: currentColor; border-radius: 1px; }
.ms__hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5em; align-items: center; padding: 1.2em 1.5em 1.4em; }
.ms__h1 { font: var(--ms-hw) 2.05em/1.03 var(--ms-head); font-style: var(--ms-hs); text-transform: var(--ms-tt); letter-spacing: -.015em; min-height: 1.03em; text-wrap: balance; }
.ms__p { margin-top: .8em; max-width: 14em; }
.ms__btn { display: inline-block; margin-top: 1em; padding: .62em 1.1em; border-radius: .4em; background: var(--ms-ac); color: var(--ms-bg); font-size: .72em; font-weight: 600; }
.ms__art { position: relative; aspect-ratio: 4 / 3; border-radius: .7em; background: var(--ms-soft); display: grid; place-items: center; overflow: hidden; }
.ms__art svg { width: 50%; height: 50%; }
.ms__art .a1 { fill: var(--ms-ac); stroke: var(--ms-ac); }
.ms__art .a2 { fill: var(--ms-fg); stroke: var(--ms-fg); opacity: .7; }
.ms__art .a3 { fill: var(--ms-bg); stroke: var(--ms-bg); }
.ms__row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 1.5em; border-top: 1px solid color-mix(in srgb, var(--ms-fg) 14%, transparent); }
.ms__item { padding: .95em .8em .95em 0; border-right: 1px solid color-mix(in srgb, var(--ms-fg) 10%, transparent); }
.ms__item:last-child { border-right: 0; }
.ms__item i:first-child { opacity: .3; }
.ms__form { display: flex; gap: .6em; margin: .9em 1.5em 1.2em; }
.ms__input { flex: 1; display: flex; align-items: center; padding: .55em .9em; border-radius: .4em; background: color-mix(in srgb, var(--ms-fg) 5%, var(--ms-bg)); border: 1px solid color-mix(in srgb, var(--ms-fg) 16%, transparent); }
.ms__input i { height: .42em; }
.ms__send { padding: .6em 1em; border-radius: .4em; background: var(--ms-fg); color: var(--ms-bg); font-size: .7em; font-weight: 600; white-space: nowrap; }

/* layout: center (иллюстрация уходит в фон) */
.ms--center .ms__hero { grid-template-columns: 1fr; text-align: center; padding: 2.2em 2em 2em; justify-items: center; }
.ms--center .ms__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ms--center .ms__p { width: 14em; }
.ms--center .ms__p i { margin-inline: auto; }
.ms--center .ms__art { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; background: transparent; }
.ms--center .ms__art svg { width: 26%; height: auto; opacity: .16; position: absolute; right: 3%; bottom: -6%; }
.ms--center .ms__h1 { font-size: 2.4em; }

/* layout: poster (крупный заголовок, маленькая иллюстрация) */
.ms--poster .ms__hero { grid-template-columns: 1fr auto; padding-top: 1.6em; }
.ms--poster .ms__h1 { font-size: 2.8em; line-height: .96; }
.ms--poster .ms__art { width: 9em; aspect-ratio: 1; border-radius: 50%; }
.ms--poster .ms__art svg { width: 56%; height: 56%; }

/* phone variant */
.ms--phone .ms__nav { padding: 1em 1.1em .6em; }
.ms--phone .ms__links, .ms--phone .ms__navbtn { display: none; }
.ms--phone .ms__burger { display: block; }
.ms--phone .ms__hero, .ms--poster.ms--phone .ms__hero, .ms--center.ms--phone .ms__hero { grid-template-columns: 1fr; gap: .9em; padding: .4em 1.1em 1em; text-align: left; justify-items: stretch; }
.ms--center.ms--phone .ms__copy { align-items: flex-start; }
.ms--center.ms--phone .ms__p i { margin-inline: 0; }
.ms--phone .ms__art, .ms--poster.ms--phone .ms__art, .ms--center.ms--phone .ms__art { order: -1; position: relative; inset: auto; width: auto; aspect-ratio: 16 / 9; border-radius: .6em; background: var(--ms-soft); }
.ms--phone .ms__art svg, .ms--center.ms--phone .ms__art svg { position: static; width: 32%; height: auto; opacity: 1; }
.ms--phone .ms__h1, .ms--poster.ms--phone .ms__h1, .ms--center.ms--phone .ms__h1 { font-size: 1.7em; }
.ms--phone .ms__row { grid-template-columns: 1fr; margin: 0 1.1em; }
.ms--phone .ms__item { display: flex; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--ms-fg) 10%, transparent); padding: .7em 0; }
.ms--phone .ms__item i { width: calc(var(--w) * .6); }
.ms--phone .ms__item i + i { margin-top: 0; }
.ms--phone .ms__form { flex-direction: column; margin: .8em 1.1em; }
.ms--phone .ms__input { min-height: 1.8em; }
.ms--phone .ms__send { text-align: center; }

/* ---------- бегущая строка ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); padding: 14px 0; background: var(--white); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__track span { font: 500 .95rem/1 var(--f-body); white-space: nowrap; padding: 0 22px; position: relative; }
.ticker__track span::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--line); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- галерея ---------- */
.showcase { background: var(--grey); padding: clamp(56px, 8vw, 104px) 0; }
.showcase__head { max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.tile__btn { appearance: none; border: 1px solid var(--line); padding: 26px 26px 0; cursor: pointer; width: 100%; display: block; position: relative; border-radius: 12px; background: var(--white); overflow: hidden; aspect-ratio: 4 / 3; text-align: left; transition: border-color .2s ease, box-shadow .2s ease; }
.tile__btn:hover { border-color: var(--ink); box-shadow: 0 16px 32px -24px rgba(17,17,20,.35); }
.tile__laptop { position: absolute; left: 7%; right: 18%; top: 11%; border: 3px solid var(--frame); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--frame); box-shadow: var(--shadow); }
.tile__phone { position: absolute; right: 7%; bottom: -4%; width: 24%; border: 3px solid var(--frame); border-radius: 12px; background: var(--frame); box-shadow: var(--shadow); z-index: 2; }
.tile__screen { position: relative; overflow: hidden; container-type: inline-size; }
.tile__laptop .tile__screen { aspect-ratio: 16 / 10; border-radius: 5px 5px 0 0; }
.tile__phone .tile__screen { aspect-ratio: 9 / 18; border-radius: 9px; }
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding: 0 2px; }
.tile__cap b { display: block; font: 600 1rem/1.2 var(--f-display); }
.tile__cap b::first-letter { text-transform: uppercase; }
.tile__cap span { color: var(--muted); font-size: .9rem; }
.showcase__note { margin-top: 32px; color: var(--muted); font-size: .95rem; max-width: 64ch; }

/* ---------- цена ---------- */
.price { background: var(--white); padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.price__numbers { display: flex; align-items: flex-end; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.bignum { display: flex; align-items: baseline; gap: .12em; font: 700 clamp(3.2rem, 9vw, 7.5rem)/.95 var(--f-display); letter-spacing: -.045em; color: var(--ink); }
.bignum small { font: 300 .24em/1 var(--f-display); letter-spacing: 0; color: var(--muted); }
.bignum--days { padding-left: clamp(24px, 5vw, 64px); border-left: 1px solid var(--line); }
.price__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.price__intro .btn { margin-top: 26px; }
.incl li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.incl__n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; }
.incl__n::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.incl__human .incl__n { background: var(--ink); }
.incl__total { border-bottom: 0; font: 700 1.25rem/1.2 var(--f-display); padding-top: 18px; }

/* ---------- процесс (sticky-история) ---------- */
.process { background: var(--grey); padding: clamp(40px, 6vw, 80px) 0; }
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: 36px; align-items: start; }
.story__stage { position: sticky; top: max(88px, calc(50vh - 210px)); }
.stagebox { position: relative; padding: 6% 4% 4%; }
.laptop--story .screen { background: #FBF9F5; }
.laptop--story .screen .ms { transition: filter .5s ease, opacity .5s ease; }
.stagebox[data-stage="1"] .screen .ms { filter: blur(6px) saturate(.4); opacity: .35; }
.skel { position: absolute; left: 8px; right: 8px; top: 36px; bottom: 0; padding: 7% 6%; display: flex; flex-direction: column; gap: 5%; opacity: 0; transition: opacity .4s; pointer-events: none; }
.skel i { display: block; width: var(--w); height: var(--h, 6%); border-radius: 6px; background: linear-gradient(90deg, rgba(17,17,20,.08), rgba(17,17,20,.18), rgba(17,17,20,.08)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.stagebox[data-stage="1"] .skel { opacity: 1; }
.pen { position: absolute; inset: 36px 8px 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.pen__circle { position: absolute; left: 4.5%; top: 46%; width: 30%; height: 15%; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.pen__note { position: absolute; max-width: 38%; padding: 8px 12px; border-radius: 8px; background: var(--white); color: var(--ink); font: 600 .78rem/1.3 var(--f-body); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(17,17,20,.45); border-left: 3px solid var(--accent); transform: translateY(8px); transition: transform .4s ease .25s, opacity .4s ease .25s; opacity: 0; }
.pen__note--a { left: 36%; top: 40%; }
.pen__note--b { right: 6%; top: 8%; }
.stagebox[data-stage="2"] .pen { opacity: 1; }
.stagebox[data-stage="2"] .pen__circle { animation: draw .9s ease forwards .15s; }
.stagebox[data-stage="2"] .pen__note { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.term { position: absolute; left: 8px; right: 8px; bottom: 0; padding: 12px 18px 16px; background: rgba(17,17,20,.94); color: var(--on-dark); font: 500 .8rem/1.5 var(--f-body); border-top: 2px solid var(--accent); transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.term p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.12); opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease; }
.term b { color: var(--white); font-weight: 600; }
.stagebox[data-stage="3"] .term { transform: none; }
.stagebox[data-stage="3"] .term p { opacity: 1; transform: none; }
.stagebox[data-stage="3"] .term p:nth-child(2) { transition-delay: .35s; }
.stagebox[data-stage="3"] .term p:nth-child(3) { transition-delay: .5s; }
.stagebox[data-stage="3"] .term p:nth-child(4) { transition-delay: .65s; }
.stagebox[data-stage="3"] .term p:nth-child(5) { transition-delay: .8s; }
.live { position: absolute; right: 20px; top: 48px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.live span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; background: var(--accent); color: var(--white); font: 600 .82rem/1 var(--f-body); }
.live span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); }
.stagebox[data-stage="4"] .live { opacity: 1; transform: none; }

.steps { display: flex; flex-direction: column; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; max-width: 46ch; opacity: .4; transition: opacity .35s ease; }
.step.is-current { opacity: 1; }
.step__n { font: 700 2.6rem/1 var(--f-display); letter-spacing: -.03em; color: var(--muted); margin-bottom: 12px; }
.step.is-current .step__n { color: var(--accent); }
.step p { margin-top: 10px; color: var(--muted); font-size: 1.02rem; }

/* ---------- проверка ---------- */
.review { background: var(--white); padding: clamp(56px, 8vw, 104px) 0; }
.review__head { max-width: 760px; }
.review__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 48px; }
.rev__who { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.rev__badge { grid-row: span 2; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font: 700 1.3rem/1 var(--f-display); background: var(--ink); color: var(--white); }
.rev__what { color: var(--muted); font-size: .95rem; }
.checks { margin-top: 22px; }
.checks li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s ease, border-color .3s ease; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 19px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s ease; }
.rev.in .checks li::before { background: var(--accent); border-color: var(--accent); }
.rev.in .checks li::after { transform: rotate(45deg) scale(1); }
.rev.in .checks li:nth-child(2)::before, .rev.in .checks li:nth-child(2)::after { transition-delay: .12s; }
.rev.in .checks li:nth-child(3)::before, .rev.in .checks li:nth-child(3)::after { transition-delay: .24s; }
.rev.in .checks li:nth-child(4)::before, .rev.in .checks li:nth-child(4)::after { transition-delay: .36s; }
.rev.in .checks li:nth-child(5)::before, .rev.in .checks li:nth-child(5)::after { transition-delay: .48s; }
.fixes { margin-top: 56px; padding: 26px clamp(20px, 3vw, 32px); border-radius: 12px; background: var(--grey); border: 1px solid var(--line); }
.fixes__title { font: 700 1.15rem/1.2 var(--f-display); }
.fixes ul { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.fixes li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fixes s { color: var(--muted); text-decoration-color: var(--muted); }
.fixes span { color: var(--ink); font-weight: 500; }
.fixes span::before { content: "✓ "; color: var(--accent); }

/* ---------- вопросы ---------- */
.kinds { background: var(--white); padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.kinds__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.kinds__list li { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.kinds__list li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.kinds__name { font: 700 1.25rem/1.2 var(--f-display); letter-spacing: -.01em; }
.kinds__list p { color: var(--muted); line-height: 1.55; }
.kinds__list .kinds__price { margin-top: auto; padding-top: 6px; color: var(--ink); font-weight: 600; }
.kinds__list li:first-child .kinds__price { color: var(--accent); }
@media (max-width: 900px) {
  .kinds__list { grid-template-columns: 1fr 1fr; }
  .kinds__list li, .kinds__list li:not(:nth-child(3n + 1)) { padding: 24px 20px 26px 0; border-left: 0; }
  .kinds__list li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .kinds__list { grid-template-columns: 1fr; }
  .kinds__list li:nth-child(2n) { padding-left: 0; border-left: 0; }
}

.faq { background: var(--grey); padding: clamp(56px, 8vw, 104px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font: 500 1.15rem/1.3 var(--f-display); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; margin-right: 6px; }
.faq__list details[open] summary::after { transform: rotate(-135deg); }
.faq__list details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; }

/* ---------- заявка (единственный тёмный блок) ---------- */
.leadsec { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 104px) 0; }
.leadsec__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.next { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto 1fr; gap: 2px 14px; align-items: start; counter-increment: n; }
.next b { padding-top: 5px; }
.next li::before { grid-row: span 2; content: counter(n); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); font: 600 .9rem/1 var(--f-display); }
.next b { display: block; font-weight: 600; grid-column: 2; }
.next span { grid-column: 2; color: var(--on-dark-dim); font-size: .95rem; }
.leadsec__alt { margin-top: 32px; color: var(--on-dark-dim); }
.leadsec__alt a { color: var(--white); text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }

.formcard { background: var(--white); color: var(--text); border-radius: 12px; padding: clamp(22px, 3vw, 32px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field legend { padding: 0; margin-bottom: 8px; }
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: 400 1rem/1.4 var(--f-body); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.field__error { color: #B9321F; font-size: .9rem; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); font-weight: 500; font-size: .95rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.radio input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--text); }
.form__status { min-height: 1.4em; color: #B9321F; font-size: .95rem; }
.form-done { text-align: center; padding: 20px 0; }
.form-done:focus { outline: none; }
.form-done__tick { width: 52px; height: 42px; margin: 0 auto 16px; fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.form-done p { margin: 12px auto 24px; color: var(--muted); max-width: 40ch; }

/* ---------- подвал ---------- */
.foot { background: var(--white); color: var(--muted); padding: 32px 0; border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.foot__text { font-size: .95rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-size: .95rem; }
.foot__links a { color: var(--ink); text-decoration-color: var(--line); }

/* ---------- страница-документ (политика) ---------- */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }
.doc h1 { font: 700 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.doc h2 { margin-top: 36px; font: 600 1.2rem/1.3 var(--f-display); }
.doc p, .doc li { margin-top: 12px; color: var(--muted); }
.doc ul { list-style: disc; padding-left: 22px; }
.doc .back { display: inline-block; margin-bottom: 28px; color: var(--accent); }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .gen { margin-top: 12px; max-width: 640px; }
  .price__grid, .faq__grid, .leadsec__grid, .review__cols { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story__stage { top: 66px; z-index: 2; background: var(--grey); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .stagebox { max-width: 520px; margin: 0 auto; padding: 2% 4% 0; }
  .step { min-height: 52vh; padding: 20px 0; }
  .fixes ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .bignum--days { padding-left: 0; border-left: 0; }
  .stamps { bottom: 4%; }
  .stamp { font-size: .75rem; padding: 6px 10px 6px 7px; }
  .phone { min-width: 78px; padding: 5px; border-radius: 14px; }
  .phone::before { display: none; }
  .phone__screen { border-radius: 10px; }
  .pen__note { font-size: .62rem; padding: 6px 8px; }
  .term { font-size: .68rem; padding: 8px 12px 10px; }
  .live span { font-size: .72rem; padding: 6px 10px; }
  .step__n { font-size: 2.2rem; }
  .own { max-width: none; }
  .own__btn { padding: 10px 14px; }
  .ticker__track span { font-size: .9rem; padding: 0 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .ticker__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .scan { display: none; }
  .step { opacity: 1; }
  .pen__circle { stroke-dashoffset: 0; }
}
