/*
 * Витрина монобрендов: один шаблон на все бренды.
 * Лицо витрины — переменные из её настроек (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);
    /* Цифры одной высоты: у Raleway (dom-jd.ru, «Дом лепнины») по умолчанию «старинные», и телефоны с ценами скакали
       (25.10.2026). Только после font: он сбрасывает настройку цифр */
    font-variant-numeric: lining-nums;
    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); }
/* Выбор дня и часа — один для всех форм (10.11.2026, partials.timeslot): один список «день и время»; в форме — полем
   формы, в узком правом блоке оформления — компактнее */
.input.timeslot[hidden] { display: none; }
.callback .input.timeslot { height: 40px; padding: 0 10px; font-size: 14px; }
/* «Перезвоните мне для подтверждения» над согласием на оформлении: галка, под ней — выбор дня и часа */
.callback { display: grid; gap: 10px; }
.callback .consent { color: var(--ink-2); }
.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); }
/* Подписи под наличием в карточке (24.11.2026): под текстом надписи — отступ на точку с зазором, мельче */
.avail-note, .avail-hint { margin: 2px 0 0 16px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.avail-hint { 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; } }
/* Почта сайта проекта на телефоне скрыта — в строке остаётся «Заказать звонок», как у витрин (Дмитрий, 06.11.2026:
   «в моб версии скрой в шапке первую строку с электронной почтой zakaz@dom-design.org», «на dom-design.org тоже должен
   быть "заказать звонок"») */
@media (max-width: 767px) { .topbar-email { display: none; } }

.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; }
/* Подсказки организаций по ИНН и названию (27.10.2026) — тот же список, что у поиска, под своим полем */
.party-field { position: relative; }
.party-suggest { top: calc(100% + 4px); max-height: 340px; }
.party-option { display: block; width: 100%; padding: 8px 14px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
.party-option:hover, .party-option[aria-selected="true"] { background: var(--soft); }
.party-option b { display: block; font-weight: 600; }
.party-option small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.party-option .party-warn { color: var(--err); }
/* Доставка по адресу (10.11.2026): строка расчета под адресом — служба, «40 км от МКАД — 4 000 ₽», под ней — про ТК */
.delivery-quote { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; line-height: 1.4; }
.delivery-quote b { font-weight: 600; }
.delivery-quote small { font-size: 13px; color: var(--muted); }
.quote-hint { color: var(--ink-2); }
.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; }
.footer-legal { padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; }
.footer-legal a { color: var(--f-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--f-ink-2); }

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

.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; }
.requisites { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.requisites th, .requisites td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.requisites th { width: 36%; padding-right: 20px; color: var(--muted); font-weight: 400; }
.requisites td { color: var(--ink); overflow-wrap: anywhere; }
.requisites a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
    .requisites th, .requisites td { display: block; width: auto; padding: 0; border: 0; }
    .requisites th { padding-top: 12px; font-size: 13px; }
    .requisites td { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
}

.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). Второго снимка при наведении нет с 28.10.2026: плитка листает
   снимки полосками (.tile-dots, ниже) */
.tile-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; }
/* Метки на снимке плитки (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); }
.badge-designer { background: var(--badge-designer); color: var(--badge-designer-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .badge { font-size: 12px; } }
.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); }
/* Артикул и код товара (26.10.2026) — двумя частями: на узкой плитке код уходит на вторую строку целиком */
.tile-sku:has(span) { display: flex; flex-wrap: wrap; column-gap: 10px; }
.tile-sku span { white-space: nowrap; }
/* «Соберите комплект» в карточке: подпись вида над названием и строка про совместимость */
.tile-kind { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kit-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.tile-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 4px; }
/* НДС у цены в плитке — одной строкой, вплотную к цене (Дмитрий, 28.10.2026: «в разделах тоже нужно вывести это рядом с ценой
   (наверное, тут в одну строку)») */
.tile-vat { margin-top: -4px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.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); }
/* На широком экране фильтр — во всю высоту и идёт вместе со страницей, без своей прокрутки (Дмитрий, 28.10.2026: «можно
   фильтр сделать по высоте неограниченным, чтобы скролл не появлялся, прям бесит эта полоска»). До того он был липким
   с высотой не больше экрана, и длинный уходил в свою прокрутку; липкий без предела не показал бы низ, пока не кончится
   список. На телефоне фильтр — выезжающая панель, у неё прокрутка своя */
@media (min-width: 1024px) {
    .filters { position: static; z-index: auto; width: auto; transform: none; visibility: visible; overflow: visible; background: none; }
    .filters-head { display: none; }
    .filters-body { padding: 0; }
    .filters-actions { position: static; padding: 16px 0 4px; border-top: 0; background: none; }
    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; }
/* Длинный список — первые восемь и «Показать все — N», свернуть — тем же местом (28.10.2026): флажок без имени, на CSS */
.facet-more-toggle:not(:checked) ~ .facet-extra { display: none; }
.facet-more { margin-top: 2px; font-size: 13.5px; color: var(--accent-text); }
.facet-more-less, .facet-more-toggle:checked ~ .facet-more .facet-more-all { display: none; }
.facet-more-toggle:checked ~ .facet-more .facet-more-less { display: inline; }
.facet-more-toggle:focus-visible ~ .facet-more { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.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; }
.facet-option.is-locked input { opacity: .55; }
/* Цвет с отделками внутри (App\Support\FinishFamily, 19.10.2026): стрелка справа раскрывает отделки — с отступом под цветом */
.facet-group { position: relative; }
.facet-option--group { padding-right: 30px; }
.facet-shades > summary { position: absolute; top: 0; right: -6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); cursor: pointer; list-style: none; }
.facet-shades > summary::-webkit-details-marker { display: none; }
.facet-shades > summary:hover { color: var(--ink); background: var(--soft); }
.facet-shades > summary .icon { width: 16px; height: 16px; transition: transform .15s; }
.facet-shades[open] > summary .icon { transform: rotate(180deg); }
.facet-shades-list { display: grid; gap: 2px; padding: 0 0 6px 28px; }
.facet-shades-list .facet-option { min-height: 30px; font-size: 13.5px; }

.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; } }
.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; }
/* Строка над названием: серия слева, код товара справа (26.10.2026); серии нет — код справа один */
.product-kicker { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.product-code { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.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; }
    /* Количество и «В корзину» в строку были на 9 точек шире поля карточки шириной 300, и правый отступ выходил меньше
       левого (28.10.2026): столбец — не шире карточки, у кнопки поля уже */
    .product--three .purchase { grid-template-columns: minmax(0, 1fr); }
    .product--three .buy-row .btn { padding: 0 14px; }
}
.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; } }
/* НДС рядом с ценой (Дмитрий, 28.10.2026: «рядом с ценой мелким small — В т.ч. НДС 22% - X XXX,XX руб (можно в 2 строки
   чтобы было по высоте как цена»): две строки мелким серым справа от цены, вместе — по высоте как цифры цены. Не влезли
   в строку рядом — уходят под цену */
