/*
 * Витрина монобрендов: один шаблон на все бренды.
 * Лицо витрины — переменные из её настроек (App\Support\Theme, с 04.10.2026): акцент — цвет бренда, тёмный,
 * подложка, основной и акцентный шрифты, скругления, вид кнопок, шапки (--h-*), первого экрана (--hero-*),
 * плитки (--tile-*) и подвала (--f-*). Умолчания ниже — прежний нейтральный вид.
 * Сборщика нет: файл отдаётся как есть, версия в адресе — время правки (App\Support\Asset).
 */

:root {
    --ink: #141414;
    --ink-2: #3a3a38;
    --muted: #6d6d69;
    --faint: #9b9b96;
    --line: #e7e7e3;
    --line-2: #d4d4ce;
    --bg: #ffffff;
    --soft: #f5f5f2;
    --soft-2: #ecece7;

    /* Оформление витрины — умолчания; своё у каждой витрины приходит из App\Support\Theme в <style> страницы */
    --accent: #141414;
    --accent-ink: #ffffff;
    --accent-text: #141414;
    --accent-ring: rgba(20, 20, 20, .1);
    --dark: #141414;
    --dark-ink: #ffffff;
    --dark-muted: #b8b8b2;
    --action: #141414;
    --action-hover: #33332f;
    --action-ink: #ffffff;
    --btn-radius: 8px;
    --chip-radius: 999px;

    --h-bg: #ffffff; --h-ink: #141414; --h-ink-2: #3a3a38; --h-line: #e7e7e3;
    --h-top: #f5f5f2; --h-top-ink: #6d6d69; --h-top-link: #3a3a38;
    --h-field: #f5f5f2; --h-field-line: #d4d4ce; --h-hover: #f5f5f2;
    --h-btn: var(--action); --h-btn-ink: var(--action-ink); --h-btn-hover: var(--action-hover);
    --h-mark: var(--accent-text); --h-count: var(--action); --h-count-ink: var(--action-ink);
    --logo-bg: var(--accent); --logo-ink: var(--accent-ink);
    --logo-h: 34px; --logo-h-lg: 34px; --logo-fs: 19px; --logo-fs-lg: 22px;
    --cat-bg: var(--h-btn); --cat-ink: var(--h-btn-ink); --cat-line: transparent; --cat-icon: currentColor;
    --cat-hover-bg: var(--h-btn-hover); --cat-hover-line: transparent; --cat-pad: 0 22px;

    --hero-bg: #f5f5f2; --hero-ink: #141414; --hero-ink-2: #3a3a38; --hero-muted: #6d6d69; --hero-eyebrow: #6d6d69;
    --hero-btn: var(--action); --hero-btn-ink: var(--action-ink); --hero-btn-hover: var(--action-hover);
    --hero-btn2: #ffffff; --hero-btn2-ink: #141414; --hero-btn2-line: #d4d4ce; --hero-media: transparent; --hero-media-margin: 0px;

    --tile-bg: #ffffff; --tile-line: #e7e7e3; --tile-shadow: none;
    --tile-hover-line: #d4d4ce; --tile-hover-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px rgba(20, 20, 20, .07); --tile-hover-bg: #ffffff;
    --tile-media-bg: #ffffff; --tile-media-hover: #ffffff; --tile-media-radius: 0px;
    --tile-pad-top: 4px; --tile-pad-x: 14px; --tile-pad-x-lg: 18px;
    --gallery-bg: #ffffff; --gallery-line: #e7e7e3;

    --f-bg: #141414; --f-ink: #cfcfca; --f-ink-2: #a9a9a3; --f-strong: #ffffff; --f-muted: #8e8e89; --f-line: #2b2b28;
    --f-btn: #ffffff; --f-btn-ink: #141414;

    --badge-sale: #e0312b; --badge-sale-ink: #ffffff; --badge-new: #1c7a43; --badge-new-ink: #ffffff;
    --badge-hit: #f2a516; --badge-hit-ink: #141414; --badge-promo: #6941c6; --badge-promo-ink: #ffffff;

    --ok: #1c7a43;
    --ok-soft: #e8f4ec;
    --wait: #b86e00;
    --wait-soft: #fbf1e2;
    --no: #9b9b96;
    --err: #b42318;
    --err-soft: #fdeceb;

    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px rgba(20, 20, 20, .07);
    --wrap: 1280px;
    --gutter: 16px;
    --header-h: 64px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-accent: var(--font);
    --heading-weight: 600;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font: 15px/1.55 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 16px; } }
html.is-locked { overflow: hidden; }

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.012em; font-weight: var(--heading-weight); }
/* Акцентный шрифт — заголовки страниц и блоков, надписи над ними, названия разделов, логотип текстом; остальное — основной */
h1, h2, .eyebrow, .logo-plate, .cat-name { font-family: var(--font-accent); }
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
@media (min-width: 1024px) {
    h1 { font-size: 34px; letter-spacing: -.02em; }
    h2 { font-size: 26px; }
}
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
html.js .no-js-only { display: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* Баннер во всю ширину берёт 100vw — с полосой прокрутки Windows это шире окна: лишнее обрезается, прокрутки вбок нет */
#main { overflow-x: clip; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.link:hover { text-decoration-color: var(--accent-text); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
main { min-height: 50vh; padding-bottom: 72px; }

/* ——— Кнопки и поля ——— */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px;
    border: 1px solid transparent; border-radius: var(--btn-radius);
    background: var(--action); color: var(--action-ink);
    font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--action-hover); color: var(--action-ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: #fff; color: var(--ink); border-color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft-2); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; height: 44px; padding: 0 10px;
    border: 0; border-radius: var(--radius); background: transparent; color: var(--ink);
    font-size: 14px; font-weight: 500; white-space: nowrap;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn .icon { width: 22px; height: 22px; }

.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .req { color: var(--err); }
.input, .field input, .field select, .field textarea {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-ring);
}
.field-hint { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; gap: 14px; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent-text); }
.consent summary { display: inline; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.consent details[open] { margin-top: 6px; }
.consent details div { margin-top: 6px; max-height: 160px; overflow: auto; padding: 10px 12px; background: var(--soft); border-radius: var(--radius); }
.consent-policy { display: block; margin-top: 2px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; }
.notice .icon { margin-top: 1px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.err { background: var(--err-soft); color: var(--err); }
.notice.info { background: var(--soft); color: var(--ink-2); }
.notices { display: grid; gap: 10px; margin-top: 16px; }

/* ——— Наличие и цена ——— */

.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--no); flex: none; }
.avail.in_stock::before { background: var(--ok); }
.avail.backorder::before { background: var(--wait); }
.avail.unavailable { color: var(--muted); }
.price { font-weight: 650; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-right: 2px; }

