/* ===== Токены =====
 * Графит, жемчужный текст, акцент — только для выбранного состояния и главной кнопки.
 * Лёгкие скругления: кнопки и поля 8px, панели и листы 12px; без «таблеток», стекла и теней.
 * Разделители — линии 1px. */
:root {
  --bg-1: #1E2023;
  --bg-2: #1E1F22;
  --bg-3: #47484C;
  --bg-4: #4C4E51;
  --bg: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 85%, var(--bg-4) 100%);
  --text: #F1F0EC;
  --muted: #A3A5AA;
  --accent: #B9D6A6;      /* перезаписывается из config.accent (app.js) */
  --on-accent: #16201A;
  --line: rgba(255, 255, 255, .14);   /* разделители */
  --line-2: rgba(255, 255, 255, .28); /* рамки кнопок и полей */
  --raise: rgba(255, 255, 255, .045); /* выбранная строка чуть светлее */
  --hatch: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255, 255, 255, .08) 5px 6px);
  --surface: #26282C;     /* сплошные панели, строки и карточки (текст на них — контраст от 6:1) */
  --surface-on: #2F3236;  /* выбранная строка на панели */

  /* название студии и заголовки секций — широкий тяжёлый гротеск; подзаголовки, кнопки и текст — Geologica */
  --f-display: "Dela Gothic One", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-head: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-text: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r: 8px;               /* кнопки, поля, мелкие элементы */
  --r-panel: 12px;        /* панели и листы */
  --tap: 48px;
  --gutter: 16px;
  --dock-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* одна кривая (power3.inOut), одна длительность и один шаг очереди на весь сайт;
     JS берёт их отсюда (motion.js → window.MOTION), вступление в scene/core.js — та же power3.inOut */
  --ease: cubic-bezier(.65, 0, .35, 1);
  --dur: .8s;
  --stagger: 70ms;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-2); scroll-padding-top: 12px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: transparent;
  font: 400 15px/1.5 var(--f-text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; padding-bottom: calc(var(--dock-h) + var(--safe-b));
}
@supports (overflow: clip) { body { overflow-x: clip; } }
/* фон закреплён: градиент не «едет» и не обрывается швом */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
/* «Студия»: мягкий светлый градиент под машиной (пол студии) */
html[data-screen="studio"] body::before { background: radial-gradient(ellipse 95% 38% at 50% 74%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%), var(--bg); }
/* у студии свой цвет (config.theme): пол под машиной подсвечен им */
html.is-branded[data-screen="studio"] body::before { background: radial-gradient(ellipse 95% 38% at 50% 74%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg); }
/* холст всегда позади интерфейса: весь контент — выше по z-index */
main, .footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--text); color: var(--bg-1); padding: 12px 16px; }
.skip:focus { top: 8px; }
/* все цены, сроки, время и номера — моно-шрифтом */
.mono { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.caption { font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 11px; letter-spacing: .06em; color: var(--text); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px; border: 1px solid transparent; border-radius: var(--r);
  font: 700 15px/1 var(--f-head); text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; white-space: nowrap; background-color: transparent;
  -webkit-tap-highlight-color: transparent; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
/* отклик на тап: короткое сжатие (кнопки, строки, вкладки, карточки) */
.btn:active, .row:active, .tab:active, .work:active, .dock__link:active, .date:active, .slot:active { transform: scale(.97); }
.row, .tab, .work, .dock__link, .date, .slot { transition: transform .15s var(--ease), background-color var(--dur) var(--ease); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--accent { min-height: 56px; background-color: var(--accent); color: var(--on-accent); }
.btn--line { border-color: var(--line-2); color: var(--text); }
.btn--square { width: var(--tap); padding: 0; }
.btn--block { width: 100%; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }

/* ===== Загрузчик ===== */
html.is-booting, html.is-booting body { overflow: hidden; }
/* загрузчик: кадр «морды» (картинка, вписана «по обложке») над фоном с названием, шкала внизу;
   уходит кроссфейдом 0,4 с — под ним живая сцена в том же кадре */
.boot { position: fixed; inset: 0; z-index: 200; touch-action: none; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* дым у пола на кадре-заглушке: 3 размытых полупрозрачных слоя с медленным дрейфом */
/* дым на кадре-заглушке: мягкие столбы у левого и правого края поднимаются вверх и растворяются */
.boot__fog { position: absolute; left: 0; right: 0; bottom: 0; height: 75vh; overflow: hidden; pointer-events: none; }
.boot__fog i { position: absolute; bottom: 36%; width: 40%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(190, 198, 210, .26), rgba(190, 198, 210, .1) 55%, rgba(190, 198, 210, 0)); opacity: 0; animation: fog-rise 7s ease-in-out infinite; will-change: transform, opacity; }
.boot__fog i:nth-child(1) { left: -14%; }
.boot__fog i:nth-child(2) { right: -14%; animation-delay: -2.5s; animation-duration: 8s; }
.boot__fog i:nth-child(3) { left: -8%; width: 30%; animation-delay: -4.5s; animation-duration: 9s; }
.boot__fog i:nth-child(4) { right: -8%; width: 30%; animation-delay: -6s; animation-duration: 7.5s; }
@keyframes fog-rise { 0% { transform: translate3d(0, 18%, 0) scale(.85); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate3d(0, -32%, 0) scale(1.15); opacity: 0; } }
.boot__frame { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; object-fit: cover; object-position: 50% 50%; } /* как холст: «большая» высота */
.boot__ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(22px + var(--safe-b)); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.boot__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.boot__num { font-size: 28px; line-height: 1; }
.boot__bar { position: absolute; left: 0; right: 0; bottom: var(--safe-b); height: 2px; background: var(--line); }
.boot__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur) var(--ease); }
.boot__mark { position: absolute; left: var(--gutter); bottom: calc(76px + var(--safe-b)); color: var(--text); }
.boot__mark .mark { --m: 40px; }
.boot__mark .mark--tile { --m: 64px; }
.boot__skip { position: absolute; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%); }

