/* Запчасти 911 — макет нового дизайна. Без внешних шрифтов и библиотек. */
:root {
    --brand: #007a7f;
    --brand-700: #005f63;
    --brand-900: #003e42;
    --brand-50: #e6f9f9;
    --brand-100: #c9f1f1;
    --sea: #00ffff;          /* циан, цвет морской волны — акцент */
    --header-line: #00ffff;  /* линия под шапкой */
    --on-dark: #ffffff;      /* текст на тёмном фоне (шапка, подвал) */
    --on-dark-soft: #d3f0f0; /* ссылки и меню на тёмном */
    --on-dark-muted: #b8e6e6;/* подписи на тёмном */
    --on-dark-faint: #8ec4c4;/* бледные подписи на тёмном */
    --accent: #ffb703;
    --accent-600: #f0a400;
    --accent-ink: #3d2a00;
    --ok: #138a4b;
    --ok-50: #e8f6ee;
    --warn: #b45309;
    --warn-50: #fdf3e6;
    --danger: #c62828;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    --bg: #f5f7fb;
    --card: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 40px color-mix(in srgb, var(--brand-900) 18%, transparent);
    --container: 1240px;
    --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 400 calc(15px * var(--fs, 1))/1.55 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; font-family: var(--font-heading, var(--font)); }
h1 { font-size: calc(clamp(26px, 3.2vw, 34px) * var(--fs, 1)); font-weight: 750; }
h2 { font-size: calc(clamp(21px, 2.4vw, 26px) * var(--fs, 1)); font-weight: 720; }
h3 { font-size: calc(17px * var(--fs, 1)); font-weight: 680; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
    border: 1px solid transparent; background: var(--brand); color: #fff;
    font-weight: 650; cursor: pointer; white-space: nowrap;
    transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--brand-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .input:focus-visible { outline: 3px solid rgba(255, 183, 3, .55); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-600); color: var(--accent-ink); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { height: 36px; padding: 0 12px; font-size: calc(14px * var(--fs, 1)); }
.btn-lg { height: 52px; padding: 0 24px; font-size: calc(16px * var(--fs, 1)); }
.btn-block { width: 100%; }

.input {
    height: 44px; width: 100%; padding: 0 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-2); background: #fff; outline: none; color: var(--ink);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }

.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--line); background: #fff;
    color: var(--ink-2); font-size: calc(14px * var(--fs, 1)); font-weight: 550; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip small { color: inherit; opacity: .65; font-weight: 500; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: calc(13px * var(--fs, 1)); font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-brand { background: var(--brand-50); color: var(--brand); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--brand-900); color: var(--on-dark-muted); font-size: calc(13px * var(--fs, 1)); }