.swatch {
    --c: #c8ccd0;
    width: 16px; height: 16px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 48%), var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}

/* ——— Шапка ——— */

.demo-notice { margin: 0; padding: 8px var(--gutter); background: #fff3d1; color: #6b4d00; font-size: 13px; line-height: 1.4; text-align: center; }
.topbar { background: var(--h-top); font-size: 13px; color: var(--h-top-ink); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar-note { display: none; }
.topbar-contacts { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.topbar-contacts a:hover, .topbar-contacts button:hover { color: var(--h-top-link); }
.topbar .link { color: var(--h-top-link); font-size: 13px; text-decoration-color: var(--h-top-ink); }
/* Бесплатный номер — от 1024 точек: уже строка с пометкой о доставке переносилась в две (768 — 07.10.2026);
   на телефоне номер — в шапке и в меню */
.topbar-phone { display: none; font-weight: 600; white-space: nowrap; }
.topbar-phone span { font-weight: 400; opacity: .75; }
.topbar .link { white-space: nowrap; }
@media (min-width: 768px) { .topbar-note { display: block; } }
@media (min-width: 1024px) { .topbar-phone { display: inline; } }

.header { position: sticky; top: 0; z-index: 40; background: var(--h-bg); color: var(--h-ink); border-bottom: 1px solid var(--h-line); }
.header .icon-btn { color: var(--h-ink); }
.header .icon-btn:hover { background: var(--h-hover); }
.header :focus-visible { outline-color: var(--h-mark); }
.header-main { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
@media (min-width: 1024px) { .header-main { gap: 16px; } }

.logo { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; margin-right: auto; }
/* Логотип файлом — по высоте из настроек витрины (--logo-h). На узком телефоне он сжимается, а не выталкивает кнопки за
   край: до 06.10.2026 держал 46% ширины, и при четырёх кнопках справа корзина уходила за экран, страница ехала вбок
   (при 360 точках — Hansgrohe на 53, Geberit, Hisense и RAVAK — на 7; на бою, где у всех телефон, — больше) */
.logo img { height: var(--logo-h); width: auto; max-width: min(220px, 100%); object-fit: contain; object-position: left center; }
/* Тёмный знак на тёмной шапке или подвале, когда варианта для тёмного фона нет, — на светлой плашке */
.logo.on-plate { padding: 6px 10px; border-radius: var(--radius); background: #fff; }
.logo-plate {
    display: inline-block; padding: 7px 12px 8px; border-radius: 2px;
    background: var(--logo-bg); color: var(--logo-ink);
    font-size: var(--logo-fs); font-weight: 700; line-height: 1; letter-spacing: .005em;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 1024px) {
    .logo { margin-right: 8px; }
    .logo img { height: var(--logo-h-lg); max-width: min(320px, 100%); }
    .logo-plate { font-size: var(--logo-fs-lg); padding: 8px 14px 9px; }
}

.burger { margin-left: -10px; }
/* «Каталог» — залитая, контурная или текстом (настройка витрины): рядом с логотипом не должна быть крупнее его */
.btn-catalog { display: none; height: 44px; }
.header .btn-catalog { padding: var(--cat-pad); background: var(--cat-bg); color: var(--cat-ink); border-color: var(--cat-line); }
.header .btn-catalog:hover { background: var(--cat-hover-bg); color: var(--cat-ink); border-color: var(--cat-hover-line); }
.header .btn-catalog .icon { color: var(--cat-icon); }
.search { display: none; position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; height: 44px; padding: 0 48px 0 16px; border: 1px solid var(--h-field-line); border-radius: var(--btn-radius); background: var(--h-field); color: var(--ink); }
.search input:focus { outline: none; background: #fff; border-color: var(--h-field-line); box-shadow: 0 0 0 2px var(--h-mark); }
/* Только кнопка «Найти» — прямой потомок формы: внутри формы ещё подсказки со своими кнопками-вкладками, и правило на любую
   кнопку поиска складывало вкладки «На этом сайте» и «Глобальный поиск» в квадрат 40×40 в углу (06.10.2026) */
.search > button { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); border-radius: var(--radius); }
.search.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%; max-width: none;
    padding: 12px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.search.is-open input { border-color: var(--line-2); }
.search.is-open > button { right: calc(var(--gutter) + 2px); top: 14px; }
.search-corrected { margin: -8px 0 20px; font-size: 14px; color: var(--muted); }
.search-corrected a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* Подсказки поиска (05.10.2026): под строкой поиска, разделы и товары; на телефоне — под открытой строкой */
.suggest { position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 6px); max-height: min(76vh, 640px); overflow-y: auto; padding: 6px 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow); text-align: left; }
.search.is-open .suggest { left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); }
.suggest-title { padding: 8px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest-fix, .suggest-empty { padding: 8px 16px; font-size: 13px; color: var(--muted); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 16px; font-size: 14px; line-height: 1.3; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--soft); }
.suggest-media { position: relative; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--tile-media-bg); overflow: hidden; }
.suggest-media img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; mix-blend-mode: multiply; }
.suggest-name { flex: 1; min-width: 0; }
.suggest-name small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.suggest-price { font-weight: 600; white-space: nowrap; }
.suggest-section .suggest-name { font-weight: 500; }
.suggest-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; }
/* «На этом сайте» и «Глобальный поиск» — в подсказках и на странице поиска (05.10.2026) */
.suggest-tabs { display: flex; gap: 4px; padding: 4px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.suggest-tabs button { padding: 6px 10px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.suggest-tabs button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.suggest-site { display: flex; justify-content: space-between; gap: 12px; }
.suggest-site span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.search-scope { display: flex; gap: 6px; margin: -8px 0 24px; }
.search-scope a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.search-scope a[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.elsewhere + .elsewhere { margin-top: 36px; }
.elsewhere .block-head h2 .count { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--muted); font-family: var(--font); letter-spacing: 0; }
.elsewhere-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .elsewhere-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.elsewhere-item { display: grid; gap: 8px; align-content: start; }
.elsewhere-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--tile-media-bg); overflow: hidden; }
.elsewhere-media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.elsewhere-name { font-size: 14px; line-height: 1.35; }
.elsewhere-item:hover .elsewhere-name { text-decoration: underline; text-underline-offset: 3px; }
.elsewhere-price { font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
/* Избранное на узком телефоне — в меню, как сравнение (там оба со счётчиком): с ним логотипу оставалось меньше сотни точек */
@media (max-width: 399px) { .header-actions .pick-link { display: none; } }
.header-phone span, .cart-label { display: none; }
.cart-link { position: relative; }
.cart-count {
    position: absolute; top: 4px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--h-count); color: var(--h-count-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
@media (min-width: 1024px) {
    .burger, .search-toggle { display: none; }
    .btn-catalog { display: inline-flex; }
    .search { display: block; }
    .header-phone span { display: inline; font-weight: 600; }
    .cart-label { display: inline; }
    .cart-count { position: static; margin-left: -2px; }
}

/* Верхнее меню — одна строка без прокрутки: не поместившийся пункт уходит на вторую строку, а её не видно
   (скрипт убирает такие пункты и из обхода по Tab). Прокрутки быть не должно ни в одном браузере: прежнее
   overflow-x: auto делало auto и overflow-y, и Safari показывал обе полосы — вбок от лишних пунктов,
   вниз от подчёркивания, опущенного на 1 px ниже строки (04.10.2026). Подчёркивание — внутри пункта. */
.nav { display: none; background: var(--h-bg); border-bottom: 1px solid var(--h-line); }
.nav ul { display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 28px; height: 46px; overflow: hidden; overflow: clip; }
.nav a { display: block; padding: 13px 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--h-ink-2); white-space: nowrap; }
.nav a:hover, .nav a.is-current { color: var(--h-ink); box-shadow: inset 0 -2px 0 var(--h-mark); }
.nav a:focus-visible { outline-offset: -2px; }
@media (min-width: 1024px) { .nav { display: block; } }

/* «Каталог»: разделы первого уровня — со снимком (SectionCovers), подразделы — списком под ними.
   Снимок поверх рамки 4:3, а не в потоке (как у плитки); белый фон предметного снимка растворяется в подложке. */
.megamenu { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.megamenu.is-open { display: block; }
.megamenu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 24px 20px; padding-top: 24px; padding-bottom: 28px; }
.megamenu-item { display: grid; align-content: start; gap: 8px; }
.megamenu-card { display: grid; gap: 10px; }
.megamenu-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--soft); overflow: hidden; transition: background-color .15s; }
.megamenu-media img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.megamenu-card:hover .megamenu-media { background: var(--soft-2); }
.megamenu-root { display: block; font-weight: 650; line-height: 1.3; }
.megamenu-card:hover .megamenu-root { text-decoration: underline; text-underline-offset: 3px; }
.megamenu-grid li a { display: block; padding: 3px 0; font-size: 14px; color: var(--ink-2); }
.megamenu-grid li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.drawer {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(380px, 88vw);
    display: flex; flex-direction: column; background: #fff; overflow-y: auto;
    transform: translateX(-100%); transition: transform .22s ease; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-title { font-weight: 650; font-size: 17px; }
.drawer-nav { padding: 8px var(--gutter) 16px; }
.drawer-nav > li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.drawer-nav > li > a { display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 4px 0; }
.drawer-media { position: relative; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.drawer-media img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; mix-blend-mode: multiply; }
.drawer-nav ul { display: grid; gap: 2px; padding: 4px 0 0 56px; }
.drawer-nav ul a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 14px; }
.drawer-contacts { margin-top: auto; padding: 20px var(--gutter) 28px; background: var(--soft); display: grid; gap: 10px; font-size: 14px; }
.drawer-contacts a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

