/* «Пол-оборота» v2 — страница записи. Только тёмная тема: графит и подсветка приборов.
   Шрифты свои (OFL): IP посетителей не уходит к сторонним серверам — требование ПДн. Токены и решения — DESIGN.md */
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url("fonts/Onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url("fonts/Onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url("fonts/Onest-latin.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: "Sofia Sans Condensed"; font-weight: 400 800; font-display: swap; src: url("fonts/SofiaSansCondensed-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 400 800; font-display: swap; src: url("fonts/SofiaSansCondensed-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 400 800; font-display: swap; src: url("fonts/SofiaSansCondensed-latin.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; }

:root {
  color-scheme: dark;
  /* поверхности: каждый следующий слой светлее — тени в тёмной теме не работают */
  --bg: #101315;
  --surface: #171B1E;
  --surface-2: #1E2327;
  --surface-3: #272D32;
  --line: #2A3035;
  --line-strong: #6A747E;   /* рамки полей, ≥ 3:1 к --surface */
  --text: #ECEEF0;
  --muted: #9BA5AE;
  --faint: #6E7881;         /* только неактивные риски и метки, не для текста */
  /* единственный акцент — янтарная подсветка приборной панели */
  --accent: #FFB547;
  --accent-hover: #FFC46B;
  --on-accent: #1B1205;
  --glow: rgba(255, 181, 71, .30);
  --danger: #FF8A7A;
  --ok: #63D69B;            /* точка «открыто» — смысловой цвет, не акцент */
  --focus: #FFC46B;
  --text-2: #CBD1D6;        /* длинный текст документов: мягче основного */

  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Sofia Sans Condensed", "Arial Narrow", var(--font-text);

  /* шкала 1.25 от 16 */
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.25rem; --fs-lg: 1.5625rem; --fs-xl: 1.953rem;
  --fs-hero: clamp(2.75rem, 2rem + 4vw, 4.25rem);
  --fs-readout: clamp(4.5rem, 3.4rem + 6vw, 6rem);
  --lh-text: 1.5; --lh-tight: 1.05;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --t-fast: 120ms; --t-base: 200ms; --t-slow: 300ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --column: 36rem;
  --gutter: 16px;
  --kb: 0px;                 /* высота экранной клавиатуры (iOS), ставит zapis.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-base)/var(--lh-text) var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: var(--lh-tight); text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: from-font; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
[hidden]:not(.icon-btn) { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- демо-полоса ---------- */
.demo-bar { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); padding: var(--sp-3) var(--gutter); }
.demo-bar p { max-width: var(--column); margin: 0 auto; }
.demo-bar b { color: var(--text); font-weight: 600; }

/* ---------- первый экран ---------- */
.page { max-width: var(--column); margin: 0 auto; }
.hero { position: relative; display: grid; align-items: end; min-height: min(78svh, 620px); isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { /* затемнение под текстом: снизу почти фон, сверху фото живое */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 19, 21, .15) 0%, rgba(16, 19, 21, .25) 40%, rgba(16, 19, 21, .88) 75%, var(--bg) 100%);
}
.hero.no-photo { min-height: min(56svh, 460px); background: var(--surface); }
.hero.no-photo::after { /* фактура вместо фото: тонкая штриховка и пятно света, как крышка приборной панели */
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 181, 71, .10), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .025) 7px 8px),
    linear-gradient(180deg, transparent 55%, var(--bg));
}
.hero-in { padding: var(--sp-8) var(--gutter) var(--sp-5); display: grid; gap: var(--sp-3); }
.hero h1 { font-family: var(--font-num); font-weight: 750; font-size: var(--fs-hero); letter-spacing: -.005em; overflow-wrap: anywhere; }
.hero.no-photo h1 { font-size: clamp(2.75rem, 1.8rem + 5vw, 4.5rem); }
.hero-kind { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }
.facts a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.facts a:hover { color: var(--text); }
.status:empty { display: none; }
.status { color: var(--text); display: inline-flex; align-items: center; gap: var(--sp-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.open::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(99, 214, 155, .16); }
.rating b { color: var(--text); font-weight: 600; }

.actions { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); padding: 0 var(--gutter); }
.nearest { padding: var(--sp-4) var(--gutter) 0; color: var(--muted); font-size: var(--fs-sm); min-height: calc(var(--sp-4) + 1.5em); }
.nearest-btn { color: var(--muted); text-align: left; min-height: 44px; font-size: var(--fs-sm); }
.nearest-btn b { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.nearest-btn:hover b { text-decoration-color: var(--accent); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 var(--sp-5); border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-hover); }
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled { background: var(--surface-3); color: var(--muted); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wide { width: 100%; }
.btn-icon { width: 52px; padding: 0; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- блоки страницы ---------- */
.block { padding: var(--sp-8) var(--gutter) 0; display: grid; gap: var(--sp-4); }
.block h2 { font-family: var(--font-num); font-weight: 700; font-size: var(--fs-lg); letter-spacing: .005em; }
.note { color: var(--muted); font-size: var(--fs-sm); }

.svc-list { border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc {
  width: 100%; min-height: 56px; display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; text-align: left; color: var(--text);
  transition: color var(--t-fast) var(--ease);
}
.svc-p { font-family: var(--font-num); font-weight: 600; font-size: var(--fs-md); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc .i { color: var(--faint); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.svc:hover .i { color: var(--accent); transform: translateX(2px); }
.also { color: var(--muted); font-size: var(--fs-sm); }
.also b { color: var(--text); font-weight: 500; }

.prices { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prices caption { text-align: left; color: var(--muted); padding: var(--sp-4) 0 var(--sp-2); caption-side: top; }
.prices td { padding: var(--sp-2) 0; border-top: 1px solid var(--line); vertical-align: top; }
.prices td:last-child { text-align: right; white-space: nowrap; padding-left: var(--sp-4); font-family: var(--font-num); font-weight: 600; font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
details.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--text); font-weight: 600; font-size: var(--fs-sm); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; margin-left: var(--sp-2); color: var(--accent); font-size: var(--fs-md); line-height: 1; }
details.more[open] > summary::after { content: "−"; }

.where-addr { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.where-addr small { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); margin-top: var(--sp-1); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours td { padding: var(--sp-2) 0; border-top: 1px solid var(--line); color: var(--muted); }
.hours td:last-child { text-align: right; font-family: var(--font-num); font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--text); font-weight: 600; }
.hours tr.today td:first-child::after { content: ", сегодня"; font-weight: 400; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.links .btn { min-height: 48px; padding: 0 var(--sp-4); }

.foot { margin: var(--sp-9) var(--gutter) 0; padding: var(--sp-5) 0 calc(var(--sp-9) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); display: grid; gap: var(--sp-2); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- липкая кнопка ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(16, 19, 21, 0), var(--bg) 35%);
  transform: translateY(110%); visibility: hidden; pointer-events: none;
  transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.dock > div { max-width: var(--column); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); pointer-events: auto; }
.dock.show { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease); }

/* ---------- шторка записи ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 var(--kb) 0; margin: 0 auto; width: 100%; max-width: var(--column);
  max-height: calc(100dvh - var(--kb) - var(--sp-5)); height: auto;
  padding: 0; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface); color: var(--text); box-shadow: 0 -1px 0 var(--line);
  overflow: hidden; display: none; flex-direction: column; overscroll-behavior: contain;
}
dialog.sheet[open] { display: flex; animation: sheet-in var(--t-slow) var(--ease); }
dialog.sheet.closing { animation: sheet-out var(--t-base) var(--ease) forwards; }
dialog.sheet::backdrop { background: rgba(5, 6, 7, .72); }
dialog.sheet[open]::backdrop { animation: fade-in var(--t-slow) var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheet-out { to { transform: translateY(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (min-width: 720px) {
  dialog.sheet { inset: 0; margin: auto; height: fit-content; max-height: min(86dvh, 860px); border-radius: var(--r-lg); max-width: 32rem; box-shadow: 0 0 0 1px var(--line); }
}

.sheet-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.sheet-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--surface-3); }
@media (min-width: 720px) { .sheet-head::before { display: none; } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn[hidden] { visibility: hidden; display: grid; }
.sheet-title { text-align: center; }
.sheet-title h2 { font-family: var(--font-num); font-weight: 700; font-size: var(--fs-md); letter-spacing: .01em; }
.sheet-title p { font-size: var(--fs-xs); color: var(--muted); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-1); padding: 0 var(--sp-5); }
.progress i { height: 2px; border-radius: 1px; background: var(--surface-3); transition: background-color var(--t-base) var(--ease); }
.progress i.on { background: var(--accent); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-5) var(--sp-5) var(--sp-5); flex: 1; scroll-padding: var(--sp-7); }
.sheet-foot { padding: var(--sp-3) var(--sp-5) calc(var(--sp-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot[hidden] { display: none; }
.step[hidden] { display: none; }
.step { display: grid; gap: var(--sp-4); }
.step-note { color: var(--muted); font-size: var(--fs-sm); }

/* шаг 1: услуги */
.choice { border-top: 1px solid var(--line); }
.choice li { border-bottom: 1px solid var(--line); }
.choice .svc { padding-inline: var(--sp-1); }
.choice .svc[aria-pressed="true"] { color: var(--accent); }
.choice .svc[aria-pressed="true"] .i { color: var(--accent); }
.radii { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; border-radius: var(--r-sm); overflow: hidden; }
.radii button { min-height: 52px; background: var(--surface-2); font-family: var(--font-num); font-weight: 600; font-size: var(--fs-md); }
.radii button.wide { grid-column: span 5; font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 500; }
.radii button[aria-pressed="true"] { background: var(--surface-3); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.sub { font-weight: 600; }

/* шаг 2: время — «шкала приезда» */
.days { display: flex; gap: var(--sp-2); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--sp-5)); padding: 0 var(--sp-5) var(--sp-1); scroll-padding-inline: var(--sp-5); scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; min-width: 92px; min-height: 64px; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); background: var(--surface-2); text-align: left; display: grid; align-content: center; gap: 2px;
  border: 1px solid transparent; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.day b { font-weight: 600; font-size: var(--fs-sm); }
.day span { font-size: var(--fs-xs); color: var(--muted); }
.day:hover { border-color: var(--line-strong); }
.day[aria-selected="true"] { background: var(--surface-3); border-color: var(--text); }

.readout { display: grid; justify-items: center; gap: var(--sp-1); padding: var(--sp-3) 0 var(--sp-2); }
.readout-time {
  font-family: var(--font-num); font-weight: 600; font-size: var(--fs-readout); line-height: .9; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; color: var(--surface-3); position: relative;
  transition: color var(--t-base) var(--ease), text-shadow var(--t-base) var(--ease);
}
.readout-time.lit { color: var(--accent); text-shadow: 0 0 24px var(--glow); }
.readout-time span { display: block; }
.readout-time.roll span { animation: roll var(--t-base) var(--ease); }
@keyframes roll { from { transform: translateY(.35em); opacity: 0; } }
.readout-sub { font-size: var(--fs-sm); color: var(--muted); text-align: center; min-height: 1.5em; }

.slots { display: grid; gap: var(--sp-4); }
.part { display: grid; gap: var(--sp-2); }
.part h3 { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.seg {
  position: relative; min-height: 52px; border-radius: 8px; background: var(--surface-2); color: var(--text);
  font-family: var(--font-num); font-weight: 600; font-size: var(--fs-md); font-variant-numeric: tabular-nums;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg:hover:not(:disabled) { background: var(--surface-3); }
.seg:disabled { color: var(--faint); background: rgba(255, 255, 255, .015); text-decoration: line-through; text-decoration-color: var(--faint); }
.seg[aria-pressed="true"] { background: var(--surface-3); color: var(--accent); }
.seg[aria-pressed="true"]::after { /* подсветка выбранного деления — как стрелка прибора */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 2px 2px 0 0;
  background: var(--accent); box-shadow: 0 0 12px 1px var(--glow);
}
.slots-state { padding: var(--sp-5) var(--sp-4); border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.slots-state b { display: block; color: var(--text); font-weight: 600; margin-bottom: var(--sp-1); }
.slots-state a { color: var(--text); }
.skeleton { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.skeleton i { height: 52px; border-radius: 8px; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* шаг 3: машина и контакты */
.summary { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.summary button { min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); }
.summary button:hover { background: var(--surface-3); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field label small { font-size: inherit; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0 var(--sp-4); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg); font-size: var(--fs-base);
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { min-height: 84px; padding: var(--sp-3) var(--sp-4); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--text); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
/* телефон: «+7» всегда слева, вводятся 10 цифр */
.tel-box { position: relative; }
.tel-pre { position: absolute; left: var(--sp-4); top: 0; bottom: 0; display: flex; align-items: center; font-size: var(--fs-base); pointer-events: none; }
.field .tel-box input { padding-left: calc(var(--sp-4) + 2.6ch); }
.err { color: var(--danger); font-size: var(--fs-sm); }
.err:empty { display: none; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; min-height: 44px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: rgba(255, 138, 122, .10); color: var(--danger); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.form-err:empty { display: none; }

/* шаг 4: готово */
.done { text-align: center; justify-items: center; padding-top: var(--sp-3); }
.done-label { color: var(--muted); font-size: var(--fs-sm); }
.done-time { font-family: var(--font-num); font-weight: 600; font-size: var(--fs-readout); line-height: .9; font-variant-numeric: tabular-nums; }
.done-day { font-size: var(--fs-md); font-weight: 600; }
.done-what { color: var(--muted); }
.done-where { color: var(--muted); font-size: var(--fs-sm); max-width: 32ch; text-wrap: balance; }
.done-actions { display: grid; gap: var(--sp-3); width: 100%; margin-top: var(--sp-3); }
.done-hint { color: var(--muted); font-size: var(--fs-sm); max-width: 34ch; }
.tg { width: 100%; text-align: left; display: grid; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.tg-label { font-size: var(--fs-xs); color: var(--muted); }
.tg-bubble { background: var(--surface-3); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); line-height: 1.45; white-space: pre-line; max-width: 340px; }
.tg-bubble b { font-weight: 600; }
.tg-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: 340px; border-radius: var(--r-sm); overflow: hidden; }
.tg-buttons span { text-align: center; padding: var(--sp-2); background: var(--surface-2); font-size: var(--fs-sm); }

/* ---------- десктоп: аккуратная центральная колонка ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .page { padding-top: var(--sp-6); }
  .hero { border-radius: var(--r-lg); min-height: 520px; margin: 0 var(--sp-4); }
  .hero.no-photo { min-height: 420px; }
  .actions, .nearest { padding-inline: calc(var(--gutter) + var(--sp-4)); }
  .actions { margin-top: var(--sp-5); }
  .block { padding-inline: calc(var(--gutter) + var(--sp-4)); }
  .foot { margin-inline: calc(var(--gutter) + var(--sp-4)); }
  .dock { display: none; }
}

/* ---------- документы (согласие, политика, страница студии) ---------- */
.doc { max-width: 42rem; margin: 0 auto; padding: var(--sp-7) var(--gutter) var(--sp-9); }
.doc h1 { font-family: var(--font-num); font-weight: 700; font-size: var(--fs-xl); margin-bottom: var(--sp-5); }
.doc h2 { font-size: var(--fs-md); margin: var(--sp-6) 0 var(--sp-3); }
.doc p, .doc li { margin: 0 0 var(--sp-3); color: var(--text-2); }
.doc ul { padding-left: var(--sp-5); list-style: disc; margin: 0 0 var(--sp-3); }
.doc .note { margin-top: var(--sp-6); }
.doc h3 { font-size: var(--fs-base); margin: var(--sp-5) 0 var(--sp-2); }
.doc .doc-sub { color: var(--muted); font-size: var(--fs-sm); margin-top: calc(-1 * var(--sp-3)); }
.doc .doc-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; }
.doc .doc-box ul { margin-bottom: 0; }
.doc a { color: var(--text); }

/* ---------- страница студии ---------- */
.st-top { max-width: var(--column); margin: 0 auto; padding: var(--sp-4) var(--gutter); }
.st-mark { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-family: var(--font-num); font-weight: 700; font-size: var(--fs-md); text-decoration: none; letter-spacing: .01em; }
.st-mark svg { width: 28px; height: 28px; }
.st-hero { padding: var(--sp-6) var(--gutter) 0; display: grid; gap: var(--sp-5); }
.st-hero h1 { font-family: var(--font-num); font-weight: 750; font-size: clamp(2.6rem, 1.8rem + 4.4vw, 4.25rem); letter-spacing: -.005em; }
.st-lead { font-size: var(--fs-md); line-height: 1.4; color: var(--text-2); }
.st-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.st-actions .btn { flex: 1 1 auto; }
.st-demo { margin-top: var(--sp-4); padding: var(--sp-6) var(--sp-5) var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; justify-items: center; gap: var(--sp-3); }
.st-demo-day { color: var(--muted); font-size: var(--fs-sm); }
.st-segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); width: 100%; margin-top: var(--sp-3); }
.st-segs .seg { display: grid; place-items: center; }
.st-segs .seg.off { color: var(--faint); background: rgba(255, 255, 255, .015); text-decoration: line-through; text-decoration-color: var(--faint); }
.st-segs .seg.on { background: var(--surface-3); color: var(--accent); }
.st-segs .seg.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--accent); box-shadow: 0 0 12px 1px var(--glow); }
.st-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid var(--line); }
.st-steps li { counter-increment: st; position: relative; padding: var(--sp-4) 0 var(--sp-4) var(--sp-7); border-bottom: 1px solid var(--line); color: var(--text-2); }
.st-steps li::before { content: counter(st); position: absolute; left: 0; top: var(--sp-4); font-family: var(--font-num); font-weight: 700; font-size: var(--fs-lg); line-height: 1; color: var(--accent); }
.st-steps b, .st-list b { color: var(--text); font-weight: 600; }
.st-list { border-top: 1px solid var(--line); }
.st-list li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.st-price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.st-price p { display: grid; gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.st-price .num { font-weight: 700; font-size: var(--fs-xl); color: var(--text); line-height: 1; }
.st .block > p:not(.note) { color: var(--text-2); }
.st-req { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-5); margin: 0; font-size: var(--fs-sm); }
.st-req dt { color: var(--muted); }
.st-req dd { margin: 0; }
.todo { color: var(--danger); }
@media (min-width: 720px) {
  .st-top { padding-inline: calc(var(--gutter) + var(--sp-4)); }
  .st-hero { padding-inline: calc(var(--gutter) + var(--sp-4)); }
  .st-actions .btn { flex: 0 0 auto; }
}