.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.price-vat { display: grid; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
@media (min-width: 1024px) { .price-vat { font-size: 13px; } }
/* dom-design.org: одной строкой под ценой (Дмитрий, 28.10.2026: «убери перенос в строке про НДС, сделай просто под ценой
   эту строчку»). 12 точек и на широком экране: в карточке покупки шириной 300 строка в 13 точек выходила за поле на 9 */
.price-line--under { display: grid; gap: 2px; }
.price-line--under .price-vat { display: block; font-size: 12px; }

.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; }

.not-for-sale { font-size: 14px; color: var(--muted); }
/* Оплата бонусами в оформлении кабинета и строки бонусного счёта */
.bonus-pay { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); }
.bonus-pay input[type=number] { max-width: 180px; }
.bonus-balance { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--soft); }
.bonus-balance-sum { font-size: 18px; }
.bonus-balance-sum b { font-size: 34px; font-weight: 600; line-height: 1.1; }
.bonus-rules { display: grid; gap: 10px; margin-top: 20px; max-width: 760px; line-height: 1.55; list-style: none; padding: 0; }
.account-sub { margin: 32px 0 12px; font-size: 20px; }
.bonus-history { display: grid; list-style: none; padding: 0; }
.bonus-history li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bonus-history-date { color: var(--muted); font-size: 14px; }
.bonus-history-title small { display: block; font-size: 13px; }
.bonus-history-sum { white-space: nowrap; }
.bonus-history-sum.is-plus { color: #1c7a43; }
/* Отзыв на площадке за бонусы: состояние под правилами и шаги над формой */
.bonus-offer { display: grid; gap: 10px; justify-items: start; margin-top: 16px; max-width: 760px; line-height: 1.55; }
.bonus-offer .notice { margin: 0; }
.bonus-steps { display: grid; gap: 8px; margin: 0 0 24px; padding-left: 22px; max-width: 760px; line-height: 1.55; list-style: decimal; }
.field input[type=file] { height: auto; padding: 10px 12px; font-size: 15px; }
@media (max-width: 480px) { .bonus-history li { grid-template-columns: minmax(0, 1fr) auto; } .bonus-history-date { grid-column: 1 / -1; } }
/* Видео в карточке: рамка 16:9, ролик вписан целиком (вертикальные — с полями) */
.product-video { max-width: 880px; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #111; }
.product-video video, .product-video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #111; }
/* Продаётся частями: строка у кнопки и блок «Для полного комплекта» на подложке — это условие покупки */
.kit-alert { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--soft); font-size: 14px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.kit-alert .icon { flex: none; margin-top: 1px; color: var(--accent-text); }
.kit-alert span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.kit-alert:hover span { text-decoration-color: currentColor; }
.kit-needs { padding: 24px 20px 8px; border-radius: var(--radius-lg); background: var(--soft); scroll-margin-top: 96px; }
.kit-needs .block-head { margin-bottom: 12px; }
.kit-needs-note { margin-bottom: 16px; max-width: 760px; font-size: 15px; line-height: 1.5; }
.kit-needs-note:last-child { margin-bottom: 12px; }
.kit-needs .cart-lines { border-top-color: var(--soft-2); }
.kit-needs .cart-line { border-bottom-color: var(--soft-2); }
.kit-needs .cart-line:last-child { border-bottom: 0; }
.kit-more { border-top: 1px solid var(--soft-2); }
.kit-more > summary { display: inline-flex; padding: 14px 0 12px; font-size: 14px; cursor: pointer; list-style: none; }
.kit-more > summary::-webkit-details-marker { display: none; }
.kit-more[open] > summary { display: none; }
.kit-more .cart-lines { border-top: 0; }
@media (min-width: 768px) { .kit-needs { padding: 28px 28px 12px; } }

/* Ссылка «Сообщить о снижении цены» (08.10.2026, Дмитрий: дизайн — как «Нашли дешевле?» в шаблонах Аспро): значок
   16×16 и текст 14px цветом основного текста, подчёркнутый точками; наведение — цветом ссылок витрины. Открывает окно */
.pseudo-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 14px; line-height: 1.6; color: var(--ink); cursor: pointer; }
.pseudo-link .icon { width: 16px; height: 16px; flex: none; }
/* Подчёркивание — отдельными свойствами: краткую запись с видом линии Safari понимает не везде */
.pseudo-link span { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: currentColor; text-underline-offset: 3px; }
.pseudo-link:hover { color: var(--accent-text); }
.modal-lead { margin-bottom: 18px; line-height: 1.5; }
.modal-lead b { color: var(--ink); font-weight: 600; }
/* Ошибка формы — в самом окне: сообщение над страницей закрыто затемнением («Купить в 1 клик», 26.10.2026) */
.modal-error { margin-bottom: 16px; }

.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; } }
/* Группы характеристик — двумя колонками друг под другом, а не сеткой по строкам: короткая группа рядом с длинной
   оставляла пустое поле (правка директора 28.10.2026, снимок «зачем нам пустое поле здесь») */
.specs { display: block; }
.spec-group { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 28px; }
.spec-group:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .specs { columns: 2; column-gap: 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.is-offer { opacity: .72; transition: opacity .15s; }
.cart-line.is-offer:hover, .cart-line.is-offer:focus-within { opacity: 1; }
.kit-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; }
.kit-box { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line-2); border-radius: 5px; background: #fff; }
.kit-check:hover .kit-box { border-color: var(--action); }
.cart-line-total small s { color: var(--muted); }
.summary-kit { display: block; font-size: 12px; color: var(--muted); }
.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; }
/* «Поделиться корзиной» и «Скачать PDF» — две кнопки рядом под итогом (правка директора 28.10.2026, все сайты) */
.summary-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-share .btn { width: 100%; justify-content: center; }
.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 { display: flex; font-size: 12px; margin-top: 2px; }   /* своей строкой: иначе «× 2» липнет к точке наличия */