.backdrop { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(20, 20, 20, .45); }
html.is-locked .backdrop { display: block; }

.modal { display: none; position: fixed; inset: 0; z-index: 70; align-items: flex-end; justify-content: center; padding: 0; }
.modal.is-open, .modal:target { display: flex; background: rgba(20, 20, 20, .45); }
.modal-card { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 28px 24px 24px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.modal-card h2 { font-size: 22px; margin-bottom: 6px; padding-right: 36px; }
.modal-close { position: absolute; right: 12px; top: 12px; }
@media (min-width: 640px) {
    .modal { align-items: center; padding: 24px; }
    .modal-card { border-radius: var(--radius-lg); padding: 32px; }
}

/* ——— Подвал ——— */

.footer { background: var(--f-bg); color: var(--f-ink); font-size: 14px; }
.footer a:hover { color: var(--f-strong); }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer h3 { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--f-muted); margin-bottom: 14px; }
.footer li { padding: 3px 0; }
.footer-brand p { margin-top: 16px; max-width: 320px; line-height: 1.6; color: var(--f-ink-2); }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts a, .footer-contacts span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contacts .phone { font-size: 18px; font-weight: 650; color: var(--f-strong); }
.footer-contacts .btn { margin-top: 8px; justify-self: start; }
.footer .btn-light, .footer .btn-light:hover { background: var(--f-btn); color: var(--f-btn-ink); }
.footer .btn-light:hover { opacity: .9; }
.footer-contacts .phone-note { margin-top: -8px; font-size: 12px; color: var(--f-muted); }
/* Магазин проекта «Дом-Дизайн» (07.10.2026): строка над нижней чертой — знак проекта и одна ссылка на его сайт */
.footer-project { border-top: 1px solid var(--f-line); padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--f-ink-2); }
.footer-project p { min-width: 0; overflow-wrap: anywhere; }
.footer-project .nobr { white-space: nowrap; }
.footer-project a { color: var(--f-strong); text-decoration: underline; text-underline-offset: 2px; }
.footer-project .footer-project-mark { display: inline-flex; flex: none; text-decoration: none; }
/* Знак проекта «План» (07.10.2026): высота прописной надписи — как у текста подвала рядом */
.footer-project-mark img { display: block; height: 26px; width: auto; }
/* Только по вертикали: «padding: 20px 0» снимал поля .wrap, и нижняя строка липла к краям экрана (до 07.10.2026) */
.footer-bottom { border-top: 1px solid var(--f-line); padding-top: 20px; padding-bottom: 28px; font-size: 12px; color: var(--f-muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom span { min-width: 0; overflow-wrap: anywhere; }

/* ——— Общие блоки страниц ——— */

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 18px 0 14px; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

.block { margin-top: 64px; }
@media (min-width: 1024px) { .block { margin-top: 88px; } }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.block-head p { color: var(--muted); }
.block-head .link { font-size: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--chip-radius); background: var(--soft); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s; }
.chip:hover { background: var(--soft-2); }
.chip .n { color: var(--faint); font-weight: 400; }
.chip-outline { background: #fff; border: 1px solid var(--line-2); }
.chip-outline:hover { background: #fff; border-color: var(--accent-text); }
.chip-close { background: var(--action); color: var(--action-ink); padding-right: 10px; }
.chip-close:hover { background: var(--action-hover); color: var(--action-ink); }
.chip-close .icon { width: 16px; height: 16px; }

.seo-text { max-width: 760px; margin-top: 56px; color: var(--ink-2); line-height: 1.7; }
.seo-text p + p { margin-top: 1em; }
.prose { max-width: 760px; color: var(--ink-2); line-height: 1.7; }
/* Текст информационных страниц — Markdown из админки: заголовки, списки, выноска «черновик» */
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--line-2); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.info-page { display: grid; gap: 28px; max-width: 760px; padding-bottom: 24px; }
/* .facts объявлен ниже по файлу и при равной точности перебил бы рамку — отсюда двойной класс */
.facts.info-facts { border-top: 0; padding-top: 0; font-size: 15px; }
.facts.info-facts a { text-decoration: underline; text-underline-offset: 2px; }

.empty { padding: 56px 16px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.empty .icon { width: 40px; height: 40px; color: var(--faint); stroke-width: 1.3; }
.empty h2 { font-size: 22px; }

/* ——— Главная ——— */

/* Баннеры первого экрана (05.10.2026): слайдер на прокрутке с привязкой — листается пальцем и без скрипта; полос
   прокрутки нет ни в одном браузере (Safari не знает scrollbar-width — прячем и ::-webkit-scrollbar). Картинка —
   поверх рамки с пропорцией: 3 : 1 на широком экране, 4 : 5 на телефоне со своей картинкой, 4 : 3 без неё. */
.banners { position: relative; margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
/* Во всю ширину окна — сама фотография; текст и точки остаются по сетке: --edge — левый край содержимого */
.banners.banners--full { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); margin: 0 calc(50% - 50vw); border-radius: 0; }
.banners-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.banners-track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.banner.has-mobile { aspect-ratio: 4 / 5; }
.banner picture, .banner img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner img { object-fit: cover; }
.banner-body { position: absolute; inset: auto 0 0 0; z-index: 1; display: grid; justify-items: start; gap: 10px; padding: 64px 20px 56px; }
.banner-dark .banner-body { color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0)); }
.banner-light .banner-body { color: var(--ink); background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.banner-title { font-family: var(--font-accent); font-weight: var(--heading-weight); font-size: 24px; line-height: 1.15; letter-spacing: -.01em; max-width: 560px; }
.banner-text { font-size: 15px; line-height: 1.5; max-width: 480px; }
.banner-body .btn { margin-top: 6px; }
.banner-link { position: absolute; inset: 0; z-index: 1; }
.banners-nav { position: absolute; z-index: 2; left: 20px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
/* Точки — на полупрозрачной тёмной подложке: видны и на светлом снимке, и на тёмном */
.banners-dots { display: flex; gap: 6px; margin-right: auto; padding: 6px 8px; border-radius: 999px; background: rgba(20, 20, 20, .32); }
.banners-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .55); transition: width .2s, background-color .2s; }
.banners-dots button[aria-current="true"] { width: 22px; background: #fff; }
.banners-arrow { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow); }
.banners-arrow:hover { background: #fff; }
@media (min-width: 768px) {
    .banner, .banner.has-mobile { aspect-ratio: 3 / 1; }
    .banner-body { inset: 0 auto 0 0; align-content: center; width: min(62%, 640px); padding: 40px 48px; }
    .banner-dark .banner-body { background: linear-gradient(to right, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0)); }
    .banner-light .banner-body { background: linear-gradient(to right, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
    .banner-title { font-size: 36px; }
    .banner-text { font-size: 16px; }
    .banners-nav { left: 48px; right: 20px; bottom: 20px; }
    .banners--full .banner-body { padding-left: calc(var(--edge) + 16px); width: calc(min(62vw, 640px) + var(--edge)); }
    .banners--full .banners-nav { left: calc(var(--edge) + 16px); right: var(--edge); }
    html.js .banners-arrow { display: grid; }
}
@media (min-width: 1024px) { .banner-title { font-size: 42px; } }

.hero { display: grid; margin-top: 16px; border-radius: var(--radius-lg); background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
/* Фон во всю ширину окна, текст и снимок — по сетке (05.10.2026): тень на 100vmax в обе стороны, обрезанная по
   высоте блока, — ширину страницы не трогает и прокрутки вбок не даёт; блок прилегает к шапке */
.hero.hero--full { margin-top: 0; border-radius: 0; box-shadow: 0 0 0 100vmax var(--hero-bg); clip-path: inset(0 -100vmax); }
.hero .eyebrow { color: var(--hero-eyebrow); }
.hero .btn:not(.btn-secondary) { background: var(--hero-btn); color: var(--hero-btn-ink); }
.hero .btn:not(.btn-secondary):hover { background: var(--hero-btn-hover); color: var(--hero-btn-ink); }
.hero .btn-secondary { background: var(--hero-btn2); color: var(--hero-btn2-ink); border-color: var(--hero-btn2-line); }
.hero .btn-secondary:hover { background: var(--hero-btn2); color: var(--hero-btn2-ink); border-color: var(--hero-btn2-ink); }
.hero-body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px 22px 8px; }
.hero h1 { font-size: 34px; letter-spacing: -.025em; }
.hero .lead { font-size: 17px; color: var(--hero-ink-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* На цветном первом экране снимок — в белой рамке: снимки товара на белом, и белый квадрат на цвете торчал бы */
.hero-media { display: grid; place-items: center; padding: 8px 24px 24px; margin: var(--hero-media-margin); border-radius: var(--radius-lg); background: var(--hero-media); }
.hero-media img { width: min(64%, 280px); mix-blend-mode: multiply; }
@media (min-width: 1024px) {
    .hero { grid-template-columns: 1.05fr .95fr; min-height: 460px; }
    /* Снимка нет (витрина до импорта) — текст одной колонкой, а не в половине с пустой второй */
    .hero.hero--text { grid-template-columns: minmax(0, 1fr); }
    .hero-body { padding: 56px 24px 56px 64px; gap: 22px; }
    .hero h1 { font-size: 54px; }
    .hero-media { padding: 32px 48px; }
    .hero-media img { width: min(100%, 460px); }
}

.promises { display: grid; gap: 18px; margin-top: 28px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; }
.promises .icon { width: 26px; height: 26px; color: var(--accent-text); stroke-width: 1.4; }
.promises b { display: block; font-weight: 600; margin-bottom: 2px; }
.promises span { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; } }

/* Разделы плашками под первым экраном (Theme::sectionPlates, как у Аспро: Лайтшоп): снимок раздела и название;
   на телефоне — списком во всю ширину, шире — в строку с переносом */
.cat-plates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-plate { display: flex; align-items: center; gap: 12px; flex: 1 1 100%; min-height: 64px; padding: 8px 18px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; font-weight: 500; line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
.cat-plate:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cat-plate-media { position: relative; flex: none; width: 48px; height: 48px; border-radius: var(--radius); background: var(--tile-media-bg); overflow: hidden; }
.cat-plate-media img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; mix-blend-mode: multiply; }
@media (min-width: 640px) {
    .cat-plates { gap: 12px; margin-top: 20px; }
    .cat-plate { flex: 0 1 auto; min-height: 72px; padding: 10px 24px 10px 10px; font-size: 16px; }
    .cat-plate-media { width: 52px; height: 52px; }
}

.cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 768px) { .cats { gap: 20px; } }
.cat { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 280px; padding: 20px 22px 22px; border-radius: var(--radius-lg); background: var(--soft); overflow: hidden; transition: background-color .15s; }
.cat:hover { background: var(--soft-2); }
.cat-media { height: 170px; display: grid; place-items: center; margin-bottom: 12px; }
.cat-media img { max-height: 170px; width: auto; mix-blend-mode: multiply; }
.cat-name { font-size: 19px; }
.cat-name a::after { content: ""; position: absolute; inset: 0; }
.cat-count { font-size: 14px; color: var(--muted); }
.cat-children { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.cat-children a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 10px; align-content: start; }
.step-card::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.callout { display: grid; gap: 20px; padding: 32px 24px; border-radius: var(--radius-lg); background: var(--dark); color: var(--dark-ink); }
.callout p { color: var(--dark-muted); margin-top: 8px; }
@media (min-width: 1024px) { .callout { grid-template-columns: 1fr auto; align-items: center; padding: 44px 56px; } }

/* ——— Плитка товара ——— */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .tiles { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile { position: relative; display: flex; flex-direction: column; background: var(--tile-bg); border: 1px solid var(--tile-line); border-radius: var(--radius-lg); box-shadow: var(--tile-shadow); overflow: hidden; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.tile:hover { border-color: var(--tile-hover-line); box-shadow: var(--tile-hover-shadow); background: var(--tile-hover-bg); }
.tile-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px; border-radius: var(--tile-media-radius); background: var(--tile-media-bg); overflow: hidden; transition: background-color .15s; }
.tile:hover .tile-media { background: var(--tile-media-hover); }
/* Снимок — поверх квадрата, а не в потоке: высота в процентах внутри aspect-ratio не считается, и вертикальный снимок вытягивал плитку */
/* Белый фон снимка растворяется в подложке (multiply); второй снимок при наведении прячет первый — иначе просвечивал бы сквозь */
.tile-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s; }
.tile-media .tile-hover { opacity: 0; }
/* Метки на снимке плитки (App\Enums\Badge): своя у карточки на витрине или «Скидка» по старой цене; цвета — Theme */
.badges { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.badge { display: inline-block; padding: 4px 9px; border-radius: var(--chip-radius); font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: .01em; white-space: nowrap; }
.badge-sale { background: var(--badge-sale); color: var(--badge-sale-ink); }
.badge-new { background: var(--badge-new); color: var(--badge-new-ink); }
.badge-hit { background: var(--badge-hit); color: var(--badge-hit-ink); }
.badge-promo { background: var(--badge-promo); color: var(--badge-promo-ink); }
@media (min-width: 768px) { .badge { font-size: 12px; } }
@media (hover: hover) {
    .tile:hover .tile-hover { opacity: 1; }
    .tile:hover .tile-media:has(.tile-hover) img:not(.tile-hover) { opacity: 0; }
}
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line-2); background: var(--soft); border-radius: var(--radius); }
.no-photo .icon { width: 36px; height: 36px; stroke-width: 1.2; }
.tile-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: var(--tile-pad-top) var(--tile-pad-x) 16px; }
@media (min-width: 768px) { .tile-body { padding: var(--tile-pad-top) var(--tile-pad-x-lg) 18px; } }
.swatches { display: flex; align-items: center; gap: 6px; min-height: 16px; }
.swatch-more { font-size: 12px; color: var(--muted); }
.tile-name { font-size: 14px; font-weight: 500; line-height: 1.38; letter-spacing: 0; }
@media (min-width: 768px) { .tile-name { font-size: 15px; } }
.tile-name a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-sku { font-size: 12px; color: var(--faint); }
.tile-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 4px; }
.tile-foot .avail { font-size: 13px; line-height: 1.35; align-items: flex-start; }
.tile-foot .avail::before { margin-top: 5px; }
.tile-action { position: relative; z-index: 2; margin-top: 8px; }
@media (max-width: 479px) {
    .tile-action .btn { height: 38px; padding: 0 10px; font-size: 13px; }
    .tile-action .btn .icon { display: none; }
}

