/* Общий CSS витрины (PUB-20 / ARC-20). Источник один: этот файл;
   метка-заполнитель (маркер в src/infra/showcase-css.js) заменяется сгенерированной прелюдией токенов
   (tokens/nasta-web-tokens.css → src/infra/tokens.gen.js) при сборке и
   при inline-фолбэке без dist — см. src/infra/showcase-css.js.
   Постраничные блоки (места, карта, форма обращения) живут в своих
   шаблонах: у них пересекаются имена селекторов (.chips), и складывать их
   в один файл значило бы менять каскад чужой страницы. */
/* nasta-tokens:begin — сгенерировано из tokens/nasta-web-tokens.css (ARC-16); не править здесь */
:root{--nasta-graphite:#0C0E11;--nasta-surface-1:#14171C;--nasta-surface-2:#1B1F26;--nasta-border:#262C35;--nasta-offwhite:#EEF1F5;--nasta-light-bg:#F3F3EF;--nasta-white:#FFFFFF;--nasta-light-border:#D9DCD3;--nasta-lime-light:#C8F542;--nasta-accent:#C8F542;--nasta-lime-mid:#8FBF28;--nasta-gradient:linear-gradient(135deg,#C8F542 0%,#C8F542 20%,#8FBF28 52%,#334116 100%);--nasta-gradient-darkuse:linear-gradient(135deg,#C8F542 0%,#C8F542 20%,#8FBF28 52%,#6B861F 100%);--nw-radius-sm:8px;--nw-radius-md:12px;--nw-radius-lg:16px;--nw-radius-xl:20px;--nw-radius-pill:999px;--nw-space-1:4px;--nw-space-2:8px;--nw-space-3:12px;--nw-space-4:16px;--nw-space-5:24px;--nw-space-6:32px;--nw-space-7:48px;--nw-space-8:64px;--nw-font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--nw-touch:44px;--nw-motion-fast:.15s;--nw-motion:.22s;--nw-motion-slow:.25s;--nw-wo-draft:#5A6673;--nw-wo-confirmed:#0B6BCB;--nw-wo-in-progress:#8A5A00;--nw-wo-blocked:#A11D1D;--nw-wo-ready:#1B6B2F;--nw-wo-issued:#1B6B2F;--nw-wo-cancelled:#5A6673;--noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");--radius-sm:var(--nw-radius-sm);--radius-md:var(--nw-radius-md);--radius-lg:var(--nw-radius-lg);--brand-gradient:var(--nasta-gradient);--nw-bg:#F3F3EF;--nw-surface:#FFFFFF;--nw-surface-2:#F7F7F3;--nw-border:#D9DCD3;--nw-surface-raised:#FFFFFF;--nw-text:#0C0E11;--nw-text-muted:#5D635B;--nw-border-control:#73796F;--nw-accent-fill:#C8F542;--nw-accent-ink:#131803;--nw-accent-text:#3F6212;--nw-accent-soft:#EDF7D6;--nw-hover:#E9EBE4;--nw-pressed:#DDE0D7;--nw-disabled-bg:#E7E8E2;--nw-disabled-text:#747A70;--nw-danger-fill:#B91C1C;--nw-danger-text:#B91C1C;--nw-success-text:#166534;--nw-warning-text:#92400E;--nw-shadow:0 1px 2px rgba(12,14,17,.035),0 14px 34px -22px rgba(12,14,17,.22);--nw-focus:#3F6212;--nw-success-soft:#DCFCE7;--nw-warning-soft:#FEF3C7;--nw-danger-soft:#FEE2E2;--nw-neutral-soft:#E7E9E2;--nw-info-soft:#DBEAFE;--nw-neutral-text:#475569;--nw-info-text:#1E40AF;--bg:var(--nw-bg);--surface:var(--nw-surface);--surface-2:var(--nw-surface-2);--border:var(--nw-border);--border-control:var(--nw-border-control);--text:var(--nw-text);--accent:var(--nw-accent-fill);--accent-ink:var(--nw-accent-ink);--shadow:var(--nw-shadow);--danger-strong:var(--nw-danger-fill);}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--nw-bg:#0C0E11;--nw-surface:#14171C;--nw-surface-2:#1B1F26;--nw-border:#262C35;--nw-surface-raised:#1B1F26;--nw-hover:rgba(255,255,255,.06);--nw-pressed:rgba(255,255,255,.10);--nw-disabled-bg:#1B1F26;--nw-disabled-text:#66717E;--nw-text:#EEF1F5;--nw-text-muted:#8A94A2;--nw-border-control:#66727F;--nw-accent-fill:#C8F542;--nw-accent-ink:#141A08;--nw-accent-text:#A8E10C;--nw-accent-soft:rgba(200,245,66,.12);--nw-danger-fill:#F87171;--nw-danger-text:#F87171;--nw-success-text:#4ADE80;--nw-warning-text:#FBBF24;--nw-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 40px -20px rgba(0,0,0,.8);--nw-focus:#EEF1F5;--nw-success-soft:rgba(74,222,128,.14);--nw-warning-soft:rgba(251,191,36,.14);--nw-danger-soft:rgba(248,113,113,.14);--nw-neutral-soft:rgba(169,180,194,.14);--nw-info-soft:rgba(147,197,253,.14);--nw-neutral-text:#A9B4C2;--nw-info-text:#93C5FD;--bg:var(--nw-bg);--surface:var(--nw-surface);--surface-2:var(--nw-surface-2);--border:var(--nw-border);--border-control:var(--nw-border-control);--text:var(--nw-text);--accent:var(--nw-accent-fill);--accent-ink:var(--nw-accent-ink);--shadow:var(--nw-shadow);--danger-strong:var(--nw-danger-fill);}}
:root[data-theme="dark"]{--nw-bg:#0C0E11;--nw-surface:#14171C;--nw-surface-2:#1B1F26;--nw-border:#262C35;--nw-surface-raised:#1B1F26;--nw-hover:rgba(255,255,255,.06);--nw-pressed:rgba(255,255,255,.10);--nw-disabled-bg:#1B1F26;--nw-disabled-text:#66717E;--nw-text:#EEF1F5;--nw-text-muted:#8A94A2;--nw-border-control:#66727F;--nw-accent-fill:#C8F542;--nw-accent-ink:#141A08;--nw-accent-text:#A8E10C;--nw-accent-soft:rgba(200,245,66,.12);--nw-danger-fill:#F87171;--nw-danger-text:#F87171;--nw-success-text:#4ADE80;--nw-warning-text:#FBBF24;--nw-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 40px -20px rgba(0,0,0,.8);--nw-focus:#EEF1F5;--nw-success-soft:rgba(74,222,128,.14);--nw-warning-soft:rgba(251,191,36,.14);--nw-danger-soft:rgba(248,113,113,.14);--nw-neutral-soft:rgba(169,180,194,.14);--nw-info-soft:rgba(147,197,253,.14);--nw-neutral-text:#A9B4C2;--nw-info-text:#93C5FD;--bg:var(--nw-bg);--surface:var(--nw-surface);--surface-2:var(--nw-surface-2);--border:var(--nw-border);--border-control:var(--nw-border-control);--text:var(--nw-text);--accent:var(--nw-accent-fill);--accent-ink:var(--nw-accent-ink);--shadow:var(--nw-shadow);--danger-strong:var(--nw-danger-fill);}
/* nasta-tokens:end */
  :root {
    color-scheme: light dark;
    /* VISUAL-QA-01: 4.45→~5.3:1 на светлом — витрина соло-студии жила
       своим --muted; чек матрицы ловил .nav/.sub/.crumbs на грани AA.
       GFX-REFRESH v1 (2026-11-09): базовые роли — через прелюдию токенов
       выше (источник #F3F3EF/#F7F7F3/#D9DCD3/#5D635B/#C8F542/#EDF7D6);
       паритет значений с источником гоняет
       tests/tokens-parity.test.js. */
    --accent:var(--nw-accent-fill); --accent-ink:var(--nw-accent-ink); --text:var(--nw-text); --muted:var(--nw-text-muted);
    --accent-strong:var(--nw-accent-text); --accent-soft:var(--nw-accent-soft);
    --border:var(--nw-border); --surface:var(--nw-surface); --surface-2:var(--nw-surface-2); --bg:var(--nw-bg);
    --sbar-bg:rgba(255,255,255,.94);
    --chip-open-bg:#E9F8D4; --chip-open-tx:#2C5406;
    --chip-closed-bg:#EEF1F5; --chip-closed-tx:#4A5563;
    --warn-soft:#FFFBE6; --warn-border:#F5D97A; --warn-text:#574A12;
    --ssr-sbar-dark:rgba(12,14,17,.92);
    --ssr-open-dark-bg:rgba(200,245,66,.16); --ssr-open-dark-text:var(--nw-accent-fill);
    --ssr-closed-dark-bg:rgba(138,148,162,.16); --ssr-closed-dark-text:#A9B4C2;
    --ssr-warn-dark-bg:rgba(251,191,36,.12); --ssr-warn-dark-border:rgba(251,191,36,.4);
    --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  }
  /* Public status colours supplement the common light/dark tokens. */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --sbar-bg:var(--ssr-sbar-dark);
      --chip-open-bg:var(--ssr-open-dark-bg); --chip-open-tx:var(--ssr-open-dark-text);
      --chip-closed-bg:var(--ssr-closed-dark-bg); --chip-closed-tx:var(--ssr-closed-dark-text);
      --warn-soft:var(--ssr-warn-dark-bg); --warn-border:var(--ssr-warn-dark-border); --warn-text:var(--nw-warning-text);
    }
  }
  :root[data-theme="light"] { color-scheme:light; }
  :root[data-theme="dark"] {
    color-scheme:dark;
    --sbar-bg:var(--ssr-sbar-dark);
    --chip-open-bg:var(--ssr-open-dark-bg); --chip-open-tx:var(--ssr-open-dark-text);
    --chip-closed-bg:var(--ssr-closed-dark-bg); --chip-closed-tx:var(--ssr-closed-dark-text);
    --warn-soft:var(--ssr-warn-dark-bg); --warn-border:var(--ssr-warn-dark-border); --warn-text:var(--nw-warning-text);
  }
  :root[data-theme="dark"] .maplibregl-ctrl-attrib-button{filter:invert(1)}
  :root[data-theme="light"] .maplibregl-ctrl-attrib-button{filter:none}
  * { box-sizing:border-box; }
  body { font-family:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; margin:0;
         background:var(--bg); color:var(--text); }
  .wrap { max-width:560px; margin:0 auto; padding:18px 16px calc(88px + env(safe-area-inset-bottom)); }
  /* Карта (2.3.2): 560px — ширина карточки, а не карты; на десктопе полотно
     должно занимать экран, на телефоне остаётся полноширинным (max-width). */
  .wrap-wide { max-width:1100px; }
  h1 { font-size:24px; margin:6px 0 4px; letter-spacing:-.02em; }
  .sub { color:var(--muted); font-size:14px; margin-bottom:14px; }
  /* 2.8.1: публичная карточка каталога — лого, описание, галерея, график. */
  .place-head { display:flex; gap:14px; align-items:center; }
  .place-logo { width:64px; height:64px; border-radius:16px; object-fit:cover;
                border:1px solid var(--border); background:var(--surface); flex-shrink:0; }
  .desc { font-size:15px; line-height:1.45; margin:0 0 12px; white-space:pre-line; }
  /* UX-4: галерея — горизонтальная полоса со snap-прокруткой (одно фото —
     один жест); сетка 3-в-ряд прятала хвост за сгилом. Битые URL скрывает
     onerror на самом img — [hidden] здесь обязателен: у img есть свой
     display из замены (object-fit), атрибут должен выигрывать. */
  .gallery { display:flex; gap:8px; margin:0 0 10px; overflow-x:auto;
             scroll-snap-type:x mandatory; scrollbar-width:thin; }
  /* width, а не flex-basis: процент внутри min() в flex-basis браузер не
     резолвит (спека — fallback на content) и фото рендерилось натуральной
     шириной вместо ~72% полосы (поймано живым прогоном UX-4) */
  .gallery-photo { flex:none; width:min(72%, 320px); height:auto; aspect-ratio:4/3; object-fit:cover;
                   border-radius:12px; border:1px solid var(--border); background:var(--surface);
                   scroll-snap-align:center; }
  .gallery-photo[hidden] { display:none; }
  /* UX-2 (25.10): иконка в чипе-ссылке (наследует цвет чипа, включая chip-on) */
  .chip-ico { display:inline-flex; flex:0 0 auto; }
  .chip-ico svg { width:16px; height:16px; }
  /* UX-2: бейдж «Онлайн-запись» — только у СТО с реально работающей записью;
     контраст --accent-strong на --accent-soft ≈ 5.9:1 (светлое) / 10.5:1 (тёмное) */
  .badge-book { display:inline-flex; align-items:center; gap:4px; white-space:nowrap;
                background:var(--accent-soft); color:var(--accent-strong);
                border-radius:999px; padding:3px 9px; font-size:11.5px; font-weight:700;
                letter-spacing:.01em; vertical-align:2px; }
  .badge-book svg { width:12px; height:12px; flex:0 0 auto; }
  .chip { display:inline-block; font-size:12px; font-weight:700; border-radius:999px; padding:3px 10px; }
  .chip-open { background:var(--chip-open-bg); color:var(--chip-open-tx); }
  .chip-closed { background:var(--chip-closed-bg); color:var(--chip-closed-tx); }
  .src-note { color:var(--muted); font-size:12px; margin:-4px 0 12px; padding:0 4px; }
  /* 27.10: «открытых источников» — ссылка внутри фразы, а не отдельная кнопка;
     цель ≥44px по высоте (UX-06), цвет наследуется от текста.
     V2/K5 (8.11, приём владельца): тап-зона 44px приёмом «padding + отрицательный
     margin» — hit-область растёт, высота строки не меняется (замеры Kimi:
     /places/ 320px 105→51, /data-sources/ 88→34, = reference). */
  .src-link { color:inherit; text-decoration:underline; text-decoration-color:currentColor;
              text-underline-offset:2px; display:inline-flex; align-items:center;
              min-width:44px; min-height:44px; padding:14px 8px; margin:-14px -8px; }
  .src-link:hover { text-decoration-thickness:2px; }
  .card { background:var(--surface); border:1px solid var(--border); border-radius:16px;
          padding:6px 16px; margin-bottom:10px; box-shadow:0 1px 2px rgba(16,24,40,.05),
          0 10px 28px -14px rgba(16,24,40,.18); }
  .item { display:flex; justify-content:space-between; align-items:center;
          flex-wrap:wrap; gap:14px; text-decoration:none; color:inherit; padding:13px 0;
          border-bottom:1px solid var(--border); }
  /* UX-ревизия 5.11: без wrap длинное имя (OpenStreetMap) переполняло строку
     поверх соседнего столбца на 320–390px — переполнение текста не ловится
     матрицей (overflow документа нулевой, текст уезжает внутри блока).
     С wrap описание уходит под имя только там, где не влезало рядом. */
  .item > span:first-child { min-width:0; padding-right:2px; }
  .item:last-child { border-bottom:0; }
  /* 2.8.1: ссылки в контактах наследуют цвет, но остаются подчёркнутыми: */
  /* браузерный синий выбивался из нейтральной карточки, а без подчёркивания */
  /* телефон/e-mail перестают читаться как действие. PUB-10: матрица меряет  */
  /* саму ссылку — цель ≥44px по обеим осям (UX-06), как у nap-links.        */
  .item b a { color:inherit; text-decoration:underline; text-decoration-color:rgba(17,20,26,.28);
              text-underline-offset:2px; display:inline-flex; align-items:center; min-height:44px; }
  .item b a:hover { text-decoration-color:currentColor; }
  /* 27.10: работы — группы свёрнуты (details/summary), видны только названия;
     список раскрывается по нажатию и работает без JS. */
  .wgroups { display:flex; flex-direction:column; gap:8px; margin-bottom:6px; }
  .wgroup { background:var(--surface); border:1px solid var(--border); border-radius:14px;
            padding:0 14px; box-shadow:0 1px 2px rgba(16,24,40,.04); }
  .wgroup summary { display:flex; align-items:center; gap:10px; min-height:48px;
                    list-style:none; cursor:pointer; font-weight:600; font-size:14.5px; }
  .wgroup summary::-webkit-details-marker, .wgroup summary::marker { display:none; content:''; }
  .wgroup summary:focus-visible { outline:2px solid var(--nw-focus); outline-offset:2px; border-radius:8px; }
  .wgroup summary::after { content:''; width:7px; height:7px; margin-left:auto; flex:none;
                           border-right:1.6px solid var(--muted); border-bottom:1.6px solid var(--muted);
                           transform:rotate(45deg) translateY(-2px); transition:transform .15s ease; }
  .wgroup[open] summary::after { transform:rotate(-135deg) translateY(-2px); }
  .wgroup-name { min-width:0; }
  .wgroup-n { color:var(--muted); font-size:12px; font-weight:600; }
  .wgroup-list { border-top:1px solid var(--border); padding:2px 0 10px; }
  .wrow { padding:7px 0; font-size:14.5px; border-bottom:1px solid var(--border); }
  .wrow:last-child { border-bottom:0; }
  /* 27.10: «ещё телефоны» — раскрытие внутри карточки контактов */
  .more summary { display:flex; align-items:center; min-height:44px; list-style:none;
                  cursor:pointer; color:var(--accent-strong); font-weight:600; font-size:14px; }
  .more summary::-webkit-details-marker, .more summary::marker { display:none; content:''; }
  .more summary:focus-visible { outline:2px solid var(--nw-focus); outline-offset:2px; border-radius:8px; }
  .more summary::after { content:''; width:6px; height:6px; margin-left:6px; flex:none;
                         border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
                         transform:rotate(45deg) translateY(-2px); transition:transform .15s ease; }
  .more[open] summary::after { transform:rotate(-135deg) translateY(-2px); }
  .more-list { display:flex; flex-direction:column; padding:0 0 8px; }
  .more-list a { color:var(--accent-strong); text-decoration:none; display:flex; align-items:center;
                 min-height:44px; font-weight:600; font-size:14px; }
  .more-list a:hover { text-decoration:underline; }
  .social-links { display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; justify-content:flex-end; }
  .social-sep { color:var(--muted); font-weight:400; }
  /* Юр-ссылка карточки (26.10): реквизиты живут на отдельной странице,
     здесь — заметный переход. Цель ≥44px по обеим осям (правило UX-06). */
  .legal-link { display:inline-flex; align-items:center; min-height:44px; flex:1;
                font-weight:600; color:var(--text); text-decoration:none; }
  .legal-link::after { content:'→'; margin-left:auto; padding-left:12px; color:var(--muted); }
  /* График — блоком: расписание из трёх-четырёх диапазонов не влезает */
  /* в правую колонку на 360–390px и рвётся по словам.               */
  .item-stack { flex-direction:column; align-items:flex-start; gap:4px; }
  .item-stack b { font-weight:600; }
  .price { font-family:var(--mono); color:var(--accent-ink); background:var(--accent);
           font-weight:700; white-space:nowrap; font-size:13px;
           padding:4px 11px; border-radius:999px; flex-shrink:0; }
  .mono { font-family:var(--mono); font-size:13px; }
  .actions { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 4px; }
  .actions .btn { display:flex; align-items:center; justify-content:center;
                  flex:1 1 auto; min-height:48px; margin-top:0; font-weight:700; }
  .btn { display:block; text-align:center; background:var(--accent); color:var(--accent-ink);
         border-radius:999px; padding:16px; font-weight:700; font-size:16px;
         text-decoration:none; margin-top:14px;
         /* UX-ревизия 5.11: у a.btn рамки нет, а у button.btn рисовалась UA-рамка
            и UA-шрифт — сброс делает кнопку-форму и кнопку-ссылку одинаковыми. */
         border:0; appearance:none; -webkit-appearance:none; font:inherit; }
  .btn.place-action-secondary { background:var(--surface); color:var(--text);
                                border:1px solid var(--border);
                                padding:10px 12px; min-height:44px; font-size:14px; font-weight:600; }
  .btn.place-action-secondary:hover { border-color:var(--accent-strong); }
  /* DRIVER-SLOTS-01 (этап 2): «Ближайшее время» — сетка 2×3, цели ≥44px;
     высота сетки зарезервирована, чипы острова не сдвигают вёрстку (CLS). */
  .place-windows { margin-top:14px; }
  /* Разбор 24.11, п.8: «Λ» из логотипа — знак записи (блок окон), а не фон */
  .place-windows .pw-head { font-size:15px; font-weight:700; margin:0 0 10px;
                            display:flex; align-items:center; gap:8px; }
  .place-windows .pw-head::before { content:""; flex:0 0 auto; width:12px; height:11px;
    background:var(--accent-strong); clip-path:polygon(50% 0, 100% 100%, 78% 100%, 50% 38%, 22% 100%, 0 100%); }
  .place-windows .pw-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px;
                            min-height:calc(3 * 44px + 2 * 8px); align-content:start; }
  .place-windows.pw-empty .pw-list { min-height:0; }
  .pw-chip { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px;
             padding:8px 10px; border:1px solid var(--border); border-radius:14px; background:var(--surface);
             color:var(--text); text-decoration:none; font-size:14px; }
  .pw-chip b { font-variant-numeric:tabular-nums; }
  .pw-chip:hover { border-color:var(--accent-strong); }
  .pw-chip.pw-all { color:var(--accent-strong); font-weight:600; }
  .place-windows .pw-note { margin-top:10px; }
  @media (max-width:600px){
    .actions .btn:not(.place-action-secondary){ flex-basis:100%; }
  }
  /* UX-06: цели нажатия ≥44px по обеим осям (матрица ловила 16–20px) */
  .nav a { color:var(--muted); font-size:13px; margin-right:6px;
           display:inline-flex; align-items:center; min-height:44px; padding:0 12px; }
  .crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:2px 0 10px;
            font-size:13px; color:var(--muted); }
  .crumbs a { color:var(--muted); text-decoration:none; padding:0 9px;
              display:inline-flex; align-items:center; min-height:44px; } /* UX-06; PUB-10: короткие крошки («СТО» 27px) — цель >=44 и по ширине */
  .crumbs a:hover { color:var(--text); text-decoration:underline; }
  .crumbs i { font-style:normal; color:var(--accent); }
  /* PUB-10 (UX-06): переключатель языков карточки — цель ≥44px по обеим осям
     (матрица place поймала «Рус/Бел» 27×44); текущий язык — без ссылки. */
  .lang-switch { font-size:13px; margin-top:3px; display:flex; align-items:center; flex-wrap:wrap; }
  .lang-switch a, .lang-cur { display:inline-flex; align-items:center; min-height:44px; padding:0 14px; }
  /* UX-ревизия 5.11: цвет не был задан — «Бел»/«Рус» рисовались браузерным
     дефолт-синим (палитровое правило «своих оттенков не вводить»). */
  .lang-switch a { color:var(--accent-strong); }
  .lang-cur { font-weight:600; }
  /* V2/K5 (8.11): та же механика тап-зон, что у .src-link */
  .sub a { color:var(--muted); display:inline-flex; align-items:center;
           min-width:44px; min-height:44px; padding:14px 8px; margin:-14px -8px; } /* UX-06 */
  .cat b { display:block; margin:12px 0 4px; font-size:14px; }
  .cat ul { margin:0; padding-left:18px; color:var(--muted); font-size:13.5px; }
  .cat li { margin:3px 0; }
  .h-sec { font-size:18px; margin:22px 0 10px; letter-spacing:-.01em; }
  /* UX-1 (25.10): hero стартовой — всегда тёмный графит с лайм-mesh.
     Бандинг (ступени 8-битных градиентов) снят двумя приёмами: градиенты
     многослойные с разными центрами, поверх — dithering-шум (feTurbulence,
     data-URI, mix-blend-mode:overlay), размывающий границы ступеней. */
  /* Разбор 24.11, п.9: hero витрины — по сцене (тема устройства), а не
     «тёмный по категории»: цвета из токенов, светлый днём, тёмный у тех,
     у кого тёмная система. Градиенты, шум и клин «Λ» сняты. */
  .hero-v2 { position:relative; overflow:hidden; border-radius:20px; margin:2px 0 6px;
             background:var(--surface); color:var(--text); border:1px solid var(--border); }
  .hero-in { position:relative; padding:26px 20px 24px; max-width:680px; }
  .hero-logo { height:24px; width:auto; display:block; margin-bottom:12px; }
  .hero-v2 h1 { color:var(--text); margin:0 0 6px; font-size:26px; }
  .hero-lede { color:var(--muted); font-size:15px; line-height:1.45; margin:0 0 14px; }
  .qsearch { display:flex; gap:8px; margin:0 0 12px; }
  .qsearch input { flex:1; min-width:0; min-height:48px; border-radius:12px;
    border:1px solid var(--border); background:var(--bg);
    color:var(--text); padding:0 14px; font:inherit; font-size:15px; }
  .qsearch input::placeholder { color:var(--muted); }
  .qsearch input:focus { outline:2px solid var(--nw-focus); outline-offset:1px; border-color:transparent; }
  .qsearch button { min-height:48px; min-width:48px; border-radius:12px; border:0;
    background:var(--accent); color:var(--accent-ink); display:flex; align-items:center;
    justify-content:center; cursor:pointer; }
  .qsearch button svg { width:20px; height:20px; }
  .hero-meta { display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--muted);
               font-size:13.5px; margin-bottom:6px; }
  .hero-hours { color:var(--accent-strong); font-weight:600; }
  .hero-actions { display:flex; gap:10px; margin-top:10px; }
  .hero-actions .btn { flex:1; margin-top:0; }
  .btn-ghost { display:flex; align-items:center; justify-content:center; min-height:50px;
    padding:0 18px; border-radius:999px; border:1px solid var(--border);
    color:var(--text); text-decoration:none; font-weight:600; font-size:16px; }
  .btn-ghost:hover { border-color:var(--accent-strong); color:var(--accent-strong); }
  /* колонка контента под hero: на широком экране (wrap-wide) читаемая мера */
  .home-rest { max-width:720px; }
  /* AI-SLOP-REVIEW P1: главная витрины — на ≥1000 px две колонки: слева hero
     и услуги, справа липкий блок «Ближайшее время» + контакты; нижняя
     панель там не нужна. На телефоне блок — сразу под hero. */
  .home-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:0 32px; }
  .home-aside { min-width:0; }
  .home-contact { padding:14px 16px; }
  .home-contact .btn { margin-top:12px; }
  .home-contact .btn.place-action-secondary { margin-top:8px; }
  @media (min-width:1000px) {
    .home-grid { grid-template-columns:minmax(0,1fr) 340px; grid-template-areas:"hero aside" "rest aside"; }
    .home-grid > .hero-v2 { grid-area:hero; }
    .home-grid > .home-rest { grid-area:rest; max-width:none; }
    .home-grid > .more-line { grid-column:1; }
    .home-aside { grid-area:aside; align-self:start; position:sticky; top:16px; margin-top:2px; }
    .home-aside .place-windows { margin-top:0; }
    /* одна главная кнопка на экране: «Записаться» — в правой колонке */
    .home-grid .hero-actions .btn { display:none; }
    .home-grid .hero-actions .btn-ghost { flex:0 0 auto; }
    body:has(.home-grid) .sbar { display:none; }
    body:has(.home-grid) .wrap { padding-bottom:32px; }
  }
  /* браузерные мелочи — из палитры, а не по умолчанию */
  /* :where — нулевая специфичность: меняем только цвет браузера по умолчанию,
     темизированные ссылки (футер, панели) сохраняют свой цвет и контраст */
  :where(.wrap a:not([class])) { color:var(--accent-strong); }
  ::selection { background:var(--accent); color:var(--accent-ink); }
  .wrap a:focus-visible, .wrap button:focus-visible, .wrap input:focus-visible { outline:3px solid var(--nw-focus); outline-offset:2px; }
  .cats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
               gap:10px; margin:0 0 8px; }
  .cat-card { display:flex; flex-direction:column; gap:5px; padding:16px;
    border-radius:16px; background:var(--surface); border:1px solid var(--border);
    text-decoration:none; color:inherit;
    box-shadow:0 1px 2px rgba(16,24,40,.05), 0 10px 28px -14px rgba(16,24,40,.18); }
  .cat-card:hover { border-color:var(--accent); }
  .cat-ico { width:42px; height:42px; border-radius:12px; display:flex;
    align-items:center; justify-content:center; margin-bottom:6px;
    background:var(--accent-soft); color:var(--accent-strong); }
  .cat-ico svg { width:24px; height:24px; }
  .cat-card b { font-size:16px; letter-spacing:-.01em; }
  .cat-hint { color:var(--muted); font-size:12.5px; line-height:1.35; }
  .cat-count { margin-top:6px; color:var(--accent-strong); font-size:12.5px; font-weight:600; }
  .more-line { margin:2px 0 4px; }
  .more-line a { color:var(--accent-strong); font-weight:600; text-decoration:none;
                 display:inline-flex; align-items:center; min-height:44px; }
  .more-line a:hover { text-decoration:underline; }
  @media (max-width:360px) {
    .sbar a { padding:11px 4px; font-size:13px; }
    .hero-in { padding:22px 16px 20px; }
    .cats-grid { grid-template-columns:1fr; }
  }
  /* K4/2 (8.11): фон панели на всю ширину, рабочая группа — min(100%,560px)
     по центру; новой тени нет — отделяют верхняя граница и blur. */
  .sbar { position:fixed; left:0; right:0; bottom:0; z-index:50;
          padding:10px 12px calc(10px + env(safe-area-inset-bottom));
          background:var(--sbar-bg);
          border-top:1px solid var(--border); }
  .sbar-inner { width:min(100%,560px); margin-inline:auto; display:flex; gap:8px; }
  .sbar a { flex:1; text-align:center; padding:13px 6px; min-height:46px; box-sizing:border-box;
            display:inline-flex; align-items:center; justify-content:center; border-radius:999px;
            border:1px solid var(--border); color:var(--text); font-weight:650;
            font-size:14px; text-decoration:none; }
  .sbar .sbar-cta { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }.nap{margin-top:36px;padding-top:18px;border-top:1px solid rgba(128,140,158,.25);font-size:14px;color:var(--muted) /* VISUAL-QA-01: #8a94a2 давал 2.7:1 — имя в <b> и ссылки наследовали */}