/* ===== Вступление: холст на весь экран над графитовым фоном, затем «посадка» в рамку главной ===== */
html.is-intro, html.is-intro body { overflow: hidden; }
.intro-bg { display: none; position: fixed; inset: 0; z-index: 150; background: var(--bg); pointer-events: none; overflow: hidden; }
html.is-booting .intro-bg, html.is-intro .intro-bg { display: block; }
/* слои вступления (снизу вверх): фон вступления 150 → холст 151 → ИНТЕРФЕЙС 153 → загрузчик 200.
   Интерфейс всегда над холстом: машина не может перекрыть шапку, название, кнопки и навигацию ни в одном кадре.
   Пока идёт вступление, он невидим и не нажимается; когда камера начинает «садиться» (is-landing),
   плавно проявляется вместе с растворением фона и нажимается сразу */
html.is-intro main, html.is-intro .footer, html.is-intro .dock { z-index: 153; }
html.is-intro:not(.is-landing) main, html.is-intro:not(.is-landing) .footer, html.is-intro:not(.is-landing) .dock { opacity: 0; pointer-events: none; }
html.is-intro.is-landing main, html.is-intro.is-landing .footer, html.is-intro.is-landing .dock { opacity: 1; transition: opacity var(--landing, 1.2s) var(--ease); }
/* огромное название за машиной: размер и место считает story.js по эталонному кадру (как у картинки) */
.intro-name {
  position: absolute; left: var(--gutter); top: var(--intro-top, 30vh); white-space: nowrap;
  font: 400 var(--intro-size, 14vw)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; color: var(--text);
}
html.is-intro .stage-canvas { z-index: 151; }
html.is-landing .intro-bg { opacity: 0; transition: opacity var(--landing, 1.2s) var(--ease); }
.intro-hint {
  position: fixed; z-index: 152; left: 50%; bottom: calc(40px + var(--safe-b)); transform: translate(-50%, 8px); opacity: 0;
  max-width: calc(100vw - 32px); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-1);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.intro-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Главная ===== */