/* ——— Раздел ——— */

.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; }
.page-head .count { color: var(--muted); font-size: 15px; }
.section-chips { margin-bottom: 24px; }

.catalog { display: grid; gap: 20px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 256px minmax(0, 1fr); gap: 40px; align-items: start; } }
/* Раздел без фильтров (у товаров нет характеристик для отбора, марка одна) — одной колонкой: колонка фильтров
   оставалась и без них, товары вставали в её 256 точек и сжимались к левому краю («Кронштейны» «Лепнины», 05.10.2026) */
@media (min-width: 1024px) { .catalog.catalog--wide { grid-template-columns: minmax(0, 1fr); } }

.filters { position: fixed; z-index: 60; top: 0; bottom: 0; right: 0; width: min(400px, 92vw); background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .22s ease; overflow-y: auto; }
.filters.is-open { transform: none; visibility: visible; }
.filters form { display: flex; flex-direction: column; min-height: 100%; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 17px; }
.filters-body { padding: 0 var(--gutter); flex: 1; }
.filters-actions { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 14px var(--gutter) 18px; background: #fff; border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
    .filters { position: sticky; top: calc(var(--header-h) + 58px); z-index: auto; width: auto; transform: none; visibility: visible; overflow: visible; background: none; max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 12px; }
    .filters-head { display: none; }
    .filters-body { padding: 0; }
    .filters-actions { padding: 16px 0 4px; border-top: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); }
    html.js .filters-actions .btn-submit { display: none; }
}
.facet { border-bottom: 1px solid var(--line); }
.facet:first-child { border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .facet:first-child { border-top: 0; } }
.facet summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.facet[open] summary .icon { transform: rotate(180deg); }
.facet-options { display: grid; gap: 4px; padding-bottom: 16px; }
.facet-option { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; cursor: pointer; }
.facet-option input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent-text); }
.facet-option .n { margin-left: auto; padding-left: 8px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.facet-option.is-locked { color: var(--muted); cursor: default; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.filters-toggle .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--action); color: var(--action-ink); font-size: 12px; line-height: 20px; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort select {
    height: 40px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
    appearance: none; -webkit-appearance: none; font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters .chip { height: 34px; font-size: 13px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.pager a:hover { border-color: var(--accent-text); }
.pager .is-current { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.pager .gap { border: 0; min-width: 20px; color: var(--faint); }
.pager .icon { width: 18px; height: 18px; }

/* ——— Избранное и сравнение (05.10.2026): значки на снимке плитки, подписи в карточке, счётчики в шапке ——— */

.picks { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; gap: 4px; }
.pick { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .86); color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s, opacity .15s; }
.pick .icon { width: 18px; height: 18px; }
.pick:hover { color: var(--ink); background: #fff; }
.pick[aria-pressed="true"] { color: var(--accent-text); }
.pick-favorites[aria-pressed="true"] .icon { fill: currentColor; }
.pick-compare[aria-pressed="true"] .icon { stroke-width: 2.4; }
@media (hover: hover) {
    .tile .picks .pick[aria-pressed="false"] { opacity: 0; }
    .tile:hover .picks .pick, .tile .picks .pick:focus-visible { opacity: 1; }
}
.picks-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pick.pick-text { width: auto; height: auto; padding: 4px 0; gap: 8px; display: inline-flex; border-radius: 0; background: none; font-size: 14px; color: var(--ink-2); }
.pick.pick-text:hover { background: none; color: var(--ink); }
.pick.pick-text[aria-pressed="true"] { color: var(--accent-text); }
.pick-link { position: relative; }
.pick-count { position: absolute; top: 4px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--h-count); color: var(--h-count-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.compare-link { display: none; }
@media (min-width: 1024px) { .compare-link { display: inline-flex; } }
.drawer-picks { display: grid; gap: 2px; padding: 4px var(--gutter) 16px; }
.drawer-picks a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; }

.compare-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.compare-types { display: contents; }
.compare-types .chip.is-active { background: var(--action); color: var(--action-ink); }
.compare-types .chip.is-active .n { color: inherit; opacity: .7; }
.compare-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.compare { border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare th, .compare td { min-width: 200px; max-width: 260px; padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody th { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 180px; background: var(--bg); color: var(--muted); font-weight: 500; }
.compare thead th { border-bottom: 0; font-weight: 400; }
.compare .compare-corner { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--bg); }
.compare tr.is-same td { color: var(--muted); }
.compare-product { position: relative; display: grid; gap: 8px; padding-bottom: 12px; }
.compare-product .pick-form { position: absolute; z-index: 1; top: 6px; right: 6px; }
.compare-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: var(--tile-media-bg); border: 1px solid var(--tile-line); overflow: hidden; }
.compare-media img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; mix-blend-mode: multiply; }
.compare-name { font-weight: 500; line-height: 1.35; }
@media (max-width: 639px) {
    .compare th, .compare td { min-width: 150px; padding-right: 12px; }
    .compare tbody th, .compare .compare-corner { min-width: 96px; max-width: 110px; }
}
.compare-name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ——— Карточка товара ——— */

.product { display: grid; gap: 20px; grid-template-areas: "title" "gallery" "buy"; }
.product-title { grid-area: title; display: grid; gap: 8px; }
.product-gallery { grid-area: gallery; min-width: 0; }
.buybox { grid-area: buy; min-width: 0; }
@media (min-width: 1024px) {
    .product { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "gallery title" "gallery buy"; grid-template-rows: auto 1fr; gap: 0 56px; }
    .product-title { padding-top: 6px; }
    .product-gallery { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
}
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }

.gallery-main { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 24px; border: 1px solid var(--gallery-line); border-radius: var(--radius-lg); background: var(--gallery-bg); overflow: hidden; }
/* Как у плитки: в потоке вертикальный снимок и чертёж уходили низом под overflow */
.gallery-main img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 6px; overflow-x: auto; overscroll-behavior-x: contain; }
.thumb { flex: none; width: 76px; height: 76px; padding: 6px; border: 1px solid var(--gallery-line); border-radius: var(--radius); background: var(--gallery-bg); }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb.is-active, .thumb:hover { border-color: var(--accent-text); }

.buybox, .choose, .purchase, .keys { display: grid; gap: 20px; align-content: start; min-width: 0; }
.choose { gap: 0; }
@media (min-width: 1024px) { .buybox { padding-top: 22px; } }
/* Три колонки (настройка витрины «Карточка товара», 05.10.2026): галерея | о товаре — выбор и главное | покупка
   отдельной карточкой, липкой; правая часть раскладывается по сетке карточки (display: contents). Уже 1200 точек —
   две колонки: на трёх цена и кнопка не помещаются в строку. */
@media (min-width: 1200px) {
    .product.product--three { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(300px, .62fr); grid-template-areas: "gallery title purchase" "gallery choose purchase" "gallery keys purchase"; grid-template-rows: auto auto 1fr; gap: 0 40px; }
    .product--three .buybox { display: contents; }
    .product--three .choose { grid-area: choose; padding-top: 22px; }
    .product--three .keys { grid-area: keys; padding-top: 22px; }
    .product--three .key-specs { padding-top: 0; border-top: 0; }
    .product--three .purchase {
        grid-area: purchase; position: sticky; top: calc(var(--header-h) + 60px); align-self: start;
        padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
    }
    .product--three .price-big { font-size: 32px; }
    .product--three .qty button { width: 34px; }
    .product--three .qty input { width: 34px; }
}
.variant-label { font-size: 14px; color: var(--muted); }
.variant-label b { color: var(--ink); font-weight: 600; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.variant-option { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 5px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .15s; }
.variant-option:hover { border-color: var(--ink-2); }
.variant-option.is-active { border: 2px solid var(--accent-text); padding: 4px; }
.variant-option .swatch { width: 100%; height: 100%; }
.variant-option.is-off .swatch { opacity: .35; }
.variant-option.is-off::after { content: ""; position: absolute; left: 20%; right: 20%; top: 50%; height: 1.5px; background: var(--ink-2); transform: rotate(-45deg); }
.variant-option.pill { width: auto; height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; }
.variant-option.pill.is-active { padding: 0 13px; }

.price-block { display: grid; gap: 8px; }
.price-big { font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
@media (min-width: 1024px) { .price-big { font-size: 36px; } }

.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; flex: none; }
.qty button { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: none; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 40px; height: 100%; border: 0; padding: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty-sm { height: 40px; }
.qty-sm button { width: 34px; }
.qty-sm input { width: 34px; }

.oneclick summary { list-style: none; }
.oneclick summary::-webkit-details-marker { display: none; }
.oneclick-form { display: grid; gap: 14px; margin-top: 12px; padding: 18px; border-radius: var(--radius); background: var(--soft); }
.oneclick-form .field-hint { color: var(--ink-2); }
.not-for-sale { font-size: 14px; color: var(--muted); }

.facts { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .icon { color: var(--muted); margin-top: 1px; }

.key-specs { display: grid; gap: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.key-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.key-specs dt { color: var(--muted); }
.key-specs dd { margin: 0; text-align: right; font-weight: 500; }
.key-specs + .link { font-size: 14px; justify-self: start; }

.product-section { margin-top: 64px; }
.product-section > h2 { margin-bottom: 20px; }
@media (min-width: 1024px) { .product-section { margin-top: 88px; } }
.specs { display: grid; gap: 28px; }
@media (min-width: 768px) { .specs { grid-template-columns: 1fr 1fr; gap: 28px 56px; } }
.spec-group h3 { font-size: 15px; margin-bottom: 6px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; text-align: right; font-weight: 500; }

.question { display: grid; gap: 24px; padding: 28px 22px; border-radius: var(--radius-lg); background: var(--soft); }
.question h2 { margin-bottom: 8px; }
.question p { color: var(--muted); max-width: 420px; }
@media (min-width: 1024px) { .question { grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 44px 48px; } }

.sticky-buy {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .2s ease;
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy .price { font-size: 17px; }
.sticky-buy-name { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) { .sticky-buy { display: none; } }

/* ——— Корзина и оформление ——— */

.page-title { padding: 24px 0 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-title .count { color: var(--muted); }
@media (min-width: 1024px) { .page-title { padding: 32px 0 28px; } }

.cart { display: grid; gap: 28px; }
@media (min-width: 1024px) { .cart { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }

.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line-media { grid-row: span 3; width: 84px; height: 84px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-line-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-name { font-weight: 500; line-height: 1.38; }
.cart-line-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line-meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.cart-line-meta .avail { font-size: 13px; }
.cart-line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.cart-line-total { margin-left: auto; text-align: right; }
.cart-line-total .price { font-size: 17px; }
.cart-line-total small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.remove-btn { color: var(--muted); height: 40px; min-width: 40px; }
.remove-btn:hover { color: var(--err); background: var(--err-soft); }
@media (min-width: 768px) {
    .cart-line { grid-template-columns: 112px minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
    .cart-line-media { width: 112px; height: 112px; grid-row: span 1; }
    .cart-line-info { display: grid; gap: 6px; }
    .cart-line-controls { margin-top: 0; flex-wrap: nowrap; }
}
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 18px; }

.summary { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--soft); }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary h2 { font-size: 19px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 16px; font-weight: 600; }
.summary-total .price { font-size: 24px; }
.summary-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.summary-lines { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.summary-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; }
.summary-line-media { width: 52px; height: 52px; padding: 4px; border-radius: 6px; background: #fff; }
.summary-line-media img { width: 100%; height: 100%; object-fit: contain; }
.summary-line b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.summary-line .avail { font-size: 12px; margin-top: 2px; }

.checkout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; } }
.step { padding: 28px 0; border-top: 1px solid var(--line); }
.step:first-child { padding-top: 0; border-top: 0; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 18px; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-size: 13px; font-weight: 700; flex: none; }

.segmented { display: inline-flex; justify-self: start; max-width: 100%; padding: 4px; border-radius: 10px; background: var(--soft); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 9px 16px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .15s, color .15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 20, .12); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 1px; }

.options { display: grid; gap: 10px; }
.option-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.option-card:hover { border-color: var(--ink-2); }
.option-card:has(input:checked) { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.option-card input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent-text); }
.option-card-body { flex: 1; display: grid; gap: 3px; }
.option-card-body b { font-weight: 600; }
.option-card-body small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.option-card-price { font-weight: 600; white-space: nowrap; text-align: right; font-size: 14px; }
.option-card-price.muted { font-weight: 400; }

.done { max-width: 720px; margin: 40px auto 0; display: grid; gap: 22px; }
.done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.done-icon .icon { width: 28px; height: 28px; stroke-width: 2; }
.done .lead { font-size: 17px; color: var(--ink-2); }
.timeline { display: grid; gap: 0; margin-top: 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); }
.timeline li:first-child .dot { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.timeline b { display: block; font-weight: 600; margin-bottom: 2px; }
.timeline p { color: var(--muted); font-size: 14px; }
.done-mail { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ——— Плашка про cookie: карточкой внизу слева, на телефоне — во всю ширину над липкой кнопкой покупки (z 30);
   ниже шапки (z 40): «Каталог» и подсказки поиска открываются поверх неё ——— */

.cookie-bar {
    position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px 16px; padding: 12px 12px 12px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--ink-2); box-shadow: var(--shadow);
    font-size: 13px; line-height: 1.4;
}
.cookie-bar p { flex: 1; }
.cookie-bar a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap; }
.cookie-bar a:hover { text-decoration-color: var(--accent-text); }
.cookie-bar .btn { height: 36px; padding: 0 16px; }
body:has(.sticky-buy.is-visible) .cookie-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .cookie-bar { right: auto; left: 24px; bottom: 24px; max-width: 460px; font-size: 14px; } }

/* ——— Уведомление «в корзине» ——— */

.toast {
    position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: var(--radius-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow);
    animation: toast-in .25s ease;
}
.toast .icon { color: #7ed3a0; }
.toast p { flex: 1; font-size: 14px; }
.toast a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.toast.is-hiding { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@media (min-width: 640px) { .toast { left: auto; right: 24px; bottom: 24px; max-width: 440px; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Полосы прокрутки (05.10.2026, Дмитрий: «проверь все такие элементы, где может появиться полоса»). Где до
   содержимого мышью иначе не добраться — фильтры, миниатюры снимков, сравнение, подсказки поиска, меню, окна, —
   полоса тонкая и спокойная; Safari понимает только ::-webkit-scrollbar, Chrome и Firefox — scrollbar-width и
   scrollbar-color. Где листают пальцем или стрелками — метки разделов, баннеры, — полосы нет вовсе (выше). */
:is(.filters, .gallery-thumbs, .compare-scroll, .suggest, .megamenu, .drawer, .modal-card, .consent details div) {
    scrollbar-width: thin; scrollbar-color: rgba(20, 20, 20, .22) transparent;
}
:is(.filters, .gallery-thumbs, .compare-scroll, .suggest, .megamenu, .drawer, .modal-card, .consent details div)::-webkit-scrollbar { width: 6px; height: 6px; }
:is(.filters, .gallery-thumbs, .compare-scroll, .suggest, .megamenu, .drawer, .modal-card, .consent details div)::-webkit-scrollbar-track { background: transparent; }
:is(.filters, .gallery-thumbs, .compare-scroll, .suggest, .megamenu, .drawer, .modal-card, .consent details div)::-webkit-scrollbar-thumb { background: rgba(20, 20, 20, .2); border-radius: 3px; }
:is(.filters, .gallery-thumbs, .compare-scroll, .suggest, .megamenu, .drawer, .modal-card, .consent details div)::-webkit-scrollbar-thumb:hover { background: rgba(20, 20, 20, .36); }

/* ——— Сайт проекта «Дом-Дизайн» (dom-design.org, 08.10.2026): каталог всех витрин без корзины. Стили витрин,
   лицо — App\Support\Hub::THEME; здесь — только то, чего у витрины нет: поиск на первом экране, магазины,
   категории, марка и магазин на плитке, «Где купить» ——— */

/* Одна колонка на любой ширине: без неё колонка сетки брала ширину поля поиска, и текст на телефоне уходил под край */
.hero.hub-hero { grid-template-columns: minmax(0, 1fr); }
.hub-hero .hero-body { padding-bottom: 32px; }
.hub-search { display: flex; gap: 8px; max-width: 640px; }
.hub-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--btn-radius); background: #fff; color: var(--ink); font: inherit; }
.hub-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.hub-search .btn { flex: none; height: 48px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--hero-ink-2); font-size: 15px; }
.hub-stats b { margin-right: 4px; color: var(--hero-ink); font-size: 20px; font-weight: 650; }
@media (min-width: 1024px) { .hero.hub-hero { min-height: 0; } }

.hub-shops-title { margin: 28px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hub-shops { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.hub-shops--row { margin-bottom: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.hub-shop { display: grid; gap: 4px; align-content: start; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .15s, box-shadow .15s; }
.hub-shop:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hub-shop-logo { display: flex; align-items: center; height: 40px; margin-bottom: 8px; }
.hub-shop-logo img { height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.hub-shop-domain { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.hub-shop-count { font-size: 13px; color: var(--muted); }

.hub-categories { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.hub-category { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 84px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .15s, box-shadow .15s; }
.hub-category:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hub-category-media { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius); background: var(--tile-media-bg); overflow: hidden; }
.hub-category-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hub-category-name { align-self: end; font-weight: 500; line-height: 1.3; }
.hub-category-count { align-self: start; font-size: 13px; color: var(--muted); }

.hub-megamenu .more { font-weight: 500; color: var(--ink); }
.footer-shops { columns: 2; column-gap: 20px; }

/* Плитка: марка над названием, магазин — внизу */
.tile-brand { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tile-shop { margin-top: 6px; font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }

/* «Где купить»: кнопка и магазин марки под ней */
.hub-where .btn { height: 52px; font-size: 16px; }
.hub-where-shop { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s; }
.hub-where-shop:hover { border-color: var(--line-2); }
.hub-where-logo { flex: none; display: grid; place-items: center start; width: 84px; height: 32px; }
.hub-where-logo img { max-width: 84px; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.hub-where-shop > span:last-child { display: grid; gap: 2px; min-width: 0; font-size: 14px; font-weight: 500; }
.hub-where-shop small { font-size: 13px; font-weight: 400; color: var(--muted); }