.topbar .container { display: flex; align-items: center; gap: 22px; height: 36px; }
.topbar a { color: var(--on-dark-muted); }
.topbar a:hover { color: #fff; }
.topbar .spacer { flex: 1; }
.topbar .item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Шапка ---------- */
.header { background: var(--brand); color: var(--on-dark); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px color-mix(in srgb, var(--brand-900) 25%, transparent); border-bottom: 3px solid var(--header-line); }
.header-main { display: flex; align-items: center; gap: 16px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.logo:hover { color: #fff; }
.logo-mark {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent); color: var(--brand-900); font-weight: 850; font-size: calc(17px * var(--fs, 1)); letter-spacing: -.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: calc(20px * var(--fs, 1)); font-weight: 800; letter-spacing: -.02em; }
.logo-text span { font-size: calc(11.5px * var(--fs, 1)); color: var(--on-dark-muted); letter-spacing: .02em; }

.catalog-btn { background: var(--accent); color: var(--accent-ink); height: 48px; padding: 0 18px; }
.catalog-btn:hover { background: var(--accent-600); color: var(--accent-ink); }

.search { position: relative; flex: 1; display: flex; min-width: 0; }
.search .input { height: 48px; border: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding-left: 44px; font-size: calc(15px * var(--fs, 1)); }
.search .search-icon { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.search .btn { height: 48px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--brand-900); }
.search .btn:hover { background: color-mix(in srgb, var(--brand-900) 75%, #000); }
.suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--ink);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60;
}
.search:focus-within .suggest { display: block; }
.suggest-title { font-size: calc(12px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.suggest a:hover { background: var(--bg); }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.suggest mark { background: #fff3c4; color: inherit; padding: 0 2px; border-radius: 3px; }
.suggest .price { margin-left: auto; font-weight: 700; white-space: nowrap; }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: none; }
.header-contacts .phone { color: #fff; font-weight: 750; font-size: calc(17px * var(--fs, 1)); letter-spacing: .01em; }
.header-contacts .callback { color: #ffd76a; font-size: calc(13px * var(--fs, 1)); border-bottom: 1px dashed rgba(255, 215, 106, .6); }
.header-actions { display: flex; gap: 6px; flex: none; }
.hdr-icon {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 62px; height: 52px; border-radius: 12px; color: #fff; font-size: calc(12px * var(--fs, 1));
}
.hdr-icon:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hdr-icon .count {
    position: absolute; top: 3px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: var(--accent-ink); font-size: calc(11px * var(--fs, 1)); font-weight: 800; display: grid; place-items: center;
}
.burger { display: none; }

.header-nav { background: var(--brand-700); }
.header-nav .container { display: flex; align-items: center; gap: 8px; height: 54px; overflow-x: auto; scrollbar-width: none; }
.header-nav .container::-webkit-scrollbar { display: none; }
.header-nav a { display: inline-flex; align-items: center; gap: 9px; color: var(--on-dark-soft); font-size: calc(16px * var(--fs, 1)); font-weight: 650; letter-spacing: .01em; padding: 9px 16px; border-radius: 10px; white-space: nowrap; transition: background .15s, color .15s; }
.header-nav a .icon { width: 20px; height: 20px; color: var(--sea); flex: none; }
.header-nav a:hover { background: rgba(255, 255, 255, .12); color: var(--on-dark); }
.header-nav a.is-active { background: rgba(255, 255, 255, .16); color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--sea); }
.header-nav .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .18); margin: 0 6px; flex: none; }

/* Меню каталога */
.mega {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink);
    box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); display: none;
}
.mega.is-open { display: block; }
.mega .container { display: grid; grid-template-columns: 280px 1fr; min-height: 420px; padding: 0; }
.mega-side { border-right: 1px solid var(--line); padding: 12px; background: #fbfcfe; }
.mega-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 560; }
.mega-side a .icon { color: var(--brand); }
.mega-side a .chev { margin-left: auto; color: var(--muted); }
.mega-side a:hover, .mega-side a.is-active { background: var(--brand-50); color: var(--brand); }
.mega-body { padding: 22px 28px; }
.mega-body h3 { margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.mega-body h3 small { color: var(--muted); font-weight: 500; font-size: calc(14px * var(--fs, 1)); }
.mega-cols { columns: 3 200px; column-gap: 28px; }
.mega-cols a { display: block; padding: 5px 0; color: var(--ink-2); break-inside: avoid; }
.mega-cols a:hover { color: var(--brand); }
.mega-cols a span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin-left: 4px; }
.mega-help { margin-top: 22px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--brand-50); }

