/* Техно-Парк — лендинг. Токены и раскладка по README хэндоффа (макет 1440, поля --pad-x). */
@font-face { font-family: 'Onest'; src: url('/demos/tehnopark/assets/fonts/onest-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('/demos/tehnopark/assets/fonts/onest-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('/demos/tehnopark/assets/fonts/unbounded-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #171A1D;
  --surface-dark: #252A2F;
  --concrete: #F3F1EC;
  --paper: #FFFFFF;
  --secondary: #62676D;
  --secondary-dark: #A3A8AE;
  --rule: #D7D4CD;
  --action: #C62828;
  --action-hover: #A61E24;
  --positive: #246B45;

  --f-display: 'Unbounded', sans-serif;
  --f-text: 'Onest', system-ui, sans-serif;

  --radius: 6px;
  --header-h: 72px;
  --pad-x: clamp(20px, 6.667vw, 96px);
  --section-y: clamp(72px, 8.9vw, 128px);
  --tall-max: 720px;
}
@media (min-width: 1024px) { :root { --tall-max: none; } }

/* Тема главы: цвета, которые меняются на тёмном/светлом фоне */
.dark { --fg: #FFFFFF; --muted: var(--secondary-dark); --ph-bd: var(--secondary-dark); --line: var(--surface-dark); --over-c: #FFFFFF; --over-dash: block; background: var(--ink); color: #FFFFFF; }
.light { --fg: var(--ink); --muted: var(--secondary); --ph-bd: var(--secondary); --line: var(--rule); --over-c: var(--action); --over-dash: none; background: var(--concrete); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: #FFFFFF; font: 400 16px/24px var(--f-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: inherit; text-decoration-color: var(--action); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: var(--secondary); }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

/* ---------- Примитивы ---------- */
.num { white-space: nowrap; font: 700 clamp(112px, 16.67vw, 240px)/0.8 var(--f-display); letter-spacing: -0.02em; }
.over { display: flex; align-items: center; gap: 12px; font: 600 14px/20px var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--over-c); }
.over::before { content: ''; display: var(--over-dash); flex: none; width: 16px; height: 2px; background: var(--action); }
.over--gap { margin-top: clamp(40px, 4.4vw, 64px); }
h2 { margin-top: 16px; font: 700 clamp(30px, 3.34vw, 48px)/1.08 var(--f-display); text-transform: uppercase; text-wrap: balance; }
h3 { font: 700 clamp(24px, 2.23vw, 32px)/1.25 var(--f-display); text-transform: uppercase; }
.lead { max-width: 460px; font: 400 clamp(16px, 1.25vw, 18px)/1.55 var(--f-text); }
.muted { font: 400 14px/20px var(--f-text); color: var(--muted); }
.dash24 { flex: none; width: 24px; height: 2px; background: var(--action); }

/* Плейсхолдер недостающего факта от клиента */
.ph { padding: 0 4px; border: 1px dashed var(--ph-bd); border-radius: var(--radius); }
.ph--note { display: inline-block; padding: 2px 8px; font: 400 14px/20px var(--f-text); }
.ph--strong { padding: 2px 8px; color: var(--fg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 32px; border: 0; border-radius: var(--radius); font: 700 14px/16px var(--f-display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.btn--primary { background: var(--action); color: #FFFFFF; }
.btn--primary:hover { background: var(--action-hover); color: #FFFFFF; }
.btn--primary[disabled] { cursor: progress; }
.btn--outline { border: 1px solid #FFFFFF; background: transparent; color: #FFFFFF; }
.btn--outline:hover { background: var(--surface-dark); }
.btn--on-surface:hover { background: var(--ink); }
.btn--outline-l { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn--outline-l:hover { background: var(--concrete); }
.btn--ghost { padding: 0 16px; background: transparent; color: #FFFFFF; }
.btn--ghost:hover { background: var(--surface-dark); }
.btn--phone { padding: 0 24px; border: 1px dashed var(--secondary-dark); color: #FFFFFF; font: 700 16px/24px var(--f-display); text-transform: none; letter-spacing: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cta-row--mt40 { margin-top: 40px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/24px var(--f-text); color: #FFFFFF; text-decoration: underline; }

/* Поля форм */
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld--mt16 { margin-top: 16px; }
.fld--mt24 { margin-top: 24px; }
.fld__l { font: 600 14px/20px var(--f-text); }
.fld input, .fld select, .fld textarea { width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--secondary); border-radius: var(--radius); background: #FFFFFF; color: var(--ink); font: 400 16px/24px var(--f-text); outline: none; }
.fld textarea { height: auto; padding: 14px 16px; resize: vertical; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.fld select:invalid, .fld select.is-empty { color: var(--secondary); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fld .is-bad, .fld .is-bad:focus { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.fld [disabled] { border-color: var(--rule); background: var(--concrete); }
.sel { position: relative; display: block; }
.sel::after { content: ''; position: absolute; right: 18px; top: 22px; width: 8px; height: 8px; border-right: 1.75px solid var(--ink); border-bottom: 1.75px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.fld__help { font: 400 14px/20px var(--f-text); color: var(--secondary); }
.fld__help.is-err, .fld__err { font: 400 14px/20px var(--f-text); color: var(--action); }
.fld__err:empty { display: none; }
.cb { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-top: 10px; font: 400 14px/20px var(--f-text); cursor: pointer; }
.cb--mt { margin-top: 16px; }
.cb input { position: absolute; left: 0; top: 10px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.cb__box { flex: none; width: 24px; height: 24px; border: 1px solid var(--secondary); border-radius: var(--radius); background: #FFFFFF; display: grid; place-items: center; }
.cb input:checked + .cb__box { background: var(--ink); border-color: var(--ink); }
.cb input:checked + .cb__box::after { content: ''; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; transform: rotate(-45deg); }
.cb input:focus-visible + .cb__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.cb.is-bad .cb__box { border: 2px solid var(--action); }
.cb > span:last-child { padding-top: 2px; }
.cb a { text-decoration: underline; }
.cb__err { display: block; padding-left: 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-fail { display: flex; gap: 8px; align-items: flex-start; font: 400 14px/20px var(--f-text); color: var(--action); }
.form-fail svg { flex: none; }
.form-fail .ph { color: var(--ink); border-color: var(--secondary); padding: 0 4px; }
.done-box { display: flex; gap: 16px; align-items: flex-start; }
.done-ico { flex: none; }
.done-box__t { font: 600 clamp(22px, 1.9vw, 28px)/1.3 var(--f-text); }
.done-box__d { margin-top: 8px; font: 400 18px/28px var(--f-text); }
.done-box .btn { margin-top: 24px; }
.done-box:focus, .book__done:focus { outline: none; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--header-h); padding: 0 var(--pad-x); display: flex; align-items: center; gap: clamp(16px, 2.8vw, 40px); background: var(--ink); color: #FFFFFF; border-bottom: 1px solid var(--surface-dark); }
.brand { margin-right: auto; display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.logo-ph { width: 32px; height: 32px; border: 1px dashed var(--secondary-dark); border-radius: var(--radius); display: grid; place-items: center; font: 600 8px/1 var(--f-text); letter-spacing: .06em; color: var(--secondary-dark); }
.brand__name { font: 700 15px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.hdr__nav { display: none; gap: 40px; }
.hdr__nav a { font: 600 15px/24px var(--f-text); text-decoration: none; }
.hdr__nav a:hover { text-decoration: underline; }
@media (min-width: 880px) { .hdr__nav { display: flex; } }
.hdr__phone { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border: 1px dashed var(--secondary-dark); border-radius: var(--radius); font: 600 15px/24px var(--f-text); text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap-reverse; min-height: clamp(560px, calc(100svh - 72px), 900px); }
.hero__text { flex: 1 1 440px; min-width: 0; padding: clamp(32px, 4.44vw, 64px) clamp(20px, 4.44vw, 64px) clamp(48px, 6.1vw, 88px) var(--pad-x); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero__kicker { display: flex; align-items: center; gap: 16px; font: 600 16px/24px var(--f-text); }
.hero h1 { max-width: 572px; font: 600 clamp(34px, 3.9vw, 56px)/1.07 var(--f-text); letter-spacing: -0.01em; text-wrap: balance; }
.hero__cta { margin-top: clamp(32px, 3.33vw, 48px); }
.hero__phone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; }
.hero__phone > span { font: 400 14px/20px var(--f-text); color: var(--secondary-dark); }
.phone-ph { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border: 1px dashed var(--secondary-dark); border-radius: var(--radius); text-decoration: none; font: 700 clamp(17px, 1.4vw, 20px)/28px var(--f-display); }
.hero__media { position: relative; flex: 1 1 400px; min-width: 0; min-height: clamp(260px, 64vw, 520px); overflow: hidden; background: var(--surface-dark); }
.hero__media img, .ch01__media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; }

/* ---------- 01 / Въезд ---------- */
.ch01 { position: relative; }
.ch01__pin { min-height: 600px; overflow: hidden; display: flex; flex-wrap: wrap; }
.ch01__text { flex: 1 1 400px; min-width: 0; padding: clamp(48px, 4vw, 56px) clamp(20px, 2.8vw, 40px) clamp(56px, 5.5vw, 80px) var(--pad-x); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.num--01 { font-size: clamp(112px, min(16.67vw, 24svh), 240px); }
.ch01__body { max-width: 490px; }
.ch01__body .lead { margin-top: 24px; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fact__bar { width: 32px; height: 3px; background: var(--action); }
.fact__v { padding: 0 8px; font: 700 clamp(28px, 2.8vw, 40px)/1.2 var(--f-display); }
.fact__k { font: 400 14px/20px var(--f-text); color: var(--secondary); }
.ch01__media { position: relative; flex: 1.3 1 440px; min-width: 0; min-height: clamp(280px, 70vw, 560px); overflow: hidden; background: var(--rule); }
.ch01__top { display: none; }

/* ---------- Строка марок ---------- */
.mq { position: relative; height: clamp(88px, 8.33vw, 120px); overflow: hidden; display: flex; align-items: center; border-bottom: 1px solid var(--surface-dark); }
.mq__label { position: relative; z-index: 2; flex: none; height: 100%; padding: 0 32px 0 var(--pad-x); display: none; align-items: center; gap: 16px; background: var(--ink); border-right: 1px solid var(--surface-dark); font: 600 14px/20px var(--f-text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 768px) { .mq__label { display: flex; } }
.mq__view { flex: 1; min-width: 0; height: 100%; overflow: hidden; display: flex; align-items: center; }
.mq__track { flex: none; display: flex; align-items: center; gap: 40px; padding-right: 40px; margin-left: 40px; white-space: nowrap; }
.mq__b { font: 700 clamp(32px, 3.9vw, 56px)/1 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; }
.mq__ph { padding: 4px 12px; border: 1px dashed var(--secondary-dark); border-radius: var(--radius); font: 600 20px/28px var(--f-text); }
.mq__track i { flex: none; width: 12px; height: 12px; background: var(--action); }

/* ---------- 02 / Склад ---------- */
.ch02 { padding: var(--section-y) 0; }
.ch02__top { display: flex; flex-wrap: wrap; gap: 56px clamp(48px, 9vw, 130px); padding: 0 var(--pad-x); align-items: flex-start; }
@media (min-width: 1024px) { .ch02__top { padding-right: 0; } }
.ch02__intro { flex: 1 1 400px; max-width: 506px; min-width: 0; }
.ch02__intro .lead, .ch02__stock-text .lead { margin-top: 24px; }
.cats { margin-top: 48px; border-bottom: 1px solid var(--rule); }
.cats li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.cats li span:first-child { font: 700 13px/28px var(--f-display); color: var(--secondary); }
.cats li span:last-child { font: 600 clamp(18px, 1.4vw, 20px)/28px var(--f-text); }
.ch02__intro > .ph--note { margin-top: 16px; }
.ch02__photo { flex: 1.4 1 480px; min-width: 0; width: 100%; height: auto; aspect-ratio: 708 / 960; max-height: var(--tall-max); display: block; object-fit: cover; object-position: 50% 30%; }
.ch02__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; padding: 0 var(--pad-x); margin-top: var(--section-y); }
.ch02__pair figure, .lounge figure { display: flex; flex-direction: column; gap: 12px; }
.ch02__pair img { width: 100%; height: auto; aspect-ratio: 612 / 720; display: block; object-fit: cover; }
figcaption { font: 400 14px/20px var(--f-text); color: var(--secondary); }
.ch02__stock { display: flex; flex-wrap: wrap; gap: 40px clamp(48px, 9vw, 130px); padding: 0 var(--pad-x); margin-top: var(--section-y); align-items: flex-start; }
.ch02__stock-text { flex: 1 1 300px; max-width: 400px; min-width: 0; }
.call-line { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.call-line > span { font: 400 16px/24px var(--f-text); color: var(--secondary); }
.call-line a { font: 600 16px/24px var(--f-text); text-decoration: none; }
.form-card { flex: 1.8 1 480px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 2.8vw, 40px); }
.stock { display: flex; flex-direction: column; gap: 24px; }
.stock__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.form-card .muted { color: var(--secondary); }
.form-card .ph { border-color: var(--secondary); }
#stockDone { min-height: 200px; }
.b2b { margin: var(--section-y) var(--pad-x) 0; padding: clamp(32px, 3.9vw, 56px) clamp(24px, 4.44vw, 64px); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.b2b__text { flex: 1 1 420px; min-width: 0; }
.b2b h3 { margin-top: 16px; max-width: 600px; }
.b2b .lead { margin-top: 16px; max-width: 560px; color: var(--secondary-dark); }
.b2b__side { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.chips-ph { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 03 / Услуги ---------- */
.ch03__head { padding: var(--section-y) var(--pad-x) clamp(40px, 4.44vw, 64px); }
.ch03 h2 { max-width: 838px; }
.ch03__track { position: relative; }
.ch03__pin { overflow: hidden; display: flex; flex-wrap: wrap-reverse; }
.svc { flex: 1 1 420px; min-width: 0; padding: clamp(24px, 3.3vw, 48px) clamp(20px, 2.8vw, 40px) clamp(56px, 4.4vw, 64px) var(--pad-x); display: flex; flex-direction: column; justify-content: center; }
.svc__row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 24px 0; border-top: 1px solid var(--surface-dark); cursor: pointer; }
.svc__bar { position: absolute; left: -24px; top: 24px; width: 3px; height: 32px; background: var(--action); opacity: 0; transition: opacity .25s; }
.svc__n { font: 700 14px/32px var(--f-display); color: var(--secondary-dark); transition: color .25s; }
.svc__t { padding: 0; border: 0; background: none; text-align: left; font: 700 clamp(22px, 1.95vw, 28px)/1.15 var(--f-display); text-transform: uppercase; color: var(--secondary-dark); transition: color .25s; }
.svc__row.is-on .svc__bar { opacity: 1; }
.svc__row.is-on .svc__n, .svc__row.is-on .svc__t { color: #FFFFFF; }
.svc__d { margin-top: 8px; font: 400 16px/24px var(--f-text); color: var(--secondary-dark); }
.svc__d .ph { color: #FFFFFF; }
.svc__foot { display: flex; gap: 24px; align-items: center; margin-top: 12px; }
.svc__price { font: 600 16px/24px var(--f-text); }
.ch03__photo { position: relative; flex: 1.4 1 520px; min-width: 0; min-height: clamp(260px, 75vw, 560px); overflow: hidden; background: var(--surface-dark); container-type: size; }
.ch03__zoom { position: absolute; inset: 0; transform-origin: 55% 50%; }
.ch03__zoom img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; }
/* Маркер в долях кадра 2400×1800 → координаты под object-fit: cover */
.mk { position: absolute; left: calc(50cqw + (var(--u) - .5) * max(100cqw, 133.333cqh)); top: calc(50cqh + (var(--v) - .5) * max(75cqw, 100cqh)); width: 40px; height: 40px; margin: -20px 0 0 -20px; transition: opacity .3s; }
.mk__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--ink); font: 700 13px/1 var(--f-display); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: background-color .25s, color .25s; }
.mk__lbl { position: absolute; left: 52px; top: 4px; height: 32px; display: none; align-items: center; padding: 0 12px; border-radius: var(--radius); background: var(--ink); color: #FFFFFF; white-space: nowrap; font: 600 14px/20px var(--f-text); }
.mk__lbl--l { left: auto; right: 52px; }
.mk.is-on .mk__dot { background: var(--action); color: #FFFFFF; }
.mk.is-on .mk__lbl { display: flex; }
.ch03.is-pinned .mk:not(.is-shown) { opacity: 0; }

/* ---------- 04 / Запись по узлу ---------- */
.ch04 { padding: var(--section-y) 0; overflow: hidden; }
.ch04__headwrap { padding: 0 var(--pad-x); }
.ch04__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; margin-top: 16px; }
.ch04__head h2 { margin-top: 0; }
.ch04__head .lead { max-width: 520px; font: 400 18px/28px var(--f-text); color: var(--secondary-dark); }
.ch04__row { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; margin-top: 64px; padding-left: var(--pad-x); }
.cap { margin: 0 0 12px; font: 600 13px/20px var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-dark); }
.zones { border-bottom: 1px solid var(--surface-dark); }
.zones button { position: relative; width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; min-height: 56px; padding: 0; border: 0; border-top: 1px solid var(--surface-dark); background: none; color: var(--secondary-dark); font: 600 20px/28px var(--f-text); text-align: left; transition: color .15s; }
.zones__n { font: 700 13px/20px var(--f-display); }
.zones button i { display: none; }
.zones button:hover, .zones button.is-hov, .zones button[aria-pressed="true"] { color: #FFFFFF; }
.zones button[aria-pressed="true"]::before { content: ''; position: absolute; left: -24px; top: 12px; width: 3px; height: 32px; background: var(--action); }
.picked { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--surface-dark); }
.picked__t { font: 600 18px/28px var(--f-text); }
.picked__d { margin-top: 8px; font: 400 14px/20px var(--f-text); color: var(--secondary-dark); }
.picked__d .ph { color: #FFFFFF; }
.picked__go { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 16px; border: 0; border-radius: var(--radius); background: var(--action); color: #FFFFFF; font: 700 13px/16px var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.picked__go:hover { background: var(--action-hover); }

.fig { position: relative; height: 720px; overflow: hidden; background: var(--ink); }
.fig__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.fig__canvas canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.fig.is-live .fig__canvas { opacity: 1; }
.tools { position: absolute; right: 24px; top: 16px; display: flex; gap: 8px; z-index: 3; }
.tools button { height: 40px; padding: 0 16px; border: 1px solid #FFFFFF; border-radius: var(--radius); background: var(--ink); color: #FFFFFF; font: 600 14px/20px var(--f-text); }
.tools button:hover { background: var(--surface-dark); }
.tools button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }
.hint { position: absolute; left: 24px; bottom: 16px; font: 400 14px/20px var(--f-text); color: var(--secondary-dark); pointer-events: none; z-index: 3; }
.tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 6px 10px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--secondary); font: 600 13px/18px var(--f-text); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.tag { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .35s; }
.tip.on, .tag.on { opacity: 1; }
.tag__dot { flex: none; width: 12px; height: 12px; margin-left: -6px; border: 2px solid var(--ink); border-radius: 50%; background: var(--action); }
.tag__lbl { padding: 6px 12px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--secondary); font: 600 14px/20px var(--f-text); white-space: nowrap; }
.loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--secondary-dark); font: 400 16px/24px var(--f-text); pointer-events: none; transition: opacity .4s; }
.fig__cap { display: none; }

/* Пререндеры (кадр 920×720, координаты из prototype/Zapis-po-uzlu-3D) */
.frames { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%); }
.frames__box { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 920 / 720; transform: translateX(-50%); container-type: inline-size; }
.fr { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transform-origin: var(--o); transition: opacity .5s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.fr.is-on { opacity: 1; transform: none; }
.fr img { position: absolute; left: calc(var(--l) * 100cqw / 920); top: calc(var(--t) * 100cqw / 920); width: calc(var(--w) * 100cqw / 920); height: calc(var(--h) * 100cqw / 920); max-width: none; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%); mask-composite: intersect; }
.fm, .hs { display: none; }
.fig.is-frames .fm { display: block; position: absolute; left: calc(var(--x) * 100cqw / 920); top: calc(var(--y) * 100cqw / 920); width: 0; height: 0; z-index: 2; opacity: 0; transition: opacity .3s ease .5s; pointer-events: none; }
.fig.is-frames .fm.is-on { opacity: 1; }
.fm b { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: #FFFFFF; font: 700 13px/1 var(--f-display); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.fm em, .hs em { position: absolute; left: 28px; top: 0; transform: translateY(-50%); height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--radius); background: var(--ink); color: #FFFFFF; white-space: nowrap; font: 600 14px/20px var(--f-text); font-style: normal; }
.fig.is-frames .fm--dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2px solid var(--ink); border-radius: 50%; background: var(--action); }
.fig.is-frames .hs { display: block; position: absolute; inset: 0; z-index: 3; transition: opacity .3s; }
.fig.is-frames[data-sel] .hs { opacity: 0; pointer-events: none; }
.hs button { position: absolute; left: calc(var(--x) * 100cqw / 920); top: calc(var(--y) * 100cqw / 920); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.hs b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--ink); font: 700 13px/1 var(--f-display); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: background-color .15s; }
.hs em { left: 50px; top: 50%; display: none; }
.hs button:hover b, .hs button.is-hov b { background: var(--action); color: #FFFFFF; }
.hs button:hover em, .hs button.is-hov em { display: flex; }
.fig.is-live .frames { opacity: 0; transition: opacity .3s; }

/* Форма записи */
.book { margin: 64px var(--pad-x) 0; padding: 48px; border-radius: var(--radius); background: #FFFFFF; color: var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; --ph-bd: var(--secondary); --muted: var(--secondary); }
.book :focus-visible { outline-color: var(--ink); }
.book h3 { font-size: 32px; line-height: 40px; }
.book__b { padding-top: 64px; }
.node-row { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; }
.node-row__k { font: 400 14px/20px var(--f-text); color: var(--secondary); }
.node-row__v { font: 600 18px/28px var(--f-text); }
.node-row__v.is-none { color: var(--secondary); }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px/20px var(--f-text); text-decoration: underline; text-underline-offset: 4px; }
.check { margin-top: 12px; font: 400 14px/20px var(--f-text); color: var(--secondary); }
.check .ph { color: var(--ink); }
.lbl { margin-top: 24px; font: 600 14px/20px var(--f-text); }
.lbl .muted { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button { height: 44px; padding: 0 14px; border: 1px solid var(--secondary); border-radius: var(--radius); background: #FFFFFF; color: var(--ink); font: 600 14px/20px var(--f-text); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book .form-fail { margin-top: 16px; }
.book .actions { margin-top: 24px; flex-wrap: nowrap; }
.book__done { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.book__done .done-box__t { font: 600 28px/36px var(--f-text); }
.sum { padding: 24px; border-radius: var(--radius); background: var(--concrete); display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 16px; font: 400 16px/24px var(--f-text); }
.sum dt { color: var(--secondary); }
.sum dd { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .ch04__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ch04__row { grid-template-columns: minmax(0, 1fr); padding: 0 var(--pad-x); }
  .fig { order: -1; height: 460px; margin: 0 calc(-1 * var(--pad-x)); }
  .zones button { font-size: 16px; line-height: 24px; }
  .tools { left: 12px; right: 12px; flex-wrap: wrap; }
  .book { margin: 48px var(--pad-x) 0; padding: 24px 20px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .book__b { padding-top: 0; }
  .book__done { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 1101px) {
  .fig.is-frames .frames { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 100px), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 100px), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%); mask-composite: intersect; }
  .fig.is-frames + .fig__cap { display: block; grid-column: 2; margin-top: -48px; padding-right: 96px; position: relative; z-index: 5; text-align: right; font: 400 14px/20px var(--f-text); color: var(--secondary-dark); pointer-events: none; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .fig.is-frames + .fig__cap { display: block; order: -1; margin-top: 8px; font: 400 14px/20px var(--f-text); color: var(--secondary-dark); }
}

/* Mobile: глава 04 на пререндерах (layout mobile, 390) */
@media (max-width: 767px) {
  .ch04 { padding: 80px 0; }
  .ch04__head .lead { font-size: 16px; line-height: 24px; }
  .ch04__row { margin-top: 32px; gap: 0; }
  .fig { height: auto; aspect-ratio: 390 / 305; }
  .fig__cap { display: block; order: -1; margin-top: 8px; font: 400 14px/20px var(--f-text); color: var(--secondary-dark); }
  .ch04__list { margin-top: 24px; }
  .cap, .picked { display: none; }
  .zones button { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .zones__n { font-size: 12px; }
  .zones button i { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--secondary); border-radius: 50%; }
  .zones button i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; opacity: 0; }
  .zones button[aria-pressed="true"] i { border: 2px solid #FFFFFF; }
  .zones button[aria-pressed="true"] i::after { opacity: 1; }
  .zones button[aria-pressed="true"]::before { left: -20px; }
  .fig.is-frames .fm b { left: -16px; top: -16px; width: 32px; height: 32px; font-size: 11px; box-shadow: none; }
  .fig.is-frames .fm em { display: none; }
  .fig.is-frames .fm--dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .fig.is-frames .hs { display: none; }
  .book { margin-top: 32px; }
  .book h3 { font-size: 24px; line-height: 28px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .book .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .book .actions .btn { width: 100%; font: 600 16px/24px var(--f-text); text-transform: none; letter-spacing: 0; }
  .node-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
  .node-row__k { grid-column: 1 / -1; }
  .book__done .done-box__t { font-size: 24px; line-height: 32px; }
  .sum { grid-template-columns: 112px minmax(0, 1fr); padding: 20px; }
}

/* ---------- 05 / Пока авто в работе ---------- */
.ch05 { padding: var(--section-y) var(--pad-x); }
.ch05__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-top: 16px; }
.ch05__head h2 { margin-top: 0; }
.steps { margin-top: clamp(40px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink); }
.steps__n { font: 700 32px/40px var(--f-display); }
.steps__t { font: 600 20px/28px var(--f-text); }
.steps__d { font: 400 16px/24px var(--f-text); color: var(--secondary); }
.lounge { display: flex; flex-wrap: wrap; gap: 40px clamp(48px, 9vw, 130px); margin-top: var(--section-y); }
.lounge__main { flex: 1.8 1 480px; min-width: 0; width: 100%; height: auto; aspect-ratio: 718 / 880; max-height: var(--tall-max); display: block; object-fit: cover; object-position: 50% 45%; }
.lounge__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.lounge__side .lead { margin-top: 24px; }
.lounge__side .ph--note { margin-top: 16px; }
.lounge figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 48px; margin-top: var(--section-y); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 32px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 240px; padding: clamp(24px, 2.23vw, 32px); border-radius: var(--radius); background: #FFFFFF; }
.review p { font: 400 18px/28px var(--f-text); }
.review__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font: 600 14px/20px var(--f-text); }
.review__foot a { white-space: nowrap; }

/* ---------- 06 / Приезжайте ---------- */
.ch06 { padding: var(--section-y) var(--pad-x); }
.ch06__main { display: flex; flex-wrap: wrap; gap: 48px 24px; margin-top: clamp(40px, 4.4vw, 64px); align-items: flex-start; }
.ch06__nap { flex: 1 1 440px; min-width: 0; }
.nap__row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 24px 0; border-top: 1px solid var(--surface-dark); }
.nap__row:last-child { border-bottom: 1px solid var(--surface-dark); }
.nap__k { flex: 0 0 160px; font: 400 14px/32px var(--f-text); color: var(--secondary-dark); }
.nap__v { flex: 1 1 240px; min-width: 0; }
.nap .ph { padding: 0 6px; }
.nap__big { font: 600 clamp(20px, 1.67vw, 24px)/32px var(--f-text); }
.nap__sub { margin-top: 4px; font: 400 16px/24px var(--f-text); color: var(--secondary-dark); }
.nap__phones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font: 400 16px/28px var(--f-text); }
.nap__tel { font: 700 clamp(17px, 1.4vw, 20px)/32px var(--f-display); text-decoration: none; }
.nap__text { font: 400 clamp(16px, 1.25vw, 18px)/28px var(--f-text); }
.nap__text .ph { padding: 0 4px; }
.ch06__photo { flex: 1 1 420px; min-width: 0; width: 100%; height: auto; aspect-ratio: 612 / 816; max-height: var(--tall-max); display: block; object-fit: cover; }
.map { margin-top: var(--section-y); min-height: clamp(240px, 25vw, 360px); padding: clamp(28px, 3.9vw, 56px) clamp(24px, 4.44vw, 64px); border-radius: var(--radius); background: var(--surface-dark); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.map__addr { display: flex; align-items: center; gap: 16px; font: 600 clamp(18px, 1.4vw, 20px)/28px var(--f-text); }
.map__addr svg { flex: none; }
.map__addr .ph { padding: 0 6px; }
.map__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.map__text { max-width: 520px; font: 400 16px/24px var(--f-text); color: var(--secondary-dark); }
.faq { display: flex; flex-wrap: wrap; gap: 32px clamp(48px, 9vw, 130px); margin-top: var(--section-y); align-items: flex-start; }
.faq h3 { flex: 1 1 280px; max-width: 400px; }
.faq__list { flex: 2 1 480px; min-width: 0; border-bottom: 1px solid var(--surface-dark); }
.faq details { border-top: 1px solid var(--surface-dark); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; padding: 24px 0; list-style: none; cursor: pointer; font: 600 clamp(18px, 1.4vw, 20px)/28px var(--f-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 24px; height: 24px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 5px; top: 11px; width: 14px; height: 1.75px; border-radius: 1px; background: #FFFFFF; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { display: none; }
.faq details p { max-width: 600px; padding: 0 0 24px; font: 400 16px/24px var(--f-text); color: var(--secondary-dark); }
.faq details .ph { color: #FFFFFF; }
.final { margin-top: var(--section-y); padding-top: clamp(48px, 5.5vw, 80px); border-top: 1px solid var(--surface-dark); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.final h3 { font: 700 clamp(32px, 3.9vw, 56px)/1.07 var(--f-display); }

/* ---------- Подвал и мобильный бар ---------- */
.ftr { border-top: 1px solid var(--surface-dark); padding: clamp(56px, 5.5vw, 80px) var(--pad-x) 48px; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 24px; }
.ftr__brand { display: flex; flex-direction: column; gap: 16px; }
.ftr__about { max-width: 260px; font: 400 14px/20px var(--f-text); color: var(--secondary-dark); }
.ftr__col { display: flex; flex-direction: column; gap: 8px; font: 400 14px/20px var(--f-text); }
.ftr__col .ph { align-self: flex-start; }
.ftr__h { margin-bottom: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 48px; margin-top: clamp(48px, 5.5vw, 80px); padding-top: 24px; border-top: 1px solid var(--surface-dark); font: 400 14px/20px var(--f-text); color: var(--secondary-dark); }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 20px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--ink); border-top: 1px solid var(--surface-dark); }
.mbar a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--radius); text-decoration: none; font: 600 16px/24px var(--f-text); color: #FFFFFF; }
.mbar__call { border: 1px solid #FFFFFF; }
.mbar__book { background: var(--action); }
.mbar__book:hover { background: var(--action-hover); }
@media (max-width: 767px) { .ftr { padding-bottom: 96px; } }
@media (min-width: 768px) { .mbar { display: none !important; } }

/* ---------- Движение: нативные scroll-driven animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mq__track { animation: mq var(--mq-dur, 40s) linear infinite; }
  .mq:hover .mq__track { animation-play-state: paused; }
  @keyframes mq { to { transform: translate3d(-50%, 0, 0); } }

  @supports (animation-timeline: view()) {
    /* Кинетические номера глав: сдвиг по X за проход через экран */
    .kin { animation: kin linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes kin { from { translate: calc(min(160px, 11vw) * .5) 0; } to { translate: calc(min(160px, 11vw) * -.5) 0; } }
    /* Проявление текста */
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rv { from { opacity: 0; translate: 0 24px; } }

    @media (min-width: 1024px) {
      /* 01: sticky-сцена 160svh, кроссфейд 5111 → 5112 = smoothstep(0.3, 0.8, p) */
      .ch01 { height: 160svh; view-timeline: --v01 block; view-timeline-inset: var(--header-h) 0; }
      .ch01__pin { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); }
      .ch01__top { display: block; animation: xfade linear both; animation-timeline: --v01; animation-range: contain 0% contain 100%; }
      @keyframes xfade { 0%, 30% { opacity: 0; animation-timing-function: ease-in-out; } 80%, 100% { opacity: 1; } }
      /* 03: sticky-сцена 180svh, фото 1 → 1.06, активная услуга — по четвертям (app.js) */
      .ch03__track { height: 180svh; view-timeline: --v03 block; view-timeline-inset: var(--header-h) 0; }
      .ch03__pin { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); }
      .ch03__zoom { animation: zoom linear both; animation-timeline: --v03; animation-range: contain 0% contain 100%; }
      @keyframes zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .fr { transition: opacity .2s linear; transform: none !important; }
  .fig.is-frames .fm { transition: opacity .2s linear; }
}
