/* Москва: страница записи и все клиентские страницы бизнеса в трёх направлениях
   (~/Downloads/CLAUDE_DESIGN_PROMPT_ZAPIS_3_NAPRAVLENIYA.md):
     G «Глянец» — тёмный, вечерняя Москва (мойка);  T «Табло» — светлый, как вокзальное табло (авто);
     P «Пена» — мягкий, дружелюбный (стоматология, ветклиника, бьюти).
   <body class="bp msk" data-direction="G|T|P" data-theme="carwash|auto|dental|beauty">.
   Самодостаточный файл: ереванский page.css на московских страницах не подключается.
   Цвета акцента по нишам — те же, что в apps/public/pwa.py (MSK_ACCENT). */

/* --- токены ------------------------------------------------------------------ */
.msk[data-direction="G"] {
  --bg: #0A0E13; --surface: #121820; --surface-2: #19212B; --line: #263241; --line-2: #2C3845;
  --ink: #EEF3F7; --ink-2: #97A6B5; --ink-3: #B5C2CE;
  --accent: #45D6F2; --on-accent: #04212A;
  --accent-soft: color-mix(in oklch, var(--accent) 16%, var(--bg));
  --ok-ink: #58E0A0; --ok-bg: #0E2A20; --warn: #F5B971; --warn-bg: #2A2114; --danger: #FF8A7A;
  --field-bg: var(--surface-2); --field-line: var(--line-2);
  --promise-bg: color-mix(in oklch, var(--accent) 10%, #0A0E13); --promise-line: color-mix(in oklch, var(--accent) 38%, #0A0E13);
  --sel-bg: color-mix(in oklch, var(--accent) 12%, #0A0E13);
  --font-head: "Unbounded", "Onest", system-ui, sans-serif; --font-body: "Onest", system-ui, sans-serif;
  --font-num: "Unbounded", "Onest", system-ui, sans-serif;
  --r: 14px; --r-sm: 10px; --r-lg: 16px; --r-btn: 14px;
  --bar-bg: #0E1319; --bar-ink: var(--ink); --shadow: none;
  color-scheme: dark;
}
.msk[data-direction="T"] {
  --bg: #F4F3EF; --surface: #FFFFFF; --surface-2: #ECEBE6; --line: #D9D8D2; --line-2: #E6E5E0;
  --ink: #111214; --ink-2: #5B5D63; --ink-3: #3A3C41;
  --accent: #1D4ED8; --on-accent: #FFFFFF; --accent-soft: color-mix(in oklch, var(--accent) 14%, white);
  --ok-ink: #5EE38F; --ok-bg: #111214; --warn: #8A4B00; --warn-bg: #FFF1DD; --danger: #B42318;
  --field-bg: #FFFFFF; --field-line: #8C8E94;
  --font-head: "Geologica", system-ui, sans-serif; --font-body: "Geologica", system-ui, sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, monospace;
  --r: 6px; --r-sm: 3px; --r-lg: 6px; --r-btn: 4px;
  --bar-bg: #111214; --bar-ink: #FFFFFF; --shadow: none;
  color-scheme: light;
}
.msk[data-direction="P"] {
  --bg: #EAF4F6; --surface: #FFFFFF; --surface-2: #EEF6F8; --line: #DCEAEE; --line-2: #C4D9DE;
  --ink: #0D2B33; --ink-2: #4E6870; --ink-3: #36525B;
  --accent: #0B6F7E; --on-accent: #FFFFFF; --accent-soft: color-mix(in oklch, var(--accent) 10%, white);
  --ok-ink: #145C36; --ok-bg: #DDF3E6; --warn: #6B4A00; --warn-bg: #FFF4DE; --last: #9A4A0B; --danger: #A3321F;
  --field-bg: #F4FAFB; --field-line: #C4D9DE;
  --font-head: "Manrope", system-ui, sans-serif; --font-body: "Golos Text", system-ui, sans-serif;
  --font-num: "Manrope", system-ui, sans-serif;
  --r: 18px; --r-sm: 14px; --r-lg: 24px; --r-btn: 999px;
  --bar-bg: #FFFFFF; --bar-ink: var(--ink); --shadow: 0 10px 30px rgb(13 43 51 / 14%);
  color-scheme: light;
}
/* акцент по нише (свотчи из дизайна) */
.msk[data-direction="G"][data-theme="auto"], .msk[data-direction="G"][data-theme="beauty"] { --accent: #9AB8FF; }
.msk[data-direction="G"][data-theme="dental"] { --accent: #7DF0C8; }
.msk[data-direction="T"][data-theme="dental"] { --accent: #0F766E; }
.msk[data-direction="T"][data-theme="beauty"] { --accent: #6D28D9; }
.msk[data-direction="P"][data-theme="auto"] { --accent: #1E5FB4; }
.msk[data-direction="P"][data-theme="beauty"] { --accent: #6A3FB0; }

/* --- основа ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.msk {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--font-body); -webkit-font-smoothing: antialiased;
}
:where(.msk) a { color: inherit; }  /* :where — не перебивает цвет кнопок-ссылок */
.msk h1, .msk h2, .msk h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
.msk p { margin: 0; }
.msk .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.msk .muted { color: var(--ink-2); }
.msk .small { font-size: 13px; }
.msk .sr-only, .msk .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.msk svg.i { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msk :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.msk[data-direction="G"] .bp-wrap::before { content: ""; display: block; height: 3px; background: var(--accent); }
.bp-wrap { max-width: 560px; margin: 0 auto; padding-bottom: 132px; }
.m-page, .page-body { padding: 0 16px; }
.demo-bar { background: var(--surface-2); color: var(--ink-2); font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.flash { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.msk[data-direction="T"] .flash { color: #fff; }
.mine:not([hidden]) { display: block; margin: 12px 0 0; }
.mine a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: var(--r); background: var(--accent-soft); text-decoration: none; font-weight: 600; }

/* --- шапка ------------------------------------------------------------------- */
.m-photo { display: none; }
.m-head { padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.m-head-main { display: flex; flex-direction: column; gap: 10px; }
.m-head-top { display: flex; align-items: center; gap: 10px; }
.m-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.m-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.m-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-title { font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.m-call { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-sm); border: 1.5px solid var(--accent); color: var(--accent); text-decoration: none; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.m-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.m-rating svg { color: #F5B940; fill: currentColor; }
.m-rating b { color: var(--ink); }
.m-open { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; font-size: 13px; }
.m-open .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.m-open.closed { background: var(--surface-2); color: var(--ink-2); }
.m-open.closed .dot { animation: none; }
.m-info { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.m-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.m-row > svg { color: var(--accent); margin-top: 2px; }
.m-k { display: none; }
.m-v { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-v b { font-weight: 600; overflow-wrap: anywhere; }
.m-v small { color: var(--ink-2); font-size: 13.5px; }
.m-route { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; text-decoration: none; }
.m-route .m-chev { display: none; }

/* Табло: чёрная плашка + белая таблица с моно-метками */
.msk[data-direction="T"] .m-head { padding-top: 0; gap: 0; }
.msk[data-direction="T"] .m-head-main { margin: 0 -16px; padding: 18px 16px 20px; background: #111214; color: #fff; }
.msk[data-direction="T"] .m-icon { display: none; }
.msk[data-direction="T"] .m-kicker { font-family: var(--font-num); color: #C9CBD1; letter-spacing: .12em; }
.msk[data-direction="T"] .m-title { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.msk[data-direction="T"] .m-call { border-color: #fff; color: #fff; }
.msk[data-direction="T"] .m-rating, .msk[data-direction="T"] .m-rating b { color: #fff; }
.msk[data-direction="T"] .m-open { background: none; padding: 0; color: #5EE38F; font-family: var(--font-num); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.msk[data-direction="T"] .m-open .dot { border-radius: 1px; }
.msk[data-direction="T"] .m-open.closed { color: #C9CBD1; }
.msk[data-direction="T"] .m-info { margin: 0 -16px; padding: 4px 16px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 0; }
.msk[data-direction="T"] .m-row { grid-template-columns: 70px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.msk[data-direction="T"] .m-row > svg { display: none; }
.msk[data-direction="T"] .m-k { display: block; font: 600 11.5px/1.6 var(--font-num); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.msk[data-direction="T"] .m-route { margin-top: 14px; justify-content: space-between; border: 2px solid var(--ink); color: var(--ink); }
.msk[data-direction="T"] .m-route > svg:first-child { display: none; }
.msk[data-direction="T"] .m-route .m-chev { display: block; }

/* Пена: фото с пузырями, белая карточка наезжает на фото */
.msk[data-direction="P"] .m-photo { display: block; position: relative; overflow: hidden; height: 196px; margin: 0 -16px; background: #CFE6EB; }
.msk[data-direction="P"] .m-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble { position: absolute; border-radius: 50%; border: 2px solid rgb(255 255 255 / 70%); background: rgb(255 255 255 / 22%); }
.bubble.b1 { width: 64px; height: 64px; left: 12%; top: 34px; }
.bubble.b2 { width: 28px; height: 28px; left: 38%; top: 92px; }
.bubble.b3 { width: 92px; height: 92px; right: 10%; top: 18px; }
.bubble.b4 { width: 18px; height: 18px; right: 34%; top: 120px; }
.msk[data-direction="P"] .m-head { position: relative; margin-top: -44px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.msk[data-direction="P"] .m-call { border: 0; border-radius: 50%; background: var(--accent-soft); }
.msk[data-direction="P"] .m-rating { padding: 3px 10px; border-radius: 999px; background: #FFF4DE; color: #6B4A00; }
.msk[data-direction="P"] .m-rating b { color: #6B4A00; }
.msk[data-direction="P"] .m-rating svg { color: #B07A00; }
.msk[data-direction="P"] .m-info { padding: 0; border: 0; background: none; }
.msk[data-direction="P"] .m-route { border: 0; background: #E3F1F4; border-radius: 999px; }
.msk[data-direction="P"] .m-title { font-weight: 800; }

/* --- обещание ---------------------------------------------------------------- */
.m-promise { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--promise-bg, var(--accent-soft)); border: 1px solid var(--promise-line, transparent); }
.m-shield { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; color: var(--accent); }
.m-promise h2 { font-size: 17px; font-weight: 700; }
.m-promise p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.m-label { display: none; }
.msk[data-direction="T"] .m-promise { margin: 0 -16px; padding: 18px 16px; border-radius: 0; border: 0; background: var(--accent); color: #fff; }
.msk[data-direction="T"] .m-shield { display: none; }
.msk[data-direction="T"] .m-label { display: block; font: 600 12px var(--font-num); letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.msk[data-direction="T"] .m-promise h2 { font-size: 21px; font-weight: 800; }
.msk[data-direction="T"] .m-promise p { color: #E6ECFF; }
.msk[data-direction="P"] .m-promise { background: var(--accent); color: #fff; border: 0; border-radius: 28px; align-items: center; }
.msk[data-direction="P"] .m-shield { border-radius: 50%; background: #fff; color: var(--accent); }
.msk[data-direction="P"] .m-promise p { color: rgb(255 255 255 / 88%); }
.m-season { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); }
.m-season div { display: flex; flex-direction: column; gap: 2px; }
.m-season span { color: var(--ink); font-size: 14.5px; }

/* --- шаги -------------------------------------------------------------------- */
.m-step { margin-top: 28px; }
.m-step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.m-step-h h2 { font-size: 19px; font-weight: 700; }
.m-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 700 13px var(--font-num); }
.m-num { display: none; }
.msk[data-direction="T"] .m-n { display: none; }
.msk[data-direction="T"] .m-num { display: inline; font: 700 15px var(--font-num); color: var(--accent); }
.msk[data-direction="T"] .m-step-h h2 { font-weight: 800; font-size: 20px; }
.msk[data-direction="P"] .m-step { padding: 18px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 2px 10px rgb(13 43 51 / 5%); margin-top: 14px; }
.msk[data-direction="P"] .m-n { width: 30px; height: 30px; border: 0; background: var(--accent); color: #fff; font-family: var(--font-head); }

/* --- услуги ------------------------------------------------------------------ */
.m-services { display: flex; flex-direction: column; gap: 10px; }
.m-svc { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 14px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; }
.m-svc-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.m-svc-name { font-weight: 600; overflow-wrap: anywhere; }
.m-svc-dur { color: var(--ink-2); font-size: 13.5px; }
.m-svc-price { white-space: nowrap; font-weight: 700; font-size: 15px; }
.m-check { display: inline-grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-2); color: transparent; }
.m-svc[aria-current="true"] { border-color: var(--accent); background: var(--sel-bg, var(--accent-soft)); }
.msk[data-direction="G"] .m-check svg { display: none; }
.msk[data-direction="G"] .m-svc[aria-current="true"] .m-check { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 5px, transparent 5.5px); }
.msk[data-direction="T"] .m-services { gap: 0; border: 1px solid var(--line); background: var(--surface); }
.msk[data-direction="T"] .m-svc { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
.msk[data-direction="T"] .m-svc:last-child { border-bottom: 0; }
.msk[data-direction="T"] .m-check { border-radius: var(--r-sm); border-color: var(--field-line); }
.msk[data-direction="T"] .m-svc-dur { font: 500 12px var(--font-num); letter-spacing: .06em; text-transform: uppercase; }
.msk[data-direction="T"] .m-svc[aria-current="true"] { background: var(--accent-soft); }
.msk[data-direction="T"] .m-svc[aria-current="true"] .m-check, .msk[data-direction="P"] .m-svc[aria-current="true"] .m-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.msk[data-direction="P"] .m-svc { border-width: 2px; border-color: var(--line); }
.msk[data-direction="P"] .m-check { order: 3; width: 26px; height: 26px; }
.msk[data-direction="P"] .m-svc-price { font-family: var(--font-head); }

/* --- дни --------------------------------------------------------------------- */
.m-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.m-days::-webkit-scrollbar { display: none; }
.m-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 0 0 72px; min-height: 80px; padding: 8px 4px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; scroll-snap-align: start; }
.m-dtop { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.m-dshort { display: none; }
.m-dnum { font: 700 20px/1.1 var(--font-num); }
.m-dwin { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.m-dwin.few { color: var(--warn); }
.m-dbar { display: none; }
.m-days-hint { display: none; }
.m-day[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.m-day[aria-current="true"] .m-dtop, .m-day[aria-current="true"] .m-dwin { color: var(--on-accent); }
.msk[data-direction="T"] .m-days { display: grid; grid-auto-flow: column; grid-auto-columns: max(44px, calc((100% - 6 * 3px) / 7)); gap: 3px; }
.msk[data-direction="T"] .m-day { min-height: 66px; padding: 6px 0 0; border-radius: var(--r-sm); border-width: 1px; overflow: hidden; gap: 4px; }
.msk[data-direction="T"] .m-dtop, .msk[data-direction="T"] .m-dwin { display: none; }
.msk[data-direction="T"] .m-dshort { display: block; font: 600 11px var(--font-num); text-transform: uppercase; color: var(--ink-2); }
.msk[data-direction="T"] .m-dnum { font-size: 18px; }
.msk[data-direction="T"] .m-dbar { display: block; align-self: stretch; height: 6px; margin-top: auto; background: var(--line-2); position: relative; }
.msk[data-direction="T"] .m-dbar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--share, 0)); }
.msk[data-direction="T"] .m-day[aria-current="true"] { background: #111214; border-color: #111214; color: #fff; }
.msk[data-direction="T"] .m-day[aria-current="true"] .m-dshort { color: #C9CBD1; }
.msk[data-direction="T"] .m-day[aria-current="true"] .m-dbar::after { background: #fff; }
.msk[data-direction="T"] .m-days-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.msk[data-direction="P"] .m-day { flex-basis: 64px; min-height: 64px; border: 0; border-radius: 20px; background: var(--surface-2); }
.msk[data-direction="P"] .m-dwin { display: none; }
.msk[data-direction="P"] .m-dnum { font-family: var(--font-head); font-weight: 800; }
.msk[data-direction="P"] .m-day[aria-current="true"] { background: var(--accent); color: var(--on-accent); }

/* --- слоты ------------------------------------------------------------------- */
.m-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; transition: opacity .2s; }
.m-slots.is-loading { opacity: .5; pointer-events: none; }
.m-thead { display: none; }
.m-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 8px 4px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; text-align: center; }
.m-slot .tm { font-size: 17px; font-weight: 700; }
.m-slot .lb { font-size: 12px; color: var(--ink-2); }
.m-slot .frac { display: none; }
.m-slot .cells { display: flex; gap: 3px; }
.m-slot .cells i { width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.m-slot .cells i.on { background: var(--accent); }
.m-slot.busy { border-style: dashed; background: transparent; color: var(--ink-2); }
.m-slot.busy .tm { font-weight: 500; }
.m-slot[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.m-slot[aria-current="true"] .lb { color: var(--on-accent); }
.m-slot[aria-current="true"] .cells i { background: rgb(0 0 0 / 22%); }
.m-slot[aria-current="true"] .cells i.on { background: var(--on-accent); }
.msk[data-direction="G"] .m-slot .lb { display: none; }
.msk[data-direction="G"] .m-slot.busy .lb { display: block; }
.msk[data-direction="G"] .m-slot .tm { font-family: var(--font-num); }
.m-legend { margin-top: 10px; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.m-legend-free, .m-legend-busy { display: none; }

/* Табло: таблица «ВРЕМЯ | Б1 | Б2 | Б3 | СВОБОДНО» */
.msk[data-direction="T"] .m-slots { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.msk[data-direction="T"] .m-thead, .msk[data-direction="T"] .m-slot { display: grid; grid-template-columns: 70px 1fr 88px; align-items: center; gap: 8px; padding: 0 12px; }
.msk[data-direction="T"] .m-thead { min-height: 34px; background: var(--surface-2); font: 600 11px var(--font-num); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.msk[data-direction="T"] .m-thead > span:last-child { text-align: right; }
.m-tres { display: flex; gap: 6px; }
.m-tres span { width: 28px; text-align: center; }
.msk[data-direction="T"] .m-slot { min-height: 48px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: none; text-align: left; }
.msk[data-direction="T"] .m-slot .tm { font-size: 17px; }
.msk[data-direction="T"] .m-slot .cells { gap: 6px; }
.msk[data-direction="T"] .m-slot .cells i { width: 28px; height: 20px; border-radius: 2px; background: repeating-linear-gradient(135deg, #D2D1CB 0 2px, transparent 2px 6px); border: 1px solid var(--line); }
.msk[data-direction="T"] .m-slot .cells i.on { background: var(--accent-soft); border-color: var(--accent); }
.msk[data-direction="T"] .m-slot .lb { display: none; text-align: right; font: 600 12px var(--font-num); text-transform: uppercase; letter-spacing: .06em; }
.msk[data-direction="T"] .m-slot .frac { display: block; text-align: right; font-size: 13px; color: var(--ink-2); }
.msk[data-direction="T"] .m-slot.busy .tm { text-decoration: line-through; color: var(--ink-2); }
.msk[data-direction="T"] .m-slot.busy .lb { display: block; color: var(--ink-2); }
.msk[data-direction="T"] .m-slot[aria-current="true"] { background: #111214; color: #fff; }
.msk[data-direction="T"] .m-slot[aria-current="true"] .cells i { background: repeating-linear-gradient(135deg, #3A3C41 0 2px, transparent 2px 6px); border-color: #3A3C41; }
.msk[data-direction="T"] .m-slot[aria-current="true"] .cells i.on { background: #fff; border-color: #fff; }
.msk[data-direction="T"] .m-slot[aria-current="true"] .frac { display: none; }
.msk[data-direction="T"] .m-slot[aria-current="true"] .lb { display: block; color: #fff; }
.msk[data-direction="T"] .m-legend-free, .msk[data-direction="T"] .m-legend-busy { display: inline-flex; align-items: center; gap: 6px; }
.msk[data-direction="T"] .m-legend-free::before, .msk[data-direction="T"] .m-legend-busy::before { content: ""; width: 20px; height: 14px; border-radius: 2px; }
.msk[data-direction="T"] .m-legend-free::before { background: var(--accent-soft); border: 1px solid var(--accent); }
.msk[data-direction="T"] .m-legend-busy::before { background: repeating-linear-gradient(135deg, #D2D1CB 0 2px, transparent 2px 6px); border: 1px solid var(--line); }
.msk[data-direction="T"] .m-legend-sel { display: none; }

/* Пена: мягкие ячейки с подписью «2 бокса» / «последний бокс» */
.msk[data-direction="P"] .m-slot { min-height: 66px; border-radius: 18px; border-width: 2px; }
.msk[data-direction="P"] .m-slot .cells { display: none; }
.msk[data-direction="P"] .m-slot .tm { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.msk[data-direction="P"] .m-slot.last .lb { color: var(--last); font-weight: 600; }
.msk[data-direction="P"] .m-legend { display: none; }

/* --- контакты клиента и согласия ------------------------------------------------ */
.fields { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.fld input, .fld select, .qb-select select { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16px var(--font-body); color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: var(--r-sm); }
.msk[data-direction="P"] .fld input { border-radius: 16px; }
.fld input::placeholder { color: var(--ink-2); opacity: .8; }
.fld .hint { font-size: 13px; color: var(--ink-2); }
.fld-err { font-size: 13px; color: var(--danger); font-weight: 600; }
.fld.bad input, .fld.bad .phone { border-color: var(--danger); }
.phone { display: flex; align-items: stretch; border: 1.5px solid var(--field-line); border-radius: var(--r-sm); background: var(--field-bg); overflow: hidden; }
.msk[data-direction="P"] .phone { border-radius: 16px; }
.phone span { display: grid; place-items: center; padding: 0 12px; font: 600 16px var(--font-num); color: var(--ink-3); background: var(--surface-2); border-right: 1px solid var(--field-line); }
.phone input { border: 0 !important; border-radius: 0 !important; background: transparent; min-width: 0; }
.consents { display: flex; flex-direction: column; gap: 10px; }
.consent { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.consent.bad { border-color: var(--warn); box-shadow: 0 0 0 2px color-mix(in oklch, var(--warn) 30%, transparent); }
.c-body { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.c-meta a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; padding: 0 2px; color: var(--accent); font-weight: 600; }
.c-tag { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 12px; }
.consent.req .c-tag { background: var(--accent-soft); color: var(--ink); }
.msk[data-direction="T"] .c-tag { border-radius: 2px; font: 600 11px var(--font-num); letter-spacing: .08em; text-transform: uppercase; }
.consent-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }
.consent-warn[hidden] { display: none; }
.msk[data-direction="G"] .c-meta a, .msk[data-direction="G"] .consent-warn { color: var(--warn); }
.msk[data-direction="G"] .c-meta a { color: var(--accent); }

/* --- нижняя плашка ------------------------------------------------------------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 560px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: var(--bar-bg); color: var(--bar-ink); border-top: 1px solid var(--line); }
.bar-sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bar-sum span { font-size: 13px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-sum strong { font-size: 16px; }
.msk[data-direction="T"] .bar { border-top: 0; }
.msk[data-direction="P"] .bar { left: 12px; right: 12px; bottom: 12px; flex-direction: row; align-items: center; padding: 10px 10px 10px 18px; border: 0; border-radius: 28px; box-shadow: var(--shadow); max-width: 536px; margin-bottom: env(safe-area-inset-bottom); }
.msk[data-direction="P"] .bar-sum { flex: 1; min-width: 0; }
.msk[data-direction="P"] .bar-sum span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.3; }
.msk[data-direction="P"] .bar .cta-time { display: none; }  /* время уже слева крупно — на кнопке просто «Записаться» */
.msk[data-direction="P"] .bar-sum strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.msk[data-direction="P"] .bar .btn-block { width: auto; flex-shrink: 0; padding: 0 20px; }

/* --- кнопки ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r-btn); border: 1.5px solid transparent; font: 600 16px var(--font-body); text-decoration: none; cursor: pointer; background: var(--surface); color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-block, .wide { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost { background: none; color: var(--accent); }
.btn-danger { background: none; color: var(--danger); border-color: color-mix(in oklch, var(--danger) 50%, transparent); }
.btn-sm { min-height: 44px; font-size: 14px; padding: 0 12px; }
.msk[data-direction="T"] .btn { font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }

/* --- заметки и состояния -------------------------------------------------------- */
.note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; }
.note.err { background: color-mix(in oklch, var(--danger) 14%, var(--bg)); color: var(--ink); border: 1px solid color-mix(in oklch, var(--danger) 45%, transparent); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.alts a { display: inline-flex; flex-direction: column; align-items: center; min-width: 88px; min-height: 52px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--accent); text-decoration: none; font-size: 12px; }
.alts a .num { font-size: 17px; font-weight: 700; }
.empty { margin-top: 14px; color: var(--ink-2); }
.empty a { color: var(--accent); font-weight: 600; }
.m-card, .booking-off { margin-top: 20px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.offline { position: fixed; left: 12px; right: 12px; bottom: 150px; z-index: 30; max-width: 536px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.offline[hidden] { display: none; }
.offline button { margin-left: auto; min-height: 44px; background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* --- контакты бизнеса (public/_contacts.html) ------------------------------------ */
.contacts { margin-top: 32px; padding: 18px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.contacts h2 { font-size: 18px; }
.contact-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.cbtn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.cbtn-main { grid-column: 1 / -1; background: var(--accent-soft); }
.cbtn span { display: flex; flex-direction: column; }
.cbtn small { font-weight: 400; color: var(--ink-2); }
.contact-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-row > svg { color: var(--accent); margin-top: 2px; }
.contact-row .grow { flex: 1; }
.week { margin: 0; display: grid; gap: 4px; flex: 1; font-size: 14px; }
.week div { display: flex; justify-content: space-between; gap: 12px; }
.week dt { color: var(--ink-2); }
.week dd { margin: 0; }
.week .is-today { font-weight: 700; }
.contact-extra { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 0; color: var(--ink); text-decoration: none; font: 600 14px var(--font-body); cursor: pointer; }
.chip[hidden] { display: none; }
.ios-hint { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.ios-hint[hidden] { display: none; }

/* --- подвал ------------------------------------------------------------------- */
.footer { max-width: 560px; margin: 0 auto; padding: 20px 16px 150px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-2); }
.footer .langs { display: flex; gap: 4px; }
.footer .langs a { justify-content: center; }
.footer .langs a[aria-current="true"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* --- второстепенные страницы: верхняя строка, подтверждение, перенос, согласия, документы --- */
.m-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.msk[data-direction="T"] .m-topbar { background: #111214; color: #fff; }
.msk[data-direction="T"] .m-topbar .m-call { border-color: #fff; color: #fff; }
.m-topbar-name { display: flex; align-items: center; gap: 10px; font: 700 16px var(--font-head); text-decoration: none; min-height: 44px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.ok-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 8px; }
.ok-hero h1 { font-size: 24px; }
.ok-hero p { color: var(--ink-2); }
.ok-hero .circle { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.ok-hero.cancelled .circle { background: var(--surface-2); color: var(--ink-2); }
.card { margin-top: 14px; padding: 6px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.card-row:last-child { border-bottom: 0; }
.card-row > svg { color: var(--accent); margin-top: 2px; }
.card-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-row span { color: var(--ink-2); font-size: 14px; }
.card-row a { color: var(--accent); font-weight: 600; font-size: 14px; }
.when { font-family: var(--font-num); }
.consent-card { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions form { flex: 1 1 100%; display: flex; }
.actions form .btn { flex: 1; }
.actions .btn:not(.wide) { flex: 1 1 140px; }
.save-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 14px; border-radius: var(--r); background: var(--accent-soft); }
.save-app div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; font-size: 14px; }
.save-app .btn { flex: 1 1 100%; }  /* кнопка — отдельной строкой: текст не сжимается в узкую колонку */
.small-print { margin-top: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.small-print + .small-print { margin-top: 6px; }
.small-print a { color: var(--accent); }
.prose { padding-top: 12px; padding-bottom: 24px; font-size: 15.5px; line-height: 1.55; }
.prose h1 { font-size: 24px; margin: 8px 0 6px; }
.prose h2 { font-size: 17px; margin: 20px 0 6px; }
.prose p { margin: 0 0 10px; }
.prose a { color: var(--accent); }
/* перенос записи (public/reschedule.html) — прежние классы, московские формы */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 64px; min-height: 64px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; }
.day .top { font-size: 12px; color: var(--ink-2); }
.day .dn { font: 700 18px var(--font-num); }
.day[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day[aria-current="true"] .top { color: var(--on-accent); }
.slots-head { padding: 16px 16px 0; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
.slot { display: grid; place-items: center; min-height: 56px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); font: 700 17px var(--font-num); color: var(--ink); cursor: pointer; }
.slot.busy { border-style: dashed; background: none; color: var(--ink-2); font-weight: 500; }

/* --- экран B: после пропущенного звонка (public/quick.html) ---------------------------- */
.quick { padding: 0 16px; }
.qb-hero { display: flex; gap: 14px; align-items: flex-start; padding: 20px 0 6px; }
.qb-seal { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.qb-hero h1 { font-size: 22px; }
.qb-hero p { margin-top: 6px; color: var(--ink-2); }
.qb-service { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.qb-service label { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.qb-slots { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.qb-slot { position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line); cursor: pointer; }
.qb-slot input { position: absolute; opacity: 0; pointer-events: none; }
.qb-when { display: flex; flex-direction: column; flex: 1; }
.qb-when b { font: 700 24px var(--font-num); }
.qb-when span { color: var(--ink-2); font-size: 14px; }
.qb-free { font-size: 13px; color: var(--ink-2); }
.qb-tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); color: transparent; }
.qb-slot:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.qb-slot:has(input:checked) .qb-tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.qb-slot:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.qb-other { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.qb-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.qb-phone { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.qb-phone strong { margin-left: auto; }
.qb-ok { color: var(--ok-ink); }
.msk[data-direction="T"] .qb-ok { color: #1F9A5B; }

/* --- анимации (сдержанно; всё выключается при «уменьшить движение») ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: m-rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
  .bar-in { animation: m-rise .6s cubic-bezier(.2, .7, .2, 1) .3s both; }
  body.no-anim .rise, body.no-anim .bar-in { animation: none; }
  .pulse { animation: m-pulse 2s ease-out infinite; }
  .tap { transition: background-color .18s, border-color .18s, color .18s, transform .12s; }
  .tap:active { transform: scale(.97); }
  .m-svc[aria-current="true"], .m-day[aria-current="true"], .m-slot[aria-current="true"] { animation: m-pop .28s ease-out; }
  /* Глянец: блик по активной кнопке */
  .msk[data-direction="G"] .shine { position: relative; overflow: hidden; }
  .msk[data-direction="G"] .shine:not([disabled]):not([aria-disabled="true"])::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; background: rgb(255 255 255 / 35%); transform: skewX(-20deg); animation: m-shine 3.6s ease-in-out 1s infinite; }
  /* Табло: название «перелистывается», полоски дней заполняются */
  .msk[data-direction="T"] .m-title { animation: m-flip .45s ease-out both; transform-origin: 50% 0; }
  .msk[data-direction="T"] .m-dbar::after { animation: m-fill .7s ease-out .35s both; }
  /* Пена: пузыри покачиваются, галочка выпрыгивает */
  .bubble { animation: m-float var(--p, 4.5s) ease-in-out infinite alternate; }
  .bubble.b1 { --p: 3.5s; } .bubble.b2 { --p: 5s; animation-delay: -1s; } .bubble.b3 { --p: 6s; animation-delay: -2s; } .bubble.b4 { --p: 4.2s; animation-delay: -.5s; }
  .msk[data-direction="P"] .m-svc[aria-current="true"] .m-check svg { animation: m-jump .4s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes m-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes m-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes m-shine { 0% { left: -40%; } 30%, 100% { left: 130%; } }
@keyframes m-flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes m-fill { from { transform: scaleX(0); } to { transform: scaleX(var(--share, 0)); } }
@keyframes m-float { from { transform: translateY(-4.5px); } to { transform: translateY(4.5px); } }
@keyframes m-jump { from { transform: scale(0); } to { transform: scale(1); } }

/* --- десктоп: та же колонка, чуть просторнее -------------------------------------------- */
@media (min-width: 900px) {
  .bp-wrap { padding-top: 24px; }
  .m-title { font-size: 32px; }
  .msk[data-direction="P"] .m-photo { border-radius: 28px; margin: 0; }
  .msk[data-direction="T"] .m-head-main, .msk[data-direction="T"] .m-info, .msk[data-direction="T"] .m-promise { margin: 0; }
}

/* --- онлайн-очередь (мойки): живой статус, форма, талон -------------------------------------------- */
.m-live { margin-top: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.m-live .m-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.m-live-row { display: flex; align-items: center; gap: 12px; }
.m-live-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-live-text b { font: 700 20px/1.2 var(--font-head); }
.m-live-text span { color: var(--ink-2); font-size: 14px; }
.m-live-text span:empty { display: none; }
.m-live-dot { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; background: var(--ink-2); }
.m-live-dot.free { background: #2FBF71; box-shadow: 0 0 0 4px color-mix(in oklch, #2FBF71 25%, transparent); }
.m-live-dot.busy { background: #F0A43A; box-shadow: 0 0 0 4px color-mix(in oklch, #F0A43A 25%, transparent); }
.m-live-note { font-size: 13px; color: var(--ink-2); }
.m-live-inline { margin: 4px 0 16px; }
.msk[data-direction="T"] .m-live { border-radius: 0; margin: 0 -16px; border-width: 0 0 1px; }
.msk[data-direction="T"] .m-live-text b { font-family: var(--font-num); text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }
.msk[data-direction="P"] .m-live { border: 0; box-shadow: 0 2px 10px rgb(13 43 51 / 6%); }
.q-page { padding-bottom: 24px; }
.q-services { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.q-services legend { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.q-svc { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.q-svc input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.q-svc:has(input:checked) { border-color: var(--accent); background: var(--sel-bg, var(--accent-soft)); }
.q-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; padding: 22px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); text-align: center; }
.q-label { font-size: 13px; color: var(--ink-2); }
.q-number { font: 800 56px/1 var(--font-num); letter-spacing: -.02em; }
.q-meta { color: var(--ink-2); font-size: 14px; }
.q-called { border-color: var(--accent); background: var(--accent-soft); }
.q-done { opacity: .9; }
.q-gift { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 14px; }
.q-state { margin-top: 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.q-state h2 { font-size: 20px; }
.q-state p { color: var(--ink-2); font-size: 14.5px; }
.q-loyalty { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-weight: 600; }
.q-loyalty small { color: var(--ink-2); font-weight: 400; }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.q-dots i.on { background: var(--accent); }
.q-fb { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.q-fb h2 { font-size: 18px; }
.q-fb-row { display: flex; }
.q-fb-row .btn { flex: 1; }
.q-fb-form { display: flex; flex-direction: column; gap: 8px; }
.q-fb-form label { font-size: 14px; color: var(--ink-3); }
.q-fb-form textarea { width: 100%; min-height: 88px; padding: 12px; font: 16px var(--font-body); color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: var(--r-sm); }
.q-state form { margin-top: 6px; }
.q-here-ok { display: inline-flex; align-self: center; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; font-size: 14px; }
.q-early { font-weight: 600; color: var(--ink) !important; }
.q-small { font-size: 13px; color: var(--ink-2); text-align: center; }
.q-promise { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; color: var(--ink-3, var(--ink)); }
.q-promise .i { flex-shrink: 0; margin-top: 1px; }
.q-rules { margin-top: 18px; padding: 6px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; }
.q-rules summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; list-style: none; }
.q-rules summary::-webkit-details-marker { display: none; }
.q-rules ol { margin: 8px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); line-height: 1.4; }
.q-loyal { border-radius: var(--r); border: 1.5px dashed var(--line); padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; }
.q-loyal summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; list-style: none; }
.q-loyal summary::-webkit-details-marker { display: none; }
.q-loyal[open] { gap: 12px; }
.q-loyal[open] > .fld { margin-top: 10px; }

/* --- каталог «Автомойки Москвы без очереди» ------------------------------------------------------- */
.c-search { display: flex; gap: 8px; margin: 18px 0 12px; }
.c-search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; font: 16px var(--font-body); color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: var(--r-sm); }
.c-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.c-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; }
.c-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.c-top > b { font: 700 17px var(--font-head); overflow-wrap: anywhere; }
.c-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.c-status .m-live-dot { width: 10px; height: 10px; }
.msk .btn > .cta-time { margin-left: -4px; }  /* «Записаться на 15:30» — без широкого зазора от gap кнопки */

/* Витрина вне РФ: имя и телефон на демо подставлены (DEMO_NO_PD) */
.demo-pd { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg, #e7f6ee); color: var(--ok-ink, #145c36); font-size: 14px; line-height: 1.4; }
.demo-pd .i { flex-shrink: 0; margin-top: 1px; }

/* страница 404 (templates/404.html) */
.err-page { min-height: 100vh; max-width: 480px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.err-code { font: 800 72px/1 var(--font-num); color: var(--accent); }
.err-page h1 { font-size: 28px; }

/* длинный день (круглосуточно): переключатель частей суток над сеткой времени (static/js/page.js → dayParts) */
.m-slot[hidden] { display: none !important; }
.m-parts { display: flex; gap: 6px; margin: 4px 0 12px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.m-part { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 4px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 600 14px var(--font-body); cursor: pointer; }
.m-part small { font-size: 11px; font-weight: 700; }
.m-part[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.m-part:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