/* ---------- Общие блоки ---------- */
main { padding-bottom: 56px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.section-head.is-center { justify-content: center; text-align: center; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: calc(13.5px * var(--fs, 1)); color: var(--muted); padding: 18px 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 14px; height: 14px; }

/* ---------- Главная: первый экран ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(255, 183, 3, .18), transparent 60%),
        radial-gradient(700px 500px at 10% 120%, rgba(87, 140, 255, .28), transparent 60%),
        linear-gradient(135deg, var(--brand-700), var(--brand-900));
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: calc(13px * var(--fs, 1)); font-weight: 650; color: #ffd76a; background: rgba(255, 183, 3, .12); border: 1px solid rgba(255, 183, 3, .3); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: calc(clamp(30px, 4vw, 46px) * var(--fs, 1)); line-height: 1.08; margin: 16px 0 14px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { color: var(--on-dark-muted); font-size: calc(17px * var(--fs, 1)); max-width: 560px; }
.finder { margin-top: 26px; background: #fff; color: var(--ink); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); max-width: 640px; }
.finder-tabs { display: flex; gap: 4px; padding: 4px 4px 10px; }
.finder-tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 620; color: var(--muted); cursor: pointer; }
.finder-tabs button.is-active { background: var(--brand-50); color: var(--brand); }
.finder-row { display: flex; gap: 8px; }
.finder-row .input { height: 52px; font-size: calc(16px * var(--fs, 1)); }
.finder-hint { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 8px 4px; font-size: calc(13.5px * var(--fs, 1)); color: var(--muted); }
.finder-hint a { border-bottom: 1px dashed currentColor; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: calc(26px * var(--fs, 1)); font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { color: var(--on-dark-muted); font-size: calc(13.5px * var(--fs, 1)); }

.plate { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; backdrop-filter: blur(4px); }
.plate-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.plate-title .icon { color: var(--accent); }
.nameplate {
    background: linear-gradient(180deg, #f8fafc, #e8edf4); color: #1e293b; border-radius: 12px; padding: 16px 18px;
    font: 600 13px/1.5 Consolas, "SFMono-Regular", Menlo, monospace; box-shadow: inset 0 0 0 1px #cbd5e1, 0 10px 30px rgba(0, 0, 0, .25);
}
.nameplate .np-head { display: flex; justify-content: space-between; border-bottom: 1px solid #cbd5e1; padding-bottom: 8px; margin-bottom: 8px; font-family: var(--font); font-weight: 800; letter-spacing: .04em; }
.nameplate .row { display: flex; justify-content: space-between; gap: 12px; }
.nameplate .hl { background: #fff3c4; outline: 2px solid var(--accent); border-radius: 4px; padding: 0 4px; }
.plate ol { margin: 16px 0 0; padding-left: 20px; color: var(--on-dark-soft); font-size: calc(14px * var(--fs, 1)); }
.plate ol li + li { margin-top: 6px; }

/* ---------- Вид техники ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-tile {
    display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 150px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
/* Плитки с пиктограммами (главная, 404, разделы без товаров): по центру */
.cats.is-pics { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cats.is-pics .cat-tile { flex: 0 1 200px; align-items: center; text-align: center; gap: 10px; padding: 16px 14px 18px; min-height: 0; }
.cats.is-pics .cat-tile span { margin-top: 0; }
.cats.is-pics.is-two .cat-tile { flex-basis: calc(50% - 8px); }
.cat-pic { width: 120px; height: 96px; display: block; border-radius: 16px; transition: transform .2s ease; }
.cat-tile:hover .cat-pic { transform: scale(1.05); }
.cat-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.cat-ico .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.cat-tile b { font-size: calc(15.5px * var(--fs, 1)); line-height: 1.25; }
.cat-tile span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin-top: auto; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { padding: 20px; position: relative; }
.step::before {
    counter-increment: step; content: counter(step); position: absolute; right: 18px; top: 14px;
    font-size: calc(42px * var(--fs, 1)); font-weight: 850; color: var(--brand-50); line-height: 1;
}
.step .icon { color: var(--brand); width: 30px; height: 30px; }
.step h3 { margin: 14px 0 6px; }
.step p { color: var(--muted); font-size: calc(14px * var(--fs, 1)); }

/* ---------- Карточки товаров ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.p-card {
    position: relative;
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.p-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.p-img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.p-img img { width: 100%; height: 100%; object-fit: contain; }
.p-img .badge { position: absolute; left: 10px; top: 10px; }
.no-photo {
    width: 100%; height: 100%; min-height: 120px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9), transparent 60%),
        repeating-linear-gradient(135deg, var(--brand-50) 0 10px, #f7f9fe 10px 20px);
    border: 1px dashed var(--brand-100); color: var(--brand);
}
.no-photo .np-ico { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); position: relative; }
.no-photo .np-ico .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.no-photo .np-ico::after { content: "911"; position: absolute; right: -8px; bottom: -6px; background: var(--accent); color: var(--brand-900); font-size: calc(9px * var(--fs, 1)); font-weight: 850; padding: 1px 4px; border-radius: 5px; }
.no-photo .np-text { font-weight: 650; font-size: calc(13px * var(--fs, 1)); color: var(--ink-2); }
.no-photo .np-sub { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
.no-photo.is-small .np-sub { display: none; }
.p-fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .9); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.p-fav:hover { color: var(--danger); }
.p-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.p-name { color: var(--ink); font-weight: 600; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 58px; }
.p-name:hover { color: var(--brand); }
.p-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
.p-meta code { font: 600 12.5px Consolas, monospace; color: var(--ink-2); background: var(--bg); padding: 1px 6px; border-radius: 6px; }
.p-stock { font-size: calc(13px * var(--fs, 1)); color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.p-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font-size: calc(20px * var(--fs, 1)); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: calc(13px * var(--fs, 1)); margin-left: 6px; font-weight: 500; }
.cart-btn { width: 44px; padding: 0; }

/* список */
.products.is-list { grid-template-columns: 1fr; }
.products.is-list .p-card { flex-direction: row; }
.products.is-list .p-img { width: 160px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
.products.is-list .p-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.products.is-list .p-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.products.is-list .p-name { min-height: 0; -webkit-line-clamp: 2; }
.products.is-list .p-buy { margin: 0; padding: 0; gap: 16px; }
.p-info { display: contents; }

/* ---------- Бренды ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.brand {
    height: 64px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line);
    font-weight: 800; letter-spacing: .02em; color: #475569; font-size: calc(17px * var(--fs, 1)); transition: color .15s, border-color .15s;
}
.brand:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { display: flex; gap: 14px; padding: 18px; }
.perk .cat-ico { width: 46px; height: 46px; flex: none; }
.perk .cat-ico .icon { width: 24px; height: 24px; }
.perk h3 { font-size: calc(15.5px * var(--fs, 1)); margin-bottom: 4px; }
.perk p { font-size: calc(13.5px * var(--fs, 1)); color: var(--muted); }

/* ---------- Пункт выдачи ---------- */
.pickup { display: grid; grid-template-columns: 1fr 1.2fr; overflow: hidden; }
.pickup-info { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pickup-info dl { display: grid; grid-template-columns: 24px 1fr; gap: 12px 12px; margin: 6px 0 0; }
.pickup-info dt { color: var(--brand); }
.pickup-info dd { margin: 0; }
.pickup-info dd b { display: block; }
.map {
    min-height: 300px; position: relative;
    background:
        linear-gradient(90deg, rgba(203, 213, 225, .55) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(rgba(203, 213, 225, .55) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(160deg, var(--brand-50), var(--brand-100));
}
.map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 46%, rgba(148, 163, 184, .35) 46.5%, rgba(148, 163, 184, .35) 49%, transparent 49.5%), linear-gradient(20deg, transparent 60%, rgba(148, 163, 184, .3) 60.5%, rgba(148, 163, 184, .3) 62.5%, transparent 63%); }
.map-pin { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map-pin .pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.map-pin .pin .logo-mark { transform: rotate(45deg); width: 30px; height: 30px; font-size: calc(11px * var(--fs, 1)); border-radius: 8px; }
.map-pin .label { margin-top: 10px; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: calc(13px * var(--fs, 1)); font-weight: 650; box-shadow: var(--shadow); white-space: nowrap; }
.map-note { position: absolute; right: 12px; bottom: 12px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 8px; border-radius: 8px; }

/* ---------- SEO-текст ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 28px; }
.about p { color: var(--ink-2); }
.about p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.fact { background: var(--bg); border-radius: 12px; padding: 16px; }
.fact b { display: block; font-size: calc(24px * var(--fs, 1)); font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.fact span { font-size: calc(13px * var(--fs, 1)); color: var(--muted); }

/* ---------- Подвал ---------- */
.footer { background: var(--brand-900); color: var(--on-dark-muted); margin-top: 56px; font-size: calc(14px * var(--fs, 1)); }
.footer a { color: var(--on-dark-soft); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.15fr .85fr 1fr 1.5fr 1.05fr; gap: 28px; padding: 44px 0 32px; }
.footer h4 { color: var(--on-dark); font-size: calc(14px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer .logo { margin-bottom: 14px; }
.footer .phone { font-size: calc(20px * var(--fs, 1)); font-weight: 800; color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: calc(12px * var(--fs, 1)); font-weight: 800; color: #fff; }
.socials a:hover { background: rgba(255, 255, 255, .18); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: calc(13px * var(--fs, 1)); color: var(--on-dark-faint); }
.pay { display: flex; gap: 8px; }
.pay span { border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: calc(12px * var(--fs, 1)); color: var(--on-dark-soft); }

/* ---------- Мессенджеры ---------- */
.ch-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 10px; color: #fff; font-weight: 650; font-size: calc(14px * var(--fs, 1)); }
.ch-btn:hover { color: #fff; filter: brightness(1.08); }
.ch-logo { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 8px; background: rgba(255, 255, 255, .2); font-size: calc(11px * var(--fs, 1)); font-weight: 850; letter-spacing: .02em; }
.ch-max { background: linear-gradient(135deg, #2b7cff, #8b3dff); }
.ch-vk { background: #0077ff; }
.ch-tg { background: #229ed9; }
.ch-wa { background: #1fa855; }
.ch-xs { height: 24px; padding: 0 8px 0 3px; font-size: calc(12px * var(--fs, 1)); gap: 5px; margin-left: 6px; border-radius: 7px; }
.ch-xs .ch-logo { min-width: 18px; height: 18px; font-size: calc(9px * var(--fs, 1)); border-radius: 5px; }
.ch-xs .ch-name { display: none; }
.topbar-ch { display: inline-flex; align-items: center; color: var(--on-dark-faint); }
.hdr-ch { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ch-dot { display: grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 6px; color: #fff; font-size: calc(10px * var(--fs, 1)); font-weight: 850; }
.ch-dot:hover { color: #fff; filter: brightness(1.1); }
.footer-ch .ch-card { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.footer-ch .ch-card + .ch-card { margin-top: 10px; }
.ch-qr { flex: none; display: block; width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 4px; }
.ch-qr img { width: 100%; height: 100%; }
.ch-card b { display: block; color: #fff; font-size: calc(15px * var(--fs, 1)); }
.ch-card span { display: block; font-size: calc(13px * var(--fs, 1)); color: var(--on-dark-muted); margin: 2px 0 8px; }
.ch-card .ch-open { height: 34px; font-size: calc(13px * var(--fs, 1)); }
.ch-card .ch-open .ch-logo { min-width: 22px; height: 22px; font-size: calc(9px * var(--fs, 1)); }
.ch-card .ch-open span.ch-logo, .ch-card .ch-open span.ch-name { margin: 0; color: #fff; display: grid; }
.ch-card .ch-open span.ch-name { display: inline; font-size: calc(13px * var(--fs, 1)); }
.ch-hint { display: block; margin-top: 6px; font-size: calc(11.5px * var(--fs, 1)); color: var(--on-dark-faint); }

/* ---------- Каталог ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 small { font-size: calc(15px * var(--fs, 1)); font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: thin; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; margin-top: 18px; align-items: start; }
.filters { padding: 6px 18px 18px; position: sticky; top: 140px; }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-group:last-of-type { border-bottom: 0; }
.f-group h4 { font-size: calc(14px * var(--fs, 1)); display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; font-size: calc(14px * var(--fs, 1)); color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check small { margin-left: auto; color: var(--muted); }
.range { display: flex; gap: 8px; }
.range .input { height: 38px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: calc(14px * var(--fs, 1)); cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 21px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.toolbar select { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 10px; background: #fff; }
.view-toggle { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.view-toggle button { border: 0; background: #fff; width: 38px; height: 36px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.view-toggle button.is-active { background: var(--brand-50); color: var(--brand); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters .chip { height: 30px; font-size: calc(13px * var(--fs, 1)); background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.filters-btn { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; }
.pager .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.help-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-top: 20px; background: linear-gradient(135deg, var(--brand-50), #fff); }
.help-card .cat-ico { flex: none; }
.help-card div { flex: 1; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr 360px; gap: 22px; margin-top: 8px; align-items: start; }
.gallery { padding: 16px; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; border-radius: 12px; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); background: rgba(255, 255, 255, .9); padding: 4px 8px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 6px; cursor: pointer; }
.thumbs button.is-active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-title { font-size: calc(clamp(22px, 2.4vw, 28px) * var(--fs, 1)); line-height: 1.25; font-weight: 750; }
.p-ids { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.copy { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: calc(13.5px * var(--fs, 1)); color: var(--ink-2); cursor: pointer; }
.copy b { font-family: Consolas, monospace; color: var(--ink); }
.copy:hover { border-color: var(--brand); }
.specs { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--fs, 1)); }
.specs td { padding: 9px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 48%; padding-right: 12px; }
.specs tr:last-child td { border-bottom: 0; }
.info-block { padding: 18px 20px; }
.info-block + .info-block { margin-top: 14px; }
.info-block h2 { font-size: calc(17px * var(--fs, 1)); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-block h2 .icon { color: var(--brand); }
.compat-form { display: flex; gap: 8px; margin-top: 12px; }
.compat-ok { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ok-50); color: #0f5132; font-size: calc(14px * var(--fs, 1)); }
.compat-ok .icon { color: var(--ok); margin-top: 1px; }
.numbers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.numbers code { font: 600 13px Consolas, monospace; background: var(--bg); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px; }
.buybox { padding: 20px; position: sticky; top: 140px; }
.buybox .price { font-size: calc(34px * var(--fs, 1)); }
.buybox-row { display: flex; gap: 10px; margin-top: 16px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); height: 52px; flex: none; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: calc(20px * var(--fs, 1)); color: var(--ink-2); cursor: pointer; }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 700; outline: none; }
.delivery { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.delivery li { display: flex; gap: 12px; font-size: calc(14px * var(--fs, 1)); }
.delivery li .icon { color: var(--brand); margin-top: 1px; }
.delivery b { display: block; }
.delivery span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.guarantee { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: calc(13.5px * var(--fs, 1)); color: var(--ink-2); }
.guarantee .icon { color: var(--ok); }
.mobile-buy { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .product { grid-template-columns: 1fr 1fr; }
    .buybox { grid-column: 2; grid-row: 1; position: static; }
    .p-main { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
    .header-contacts { display: none; }
    .steps, .perks { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-ch { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .footer-ch h4 { grid-column: 1 / -1; margin: 0; }
    .footer-ch .ch-card + .ch-card { margin-top: 0; }
}
@media (max-width: 900px) {
    .topbar .hide-md { display: none; }
    .hero .container { grid-template-columns: 1fr; padding-top: 32px; }
    .layout { grid-template-columns: 1fr; }
    .filters { display: none; position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); z-index: 80; border-radius: 0; overflow-y: auto; top: 0; }
    .filters.is-open { display: block; box-shadow: var(--shadow-lg); }
    .filters-btn { display: inline-flex; }
    .pickup, .about { grid-template-columns: 1fr; }
    .mega .container { grid-template-columns: 1fr; }
    .mega-body { display: none; }
}
@media (max-width: 760px) {
    body { font-size: calc(14.5px * var(--fs, 1)); }
    .container { padding: 0 14px; }
    .topbar { display: none; }
    .header-main { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .logo-text span { display: none; }
    .logo-mark { width: 38px; height: 38px; font-size: calc(15px * var(--fs, 1)); }
    .hdr-icon .lbl, .hdr-icon.hide-sm { display: none; }
    .catalog-btn { height: 42px; padding: 0 14px; margin-left: auto; gap: 8px; font-size: calc(15px * var(--fs, 1)); }
    .header-actions { order: 2; }
    .hdr-icon { width: 44px; height: 44px; }
    .search { order: 3; flex-basis: 100%; }
    .search .input, .search .btn { height: 44px; }
    .search .btn span { display: none; }
    .header-nav .container { height: 46px; gap: 4px; }
    .header-nav a { font-size: calc(14.5px * var(--fs, 1)); padding: 7px 10px; gap: 6px; }
    .header-nav a .icon { width: 17px; height: 17px; }
    .plate { display: none; }
    .finder-row { flex-direction: column; }
    .hero-stats { gap: 18px; }
    .hero-stats b { font-size: calc(21px * var(--fs, 1)); }
    .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cats.is-pics .cat-tile { flex-basis: calc(50% - 8px); padding: 12px 10px 14px; }
    .cat-pic { width: 100px; height: 80px; }
    .cat-tile { min-height: 0; padding: 14px; gap: 10px; }
    .cat-ico { width: 44px; height: 44px; }
    .steps, .perks, .facts { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .p-body { padding: 10px; }
    .p-name { font-size: calc(13.5px * var(--fs, 1)); min-height: 54px; }
    .price { font-size: calc(17px * var(--fs, 1)); }
    .products.is-list .p-card { flex-direction: column; }
    .products.is-list .p-img { width: auto; border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-ch { grid-template-columns: 1fr; }
    .ch-qr, .ch-hint { display: none; }
    .ch-card .ch-open { height: 44px; width: 100%; justify-content: center; font-size: calc(15px * var(--fs, 1)); }
    .section { margin-top: 32px; }
    .product { grid-template-columns: 1fr; }
    .buybox { grid-column: auto; grid-row: auto; }
    .mobile-buy {
        display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        background: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15, 23, 42, .12);
    }
    .mobile-buy .btn { flex: 1; }
    .has-mobile-buy .footer { padding-bottom: 80px; }
}

/* ---------- Заявка с фото ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: color-mix(in srgb, var(--brand-900) 55%, transparent); overflow-y: auto; }
.modal.is-open { display: flex; }
.modal-box { width: 100%; max-width: 620px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px; position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.modal-box h2 { margin-bottom: 6px; padding-right: 40px; }
.modal-box .lead { color: var(--muted); font-size: calc(14px * var(--fs, 1)); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.f-label { display: block; font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; margin-bottom: 5px; }
.f-label .opt { color: var(--muted); font-weight: 500; margin-left: 4px; }
textarea.input { height: 110px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.uploader { border: 2px dashed var(--line-2); border-radius: 14px; padding: 14px; background: #fbfcfe; transition: border-color .15s, background .15s; }
.uploader.is-drag { border-color: var(--brand); background: var(--brand-50); }
.up-drop { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.up-drop .cat-ico { width: 46px; height: 46px; flex: none; }
.up-drop b { display: block; font-size: calc(14.5px * var(--fs, 1)); }
.up-drop span { font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
.up-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.up-list:empty { display: none; }
.up-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 7px; border: 0; background: rgba(15, 23, 42, .7); color: #fff; cursor: pointer; display: grid; place-items: center; }
.up-item button .icon { width: 14px; height: 14px; }
.up-count { font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }
.up-error { color: var(--danger); }
.answer-via { display: flex; flex-wrap: wrap; gap: 8px; }
.answer-via input { position: absolute; opacity: 0; pointer-events: none; }
.answer-via input:checked + .chip { background: var(--brand); border-color: var(--brand); color: #fff; }
.consent { display: flex; gap: 10px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 2px; accent-color: var(--brand); }
.form-done { text-align: center; padding: 20px 0 6px; }
.form-done .cat-ico { margin: 0 auto 14px; width: 64px; height: 64px; background: var(--ok-50); color: var(--ok); }
@media (max-width: 760px) {
    .modal { padding: 0; align-items: stretch; }
    .modal-box { border-radius: 0; min-height: 100%; padding: 20px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .up-list { grid-template-columns: repeat(3, 1fr); }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.captcha-note { display: flex; align-items: center; gap: 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.captcha-note .icon { color: var(--ok); }

/* ---------- Мобильное меню каталога ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--brand-900) 55%, transparent); display: none; }
.drawer.is-open { display: block; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(420px, 100%); background: #fff; overflow: hidden; }
.drawer-level { position: absolute; inset: 0; overflow-y: auto; padding: 0 0 24px; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; background: #fff; }
/* Корень уезжает влево, когда открыт раздел; неактивные уровни скрыты и не перекрывают активный */
.drawer-level[data-level="root"] { transform: translateX(-30%); }
.drawer-level.is-active { transform: none; visibility: visible; z-index: 1; transition: transform .22s ease, visibility 0s; }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 18px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head b { font-size: calc(18px * var(--fs, 1)); }
.drawer-head .modal-close { position: static; }
.drawer-back { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); cursor: pointer; padding: 8px 0; }
.icon.flip { transform: rotate(180deg); }
.drawer-list { padding: 8px 10px; }
.drawer-list button, .drawer-list a { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 10px; border: 0; background: transparent; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: calc(15.5px * var(--fs, 1)); text-align: left; cursor: pointer; }
.drawer-list button:hover, .drawer-list a:hover { background: var(--bg); }
.drawer-list button .icon { color: var(--brand); width: 26px; height: 26px; }
.drawer-list .chev { margin-left: auto; color: var(--muted); }
.drawer-list.is-sub a { font-weight: 550; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
.drawer-list.is-sub small { color: var(--muted); font-weight: 500; }
.drawer-title { padding: 16px 20px 4px; font-size: calc(21px * var(--fs, 1)); }
.drawer-all { display: inline-flex; align-items: center; gap: 4px; margin: 4px 20px 6px; font-weight: 650; }
.drawer-links { border-top: 1px solid var(--line); margin: 6px 10px 0; padding-top: 6px; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; color: var(--ink-2); font-weight: 550; border-radius: 10px; }
.drawer-links a .icon { color: var(--muted); }
.drawer-contact { margin: 10px 20px 0; padding: 16px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.drawer-contact .phone { font-size: calc(19px * var(--fs, 1)); font-weight: 800; color: var(--ink); }
.drawer-ch { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.footer-ch .ch-card { padding: 10px; gap: 10px; }
.footer-ch .ch-qr { width: 76px; height: 76px; }
.footer-ch .ch-card span { margin-bottom: 6px; }
.footer-ch .ch-hint { display: none; }

/* 4 канала: отдельная строка подвала, по карточке на канал */
.footer-top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
.footer-ch { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.footer-ch h4 { grid-column: 1 / -1; margin: 0; }
.footer-ch .ch-card + .ch-card { margin-top: 0; }
@media (max-width: 1080px) { .footer-ch { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .footer-ch { grid-template-columns: 1fr 1fr; grid-row: auto; } .footer-ch .ch-card { flex-direction: column; } }

/* «Мы в мессенджерах» — первой строкой подвала, над «Каталогом», «Покупателям» и «Контактами», по центру */
.footer-ch { grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-ch h4 { flex-basis: 100%; text-align: center; margin: 0 0 4px; }
.footer-ch .ch-card { flex: 0 1 270px; }
@media (max-width: 760px) { .footer-ch .ch-card { flex-basis: calc(50% - 5px); } }
@media (max-width: 600px) { .footer-ch .ch-card { flex-basis: 100%; } }

/* Логотип-картинка */
.logo-img { height: 48px; width: auto; display: block; }
.footer .logo-img { height: 44px; }
@media (max-width: 760px) { .header .logo-img { height: 34px; } }