.nap-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}
.nap-links a{color:inherit;display:inline-flex;align-items:center;min-height:44px;padding:0 10px} /* UX-06: цель ≥44px по обеим осям */
.nap-copy{margin-top:10px;font-size:12px;opacity:.7}
.svc-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 20px}
/* UX-1: поиск на /uslugi/ (тема страницы, не hero) и пустое состояние */
.usearch{display:flex;gap:8px;margin:2px 0 14px}
.usearch input{flex:1;min-width:0;min-height:48px;border-radius:12px;border:1px solid var(--border);
background:var(--surface);color:var(--text);padding:0 14px;font:inherit;font-size:15px}
.usearch input:focus{outline:2px solid var(--nw-focus);outline-offset:1px;border-color:transparent}
.usearch button{min-height:48px;min-width:48px;border-radius:12px;border:0;background:var(--accent);
color:var(--accent-ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.usearch button svg{width:20px;height:20px}
.empty-search{border:1px dashed var(--border);border-radius:14px;padding:20px;color:var(--muted);font-size:14.5px}
.svc-item{display:block;padding:14px;border:1px solid rgba(128,140,158,.25);border-radius:12px;color:inherit;text-decoration:none}
.svc-item:hover{border-color:#c8f542}
.masters{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin:6px 0 8px}
.master{display:flex;align-items:center;gap:12px;padding:12px 14px}
.master-name{font-weight:600}
.master-sub{color:var(--muted);font-size:.9rem}
.master-sub a{display:inline-flex;align-items:center;min-height:44px} /* UX-06 */
.master-photo{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px}
.avatar{width:44px;height:44px;border-radius:50%;background:#84cc16;color:#101623;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 44px;text-transform:uppercase}
.demo-banner{background:var(--nw-accent-fill);color:#101623;font-weight:600;font-size:.9rem;text-align:center;padding:8px 12px;border-radius:10px;margin:0 0 12px}

/* RATING-01 Фаза 1: блок отзывов на карточке СТО — без новых hex
   (токены страницы, обе темы); подпись «оценок» — muted. */
.rv-avg { font-size: 17px; }
.rv-stars { letter-spacing: 2px; color: var(--accent-strong); }
.rv-item > div { margin: 2px 0; }
.rv-reply { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.rv-sig { font-size: 12.5px; }

/* S-01 (аудит 6.11): ссылки согласия/политики в тексте форм и политики
   обращений — hit-area ≥44px (матрица меряет прямоугольник клика). */
.consent a, .link-inline { display:inline-flex; align-items:center; min-height:44px; padding:0 6px; }

/* PLAT 3.3.0 / Module B: баннер согласия на аналитику (Яндекс.Метрика / GA4).
   Живёт вне .wrap, поверх stickyBar (z-index 60 > 50), адаптируется под мобильные. */
.analytics-consent { position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:var(--surface); border-top:1px solid var(--border);
  box-shadow:0 -4px 20px rgba(0,0,0,.08);
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.analytics-consent[hidden] { display:none; }
.analytics-consent-text { margin:0; font-size:13px; line-height:1.35; color:var(--text); flex:1 1 240px; }
.analytics-consent-actions { display:flex; gap:8px; flex-shrink:0; }
.analytics-consent-allow, .analytics-consent-deny { border-radius:999px; padding:10px 16px; font:inherit; font-weight:600; font-size:13px; cursor:pointer; min-height:44px; border:1px solid var(--border); }
.analytics-consent-allow { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.analytics-consent-deny { background:transparent; color:var(--muted); }
.analytics-consent-link { color:var(--accent-strong); font-size:12px; text-decoration:underline; flex-basis:100%; margin-top:4px; }
@media (max-width:560px) {
  .analytics-consent { flex-direction:column; align-items:flex-start; }
  .analytics-consent-actions { width:100%; }
  .analytics-consent-actions button { flex:1; }
}


.platform-footer{position:relative;isolation:isolate;margin-top:48px;padding:44px clamp(18px,4vw,44px) 24px;background:var(--nasta-graphite);color:var(--nasta-offwhite)}
.platform-footer::before{content:"";position:absolute;inset-block:0;inset-inline:calc(50% - 50vw);z-index:-1;background:var(--nasta-graphite)}
.platform-footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,1fr));gap:40px;max-width:1220px;margin-inline:auto}
.platform-footer-logo{display:inline-flex;align-items:center;min-height:44px}
.platform-footer-logo img{display:block;width:152px;height:auto}
.platform-footer-brand p{max-width:36ch;margin:16px 0 0;color:#B7C0CC;font-size:13px;line-height:1.6}
.platform-footer-column h2{margin:0 0 12px;color:var(--nasta-offwhite);font-size:13px;letter-spacing:0}
.platform-footer-column a{display:flex;align-items:center;min-height:44px;color:#B7C0CC;font-size:13px;line-height:1.35;text-decoration:none}
.platform-footer-column a:hover{color:var(--nw-accent-fill)}
.platform-footer a:focus-visible{outline:3px solid var(--nw-accent-fill);outline-offset:3px}
.platform-footer-bottom{display:flex;justify-content:space-between;gap:20px;max-width:1220px;margin:32px auto 0;padding-top:20px;border-top:1px solid var(--nasta-border);color:#A9B4C2;font-size:12px}
@media(max-width:800px){.platform-footer-grid{grid-template-columns:1fr 1fr;gap:28px 20px}.platform-footer-brand{grid-column:1/-1}.platform-footer-column a{min-height:44px}.platform-footer-bottom{flex-direction:column;gap:6px}}
