/* Публичный сайт шиномонтажа.
   Формы: кнопки и чипы-фильтры круглые (pill), карточки 20-24px, поля ввода и слоты 12px. */

:root {
  --accent: #f2b705;
  --on-accent: #15171a;
  --hero-bg: #1c1f22;
  --hero-ink: #f7f7f5;
  --hero-img: none;
  --font-head: 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;

  --bg: #f3f4f2;
  --surface: #ffffff;
  --surface-2: #e9eae7;
  --text: #16181b;
  --muted: #5b6066;
  --line: #d9dbd7;
  --ok: #1f8a4c;
  --danger: #c2372b;
  --ring: color-mix(in srgb, var(--accent) 55%, var(--text));
  --accent-ink: color-mix(in srgb, var(--accent) 45%, var(--text));
  --shadow: 0 18px 40px -24px rgb(22 24 27 / .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* Тема: авто (как у посетителя), либо принудительно светлая или тёмная из админки */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315;
    --surface: #191c1f;
    --surface-2: #23272b;
    --text: #ecedea;
    --muted: #9ba0a6;
    --line: #2d3236;
    --ok: #4cc27f;
    --danger: #ef6a5e;
    --accent-ink: color-mix(in srgb, var(--accent) 75%, var(--text));
    --shadow: 0 18px 40px -24px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  --bg: #111315;
  --surface: #191c1f;
  --surface-2: #23272b;
  --text: #ecedea;
  --muted: #9ba0a6;
  --line: #2d3236;
  --ok: #4cc27f;
  --danger: #ef6a5e;
  --accent-ink: color-mix(in srgb, var(--accent) 75%, var(--text));
  --shadow: 0 18px 40px -24px rgb(0 0 0 / .7);
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* ---------- skeleton */
.sk { display: inline-block; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, var(--surface)), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 8px; }
.sk-text { height: .9em; width: 120px; vertical-align: middle; }
.sk-block { display: block; height: 110px; width: 100%; border-radius: 14px; }
.hero .sk { background: rgb(255 255 255 / .08); animation: none; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn i { font-size: 1.15em; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:not(:disabled):hover { box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.btn-onhero { background: rgb(255 255 255 / .08); color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 28%, transparent); }
.btn-onhero:hover { background: rgb(255 255 255 / .14); }
.btn-icon { width: 46px; padding: 0; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { height: 38px; width: auto; max-width: 140px; object-fit: contain; }
.brand .mark { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--hero-bg); color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.top-call { margin-left: auto; height: 40px; padding: 0 14px; }
.top-call-text { display: none; }
@media (min-width: 560px) { .top-call-text { display: inline; } }
@media (min-width: 960px) { .nav { display: flex; } .top-call { margin-left: 8px; } }

/* ---------- last booking banner */
.last-booking { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.last-booking i { font-size: 22px; color: var(--ok); }

/* ---------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 16px; border-radius: 24px;
  background: var(--hero-bg); color: var(--hero-ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides i.on { opacity: 1; }
.hero.has-slides::before { display: none; }
.hero-dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--hero-ink) 40%, transparent); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.hero-dots button.on { width: 22px; border-radius: 4px; background: var(--hero-ink); }
@media (prefers-reduced-motion: reduce) { .hero-slides i { transition: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--hero-bg) 18%, color-mix(in srgb, var(--hero-bg) 55%, transparent) 60%, color-mix(in srgb, var(--hero-bg) 25%, transparent));
}
/* Протектор: шевронный рисунок по правому краю шапки */
.tread {
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--hero-ink) 7%, transparent) 18px 30px),
    repeating-linear-gradient(45deg, transparent 0 18px, color-mix(in srgb, var(--hero-ink) 5%, transparent) 18px 30px);
  background-size: 100% 50%; background-repeat: no-repeat; background-position: top, bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero-grid { display: grid; gap: 28px; padding: 28px 20px 22px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); align-items: end; gap: 56px; padding: 64px 56px 56px; min-height: min(560px, calc(100dvh - 120px)); }
}
@media (min-width: 900px) { .hero-grid.solo { grid-template-columns: minmax(0, 1fr); } }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--hero-ink) 45%, transparent); }
.dot.on { background: #3ddc84; box-shadow: 0 0 0 0 rgb(61 220 132 / .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(61 220 132 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0); } }
.hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 4.2vw + 1rem, 4.4rem); font-weight: 800; max-width: 14ch; }
.hero-sub { margin-top: 16px; max-width: 46ch; font-size: clamp(1rem, .4vw + .9rem, 1.15rem); color: color-mix(in srgb, var(--hero-ink) 78%, transparent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } }

.slot-card {
  border-radius: 20px; padding: 20px;
  background: color-mix(in srgb, var(--hero-bg) 70%, #000 30%);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
}
.slot-label { font-size: 14px; color: color-mix(in srgb, var(--hero-ink) 70%, transparent); }
.slot-day { margin-top: 10px; font-weight: 600; font-size: 17px; }
.slot-time { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 5vw + 1rem, 4.4rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--accent); }
.slot-left { font-size: 14px; margin-top: 8px; color: color-mix(in srgb, var(--hero-ink) 70%, transparent); }
.slot-card .btn { margin-top: 18px; width: 100%; }
.slot-empty { margin-top: 10px; color: color-mix(in srgb, var(--hero-ink) 82%, transparent); }

/* ---------- quick actions */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 74px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 14px; transition: transform .15s var(--ease), border-color .2s;
}
.quick-btn i { font-size: 24px; }
.quick-btn:active { transform: scale(.97); }
.quick-btn:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
#q-wa i { color: #1fa855; } #q-tg i { color: #2a9bd8; } #q-call i { color: var(--accent-ink); }
.quick-addr { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 14px 4px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.quick-addr i { font-size: 20px; }
@media (min-width: 900px) {
  .quick { grid-template-columns: auto auto auto 1fr; }
  .quick-btn { flex-direction: row; min-height: 56px; padding: 0 22px; border-radius: 999px; font-size: 15px; }
  .quick-btn i { font-size: 20px; }
  .quick-addr { grid-column: auto; padding: 0 0 0 12px; justify-content: flex-end; }
}

/* ---------- sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); font-weight: 800; }
.lead { margin-top: 14px; color: var(--muted); max-width: 42ch; }
.lead.small { font-size: 15px; }

/* ---------- prices */
.prices-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.prices-main, .prices-side, .contact-info, .booking-card { min-width: 0; }
@media (min-width: 900px) {
  .prices-layout { grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
  .prices-side { position: sticky; top: 100px; }
}
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 0 16px 4px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tabs { margin: 0 0 8px; padding: 0 0 4px; flex-wrap: wrap; } }
.tab { flex: none; scroll-snap-align: start; min-height: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.price-list { display: grid; }
.price-row {
  display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: baseline; column-gap: 10px;
  width: 100%; padding: 16px 12px; margin: 0 -12px; width: calc(100% + 24px);
  background: none; border: 0; border-radius: 14px; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s;
}
.price-row:hover { background: var(--surface); }
.price-name { font-weight: 600; font-size: 16px; }
.price-leader { border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.price-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 17px; }
.price-val.ask { color: var(--muted); font-weight: 600; font-size: 15px; }
.price-desc { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: 4px; }
.price-go { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-top: 6px; opacity: 0; transform: translateY(-2px); transition: opacity .2s, transform .2s var(--ease); }
.price-row:hover .price-go, .price-row:focus-visible .price-go { opacity: 1; transform: none; }
@media (hover: none) { .price-go { display: none; } }
.price-list.swap { animation: fadeUp .35s var(--ease); }

/* ---------- booking */
.booking-section { background: linear-gradient(var(--bg), color-mix(in srgb, var(--surface-2) 55%, var(--bg))); }
.booking-card { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.booking-head { padding: 24px 20px 0; }
@media (min-width: 768px) { .booking-head { padding: 36px 40px 0; } }
.progress { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 20px 0 0; counter-reset: s; }
.progress li { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--surface-2); transition: border-color .3s, color .3s; }
.progress li.on { border-color: var(--accent); color: var(--text); }
.booking-body { padding: 24px 20px 28px; }
@media (min-width: 768px) { .booking-body { padding: 28px 40px 40px; } }
.step { animation: fadeUp .4s var(--ease); }
.step-summary { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.step-summary b { color: var(--text); font-weight: 600; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.step-nav .btn-primary { margin-left: auto; }
.step-nav.center { justify-content: center; }
.step-nav.center .btn-primary { margin-left: 0; }
@media (max-width: 480px) { .step-nav .btn-lg { flex: 1; } }

.field { display: grid; gap: 8px; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field-label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.fields-2 { display: grid; gap: 0 14px; }
.fields-2 .field:first-child { margin-top: 0; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } .fields-2 .field { margin-top: 0; } }
input, select, textarea {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)); background: var(--bg); color: var(--text);
  font: 16px var(--font-body); transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
input:focus, select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-error { margin-top: 14px; color: var(--danger); font-size: 14px; font-weight: 600; }

.dates { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .dates { margin: 0; padding-left: 0; padding-right: 0; } }
.date {
  flex: none; scroll-snap-align: start; width: 66px; height: 78px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font: inherit;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease);
}
.date:active { transform: scale(.96); }
.date .wd { font-size: 12px; color: var(--muted); font-weight: 600; }
.date b { font-family: var(--font-head); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date .mo { font-size: 11px; color: var(--muted); }
.date[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.date[aria-checked="true"] .wd, .date[aria-checked="true"] .mo { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.date:disabled { opacity: .38; cursor: not-allowed; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time {
  height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 600 15px var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease);
}
.time:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.time:active:not(:disabled) { transform: scale(.96); }
.time[aria-checked="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.time:disabled { color: var(--muted); text-decoration: line-through; opacity: .5; cursor: not-allowed; }
.times-empty { grid-column: 1 / -1; padding: 20px; border-radius: 14px; background: var(--bg); color: var(--muted); text-align: center; font-size: 15px; }

.step-done { text-align: center; padding: 12px 0; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 34px; animation: pop .5s var(--ease); }
.step-done h3 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); font-weight: 800; }
.done-text { margin: 12px auto 0; max-width: 44ch; color: var(--muted); }
.done-text b { color: var(--text); }
.step-done .link-btn { margin-top: 16px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- reviews */
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reviews-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-top: 28px; padding: 4px max(16px, calc((100vw - 1200px) / 2 + 28px)) 8px;
  scroll-padding: 0 max(16px, calc((100vw - 1200px) / 2 + 28px));
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-empty { grid-column: 1 / -1; margin: 0; max-width: 560px; color: var(--muted); }
.review { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: var(--accent); font-size: 18px; }
.stars .off { color: var(--line); }
.review-text { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-who { margin-top: auto; font-size: 14px; color: var(--muted); }
.review-who b { color: var(--text); font-weight: 600; display: block; font-size: 15px; }

/* ---------- contacts */
.contacts { display: grid; gap: 28px; }
@media (min-width: 900px) { .contacts { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.map { border-radius: 24px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
@media (min-width: 900px) { .map { aspect-ratio: auto; height: 460px; } }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.c-addr { margin-top: 18px; font-size: 18px; font-weight: 500; }
.c-phone { display: inline-block; margin-top: 10px; font-family: var(--font-head); font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); font-weight: 700; text-decoration: none; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.c-phone:hover { color: var(--accent-ink); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 22px 0 0; font-size: 16px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours dd.off { color: var(--muted); font-weight: 500; }
.hours .today { color: var(--text); font-weight: 700; }
.c-actions { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- footer, dock */
.foot { padding: 28px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ios-hint { font-size: 13px; }

.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: 0 14px 40px -16px rgb(0 0 0 / .45);
  transition: transform .35s var(--ease), opacity .35s;
}
.dock.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); text-decoration: none; font-size: 22px; }
#d-wa { color: #1fa855; }
.dock-cta { flex: 1; height: 48px; }
@media (max-width: 899px) { body { padding-bottom: 88px; } }
@media (min-width: 900px) { .dock { display: none; } }

.notfound { min-height: 70dvh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 24px; }
.notfound p { color: var(--muted); }

/* ---------- announce bar, stats, promos, faq, legal */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: #1b1b1d; color: #f1f1ef; font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.3; border-bottom: 1px solid #333; }
.demo-bar i { flex: none; color: #ffcf4a; font-size: 17px; }
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14.5px; text-align: center; text-decoration: none; line-height: 1.3; }
.announce i { flex: none; transition: transform .25s var(--ease); }
.announce:hover i { transform: translateX(4px); }

.stats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; } }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.stats b { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }

.promos-section { padding-bottom: 0; }
.promos { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .promos[data-n="3"], .promos[data-n="4"] { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.promo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s var(--ease); }
.promo:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow); }
.promo::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.promo-badge { position: relative; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.promo h3 { position: relative; z-index: 1; font-size: 1.3rem; font-weight: 800; }
.promo p { position: relative; z-index: 1; color: var(--muted); font-size: 15px; }
.promo-go { position: relative; z-index: 1; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

.faq-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; } }
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { flex: none; transition: transform .25s var(--ease); color: var(--muted); }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details p { padding: 0 20px 18px; color: var(--muted); max-width: 62ch; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.link-btn.inline { padding: 0; font-size: inherit; }

.legal { width: min(92vw, 560px); max-height: 86dvh; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.legal::backdrop { background: rgb(10 12 14 / .55); }
.legal-card { display: grid; gap: 16px; padding: 24px; }
.legal-card h2 { font-size: 1.5rem; }
.legal-body { display: grid; gap: 10px; font-size: 15px; color: var(--muted); overflow: auto; max-height: 52dvh; }
.legal-body b { color: var(--text); }
.foot .link-btn { padding: 4px; }

/* ---------- duration, gallery, cancel */
.price-dur { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.price-dur i { font-size: 15px; }
.gallery { display: grid; gap: 10px; margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.gallery button { position: relative; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.work-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 28px 12px 11px; text-align: left; color: #fff; background: linear-gradient(transparent, rgb(10 12 14 / .78)); }
.work-cap b { font-size: 14px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 6px rgb(0 0 0 / .4); }
.work-cap em { flex: none; font-style: normal; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.photo-cap { margin-top: 12px; text-align: center; color: #fff; font-weight: 600; }
.photo-cap:empty { display: none; }
.photo { max-width: min(96vw, 1100px); max-height: 92dvh; padding: 0; border: 0; border-radius: 20px; background: transparent; overflow: visible; }
.photo::backdrop { background: rgb(10 12 14 / .8); }
.photo img { max-width: 100%; max-height: 88dvh; border-radius: 20px; margin: 0 auto; }
.photo-x { position: absolute; top: -12px; right: -12px; z-index: 1; }
.cancel-note { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.cancel-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn-danger { background: var(--danger); color: #fff; }
.last-booking .link-btn { margin-left: auto; padding: 4px 0; font-size: 14px; white-space: nowrap; }

/* ---------- выбор услуги */
.more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; height: 46px; border-radius: 14px; border: 1px dashed var(--line); background: none; color: var(--muted); font: 600 14px var(--font-body); cursor: pointer; transition: color .2s, border-color .2s; }
.more-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.picker { display: grid; gap: 10px; border-radius: 16px; }
.picker .tabs { margin: 0; padding: 0 0 2px; }
.pick-list { display: grid; gap: 8px; }
@media (min-width: 640px) { .pick-list { grid-template-columns: 1fr 1fr; } }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 64px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pick:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.pick[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.pick-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pick-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-price.ask { color: var(--muted); font-weight: 600; font-size: 14px; }
.pick-meta { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.pick-chosen { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pick-chosen i { color: var(--ok); font-size: 18px; }
.picker.err { outline: 2px solid var(--danger); outline-offset: 6px; }

/* ---------- телефон: цели нажатия не меньше 44px */
.hero-dots button { position: relative; }
.hero-dots button::after { content: ""; position: absolute; inset: -18px -6px; }
@media (max-width: 899px) {
  .brand, .quick-addr { min-height: 44px; }
  .c-phone { display: inline-flex; align-items: center; min-height: 44px; }
  .foot .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .last-booking .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 480px) {
  .step-nav .btn { white-space: normal; height: auto; min-height: 54px; padding-block: 10px; text-align: center; line-height: 1.25; }
}

/* ---------- toasts */
#toasts { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 15px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast-error i { color: #ff8a80; }

/* ---------- motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
body:not(.is-loading) .hero-copy > * { animation: fadeUp .7s var(--ease) both; }
body:not(.is-loading) .hero-copy > :nth-child(2) { animation-delay: .06s; }
body:not(.is-loading) .hero-copy > :nth-child(3) { animation-delay: .12s; }
body:not(.is-loading) .hero-copy > :nth-child(4) { animation-delay: .18s; }
body:not(.is-loading) .slot-card { animation: fadeUp .8s .2s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