.hero { padding: calc(8px + env(safe-area-inset-top, 0px)) 0 0; }
.hero__bar { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 56px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none; min-width: 0; }
/* знак студии: логотип из config.brand или (заглушка) первые буквы названия в квадрате; размер — --m */
.mark { --m: 32px; flex: none; display: inline-grid; place-items: center; width: var(--m); height: var(--m); border: max(1.5px, calc(var(--m) * .05)) solid currentColor; border-radius: calc(var(--m) * .18); color: inherit; }
.mark > span { font: 400 calc(var(--m) * .4)/1 var(--f-display); letter-spacing: -.02em; }
.mark--img { display: block; width: auto; max-width: calc(var(--m) * 3); border: 0; border-radius: 0; object-fit: contain; }
/* цветной логотип студии (не одноцветный знак): плитка со скруглением и тонкой светлой рамкой — не тонет в тёмном фоне */
.mark--tile { border-radius: max(6px, calc(var(--m) * .22)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
/* большой знак позади машины (первый экран «Студии»): ≈12%, едет медленнее страницы (story.js) */
.hero-mark { --hm: min(72vw, 460px); position: absolute; z-index: -1; left: 50%; top: calc(43svh - var(--hm) / 2); transform: translate3d(-50%, 0, 0); color: var(--text); opacity: .12; pointer-events: none; will-change: transform; }
.hero-mark .mark { --m: var(--hm); }
.hero-mark .mark--img { width: auto; height: auto; max-width: var(--hm); max-height: calc(var(--hm) * .95); }   /* логотип целиком в рамке знака */
/* цветной логотип за машиной: скруглённая плитка, ярко, книзу растворяется — машина выходит из него */
.hero-mark.is-color { --hm: min(58vw, 300px); top: calc(50svh - var(--hm) / 2); opacity: calc(.62 * var(--hmf, 1)); }
/* фары загорелись — логотип вспыхивает вместе с ними и гаснет до обычной яркости (story.js brandFlash) */
.hero-mark.is-color.is-flash .mark--img { animation: mark-flash 1.6s var(--ease) 1; }
@keyframes mark-flash { 0% { filter: none; } 22% { filter: brightness(1.7) drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 55%, transparent)); } 100% { filter: none; } }
.hero-mark.is-color .mark--img { border-radius: calc(var(--hm) * .07); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 70px rgba(0, 0, 0, .45);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .15) 100%); mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .15) 100%); }
html[data-screen]:not([data-screen="studio"]) .hero-mark { display: none; }
html[data-screen="studio"] .hero-mark { animation: fade-in .6s var(--ease) both; }
/* шапка экранов без машины */
.appbar { display: flex; align-items: center; gap: 8px; max-width: 1180px; min-height: 56px; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 0; }
.appbar .mark { --m: 28px; }
.appbar .mark--tile, .hero__bar .mark--tile { --m: 38px; }
html[data-screen="studio"] .appbar { display: none; }
.brand__name { font: 700 14px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* первый экран «Студии»: огромное название целиком (размер — под ширину), машина ниже; жест вращения ловит .stage */
.stage { position: relative; height: calc(100svh - 64px); min-height: 420px; touch-action: pan-y; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage__head { position: absolute; left: var(--gutter); right: var(--gutter); top: 14px; margin: 0; color: var(--text); }
.stage__name {
  position: absolute; left: var(--gutter); top: 42px; width: min-content; pointer-events: none; /* слово — строка */
  font: 400 clamp(36px, var(--name-fit, 12vw), 220px)/.88 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; color: var(--text);
}
/* главный экран уходит вверх и затухает за первые ~40% экрана скролла (--ho: 0…1 ставит story.js) */
.hero__bar, .stage__head, .stage__name, .stage__lead, .tilt-on, .stage__foot { translate: 0 calc(var(--ho, 0) * -36px); opacity: calc(1 - var(--ho, 0)); }
.hero.is-gone .hero__bar, .hero.is-gone .stage__head, .hero.is-gone .stage__name, .hero.is-gone .stage__lead, .hero.is-gone .tilt-on, .hero.is-gone .stage__foot { visibility: hidden; }
.stage__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock-h) + var(--safe-b) + 14px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; pointer-events: none; }
/* подсказки по бокам — на уровне центра кольца запуска */
.stage__left { justify-self: start; min-width: 0; margin-bottom: 42px; }
.stage__foot .stage__scroll { justify-self: end; margin-bottom: 42px; }
/* кнопка запуска двигателя: кольцо 72px акцентом, иконка питания, подпись под ней */
.ignite { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: auto; text-decoration: none; color: var(--text); -webkit-tap-highlight-color: transparent; }
.ignite__ring { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--bg-1) 78%, transparent); color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 8%, transparent); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ignite:active .ignite__ring { transform: scale(.95); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent); }
.ignite:focus-visible { outline: none; }
.ignite:focus-visible .ignite__ring { outline: 2px solid var(--accent); outline-offset: 3px; }
.ignite__label { font: 700 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 374px) { .stage__foot .stage__scroll { display: none; } }
/* «Записаться» в шапке: 36px, акцент, без анимации перехода; на «Записи» скрыта */
.btn-book { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
/* переключатель языка — справа в шапке, перед «Записаться»; на узком экране в шапке только знак DD */
.lang { flex: none; height: 36px; min-width: 46px; margin-left: auto; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--text); font-size: 12px; letter-spacing: .04em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.owner { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.owner svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.owner:hover, .owner:focus-visible { color: var(--text); }
.owner + .lang { margin-left: 0; }
@media (max-width: 399px) { .hero__bar .brand__name, .appbar .brand__name { display: none; } }
html[data-screen="booking"] .btn-book { display: none; }
/* белая вспышка запуска двигателя */
/* мягкая вспышка запуска: тёплый светло-серый, не ярче 0,45; на пике уходит под контент нового экрана */
.flash { position: fixed; inset: 0; z-index: 165; background: #9A9A96; opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.45, 0, .55, 1); }
.flash.is-on { opacity: .45; }
.flash.is-under { z-index: 0; }
/* пока вспышка под контентом: приглушённый текст на миг светлый (контраст ≥ 4,5:1 и на пике) и за 0,5 с
   возвращается к своему цвету вместе с затуханием вспышки */
html.is-flash-text main { --muted: var(--text); }
html.is-flash-fade main, html.is-flash-fade main * { transition: color .5s cubic-bezier(.45, 0, .55, 1) !important; }
.hero__hint, .stage__scroll { margin: 0; padding: 7px 10px; border-radius: var(--r); background: rgba(30, 32, 35, .82); border: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stage__scroll::after { content: " ↓"; color: var(--text); }
.tilt-on { pointer-events: auto; cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent; }
/* шторка перехода между экранами: под нижней навигацией, 0,2 + 0,2 с */
.curtain { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: var(--bg); --m: 56px; color: var(--text);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), visibility 0s linear .2s; }
.curtain.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s var(--ease); }
html.is-curtain .stage-canvas { transition: none; }
.stage__img { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; object-fit: contain; }
.hero__headline { font: 400 15px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: 0; }
/* один холст на всю страницу: fixed, высота — «большая» (lvh), не прыгает с адресной строкой Safari */
.stage-canvas { position: fixed; z-index: 0; left: 0; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; outline: none; pointer-events: none; will-change: transform; opacity: var(--studio-dim, 1); transition: opacity .4s var(--ease); }

/* облёт: ~400vh, подпись ракурса внизу на плашке, выезжает из-под маски */
.pin { position: relative; height: 300vh; }
.pin__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) calc(var(--dock-h) + var(--safe-b) + 16px); pointer-events: none; }
.caps { position: relative; width: 100%; max-width: 460px; min-height: 150px; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 16px; border-radius: var(--r-panel); border: 1px solid var(--line); background: linear-gradient(to top, rgba(30, 31, 34, .94), rgba(30, 31, 34, .8)); opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.cap.is-on { opacity: 1; transform: none; }
.cap__num { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.cap__title { font: 400 22px/1.05 var(--f-display); text-transform: uppercase; }
.cap__text { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* цвет кузова: закреплённый кадр, образцы — квадраты со скруглением 8px */
.paint { position: relative; height: 170vh; }
.paint__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) calc(var(--dock-h) + var(--safe-b) + 16px); }
.paint__panel { width: 100%; max-width: 460px; padding: 14px 16px 16px; border-radius: var(--r-panel); border: 1px solid var(--line); background: linear-gradient(to top, rgba(30, 31, 34, .94), rgba(30, 31, 34, .8)); }
.paint__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.paint__head .caption { margin: 0; }
.swatches { display: flex; flex-wrap: nowrap; gap: 8px; }
.swatch { flex: 1 1 0; min-width: 0; max-width: 44px; height: auto; aspect-ratio: 1; padding: 0; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--c); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s var(--ease); }
.swatch:active { transform: scale(.97); }
.swatch[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.paint__name { margin: 0; font-size: 14px; text-align: right; }

/* блоки после облёта — поверх машины на непрозрачном фоне (сверху мягкий переход) */
.studio-rest { position: relative; padding-top: 80px; background: linear-gradient(to bottom, rgba(30, 31, 34, 0), var(--bg-2) 120px, var(--bg-2)); }
.preview__all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 14px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.preview__all::after { content: "→"; }

/* итог выбранных услуг в записи */
.basket { margin-bottom: 28px; padding: 16px; border-radius: var(--r-panel); background: var(--surface); }
.basket .caption { margin: 0 0 8px; }
.basket__list { list-style: none; margin: 0; padding: 0; }
.basket__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14px; }
.basket__num { font-size: 11px; color: var(--muted); }
.basket__meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.basket__empty { display: block !important; color: var(--muted); font-size: 13px; }
.basket__total { margin-top: 8px; font-size: 16px; text-align: right; }
.basket__total:empty { display: none; }