.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); }
.done-mail { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
/* Кабинет на «Заказ принят» — как в письме (10.11.2026): кнопка и под ней мелкая серая строка */
.done-cabinet { display: grid; justify-items: start; gap: 8px; }
.done-cabinet p { font-size: 13px; color: var(--muted); }

/* Гарантийный талон на сайте проекта (09-hub-store.md, этап D, 26.10.2026): страница по QR с бумаги — сведения, QR,
   позиции со сроком; на телефоне строки таблицы — карточками, подпись колонки — из data-label */
.warranty { display: grid; gap: 24px; max-width: 920px; }
.warranty-head { display: grid; gap: 20px; }
@media (min-width: 640px) { .warranty-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.warranty-facts { display: grid; gap: 10px; }
.warranty-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.warranty-facts dt { color: var(--muted); font-size: 14px; }
.warranty-facts dd { margin: 0; overflow-wrap: anywhere; }
.warranty-qr { justify-self: start; display: grid; justify-items: center; gap: 6px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.warranty-qr img { width: 132px; height: 132px; image-rendering: pixelated; }
.warranty-qr figcaption { font-size: 12px; color: var(--muted); }
.warranty-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.warranty-lines th { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; font-weight: 600; color: var(--muted); }
.warranty-lines td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.warranty-lines b { font-weight: 500; }
@media (max-width: 639px) {
    .warranty-facts > div { grid-template-columns: 1fr; gap: 2px; }
    .warranty-lines thead { display: none; }
    .warranty-lines tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .warranty-lines td { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; }
    .warranty-lines td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
}
.warranty-terms { font-size: 14px; color: var(--ink-2); }
.warranty-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.warranty-card p { line-height: 1.5; }
.warranty-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ——— Плашка про 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; }
/* Уведомление «В корзину» без перезагрузки (26.10.2026): галочка — добавлено, «i» — отказ («сейчас не продаётся») */
.toast-ok, .toast-err { display: inline-flex; }
.toast .toast-err, .toast.err .toast-ok { display: none; }
.toast.err .toast-err { display: inline-flex; }
.toast.err .icon { color: #ffa59a; }
/* С липкой полосой «В корзину» внизу (телефон) уведомление — над ней: добавили из полосы, страница осталась на месте,
   и полоса видна дальше */
@media (max-width: 1023px) { body:has(.sticky-buy.is-visible) .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }
/* Пока «В корзину» в пути — кнопка притушена, второй щелчок не кладёт второй товар */
[data-cart-add] [type=submit][aria-busy], button[aria-busy="true"] { opacity: .6; cursor: progress; }
/* Отправка формы (13.11.2026): кнопка занята — перед словами крутится кружок её цвета, нажать второй раз нельзя */
form[data-sending] button[aria-busy="true"] { pointer-events: none; }
form[data-sending] button[aria-busy="true"]::before { content: ""; display: inline-block; flex: none; width: 1em; height: 1em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.15em; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { form[data-sending] button[aria-busy="true"]::before { animation-duration: 1.6s; } }
@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-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; }

/* Бренд в карточке сайта проекта — двумя обычными ссылками под покупкой (10.11.2026; до того — плашкой магазина в ней).
   На трех колонках покупка и ссылки — одной липкой колонкой */
.purchase-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hub-product-links { display: grid; gap: 8px; justify-items: start; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.hub-product-links a { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 1200px) {
    .product--three .purchase-side { grid-area: purchase; position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
    .product--three .purchase-side .purchase { grid-area: auto; position: static; }
}

/* ——— dom-design.org без рамок (Дмитрий, 26.10.2026: «может вообще этот бордер везде убрать нахрен, чище станет
   визуально, слишком уж схематично всё, итак все квадратное так мы еще это бордером выделяем»): блоки отделяет воздух,
   а не линия; кнопки второго ряда и поля — на подложке. Линии остались там, где без них нельзя: поля форм, таблицы,
   граница шапки. Только у сайта проекта (.hub) — витрины не меняются ——— */

/* Первый экран — фон во всю ширину окна, текст — по сетке страницы, без своих отступов по бокам («растянуть фон
   резиной от края до края, внутри блока убрать дополнительные отступы») */
.hub .hero.hero--full .hero-body { padding-left: 0; padding-right: 0; }
.hub .hub-search input { border-color: transparent; }

/* «Каталог» на главной — главные разделы со своими снимками (Дмитрий, 28.10.2026: «следующий блок дублирует первый
   экран»; выбран вариант «Главные разделы»). Снимок — кадр 4 : 3 на белом (public/hub/sections), прямо на странице,
   без подложки («убрать фон у блоков, сейчас тупо»); при наведении он чуть крупнее, название — цветом, как у плиток
   первого экрана. На компьютере — четыре в ряд, на планшете — три, на телефоне — два */
.hub-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 768px) { .hub-shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1024px) { .hub-shelves { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; } }
.hub-shelf { display: grid; align-content: start; gap: 4px; }
.hub-shelf-media { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden; }
.hub-shelf-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.hub-shelf-name { font-family: var(--font-accent); font-size: 16px; font-weight: 600; line-height: 1.3; transition: color .15s; }
@media (min-width: 1024px) { .hub-shelf-name { font-size: 17px; } }
.hub-shelf-count { font-size: 13px; color: var(--muted); }
.hub-shelf:hover .hub-shelf-name { color: var(--accent-text); }
.hub-shelf:hover .hub-shelf-media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .hub-shelf-media img { transition: none; } .hub-shelf:hover .hub-shelf-media img { transform: none; } }
.hub-shelf-media .no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); }
/* Без заголовка (Дмитрий, 28.10.2026: «на главной в блоке Каталог убери заголовок»): сверху и снизу блока — один отступ,
   отступ блока (.block: 64, от 1024 — 88), как было от первого экрана до заголовка. «Показать еще» открывает следующие
   разделы по восемь — скриптом; без скрипта видны все, кнопки нет */
html.js .hub-shelf--more:not(.is-shown) { display: none; }
.hub-more-row { display: flex; justify-content: center; margin-top: 36px; }
.hub-more-row[hidden] { display: none; }
.hub-more { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; transition: color .15s; }
.hub-more .icon { width: 18px; height: 18px; }
.hub-more:hover { color: var(--ink); }
/* «Магазины проекта» — полосой фирменного фона во всю ширину окна, лён первого экрана (Дмитрий, 28.10.2026: «этому блоку
   нужно добавить фирменный фоновый цвет»); отступ до полосы — отступ блока, поля внутри — такие же: 64, от 1024 — 88 */
.hub .hub-band { padding: 64px 0; background: var(--hero-bg); box-shadow: 0 0 0 100vmax var(--hero-bg); clip-path: inset(0 -100vmax); }
@media (min-width: 1024px) { .hub .hub-band { padding: 88px 0; } }
@media (max-width: 639px) { .hub .hub-band { padding: 48px 0; } }

/* Магазины и разделы — без рамок: логотип и подпись, при наведении — цвет */
.hub .hub-shop { padding: 4px 0; border: 0; background: none; }
.hub .hub-shop:hover { box-shadow: none; }
/* Логотип — в полосе одной высоты, сам — высотой от своих пропорций (--logo-h из shop-tiles): на глаз одного размера */
.hub .hub-shop-logo { height: 48px; margin-bottom: 6px; }
.hub .hub-shop-logo img { height: var(--logo-h, 30px); transition: opacity .15s; }
.hub .hub-shop-logo b { font-family: var(--font-accent); font-size: 19px; letter-spacing: .02em; }
.hub .hub-shop:hover .hub-shop-logo img { opacity: .7; }
.hub .hub-shop:hover .hub-shop-logo b, .hub .hub-shop:hover .hub-shop-count { color: var(--accent-text); }
/* Бренды на телефоне — в две колонки («на моб версии на главной список брендов в 2 колонки»), и у направлений так же */
@media (max-width: 639px) { .hub .hub-shops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.hub .hub-category { padding: 0; border: 0; background: none; }
.hub .hub-category:hover { box-shadow: none; }
.hub .hub-category:hover .hub-category-name { color: var(--accent-text); }
/* Квадрат снимка раздела — без подложки: у раздела без обложки пустой квадрат на подложке читался заглушкой */
.hub .hub-category-media { background: none; }

/* ——— Белый сайт (Дмитрий, 28.10.2026: «не нравится мне этот фон по всему сайту, делай белый», «Оставь этот фон только
   для первого экрана главной страницы где поиск по всем брендам»). Страницы, шапка, меню и окна — белые, светлый лён —
   только у первого экрана главной (--hero-bg, App\Support\Hub). Листов на льне (26.10.2026) больше нет: блоки разделяет
   воздух, раскладка страниц — как у витрин. У направления «По брендам» и «По разделам» — с полосой воздуха между ними:
   без неё два блока сливались ——— */
/* Шире сверху (Дмитрий, 28.10.2026: «подзаголовки По брендам и По разделам - добавь им margin-top больше, для визуального
   разделения блоков») */
.hub .page-head + .hub-section { margin-top: 40px; }
.hub .hub-section + .hub-section { margin-top: 88px; }
.hub .hub-section .hub-shops--row { margin-bottom: 0; }

/* Подзаголовки групп «Магазинов проекта» — как надпись над заголовком первого экрана, оливковым (Дмитрий, 26.10.2026:
   «подзаголовки Сантехника и т.д. сделай оливковым как на первом экране "ПРОЕКТ «ДОМ-ДИЗАЙН»"») */
/* Отступ сверху — шире (Дмитрий, 28.10.2026: «у подзаголовков сделать отступ сверху больше (тогда разные разделы
   раздвинуться друг от друга естественно)») */
.hub .hub-shops-title {
    margin: 64px 0 18px; font-family: var(--font-accent); font-size: 12px; font-weight: 600; letter-spacing: .09em;
    text-transform: uppercase; color: var(--hero-eyebrow);
}
/* Первый подзаголовок — в 40 точках под заголовком блока, а не в 20 (Дмитрий, 28.10.2026: «у заголовка "Все бренды
   проекта" сделай нижний отступ больше (сейчас слипается с первым подзаголовком)»); между группами — прежние 64 */
.hub .block-head + .hub-shops-title { margin-top: 40px; }
.hub .hub-shop-logo img { mix-blend-mode: multiply; }

/* «Как купить»: номер шага — крупной цифрой фоном, заголовок и текст поверх неё (Дмитрий, 26.10.2026: «уберем эти
   уголки, сделаем в фоне 01 02 03 и добавим 04 Доставка»); цифры — без нуля впереди («давай попробуем вместо 01 02 03 04
   сделать 1 2 3 4») */
.hub .step-card { position: relative; isolation: isolate; padding: 58px 0 0; border: 0; background: none; }
.hub .step-card::before {
    content: counter(step);
    position: absolute; z-index: -1; top: -8px; left: -6px;
    font-family: var(--font-accent); font-size: 104px; font-weight: 700; line-height: 1; letter-spacing: -.05em;
    color: #ECE4D3;
}
.hub .step-card h3 { font-size: 18px; }
.hub .steps { gap: 28px 32px; }

/* Коллаж справа на первом экране главной (Дмитрий, 26.10.2026: «Делаем вариант 1 — коллаж: интерьерный кадр и четыре
   плитки направлений»): кадр интерьера во всю высоту и четыре плитки — снимок товара на листе, подпись направления.
   Плитка — ссылка в направление. На планшете коллаж — под поиском, на телефоне его нет: там сначала поиск и каталог */
.hub-hero-art { display: none; }
@media (min-width: 640px) {
    .hub-hero-art { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 360px; margin-bottom: 40px; }
}
/* При 1024 коллаж уже: в 540 точек заголовку и поиску оставалось 360, заголовок ломался на пять строк */
@media (min-width: 1024px) {
    .hub .hero.hub-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; column-gap: 40px; }
    .hub-hero-art { height: 400px; margin-bottom: 0; }
}
@media (min-width: 1280px) {
    .hub .hero.hub-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); column-gap: 56px; }
    .hub-hero-art { height: 440px; }
}
.hub-hero-photo { grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.hub-hero-tile { position: relative; display: block; background: var(--bg); overflow: hidden; }
.hub-hero-tile img { position: absolute; inset: 18px 14px 34px; width: calc(100% - 28px); height: calc(100% - 52px); object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.hub-hero-tile span { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-accent); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .09em; text-transform: uppercase; color: var(--hero-eyebrow); transition: color .15s; }
.hub-hero-tile:hover img { transform: scale(1.05); }
.hub-hero-tile:hover span { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hub-hero-tile img { transition: none; } .hub-hero-tile:hover img { transform: none; } }

/* Первый экран главной — просторнее снизу и немного сверху (Дмитрий, 26.10.2026: «нужно увеличить отступ снизу и немного
   сверху, посмотри как будет лучше»). Лён кончается вместе с ним (28.10.2026), ниже — белая страница */
.hub .hub-hero .hero-body { padding-top: 40px; padding-bottom: 52px; }
@media (min-width: 1024px) { .hub .hub-hero .hero-body { padding-top: 72px; padding-bottom: 92px; } }

/* Без подложек карточки держатся воздухом (Дмитрий, 26.10.2026: «По брендам / По разделам (в т.ч на главной где
   Сантехника и т.д) блоки сливаются, надо отступы или какое-то дизайнерское решение»): между карточками — шире */
.hub .hub-shops { gap: 28px 24px; }
.hub .hub-categories { gap: 28px 32px; }

/* Шапка (Дмитрий, 26.10.2026): «Каталог» и поиск — без подложки, цветом — при наведении и открытом меню. Поиск по щелчку
   раскрывается до конца строки, подписи справа складываются в значки, при уходе из поля всё возвращается («при клике на
   Поиск можно его раскрывать до конца строки? а следующие пункты складывать в иконки. при расфокусе возвращать все
   обратно»). Раскрыт, пока в поле фокус или открыты подсказки: щелчок по подсказке в Safari снимает фокус ещё до
   перехода, и строка не должна съёжиться из-под курсора. Обратно — с задержкой в четверть секунды: щелчок по значку справа
   успевает дойти, пока значки не поехали */
.hub .header .btn-catalog:hover, .hub .header .btn-catalog[aria-expanded="true"] { color: var(--accent-text); }
@media (min-width: 1024px) {
    .hub .search { transition: max-width .3s ease .25s; }
    .hub .search input { padding: 0 4px 0 34px; text-overflow: ellipsis; transition: box-shadow .2s; }
    .hub .search input::placeholder { color: var(--muted); opacity: 1; }
    .hub .search input:focus { background: transparent; box-shadow: inset 0 -2px 0 var(--accent-text); }
    .hub .search > button { left: -6px; right: auto; color: var(--muted); }
    .hub .header-main:has(.search:focus-within, .suggest:not([hidden])) .search { max-width: 100%; transition-delay: 0s; }
}
@media (min-width: 1280px) {
    .hub :is(.header-phone, .header-account) > span, .hub .cart-label {
        max-width: 220px; overflow: hidden; transition: max-width .3s ease .25s, margin .3s ease .25s, opacity .2s ease .25s;
    }
    .hub .header-main:has(.search:focus-within, .suggest:not([hidden])) :is(.header-phone > span, .header-account > span, .cart-label) {
        max-width: 0; margin-left: -8px; opacity: 0; transition-delay: 0s;
    }
}

/* Меню «Каталог» — белое, как шапка, из которой оно выпадает (28.10.2026); направления — одной строкой. Снимок — прямо
   на меню, без своей подложки (Дмитрий, 26.10.2026: «в выпадающем меню Каталог убрать фон для фото разделов»), и пониже,
   16 : 9: в четверти ширины 4 : 3 вытягивал меню на полэкрана. Подсказки поиска и окна — белые, как у витрин */
.hub .megamenu-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 320px); gap: 40px; padding-top: 24px; padding-bottom: 28px; }
.hub .megamenu-item { gap: 10px; }
.hub .megamenu-media { aspect-ratio: 16 / 9; }
.hub .megamenu-media, .hub .megamenu-card:hover .megamenu-media { background: none; }
.hub .megamenu-media img { inset: 0; width: 100%; height: 100%; }
.hub .megamenu-card:hover .megamenu-root { color: var(--accent-text); text-decoration: none; }
/* Окно у плитки бренда: «Показать товары бренда» и «Перейти на сайт бренда» (26.10.2026) */
.hub-brand-choice .modal-card { max-width: 400px; }
.hub-brand-actions { display: grid; gap: 10px; }
.hub-brand-site { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; }
/* Разделы бренда над списком: в категорию с фильтром «Бренд» */
.hub-brand-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 24px; }
.hub-brand-sections .chip span { margin-left: 4px; color: var(--muted); }