/* ===== Экраны: виден один; контент выезжает (power3.inOut, 0,6 с) ===== */
.screen[hidden] { display: none !important; }
.screen.is-enter { animation: screen-in .6s var(--ease) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(24px); } }
/* экраны без машины: холст скрыт, спокойный тёмный градиент без деталей; контент — на сплошных поверхностях,
   меньше линий и декора, больше воздуха */
.screen:not(.screen--studio) { position: relative; z-index: 2; min-height: calc(100vh - var(--dock-h) - 56px); }
html[data-screen]:not([data-screen="studio"]) .stage-canvas { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
html[data-screen]:not([data-screen="studio"]) body::before { background: linear-gradient(180deg, #222428 0%, #1C1D20 55%, #18191C 100%); }
html:not([data-screen="studio"]) .footer { position: relative; z-index: 2; }
.screen.section:not(.screen--studio) { padding: 12px 0 64px; }
.screen:not(.screen--studio) .section__head { border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }
.screen:not(.screen--studio) .section__num { display: none; }

/* «Студия»: о нас и цифры */
.about__text { max-width: 52ch; font-size: 16px; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 22px 0 0; }
.stats > div { padding: 14px 0; border-top: 1px solid var(--line); }
.stats dd { margin: 0; font-size: 44px; line-height: 1; }
.stats dt { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stats .tag, .belt .tag, .work .tag { height: 18px; padding: 0 6px; font-size: 10px; color: var(--muted); border-color: var(--line-2); }

/* огромная бегущая строка: скорость задаёт story.js (от скорости скролла) */
.ticker { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; font: 400 clamp(44px, 14vw, 120px)/1 var(--f-display); text-transform: uppercase; color: var(--text); }
.ticker__track span { padding-right: .3em; }
.ticker__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }

/* бренды: бесконечная лента, монохром; наведение или тап — в цвет */
.belt { overflow: hidden; margin: 6px 0 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.belt__track { display: flex; gap: 10px; width: max-content; margin: 0; padding: 0; list-style: none; animation: belt 28s linear infinite; }
.belt:hover .belt__track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.belt__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 132px; height: 84px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-panel); filter: grayscale(1); opacity: .7; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); cursor: pointer; }
.belt__item img { max-width: 110px; max-height: 40px; object-fit: contain; }
.belt__name { font: 700 14px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.belt__item.is-color, .belt__item:focus-visible { filter: none; opacity: 1; }
@media (hover: hover) { .belt__item:hover { filter: none; opacity: 1; } }
.studio__cta { margin-bottom: 8px; }

/* «Работы»: сетка 2 колонки, большие фото */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.work { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 8px 8px 14px; border-radius: var(--r-panel); background: var(--surface); text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.work__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--surface-on); }
.work__title, .work__meta { padding: 0 4px; }
.work__wm { position: absolute; right: 8px; bottom: 8px; color: var(--text); opacity: .5; pointer-events: none; }
.work__wm .mark { --m: 22px; }
/* цветной логотип в углу фото — маленькая плитка, как подпись студии на своих снимках */
.work__wm:has(.mark--tile) { opacity: .9; }
.work__wm .mark--tile { --m: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 2px 8px rgba(0, 0, 0, .4); }
.work__img .work__wm img { width: auto; height: var(--m); object-fit: contain; }
.work__img img { width: 100%; height: 100%; object-fit: cover; }
.work__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.work__meta { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
/* заглушка фото */
.ph { display: grid; place-items: center; width: 100%; height: 100%; padding: 12px; text-align: center; background: repeating-linear-gradient(135deg, #2b2d31 0 10px, #2f3135 10px 20px); }
.ph span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* просмотр «до / после»: полноэкранно, ползунок двигает границу */
.viewer { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) calc(16px + var(--safe-b)); background: var(--bg-1); opacity: 0; transition: opacity .5s var(--ease); }
.viewer.is-open { opacity: 1; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer__title { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__text { color: var(--muted); font-size: 14px; }
.compare { --pos: 50%; position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--r-panel); border: 1px solid var(--line); background: #2a2c30; }
.compare__img { position: absolute; inset: 0; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; }
.compare__img--after { clip-path: inset(0 0 0 var(--pos)); }
.compare__img--after .ph { background: repeating-linear-gradient(135deg, #34363b 0 10px, #393b40 10px 20px); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.compare__tag { position: absolute; top: 10px; padding: 4px 8px; border-radius: 6px; background: var(--bg-1); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.compare__tag--before { left: 10px; }
.compare__tag--after { right: 10px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
/* одно фото: без ползунка, целиком (не обрезая) */
.compare--single .compare__img--after { clip-path: none; }
.compare--single .compare__img img { object-fit: contain; }
.compare--single .compare__line, .compare--single .compare__tag, .compare--single .compare__range { display: none; }

/* «Контакты»: большой знак студии */
.contacts__brand { display: flex; align-items: center; gap: 14px; margin: 32px 0 8px; color: var(--text); }
.contacts__brand .mark { --m: 56px; }
.contacts__brand .mark--tile { --m: 72px; }
.contacts__name { font: 400 20px/1 var(--f-display); text-transform: uppercase; }

/* ===== Секции ===== */
.section { padding: 56px 0 32px; }
.section__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.section__num { font-size: 12px; color: var(--muted); }
html.is-branded .section__num, html.is-branded .stage__lead, html.is-branded .cap__num { color: var(--accent); }
.section__title { font: 400 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0; }
.section__note { color: var(--muted); font-size: 13px; margin: 0 0 18px; overflow-wrap: anywhere; }
.offline-banner { border-radius: var(--r-panel); background: var(--surface); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* ===== Запись =====
 * Воздух и читаемость: карточки услуг с отступами, текст без обрезки, обычный регистр вместо капса в мелочах,
 * крупные зоны тапа. Акцент — только выбранное и главная кнопка; выбранная категория — светлая плашка. */
#booking .section__note { max-width: 36em; margin: -6px 0 26px; font-size: 14px; line-height: 1.5; }

/* прогресс: три сегмента, под ними номер и название шага */
.stepper { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stepper__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.stepper__item::before { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); transition: background-color .25s var(--ease); }
.stepper__item.is-active::before, .stepper__item.is-done::before { background: var(--accent); }
.stepper__item.is-active, .stepper__item.is-done { color: var(--text); }
.stepper__num { font-size: 12px; color: var(--muted); }
.stepper__item.is-active .stepper__num { color: var(--accent); }
.stepper__label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.booking { position: relative; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step__title { font: 600 22px/1.2 var(--f-head); letter-spacing: 0; margin-bottom: 6px; padding: 0; }
.step__hint { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.step__help { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.step__help a { color: var(--text); text-underline-offset: 3px; }

/* категории: горизонтальная лента плашек, выбранная — светлая */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tabs::after { content: ""; flex: 0 0 1px; }
.tab {
  flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer;
  font: 500 14px/1 var(--f-text); color: var(--muted); -webkit-tap-highlight-color: transparent;
}
.tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg-1); }

/* карточки услуг: название, описание целиком, цена и время, кнопка «+» */
.rows { display: grid; gap: 10px; }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid transparent; border-radius: 14px; background: var(--surface); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.row.is-on { background: var(--surface-on); border-color: var(--accent); }
.row__body { display: grid; gap: 6px; min-width: 0; }
.row__name { font: 600 16px/1.3 var(--f-head); }
.row__spec { font-size: 14px; line-height: 1.45; color: var(--muted); }
.row__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.row__price { font-size: 15px; font-weight: 600; color: var(--text); }
.row__dur { font-size: 13px; color: var(--muted); }
.row__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px;
  font: 400 24px/1 var(--f-text); color: var(--text);
}
.row__btn::before { content: "+"; }
.row.is-on .row__btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.row.is-on .row__btn::before { content: "✓"; font-size: 18px; }
.row input:focus-visible ~ .row__btn { outline: 2px solid var(--text); outline-offset: 2px; }

/* дни: 7 в ряд, каждый — плашка; выбранный залит акцентом */
#dates-month { margin: 18px 0 10px; font: 500 14px/1.3 var(--f-text); text-transform: none; letter-spacing: 0; }
#dates-month::first-letter { text-transform: uppercase; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.date {
  min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid transparent; border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent;
}
.date__dow { font-size: 12px; color: var(--muted); text-transform: lowercase; }
.date__num { font-size: 18px; font-weight: 600; line-height: 1; }
.date[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.date[aria-checked="true"] .date__dow { color: var(--on-accent); }
.date:disabled { opacity: .35; cursor: not-allowed; }

/* время: подписи «Утро / День / Вечер», 4 в ряд; выбранное залито акцентом */
.step[data-step="2"] > .caption:not(#dates-month) { margin: 26px 0 0; font: 600 16px/1.3 var(--f-head); text-transform: none; letter-spacing: 0; color: var(--text); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots__group { grid-column: 1 / -1; margin: 14px 0 2px; font-size: 13px; color: var(--muted); }
.slot { min-height: 46px; border: 1px solid transparent; border-radius: 10px; background: var(--surface); font-size: 15px; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slot[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot:disabled { background: var(--hatch), var(--surface); color: var(--muted); opacity: .7; cursor: not-allowed; }
.slots__empty { grid-column: 1 / -1; color: var(--muted); padding: 18px; border-radius: 14px; background: var(--surface); text-align: center; font-size: 14px; }

/* данные: короткая сводка и поля */
.picked { padding: 18px; margin: 14px 0 26px; border-radius: 14px; background: var(--surface); }
.picked .caption { margin: 0 0 12px; }
.review { font-size: 15px; }
.review__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.review__list li { display: flex; justify-content: space-between; gap: 12px; }
.review__list li span:last-child { flex: none; font-size: 14px; color: var(--muted); }
.review__when, .review__total { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.review__when { margin-bottom: 12px; }
.review__when span, .review__total span { color: var(--muted); font-size: 14px; }
.review__when b { font-weight: 500; text-align: right; }
.review__total b { font-size: 17px; font-weight: 600; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.field label .opt { font-size: 13px; font-weight: 400; color: var(--muted); }
.field label .opt::before { content: "· "; }
/* пара полей в ряд: «необязательно» — отдельной строкой под обоими названиями, поля на одной линии */
.field-row .field label .opt { display: block; margin-top: 2px; }
.field-row .field label .opt::before { content: none; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #919398; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error input { border-color: #E6A39A; }
.field__error { color: #E6A39A; font-size: 13px; margin: 6px 0 0; }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }

/* «Заявка готова» */
.ready { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--surface); }
.ready__check { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 500 14px/1 var(--f-mono); }
.ready.is-ready .ready__check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ready.is-ready .ready__check::before { content: "✓"; }
.ready__title { font: 600 17px/1.3 var(--f-head); }
.ready:not(.is-ready) .ready__title { color: var(--muted); }
.ready__after { margin-top: 4px; font-size: 14px; color: var(--text); }
.tg-send { margin-top: 10px; text-transform: none; letter-spacing: 0; font-size: 16px; border-radius: 12px; }
.ready__home { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 6px; color: var(--muted); font-size: 14px; }

/* итог: одна строка над нижней навигацией — сумма, коротко что выбрано, кнопки */
.summary {
  position: sticky; bottom: calc(var(--dock-h) + var(--safe-b)); z-index: 10; margin: 26px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-1); border-top: 1px solid var(--line);
}
.summary__info { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.summary__count { display: none; }
.summary__total { font-size: 18px; font-weight: 600; white-space: nowrap; }
.summary__meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary__actions { display: flex; gap: 8px; flex: none; }
.summary .btn { min-height: 52px; border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
.summary .btn--accent { padding: 0 20px; }
.summary .btn--square { width: 52px; }
/* последний шаг: сводка уже на экране — в строке только «Назад» и «Записаться в WhatsApp» */
.summary.is-final .summary__info { display: none; }
.summary.is-final .summary__actions { width: 100%; }
.summary.is-final #btn-send { flex: 1; }
.form-error { color: #E6A39A; font-size: 14px; margin-top: 10px; }

/* «Запись»: минимум движения — одна кривая, не дольше 0,25 с: выбор 0,15 с, смена шагов — один fade 0,25 с */
#booking.is-enter { animation: fade-in .25s var(--ease) both; }
#booking .step.is-active { animation: fade-in .25s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } }
#booking .row, #booking .tab, #booking .date, #booking .slot, #booking .btn { transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
#booking .row:active, #booking .tab:active, #booking .date:active, #booking .slot:active, #booking .btn:active { transform: none; }

/* ===== «Студия»: услуги и цены, отзывы ===== */
.prices__list { display: grid; gap: 10px; margin-bottom: 14px; }
.price {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 12px; padding: 16px;
  border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.price__body { display: grid; gap: 4px; min-width: 0; }
.price__name { font: 600 16px/1.3 var(--f-head); }
.price__dur { font-size: 13px; color: var(--muted); }
.price__val { font-size: 15px; font-weight: 600; white-space: nowrap; }
.price__add { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; font-size: 20px; }
.reviews__box { padding: 20px; border: 1px dashed var(--line-2); border-radius: 14px; }
.reviews__rating { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.reviews__rating b { font-size: 40px; line-height: 1; }
.reviews__rating span { color: var(--muted); }
.reviews__text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.reviews__text .tag { margin-left: 4px; height: 20px; font-size: 10px; color: var(--muted); }
.reviews__box .btn { margin-top: 16px; }

/* ===== Первый экран: строка под названием (кто вы и цена «от»), значок наклона, по центру — только кнопка запуска ===== */
.stage__head { padding-right: 52px; }
.stage__lead { position: absolute; left: var(--gutter); right: var(--gutter); top: 200px; margin: 0; max-width: 32ch; font-size: 15px; line-height: 1.4; color: var(--text); pointer-events: none; }
.tilt-on { position: absolute; top: 6px; right: var(--gutter); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(30, 32, 35, .6); color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tilt-on svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.stage__left, .stage__foot .stage__scroll { display: none; }
.stage__foot .ignite { grid-column: 2; }

/* ===== «Студия»: как записаться, примечание к ценам, работы без фото, частые вопросы ===== */
.how__title { margin: 34px 0 6px; font: 600 18px/1.3 var(--f-head); }
.how { list-style: none; margin: 0; padding: 0; }
.how li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.how__num { color: var(--muted); font-size: 13px; line-height: 1.7; }
.prices__note { margin: -2px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.works.works--empty { display: block; }
.works__soon { padding: 22px 18px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font: 600 16px/1.35 var(--f-head); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q::after { content: "+"; flex: none; font: 400 22px/1 var(--f-text); color: var(--muted); transition: transform .2s var(--ease); }
.qa[open] .qa__q::after { transform: rotate(45deg); }
.qa__a { max-width: 60ch; padding: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.qa__a .tag { height: 20px; margin-left: 4px; font-size: 10px; color: var(--muted); }
.studio__end { padding-top: 8px; padding-bottom: 48px; }

/* ===== «Запись»: класс автомобиля и память клиента ===== */
.carclass__label { margin: 6px 0 8px; font-size: 14px; font-weight: 500; }
.carclass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 12px; background: var(--surface); }
.carclass__opt { min-height: 42px; padding: 4px 6px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 500 14px/1.15 var(--f-text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s var(--ease), color .15s var(--ease); }
.carclass__opt[aria-checked="true"] { background: var(--surface-on); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.remember { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13px; line-height: 1.5; color: var(--muted); }
.remember__clear { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ===== «Контакты»: карта 2ГИС по тапу, ссылка «Установить приложение» ===== */
.map { margin-bottom: 8px; }
.map__frame { display: block; width: 100%; height: 280px; border: 0; border-radius: 12px; background: var(--surface-on); }
.link-btn { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ===== «Установить на экран»: карточка над нижней навигацией ===== */
.install {
  position: fixed; z-index: 70; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock-h) + var(--safe-b) + 10px); max-width: 460px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 10px 14px 16px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-1); color: var(--text);
  opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.install.is-on { opacity: 1; transform: none; }
.install__text { font-size: 14px; line-height: 1.45; }
.install__go { grid-column: 1; justify-self: start; min-height: 44px; padding: 0 18px; border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; }
.install__close { grid-column: 2; grid-row: 1; width: 36px; height: 36px; display: grid; place-items: center; margin: -6px 0 0; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.install__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== Запись в базе: плашка «Ваша запись», «Вы записаны», согласие, занятые слоты ===== */
.upcoming { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -8px 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.upcoming__go { margin-left: auto; color: var(--accent); font-weight: 600; }
.done { margin: 0 0 24px; padding: 22px 18px; border-radius: 14px; background: var(--surface); }
.done__check { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 500 18px/1 var(--f-mono); }
.done__check::before { content: "✓"; }
.done__title { font: 600 22px/1.2 var(--f-head); margin-bottom: 8px; }
.done__text { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.done__actions { display: grid; gap: 8px; }
.done__actions .btn, .mylist .btn { text-transform: none; letter-spacing: 0; font-size: 16px; border-radius: 12px; }
.done__actions .link-btn { justify-self: center; }
.consent { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.slot.is-taken { background: var(--hatch), var(--surface); color: var(--muted); text-decoration: line-through; opacity: .7; }

/* статусы записи */
.st { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-on); color: var(--text); }
.st--new { box-shadow: inset 0 0 0 1px var(--line-2); background: none; }
.st--confirmed, .st--in_work { background: var(--accent); color: var(--on-accent); }
.st--done { background: var(--surface-on); color: var(--muted); }
.st--cancelled { background: none; color: var(--muted); text-decoration: line-through; }

/* ===== «Моя запись» ===== */
.mylist { display: grid; gap: 10px; }
.bk { padding: 16px; border-radius: 14px; background: var(--surface); }
.bk.is-past { opacity: .6; }
.bk__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.bk__when { font: 600 16px/1.3 var(--f-head); }
.bk__svc { font-size: 15px; line-height: 1.45; }
.bk__meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
.empty { padding: 22px 18px; border-radius: 14px; background: var(--surface); color: var(--muted); display: grid; gap: 16px; }
.muted { color: var(--muted); }

.footer__admin { color: var(--muted); font-size: 12px; text-underline-offset: 3px; }
.dock.is-off .dock__bar { opacity: 0; }

/* ===== Контакты ===== */
.contacts { display: grid; gap: 16px; }
.panel { padding: 20px; border-radius: var(--r-panel); background: var(--surface); }
.panel__title { font: 700 18px/1.15 var(--f-head); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.panel__text { color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.panel__text--big { color: var(--text); font-size: 16px; }
.actions { display: grid; gap: 8px; }
.panel .actions .btn + .btn { margin-top: 0; }
.btn .btn__ic { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn__sub { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .75; }
.panel .btn { width: 100%; }
.panel .btn + .btn { margin-top: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; background: var(--bg-3); }
.status.is-open { color: var(--text); }
.status.is-open::before { background: var(--accent); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { position: relative; display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 6px; font-size: 14px; }
.hours li span:last-child { font-family: var(--f-mono); font-weight: 500; }
.hours li.is-today { background: var(--surface-on); font-weight: 500; }
.hours li.is-today::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.hours .off { color: var(--muted); font-family: var(--f-text) !important; }

/* ===== Футер ===== */
.footer { padding: 28px 0 18px; background: var(--bg-2); font-size: 12px; color: var(--muted); }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; flex-basis: 100%; color: var(--text); }
.footer__brand .mark { --m: 28px; }
.footer__brand .mark--tile { --m: 36px; }
.footer__brand b { font: 700 13px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.demo-badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11px; color: var(--text); }
.build { margin-top: 10px; font-size: 11px; color: var(--muted); }

/* ===== Нижняя навигация ===== */
.dock {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--dock-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg-1); border-top: 1px solid var(--line);
}
.dock__link {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  font: 700 13px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); -webkit-tap-highlight-color: transparent;
}
.dock__link + .dock__link { border-left: 1px solid var(--line); }
.dock__link[aria-current] { color: var(--text); }
html.is-branded .dock__link[aria-current] { color: var(--accent); }
/* «Запись» всегда выделена акцентом */
.dock__link[data-to="booking"] { color: var(--accent); }
/* полоска текущего экрана: одна, плавно переезжает к выбранному пункту (--i — номер, --n — сколько пунктов) */
.dock__bar { position: absolute; left: 0; top: -1px; width: calc(100% / var(--n, 4)); height: 2px; background: var(--accent); pointer-events: none;
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0); transition: transform .4s var(--ease); will-change: transform; }
.dock__count { padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11px; color: var(--text); }
@media (max-width: 374px) { .dock__link { gap: 4px; font-size: 12px; letter-spacing: .03em; } .dock__count { padding: 2px 4px; } }

/* ===== Появление (motion.js) ===== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* строки заголовков выезжают из-под маски */
/* строки заголовков: сдвиг + маска clip-path, построчно */
.ln { display: block; }
.ln__in { display: block; clip-path: inset(-20% -5% 100% -5%); transform: translateY(40%); transition: clip-path var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--li, 0) * var(--stagger)); }
.ln-host.is-in .ln__in { clip-path: inset(-20% -5% -20% -5%); transform: none; }
/* плитки и строки списков — по очереди, шаг --stagger */
html.motion .stg:not(.is-in) .st-i { opacity: 0; }
html.motion .stg.is-in .st-i { animation: st-in var(--dur) var(--ease) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } }

/* ===== Шире ===== */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section__title { font-size: 48px; }
  .hero__headline { font-size: 18px; }
  #booking .container { max-width: calc(760px + var(--gutter) * 2); }
  .contacts { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tabs { margin: 0; padding: 0; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .viewer { padding-left: 15vw; padding-right: 15vw; }
}
@media (min-width: 1024px) {
  /* текст слева, машина справа */

  .hero__actions .btn { width: auto; min-width: 280px; }
  .section { padding: 96px 0 48px; }
}

/* ===== Меньше движения ===== */
@media (prefers-reduced-motion: reduce) {
  .belt__track { animation: none !important; flex-wrap: wrap; width: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .st-i { opacity: 1 !important; transform: none !important; }
  .ln__in { transform: none !important; clip-path: none !important; }
  /* смена экрана без шторки и сдвига — только плавное проявление */
  .screen.is-enter { animation: screen-fade .3s ease both !important; }
  .boot__fog { opacity: .55; }
  .boot__fog i { opacity: .7; }
}
@keyframes screen-fade { from { opacity: 0; } }

/* блик по логотипу: полоса света проходит один раз, только по светлым частям (маска — сам логотип).
   Загрузчик — повторяется, пока идёт загрузка; шапка и фон — при старте (story.js brandFlash) */
.mark-shine { position: relative; display: inline-block; flex: none; line-height: 0; vertical-align: middle; }
.mark-shine::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) no-repeat; background-size: 260% 100%;
  -webkit-mask: var(--logo) center / 100% 100% no-repeat; mask: var(--logo) center / 100% 100% no-repeat luminance; }
.mark-shine.is-shine::after { animation: mark-shine 1.3s var(--ease) 1; }
.boot .mark-shine::after { animation: mark-shine 2.6s ease-in-out .4s infinite; }
@keyframes mark-shine { 0% { opacity: 1; background-position: 120% 0; } 55%, 100% { opacity: 1; background-position: -20% 0; } }
.done__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.done__head .mark { --m: 56px; }
.done__head .done__check { width: 32px; height: 32px; margin: 0; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .mark-shine::after, .hero-mark.is-color.is-flash .mark--img { animation: none !important; } }