/* ——— Главные кнопки (Дмитрий, 28.10.2026: «CTA-кнопки нужно заменить в обычном формате на шрифт = акцентный цвет, :hover
   на то как есть»): текст — цветом акцента на песочной подложке, при наведении — заливка цветом акцента с белым текстом,
   как была. Так «В корзину» на плитках вела себя с 26.10.2026, теперь — все главные: «Найти», «В корзину» в карточке,
   «Оформить заказ», «Согласен» и другие. Подложка, а не рамка: рамки с сайта сняты 26.10.2026. Где фон сам песочный
   или лён — первый экран, итог корзины и оформления, подсказки, — подложка белая: песочная там пропадала бы ——— */
.hub .btn:not(.btn-secondary, .btn-ghost, .btn-light, .btn-catalog) { background: var(--soft); border-color: transparent; color: var(--accent-text); }
.hub :is(.hero, .summary, .notice, .order-callout, .new-order-cart, .account-confirm) .btn:not(.btn-secondary, .btn-ghost, .btn-light, .btn-catalog) { background: #fff; }
.hub .btn:not(.btn-secondary, .btn-ghost, .btn-light, .btn-catalog):not([disabled]):hover { background: var(--action); color: var(--action-ink); }
/* Сразу залитые — .btn-solid (Дмитрий, 28.10.2026: «кнопка сразу оливковая: в корзину в разделе, получить код во входе в лк,
   показать товары бренда во всплывающем окне, отправить во всплывающем окне в 1 клик»; «В корзину» в карточке — «сразу как
   :hover»): при наведении — темнее */
.hub .btn.btn-solid { background: var(--action); border-color: transparent; color: var(--action-ink); }
.hub .btn.btn-solid:not([disabled]):hover { background: var(--action-hover); color: var(--action-ink); }

/* ——— Наведение — цветом, без подложки (Дмитрий, 28.10.2026: «убрать :hover бэкграунд у элементов шапки и где там еще
   осталось»): значки шапки и окон, кнопки второго ряда, плашки разделов, меню кабинета, подсказки поиска и реквизитов,
   стрелки отделок в фильтре. Подложку при наведении меняют только главные кнопки — заливкой ——— */
.hub .icon-btn { transition: color .15s; }
.hub .icon-btn:hover { background: transparent; color: var(--accent-text); }
.hub .remove-btn:hover { background: transparent; color: var(--err); }
.hub .btn-ghost:hover { background: transparent; color: var(--accent-text); }
.hub .chip:not(.chip-close, .chip-outline, .is-active):hover { background: var(--soft); color: var(--accent-text); }
.hub :is(.suggest a, .party-option):is(:hover, [aria-selected="true"]) { background: transparent; color: var(--accent-text); }
.hub .facet-shades > summary:hover { background: transparent; color: var(--accent-text); }
@media (min-width: 1024px) { .hub .account-nav a:not([aria-current]):hover { background: transparent; color: var(--accent-text); } }

/* ——— Плитка: полоски снимков внизу снимка — видны при наведении, тёмная — показанный (Дмитрий, 28.10.2026: «при наведении на
   фото товара показывай линиями количество фото и перелистывай при проведении в этой области каждое фото»; тем же днём —
   на все витрины). Листает скрипт; на телефоне наведения нет — полосок тоже ——— */
.tile-dots { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 6px; display: none; gap: 4px; pointer-events: none; }
.tile-dots i { flex: 1; height: 2px; background: rgba(36, 33, 29, .14); transition: background-color .15s; }
.tile-dots i.is-on { background: var(--ink-2); }
@media (hover: hover) { .tile:hover .tile-dots { display: flex; } }

/* Шапка, прилипшая при прокрутке, — с еле заметной тенью снизу (Дмитрий, 28.10.2026: «для fixed шапки сделай тень снизу
   чуть-чуть»); класс is-scrolled ставит скрипт */
.hub .header { transition: box-shadow .2s; }
html.is-scrolled .hub .header { box-shadow: 0 3px 12px rgba(36, 33, 29, .07); }
/* «По брендам» у направления — полосой фирменного фона во всю ширину (Дмитрий, 28.10.2026: «в основных разделах блок По
   брендам сделай с фирменным фоном во всю ширину»); полоса уже, чем у главной: в ней один ряд логотипов */
.hub .hub-band--brands { padding: 40px 0 44px; }
@media (min-width: 1024px) { .hub .hub-band--brands { padding: 48px 0 52px; } }
/* Строка с названием раздела — с отступом снизу (Дмитрий, 28.10.2026: «в разделах сделай отступ снизу от линии с заголовком
   раздела») */
/* С того же дня — и в разделах витрин («отступ в разделах от линии с заголовком раздела на остальных сделай как на dom-design») */
.page-head--shelf { margin-bottom: 28px; }
@media (min-width: 1024px) { .page-head--shelf { margin-bottom: 40px; } }

/* ——— Сортировка раздела — в строке с названием, своим списком со значками (Дмитрий, 28.10.2026: «select сортировки вынеси
   в строку с названием, сделай нормальный дизайн, сейчас уж слишком дефолтный select; добавь иконки»; тем же днём — на всех
   витринах: «перенеси его выше (все как сделали на dom-design)»). Пункты — ссылки; без скрипта список открывается
   фокусом. Наведение — цветом, без подложки; углы списка — по витрине ——— */
.hub .page-head, .page-head:has(> .sort-pick) { align-items: center; }
.sort-pick { position: relative; margin-left: auto; }
html:not(.js) .sort-pick:focus-within .sort-menu { display: block; }
.sort-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 2px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color .15s; }
.sort-button > .icon:first-child { color: var(--muted); transition: color .15s; }
.sort-button > .icon:last-child { transition: transform .15s; }
.sort-button:hover, .sort-button[aria-expanded="true"], .sort-button:hover > .icon:first-child, .sort-button[aria-expanded="true"] > .icon:first-child { color: var(--accent-text); }
.sort-button[aria-expanded="true"] > .icon:last-child { transform: rotate(180deg); }
.sort-menu { display: none; position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); min-width: 250px; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sort-menu.is-open { display: block; }
.sort-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; color: var(--ink-2); transition: color .15s; }
.sort-menu a > .icon { color: var(--muted); transition: color .15s; }
.sort-menu a > .icon:last-child:not(:first-child) { margin-left: auto; }
.sort-menu a:hover, .sort-menu a.is-active, .sort-menu a:hover > .icon, .sort-menu a.is-active > .icon { color: var(--accent-text); }
.sort-menu a.is-active { font-weight: 600; }
/* Строка над товарами — только кнопка фильтров телефона: на широком экране её нет вовсе, иначе над товарами пустая полоса
   в 18 точек (на витринах — с 28.10.2026, когда сортировка ушла в строку с названием) */
@media (min-width: 1024px) { .catalog-main > .toolbar { display: none; } }

/* Подзаголовки страницы направления: «По брендам», «По разделам» */
.hub .hub-subhead { margin: 0 0 24px; font-size: 20px; }

/* Карточка товара: миниатюры — на белом с еле заметной рамкой, выбранная — цветом (Дмитрий, 28.10.2026: «превью фото сейчас
   с фирменным фоном, я думаю нужно оставить еле заметный border»); кнопки второго ряда, счётчик, магазин — на подложке */
.hub .thumb { border-color: var(--line); background: #fff; }
.hub .thumb.is-active, .hub .thumb:hover { border-color: var(--accent-text); }

/* ——— Галерея карточки (Дмитрий, 28.10.2026): ниже по высоте — целиком на экране ноутбука («на моем макбуке оно не влезает
   целиком»): квадрат, но не выше экрана без 300 точек, от 340 до 560; стрелки — при наведении; щелчок — снимок в полный
   размер с листалкой и превью. Сначала — сайт проекта, с того же дня — все витрины («настройки слайдера на стр товара
   и в разделе перенеси на все витрины»): data-gallery-nav ——— */
[data-gallery-nav] .gallery-main { cursor: zoom-in; }
@media (min-width: 1024px) { [data-gallery-nav] .gallery-main { max-height: clamp(340px, calc(100vh - 300px), 560px); } }
.gallery-arrow { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }
.gallery-arrow:hover { color: var(--accent-text); border-color: var(--accent-text); }
.gallery-main:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow[hidden] { display: none; }
@media (hover: none) { .gallery-arrow { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 120; display: none; grid-template-rows: minmax(0, 1fr) auto; background: #fff; }
.lightbox.is-open { display: grid; }
/* Дорожки сцены — от размера окна, а не от снимка: на автоматических снимок в 1000 точек выходил из окна под ленту превью
   (28.10.2026), и max-height в процентах ничего не ограничивал */
.lightbox-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 64px 88px 12px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: color .15s; }
.lightbox-close .icon { width: 26px; height: 26px; }
.lightbox-close:hover { color: var(--accent-text); }
.lightbox-arrow { position: absolute; z-index: 2; top: 50%; width: 52px; height: 52px; margin-top: -40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; transition: color .15s, border-color .15s; }
.lightbox-arrow--prev { left: 20px; }
.lightbox-arrow--next { right: 20px; }
.lightbox-arrow:hover { color: var(--accent-text); border-color: var(--accent-text); }
.lightbox-arrow[hidden] { display: none; }
.lightbox-thumbs { display: flex; justify-content: center; gap: 8px; padding: 10px 16px 20px; overflow-x: auto; }
.lightbox-thumbs:empty { display: none; }
.lightbox-thumbs button { flex: none; width: 64px; height: 64px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.lightbox-thumbs button.is-active, .lightbox-thumbs button:hover { border-color: var(--accent-text); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 639px) {
    .lightbox-stage { padding: 64px 8px 8px; }
    .lightbox-arrow { display: none; }
    .lightbox-thumbs { justify-content: flex-start; }
}

/* ——— Покупка в карточке сайта проекта (Дмитрий, 28.10.2026): «В корзину» — сразу залитой (.btn-solid); количество и «Купить
   в 1 клик» — на белом с еле заметной рамкой, как превью: на песочной подложке они спорили с главной кнопкой («сомневаюсь,
   что нужен такой фон») ——— */
.hub .purchase .qty { border-color: var(--line-2); background: #fff; }
.hub .purchase .btn-secondary { border-color: var(--line-2); background: #fff; color: var(--ink); }
.hub .purchase .btn-secondary:hover { border-color: var(--accent-text); background: #fff; color: var(--accent-text); }

/* ——— «… других брендов» — слайдером: по четыре на компьютере, по три на планшете, по два на телефоне (Дмитрий, 28.10.2026:
   «сделай слайдером, чтобы можно было пролистать 2-3 клика еще полных»). Поля у ленты — под рамку и тень плитки ——— */
.slider-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.slider-head .link { margin-right: 8px; }
.slider-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: color .15s, border-color .15s, opacity .15s; }
.slider-arrow:hover:not([disabled]) { border-color: var(--accent-text); color: var(--accent-text); }
.slider-arrow[disabled] { opacity: .35; cursor: default; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; margin: -10px -2px -18px; padding: 10px 2px 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 2px; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .slider-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; } }
@media (min-width: 1024px) { .slider-track { grid-auto-columns: calc((100% - 3 * 20px) / 4); } }
.hub .btn-secondary { background: var(--soft); border-color: transparent; }
.hub .btn-secondary:hover { background: var(--soft); border-color: transparent; color: var(--accent-text); }
.hub .qty { border-color: transparent; background: var(--soft); }
.hub .variant-option { border-color: var(--line); }

/* ——— Кабинет покупателя на сайте проекта (08.10.2026): вход кодом из письма, заказы всех витрин, профиль, адреса,
   плательщики. «Вход для клиентов» на витринах — в верхней строке (от 768 точек), на телефоне — первым в меню ——— */

/* Подпись у входа в шапке сайта проекта — от 1280: при 1024 она съедала полстроки поиска */
.header-account span { display: none; }
@media (min-width: 1280px) { .header-account span { display: inline; font-weight: 600; } }
/* С корзиной, избранным и сравнением (25.10.2026) поиску при 1024 снова не хватало места: до 1280 у телефона и корзины —
   только значки; номер — в подписи ссылки, бесплатный номер — в верхней строке */
@media (min-width: 1024px) and (max-width: 1279px) { .hub .header-phone span, .hub .cart-label { display: none; } }
.topbar-account { display: none; }
@media (min-width: 768px) { .topbar a.topbar-account { display: inline; } }
/* С входом строка не помещается при 768 и 1024: пометка — короче, часы — в подвале и в меню; целиком — от 1280 */
@media (max-width: 1279px) { .topbar.has-account .topbar-hours, .topbar.has-account .topbar-note-more { display: none; } }
.drawer-account { display: flex; align-items: center; gap: 12px; margin: 12px var(--gutter) 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.drawer-account .icon { color: var(--muted); }

/* Вход: узкой колонкой по центру */
.account-entry { max-width: 440px; margin: 40px auto 0; display: grid; gap: 18px; }
.account-lead { color: var(--ink-2); line-height: 1.55; }
.account-lead b { overflow-wrap: anywhere; }
.account-help { font-size: 14px; color: var(--muted); line-height: 1.55; }
.account-alt { display: grid; gap: 10px; justify-items: start; font-size: 14px; }
.field input.code-input { font-size: 22px; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.account .nobr, .account-entry .nobr { white-space: nowrap; }

/* Кабинет: разделы слева, на телефоне — строкой над страницей */
.account { display: grid; gap: 20px; padding-bottom: 24px; }
@media (min-width: 1024px) { .account { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; } }
.account-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.account-who { display: grid; gap: 2px; min-width: 0; }
.account-who b { font-size: 17px; overflow-wrap: anywhere; }
.account-who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
/* Четыре раздела — переносом, а не прокруткой вбок: на телефоне видно все сразу */
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.account-nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--chip-radius); background: var(--soft); font-size: 14px; font-weight: 500; white-space: nowrap; }
.account-nav a[aria-current] { background: var(--action); color: var(--action-ink); }
.account-side-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
@media (min-width: 1024px) {
    .account-nav { display: grid; gap: 2px; }
    .account-nav a { height: 42px; border-radius: var(--radius); background: transparent; font-size: 15px; }
    .account-nav a:hover { background: var(--soft); }
    .account-nav a[aria-current] { background: var(--soft-2); color: var(--ink); font-weight: 600; }
    .account-side-foot { display: grid; gap: 10px; justify-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
}
.account-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.account-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.account-head .count { color: var(--muted); }
.account-intro { max-width: 640px; line-height: 1.55; }
.account-empty { padding: 32px 0; }
.account-empty p { max-width: 520px; line-height: 1.55; }
.account-block { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-block h2 { font-size: 19px; }
.account-block > .muted { max-width: 640px; line-height: 1.55; }
.account-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; max-width: 640px; }
.account-inline .field { flex: 1 1 240px; min-width: 0; }
.account-form { max-width: 640px; }
.account-list { display: grid; max-width: 760px; }
.account-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-list-main { display: grid; gap: 2px; min-width: 0; }
.account-list-main b { font-weight: 600; overflow-wrap: anywhere; }
.account-list-main .muted { font-size: 13px; }
.account-confirm { max-width: 640px; padding: 16px; border-radius: var(--radius); background: var(--soft); }
.account-confirm b { overflow-wrap: anywhere; }
.account-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.account-card { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.account-card p { overflow-wrap: anywhere; line-height: 1.5; }
.account-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.account-card-head b { overflow-wrap: anywhere; }
.account-tag { padding: 2px 8px; border-radius: var(--chip-radius); background: var(--soft-2); font-size: 12px; font-weight: 600; }
.account-card-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 14px; }
.account-card-actions details[open] { flex-basis: 100%; order: 1; }
.account-card-actions details form { margin-top: 12px; }
.account-card-actions summary { cursor: pointer; list-style: none; }
.account-card-actions summary::-webkit-details-marker { display: none; }

/* Заказы: карточкой — номер и статус, магазин и дата, снимки состава и сумма */
.orders { display: grid; gap: 12px; }
.order-card { display: grid; gap: 10px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.order-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.order-card-number { font-size: 17px; font-weight: 650; }
.order-card-number:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-card-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.order-card-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.order-thumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.order-thumbs img { flex: none; width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tile-media-bg); }
.order-thumbs-more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.order-thumbs-names { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.order-card-sum { flex: none; font-size: 17px; font-weight: 650; white-space: nowrap; }
.order-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; }
.order-track { font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; }
/* Трек ссылкой на отправление у перевозчика (10.11.2026) */
a.order-track { text-decoration: underline; text-underline-offset: 2px; }
.order-status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--chip-radius); background: var(--soft-2); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.order-status.is-awaiting_payment { background: var(--wait-soft); color: var(--wait); }
.order-status.is-completed { background: var(--ok-soft); color: var(--ok); }
.order-status.is-cancelled, .order-status.is-returned { background: var(--soft); color: var(--muted); }

/* Заказ: путь, оплата, состав, итоги, доставка и плательщик */
.order-meta { margin-top: -10px; font-size: 14px; color: var(--muted); }
.order-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--wait-soft); }
.order-callout p { line-height: 1.5; }
/* Статусы заказа кружками (09.11.2026, слова Дмитрия): пройденные — залитые с галкой и сплошной линией, текущий —
   обведён и жирным, будущие — серые через пунктир. Линия — от кружка к кружку, у каждого шага — к нему от прошлого. */
.order-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 6px 0 4px; }
.order-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: 12px; line-height: 1.25; color: var(--muted); }
.order-step + .order-step::before { content: ""; position: absolute; top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); border-top: 2px dotted var(--line-2); }
.order-step.is-done::before, .order-step.is-current::before { border-top-style: solid; border-color: var(--action); }
.order-step-dot { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); }
.order-step.is-done .order-step-dot { border-color: var(--action); background: var(--action); color: var(--action-ink); }
.order-step.is-current .order-step-dot { border-color: var(--action); box-shadow: 0 0 0 4px var(--soft-2); }
.order-step.is-current:not(.is-done) .order-step-dot { color: var(--action); }
.order-step.is-done .order-step-label { color: var(--ink-2); }
.order-step.is-current .order-step-label { color: var(--ink); font-weight: 700; }
/* Когда заказ получил статус — под кружком, только в кабинете (10.11.2026) */
.order-step-date { margin-top: -4px; font-size: 11px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
    .order-step { font-size: 13px; }
}
.order-section { display: grid; gap: 12px; }
/* НДС под «Итого» — как в письме и у цены на витрине (10.11.2026) */
.order-total-vat { display: flex; justify-content: flex-end; margin-top: -4px; }
.order-total-vat dd { font-size: 12px; color: var(--muted); }
.order-section h2 { font-size: 19px; }
/* Дата и время доставки в кабинете (25.11.2026): даты и время — плашками, выбранная — рамкой акцента */
.slot-done { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--soft); display: grid; gap: 4px; }
.slot-change > summary { cursor: pointer; width: max-content; list-style: none; }
.slot-change > summary::-webkit-details-marker { display: none; }
.slot-form { display: grid; gap: 14px; margin-top: 10px; }
.slot-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.slot-choices legend { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-chip { position: relative; cursor: pointer; }
.slot-chip input { position: absolute; opacity: 0; pointer-events: none; }
.slot-chip span { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; line-height: 1.3; background: var(--bg); }
.slot-chip small { display: block; font-size: 11px; color: var(--muted); }
.slot-chip input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.slot-chip input:focus-visible + span { outline: 2px solid var(--accent-ring, var(--accent)); outline-offset: 2px; }
.slot-form .btn { justify-self: start; }
.slot-hint { font-size: 13px; color: var(--muted); margin: 0; }
.order-lines { display: grid; }
.order-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-line-media { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tile-media-bg); }
.order-line-media img { width: 100%; height: 100%; object-fit: contain; }
.order-line-name { display: grid; gap: 4px; min-width: 0; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.order-line-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-line-name .muted { font-size: 13px; font-weight: 400; }
.order-line-sum { font-weight: 600; white-space: nowrap; }
.order-totals { display: grid; gap: 6px; width: 100%; max-width: 420px; margin: 4px 0 0 auto; }
.order-totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.order-totals dt { color: var(--muted); }
.order-totals dd { margin: 0; white-space: nowrap; }
.order-totals .order-total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 650; }
.order-totals .order-total dt { color: var(--ink); }
.order-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-facts h3 { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.order-facts p { line-height: 1.5; overflow-wrap: anywhere; }

/* ——— Кабинет, этап 2 (08.10.2026): «Новый заказ» — поиск по всем магазинам и «Добавить», заказ по магазинам,
   оформление из сохранённого; заказ проекта — одна карточка с частями по магазинам ——— */
.account-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.account-new .btn[aria-current] { box-shadow: 0 0 0 2px var(--accent-ring); }
@media (min-width: 1024px) { .account-new { display: grid; justify-items: start; gap: 8px; } }

.new-order-search { display: grid; gap: 12px; max-width: 820px; }
@media (min-width: 768px) { .new-order-search { grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; align-items: end; } }
.new-order-cart { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 820px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--soft); font-size: 14px; line-height: 1.45; }
.new-order-found p { font-size: 14px; }

.offers { display: grid; border-top: 1px solid var(--line); }
.offer { scroll-margin-top: calc(var(--header-h) + 16px); }
.offer form { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.offer-media { display: grid; place-items: center; width: 72px; height: 72px; padding: 4px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tile-media-bg); }
.offer-media img { width: 100%; height: 100%; object-fit: contain; }
.offer-media .no-photo .icon { color: var(--faint); }
.offer-info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.offer-brand { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.offer-brand .muted { font-weight: 400; }
.offer-name { font-weight: 500; line-height: 1.38; overflow-wrap: anywhere; }
.offer-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.offer-sku, .offer-label { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.offer-variant { margin-top: 4px; }
.offer-variant select { height: 40px; font-size: 14px; }
.offer-buy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.offer-price { display: grid; gap: 2px; }
.offer-price .avail { font-size: 13px; }
.offer-actions { display: flex; align-items: center; gap: 10px; }
.offer-note { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.offer-note.ok { color: var(--ok); }
.offer-note.err { color: var(--err); }
@media (min-width: 768px) {
    .offer form { grid-template-columns: 96px minmax(0, 1fr) 250px; align-items: center; column-gap: 20px; }
    .offer-media { width: 96px; height: 96px; }
    .offer-buy { grid-column: auto; display: grid; justify-items: end; text-align: right; }
    .offer-note { justify-content: flex-end; }
}

/* Корзина и оформление кабинета — одной колонкой, итог под строками: слева уже меню кабинета, и колонка итога справа
   сжимала название товара до пары слов в строке (при 1024 на строки оставалось меньше 300 точек) */
.account-cart, .account-checkout { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 860px; }
@media (min-width: 1024px) {
    .account-cart, .account-checkout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .account-cart .summary, .account-checkout .summary { position: static; }
}
.account-cart .summary { max-width: 460px; margin-left: auto; width: 100%; }
.cart-shop + .cart-shop { margin-top: 24px; }
.cart-shop-title { margin-bottom: 4px; font-size: 17px; overflow-wrap: anywhere; }
.cart-shop-title .muted { font-weight: 400; }
.account-fixed { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--radius); background: var(--soft); overflow-wrap: anywhere; }
.field-hint.err { color: var(--err); }
.summary-shop { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }

.order-card-parts { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.order-card-parts li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.order-card-parts li > span:first-child { overflow-wrap: anywhere; }
.order-part { padding-top: 20px; border-top: 1px solid var(--line); }
.order-part-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.order-part-head h2 { font-size: 18px; overflow-wrap: anywhere; }
.order-part-head h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-part-head h2 .muted { font-weight: 400; }
/* Позиция отменённой части заказа — 0 шт. и 0 ₽, рядом с названием «отмена» (10.11.2026) */
.order-line-off { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: #b42318; white-space: nowrap; }
.order-repeat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }

/* Страница оплаты на dom-design.org (этап C, 09.11.2026): состав без снимков, «Оплатить» — под итогом */
.pay .order-line.pay-line { grid-template-columns: minmax(0, 1fr) auto; }
.pay-action { display: grid; gap: 10px; justify-items: start; }
.pay-action p { font-size: 15px; }
.pay-seller { font-size: 13px; line-height: 1.6; }
