/* СтройТара — дизайн-система. Идея: склад и стройка — бумага-крафт, графит, сигнальный жёлтый,
   цвета отделов как у контейнеров раздельного сбора. */
:root {
  --paper: #F4F0E8;
  --paper-2: #ECE6DA;
  --card: #FFFFFF;
  --img-bg: #F6F3EC;
  --ink: #15171B;
  --ink-2: #3E434B;
  --muted: #646973; /* не светлее: мелкий серый текст (артикул, «/шт») должен читаться — контраст ≥ 4,5:1 */
  --line: #E2DBCD;
  --line-2: #CFC6B4;
  --yellow: #FFC21A;
  --yellow-soft: #FFF1C2;
  --green: #1F9D55;
  --red: #D7322D;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(21, 23, 27, .05), 0 10px 28px -14px rgba(21, 23, 27, .22);
  --shadow-lg: 0 2px 6px rgba(21, 23, 27, .06), 0 24px 60px -20px rgba(21, 23, 27, .35);
  --f-head: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --tape: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--yellow) 14px 28px);
  --hdr-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
picture { display: contents; } /* <picture> с webp-вариантами не влияет на раскладку — стили применяются к самому img */
body.no-scroll { overflow: hidden; }
main, .ftr { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
svg[viewBox="0 0 24 24"] { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--yellow); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--yellow); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn-yellow:hover { background: var(--ink); color: var(--yellow); }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { height: 56px; font-size: 16px; padding: 0 26px; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Верхняя полоса и шапка ---------- */
.topbar { background: var(--ink); color: #C9C3B6; font-size: 13px; }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 36px; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-item svg { color: var(--yellow); }
.tb-right { margin-left: auto; display: flex; gap: 16px; }
.tb-right a:hover { color: var(--yellow); }
/* Новый дизайн: верхняя полоса жёлтая и крупнее, почта — заметной плашкой, слева ссылки Каталог / Доставка / Контакты (клиент: «строку не видно, электронку выделить») */
:root .topbar { background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 600; }
/* одна строка: слева ссылки, по центру адрес, справа мессенджеры и почта; строка «Доставка по Ростову…» в новом дизайне не нужна — есть ссылка «Доставка» */
:root .topbar-in { height: auto; min-height: 46px; padding: 6px 0; flex-wrap: wrap; gap: 8px 28px; }
:root .topbar-in > .tb-item.hide-m { display: none; }
:root .tb-item svg { color: var(--ink); }
:root .tb-addr { margin-left: auto; margin-right: auto; }
:root .tb-nav { display: flex; gap: 22px; flex: none; }
:root .tb-nav a { font: 700 13px/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; padding: 9px 0; border-bottom: 2px solid transparent; }
:root .tb-nav a:hover { border-bottom-color: var(--ink); }
:root .tb-right { gap: 18px; align-items: center; margin-left: 0; flex: none; }
:root .tb-right a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:root .tb-mail { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
:root .tb-right .tb-mail:hover { background: var(--ink); color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Новый дизайн: оба телефона в шапке */
.hdr-phones { display: grid; gap: 2px; justify-items: start; }
.hdr-phones .hdr-phone-num { font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 15px; font-weight: 600; line-height: 1.2; } /* цифры одной ширины — номера стоят ровно друг под другом */
.hdr-phone-alt { display: block; }

.hdr { position: sticky; top: 0; z-index: 60; background: rgba(244, 240, 232, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.hdr-in { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 14px; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; flex: none; transition: transform .3s; }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-word { font: 800 18px/1 var(--f-head); letter-spacing: .02em; }
.logo-word b { background: var(--yellow); padding: 3px 5px 2px; margin-left: 2px; border-radius: 6px; font-weight: 800; }
.btn-catalog { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; }
.btn-catalog:hover { background: #2A2D33; }
.burger { width: 18px; display: grid; gap: 4px; }
.burger i { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.btn-catalog[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.btn-catalog[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.btn-catalog[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hdr-phone { display: grid; font: 600 15px/1.2 var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.hdr-phone small { font: 500 12px var(--f-body); color: var(--muted); letter-spacing: 0; }
.hdr-phone-ic { display: none; }
.hdr-phone-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hdr-phone:hover { color: #000; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.btn-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--ink); font-weight: 600; }
.btn-cart:hover { background: var(--ink); color: #fff; }
.btn-cart b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--paper-2); color: var(--muted); font: 700 12px/24px var(--f-body); text-align: center; }
.btn-cart b.has { background: var(--yellow); color: var(--ink); animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* Мега-меню каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--hdr-h) - 20px); overflow: auto; animation: drop .2s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mega-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px; padding-top: 28px; padding-bottom: 32px; }
.mega-col { display: grid; align-content: start; gap: 2px; padding-bottom: 14px; }
.mega-col a { padding: 5px 0 5px 20px; font-size: 14px; color: var(--ink-2); }
.mega-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.mega-col .mega-dept { padding-left: 0; display: flex; align-items: center; gap: 10px; font: 700 15px/1.25 var(--f-head); color: var(--ink); margin-bottom: 4px; }
.mega-dept i, .side-d i, .subchips i, .ftr-cats i, .pr-dept i, .sg-cats i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.mega-dept span { font: 500 12px var(--f-body); color: var(--muted); }

/* ---------- Поиск ---------- */
.search { position: relative; display: flex; align-items: center; }
.search input { width: 100%; height: 50px; padding: 0 52px 0 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: #9A9EA5; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 26, .45); }
.search input::-webkit-search-cancel-button { display: none; }
.search > button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); }
.search > button:hover { background: var(--yellow); }
.search-xl input { height: 64px; font-size: 18px; padding: 0 140px 0 22px; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.search-xl input:focus { box-shadow: 6px 6px 0 var(--ink), 0 0 0 4px rgba(255, 194, 26, .5); }
.search-xl > button { right: 8px; top: 8px; bottom: 8px; width: auto; padding: 0 20px; gap: 8px; display: flex; align-items: center; background: var(--yellow); font-weight: 700; border-radius: 12px; }
.search-xl > button:hover { background: var(--ink); color: var(--yellow); }

.suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 70; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-height: min(70vh, 560px); overflow: auto; padding: 8px; text-align: left; }
.sg-note { margin: 4px 4px 8px; padding: 10px 12px; background: var(--yellow-soft); border-radius: 12px; font-size: 14px; }
.sg-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 8px; }
.sg-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 600; }
.sg-cats a span { color: var(--muted); font-weight: 500; }
.sg-cats a:hover { background: var(--paper-2); }
.sg-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.sg-item:hover, .sg-item.active { background: var(--paper); }
.sg-img { width: 52px; height: 52px; border-radius: 10px; background: var(--img-bg); display: grid; place-items: center; padding: 4px; }
.sg-img img { max-height: 100%; mix-blend-mode: multiply; }
.sg-t { font-size: 14px; font-weight: 600; line-height: 1.3; display: grid; gap: 2px; }
.sg-t small { font: 500 11px var(--f-mono); color: var(--muted); }
.sg-item b { font: 700 14px var(--f-head); white-space: nowrap; }
.sg-all { display: block; margin-top: 4px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 700; background: var(--ink); color: #fff; }
.sg-all:hover, .sg-all.active { background: var(--yellow); color: var(--ink); }
.sg-empty { padding: 16px; font-size: 14px; color: var(--ink-2); }
.sg-empty a { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Первый экран: витрина ассортимента ---------- */
.hero { position: relative; overflow: hidden; background: #F1EDE5; border-bottom: 1px solid var(--line); }
.hero-in { position: relative; z-index: 2; min-height: clamp(520px, 40vw, 640px); display: flex; align-items: center; }
.hero-copy { max-width: min(520px, 36vw); padding: 44px 0 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
/* пульсация — через transform/opacity псевдоэлемента (рисуется на GPU, не нагружает телефон) */
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(31, 157, 85, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70%, 100% { transform: scale(3); opacity: 0; } }
.hero h1 { font-weight: 800; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.12; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.hero-facts b { font: 800 22px/1 var(--f-head); color: var(--ink); margin-right: 4px; }
/* Фото ассортимента на всю ширину; слева светлый переход, чтобы текст читался */
.hero-media { position: absolute; top: 0; bottom: 0; right: 0; left: max(0px, calc(50% - 640px)); z-index: 1; display: block; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 100%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #F1EDE5 0%, rgba(241, 237, 229, .9) 30%, rgba(241, 237, 229, 0) 44%); }

/* Вариант «живое фото на весь экран»: фото под всем экраном, текст светлый на затемнении слева */
.hero-photo { background: #1A1C20; color: #fff; border-bottom: 0; }
.hero-photo .hero-in { min-height: max(560px, calc(100svh - 36px - var(--hdr-h))); pointer-events: none; }
/* блок текста лежит поверх фото — пропускаем клики сквозь него к биркам, кроме самого текста и кнопок */
.hero-photo .hero-copy { pointer-events: auto; }
.hero-photo .hero-media { left: 0; overflow: hidden; }
/* Сцена прижата вправо и вписана по высоте: товары не уходят под текст. Левый край фото плавно гаснет в тёмный фон.
   Бирки лежат внутри сцены, их координаты — в % от картинки. */
.hero-scene { position: absolute; right: 0; top: 0; height: 100%; aspect-ratio: var(--ar, 3 / 2); transform-origin: 100% 60%; }
/* Листание сцен: видна одна, смена — плавным наплывом с лёгким приближением */
/* Без медленного «наезда» фона: пока сцена двигалась, бирки не раскрывались по наведению */
.hero-scene:not(.on) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
.hero-scene.on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
/* После переключения вкладкой — без наплыва: новая сцена и её бирки сразу готовы к наведению */
.hero.switched .hero-scene:not(.on), .hero.switched .hero-scene.on { transition: none; }
.hero-nav { position: absolute; z-index: 6; right: max(24px, calc(50% - 616px)); bottom: 22px; display: flex; align-items: center; gap: 10px; }
.hero-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(14, 16, 19, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-tab { position: relative; flex: none; overflow: hidden; padding: 8px 15px; border-radius: 999px; color: rgba(255, 255, 255, .85); font: 600 13px/1 var(--f-body); white-space: nowrap; transition: background .2s, color .2s; }
.hero-tab:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.hero-tab.on { background: #fff; color: var(--ink); }
.hero-tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero-tab.on.run i { animation: hero-prog var(--dur, 9s) linear forwards; }
.hero.paused .hero-tab.on.run i { animation-play-state: paused; }
@keyframes hero-prog { to { transform: scaleX(1); } }
/* Стрелки по бокам сцены: заметные белые кружки с тёмной стрелкой; левая стоит у правого края текстовой колонки, а не на краю экрана */
.hero-side { position: absolute; top: 56%; z-index: 7; width: 56px; height: 56px; border-radius: 50%; transform: translateY(-50%); background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; }
.hero-side svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-side-l { left: calc(50% - 616px + min(520px, 36vw) + 36px); } .hero-side-l svg { transform: rotate(180deg); }
.hero-side-r { right: 18px; }
.hero-side:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-50%) scale(1.06); }
/* Полоса отделов каталога под первым экраном: все в одну линию с разделителями, без цветных плашек; на узком экране переносится */
.cat-row { background: #fff; border-bottom: 1px solid var(--line); }
.cat-row-in { display: flex; flex-wrap: wrap; }
.cat-row a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; transition: border-color .2s, background .2s; }
.cat-row a:last-child { border-right: 0; }
.cat-row a i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.cat-row a small { font-size: 13px; font-weight: 500; color: var(--muted); }
.cat-row a:hover { background: var(--paper); border-bottom-color: var(--ink); }
/* Меню каталога крупнее — сайтом пользуются люди в возрасте.
   `:root` перед селектором — чтобы правило перекрывало базовое выше (раньше здесь был html:not(.design-old)) */
:root .mega-col a { font-size: 19px; font-weight: 600; color: var(--ink); padding: 7px 0 7px 22px; }
:root .mega-col .mega-dept { font-size: 19px; margin-bottom: 8px; }
:root .mega-dept span { font-size: 14px; }
:root .mega-in { gap: 12px 36px; }
/* отделы текут по колонкам без пустот (как газетная вёрстка) и ссылка «Весь каталог» сверху */
:root .mega-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; padding-top: 4px; padding-bottom: 16px; }
:root .mega-colgroup { display: grid; align-content: start; gap: 12px; }
:root .mega-col { display: block; padding-bottom: 0; }
:root .mega-col .mega-dept { margin-bottom: 4px; }
.mega-top { display: none; }
:root .mega-top { display: flex; justify-content: flex-end; padding-top: 12px; }
.mega-all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.mega-all span { font-weight: 500; color: #C9C3B6; }
.mega-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.mega-all:hover { background: var(--yellow); color: var(--ink); } .mega-all:hover span { color: var(--ink-2); }
/* миниатюры товаров у подразделов в меню */
.mega-sub { display: flex; align-items: center; gap: 12px; }
.mega-sub small { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); padding-left: 10px; }
.mega-pic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.mega-pic img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
:root .mega-col .mega-sub { padding: 2px 0 2px 20px; line-height: 1.15; }
/* Группы каталога карточками с фото (вход в каталог и главная). Строгий стиль: белые карточки,
   тонкая рамка, без цветных заливок и крупных номеров; шрифт крупный — сайтом пользуются люди в возрасте */
.cat-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 8px; padding-bottom: 48px; }
.home-groups { padding: 0; }
.ch-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.ch-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.ch-img { display: block; position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.ch-img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.ch-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 14px 16px 16px; }
.ch-title { font: 700 19px/1.2 var(--f-head); grid-column: 1; min-width: 0; overflow-wrap: break-word; } /* длинные слова не уезжают под стрелку */
.ch-count { font-size: 15px; color: var(--muted); grid-column: 1; }
.ch-go { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); transition: background .2s, color .2s; }
.ch-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-card:hover .ch-go { background: var(--ink); color: var(--yellow); }
.hero-scene > picture, .hero-scene > picture img { display: block; width: 100%; height: 100%; }
.hero-photo .hero-scene > picture img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }

/* Интерактив «кабина разбирается»: при наведении детали схемы разлетаются из кабины на фото */
.xp { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.xp-hot { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 10px; }
.xp-hint { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 0); white-space: nowrap; padding: 4px 9px; border-radius: 999px; /* внизу кабины — над крышей стоит ценник */
  background: rgba(21, 23, 27, .72); color: #fff; font: 600 11px/1.2 var(--f-body); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .3s; animation: xp-hint 2.4s ease-in-out infinite; }
@keyframes xp-hint { 50% { transform: translate(-50%, calc(-100% - 3px)); } }
.xp-hot:hover .xp-hint, .xp.seen .xp-hint, .xp.open .xp-hint { opacity: 0; }
.xp-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 78% 45%, rgba(14, 16, 19, .55), rgba(14, 16, 19, .78)); opacity: 0; transition: opacity .35s; }
.xp-stage { position: absolute; }
.xp-glow { position: absolute; inset: 6% 4% 2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s; }
.xp-part { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); z-index: var(--z); max-width: none; opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(.34); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4));
  transition: transform .4s cubic-bezier(.5, 0, .75, 0), opacity .3s ease-in; }
.xp-card { position: absolute; z-index: 9; display: grid; gap: 3px; min-width: 230px; padding: 11px 14px 12px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .25s, transform .3s; }
.xp-card-t { font: 700 14px/1.2 var(--f-head); }
.xp-card-s { font-size: 12px; color: var(--muted); }
.xp-card-p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; font: 800 17px/1 var(--f-head); }
.xp-card-go { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; background: var(--yellow); font: 700 12px/1 var(--f-body); }
.xp-card:hover .xp-card-go { background: var(--ink); color: var(--yellow); }
.xp.open .xp-dim { opacity: 1; }
.xp.open .xp-glow { opacity: 1; transform: none; }
.xp.open .xp-part { opacity: 1; transform: none; transition: transform .85s cubic-bezier(.18, .9, .25, 1.06) var(--d), opacity .3s ease-out var(--d); }
.xp.open .xp-card { opacity: 1; transform: translate(-50%, 2px); pointer-events: auto; transition-delay: .45s; }
.hero-scene.xp-on .ltag { opacity: 0 !important; pointer-events: none; transition: opacity .2s; }

/* Бирки на товарах: точка на товаре + маленький ярлык с ценой. Название выезжает при наведении.
   ltag-r / ltag-l — ярлык справа или слева от точки, ltag-d — ярлык под точкой (по умолчанию над ней). */
.ltag { position: absolute; left: var(--x); top: var(--y); z-index: 5; width: 0; height: 0; color: var(--ink); cursor: pointer; }
/* бирки появляются по очереди каждый раз, когда сцена становится видимой */
/* Бирки проявляются по очереди только при первой загрузке; при переключении сцен — сразу */
.hero-scene.on .ltag { animation: ltag-in .35s ease-out both; animation-delay: calc(.3s + var(--i) * .06s); }
.hero.switched .hero-scene.on .ltag { animation: none; }
.ltag:hover, .ltag:focus-visible { z-index: 6; }
@keyframes ltag-in { from { opacity: 0; } }
.ltag-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
/* расходящееся кольцо — transform/opacity, а не box-shadow: десятки бирок не нагружают процессор телефона */
.ltag-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: rgba(255, 194, 26, .65); z-index: -1; animation: ltag-pulse 2.6s infinite; animation-delay: calc(var(--i) * .35s); }
@keyframes ltag-pulse { 70%, 100% { transform: scale(2.6); opacity: 0; } }
/* короткая нитка от точки к ярлыку */
.ltag::before { content: ''; position: absolute; bottom: 5px; width: 1.5px; height: 14px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 2px rgba(0, 0, 0, .4); transform-origin: bottom; }
.ltag-r::before { left: 0; transform: rotate(40deg); }
.ltag-l::before { right: 0; transform: rotate(-40deg); }
.ltag-d::before { bottom: auto; top: 5px; transform-origin: top; }
.ltag-d.ltag-r::before { transform: rotate(-40deg); }
.ltag-d.ltag-l::before { transform: rotate(40deg); }
.ltag-card { position: absolute; bottom: 15px; display: flex; align-items: center; height: 24px; padding: 0 8px 0 15px; background: rgba(255, 255, 255, .95); border-radius: 12px; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5); white-space: nowrap; transition: background .2s, box-shadow .2s; }
.ltag-r .ltag-card { left: 6px; }
.ltag-l .ltag-card { right: 6px; }
.ltag-d .ltag-card { bottom: auto; top: 15px; }
/* «дырочка» бирки */
.ltag-card::before { content: ''; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #1A1C20; }
.ltag-name { max-width: 0; overflow: hidden; opacity: 0; font: 600 12px/1 var(--f-body); color: var(--ink); transition: max-width .12s ease-out, opacity .1s, margin .12s; }
.ltag-price { font: 800 12.5px/1 var(--f-head); letter-spacing: -.01em; }
.ltag-go { width: 0; overflow: hidden; display: inline-flex; opacity: 0; transition: width .12s, opacity .1s, margin .12s; }
.ltag-go svg { width: 13px; height: 13px; }
/* стрелка по диагонали смотрит на точку товара, как линия от ярлыка */
.ltag-l .ltag-go svg { transform: rotate(40deg); }
.ltag-r .ltag-go svg { transform: rotate(140deg); }
.ltag-d.ltag-l .ltag-go svg { transform: rotate(-40deg); }
.ltag-d.ltag-r .ltag-go svg { transform: rotate(-140deg); }
/* при наведении карточка раскрывается вниз: название в одну-две короткие строки, под ним цена со стрелкой (клиент: не одной строкой вправо) */
.ltag:hover .ltag-card, .ltag:focus-visible .ltag-card { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; height: auto; padding: 6px 9px 6px 15px; border-radius: 10px; background: var(--yellow); box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .55); }
.ltag:hover .ltag-card::before, .ltag:focus-visible .ltag-card::before { top: auto; bottom: 11.5px; margin-top: 0; }
.ltag:hover .ltag-name, .ltag:focus-visible .ltag-name { grid-column: 1 / -1; max-width: 160px; white-space: normal; line-height: 1.15; opacity: 1; margin: 0 0 4px; }
.ltag:hover .ltag-go, .ltag:focus-visible .ltag-go { width: 13px; opacity: 1; margin-left: 5px; }
.hero-photo .hero-media::after { background:
  linear-gradient(90deg, rgba(14, 16, 19, .7) 0%, rgba(14, 16, 19, .45) 34%, rgba(14, 16, 19, 0) 52%),
  linear-gradient(0deg, rgba(14, 16, 19, .4) 0%, rgba(14, 16, 19, 0) 24%); }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-photo .lead { color: rgba(255, 255, 255, .86); }
.hero-photo .eyebrow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-photo .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero-photo .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-photo .hero-facts { color: rgba(255, 255, 255, .78); }
.hero-photo .hero-facts b { color: var(--yellow); }

/* ---------- Секции ---------- */
.sec { padding: 72px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec h2, .delivery h2, .about h2 { font-weight: 700; font-size: clamp(26px, 3vw, 42px); }
.sec-note { display: block; font: 500 15px/1.3 var(--f-body); color: var(--muted); margin-top: 6px; }
.sec-dark .sec-note { color: #A8ADB5; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 2px; border-bottom: 2px solid var(--yellow); white-space: nowrap; }
.link-more:hover { border-color: var(--ink); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-dark .row-nav button { border-color: #3A3E45; color: #fff; }
.sec-dark .row-nav button:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
/* стрелки лент заметные — белые кружки с тёмной стрелкой, как на первом экране */
:root .row-nav button { width: 52px; height: 52px; background: #fff; color: var(--ink); border: 2px solid var(--ink); font-size: 22px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
:root .row-nav button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
:root .sec-dark .row-nav button { border-color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
/* стрелки лент стоят по краям ленты на уровне карточек, а не у заголовка */
:root .sec-dark .wrap, :root .also-products { position: relative; }
:root .sec-dark .row-nav, :root .also-products .row-nav { position: absolute; left: -26px; right: -26px; top: calc(50% + 28px); transform: translateY(-50%); justify-content: space-between; pointer-events: none; z-index: 3; }
:root .sec-dark .row-nav button, :root .also-products .row-nav button { pointer-events: auto; }

/* Лента товаров */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 260px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: -4px -4px 0; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.row > * { scroll-snap-align: start; }
.row-nav { display: flex; gap: 8px; }
.row-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 18px; transition: all .15s; }
.row-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Карточка товара ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { --pad: 14px; position: relative; aspect-ratio: 1; background: var(--img-bg); margin: 3px 0 0; }
.card-img img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
/* метки товара: «Часто берут» зелёная, «Хит» жёлтая, «Скидка» красная (цвета темнее основных: белый текст 11px читается) */
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 8px; font: 700 11px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: #fff; background: #157A42; white-space: nowrap; }
.badge-sale { background: #C22A26; }
.badge-new { background: #1F5FBF; } /* «Новинка» — синяя */
.badge-hit { background: var(--yellow); color: var(--ink); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.sku { font: 500 12px var(--f-mono); color: var(--muted); }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.card-title::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.dots { display: flex; gap: 4px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font: 700 18px/1.1 var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.price small { font: 500 12px var(--f-body); color: var(--muted); margin-left: 3px; }
.price .ask { font: 600 14px var(--f-body); color: var(--ink-2); }
.add { position: relative; z-index: 1; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--yellow); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); transition: background .15s, color .15s; }
.add:hover { background: var(--ink); color: var(--yellow); }
.add.added { background: var(--green); color: #fff; box-shadow: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ---------- Как заказать ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1.5px dashed var(--line-2); border-radius: 24px; padding: 28px 26px 26px; }
.steps li::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1.5px; height: 6px; background: var(--tape); background-size: 30px 30px; border-radius: 0 0 4px 4px; opacity: .9; }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--yellow); font: 800 22px var(--f-head); margin-bottom: 18px; }
.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* ---------- Доставка ---------- */
.delivery { background: linear-gradient(180deg, transparent, var(--paper-2)); }
.delivery-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.delivery h2 { margin-bottom: 16px; }
.delivery .lead { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips span { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font-weight: 600; font-size: 14px; }
.map { background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.route { fill: none; stroke: var(--ink); stroke-width: .5; stroke-dasharray: 1.6 1.4; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.city { fill: var(--yellow); stroke: var(--ink); stroke-width: .6; }
.map text { font: 600 3.3px var(--f-body); fill: var(--ink); }
.map .hub { fill: var(--ink); }
.map .hub-ring { fill: var(--yellow); opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.map .hub-t { font: 800 4px var(--f-head); }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--ink-2); font-size: 17px; max-width: 40em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.facts div { border-top: 3px solid var(--ink); padding-top: 12px; }
.facts dt { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--f-head); }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.review { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: 24px; padding: 18px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review img { width: 112px; height: auto; flex: none; border-radius: 12px; }
.review b { display: block; font: 700 18px/1.2 var(--f-head); margin-bottom: 6px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--ink); color: #BDB7AA; margin-top: 40px; font-size: 14px; }
.tape { height: 14px; background: var(--tape); background-size: 40px 40px; }
.ftr-in { display: grid; grid-template-columns: 1.3fr 1.2fr .9fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
.ftr h3 { font: 600 13px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; }
.ftr a:hover { color: var(--yellow); }
.logo-inv .logo-word { color: #fff; }
.logo-inv .logo-word b { color: var(--ink); }
.ftr-brand p { margin: 16px 0 14px; max-width: 26em; }
.ftr-phone { display: block; font: 600 18px/1.5 var(--f-head); color: #fff; }
.ftr-msg { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ftr-msg a { padding: 6px 12px; border-radius: 999px; border: 1px solid #3A3E45; color: #fff; }
.ftr-msg a:hover { border-color: var(--yellow); }
.ftr-cats, .ftr-info { display: grid; align-content: start; gap: 9px; }
.ftr-cats a { display: flex; align-items: center; gap: 10px; }
.ftr-legal p { margin-bottom: 10px; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2A2D33; padding-top: 18px; padding-bottom: 26px; font-size: 13px; color: #868B94; }

/* ---------- Шапка страниц, хлебные крошки ---------- */
.page-head { padding: 26px 0 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--paper)), var(--paper)); }
.page-head h1 { font-weight: 800; font-size: clamp(26px, 3.6vw, 46px); margin: 14px 0 8px; }
.page-sub { color: var(--muted); font-weight: 500; }
.page-head .search-xl { margin-top: 22px; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs b { color: var(--ink-2); font-weight: 500; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Каталог ---------- */
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 8px; padding-bottom: 40px; }
.cat-main { min-width: 0; } /* иначе горизонтальная лента товаров растягивает колонку вместо прокрутки */
.side { position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow: auto; padding-right: 4px; }
.side-h { font: 600 12px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 12px 10px; }
.side-dept { margin-bottom: 2px; }
.side-d, .side-s { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.25; }
.side-d { font-weight: 600; }
.side-d span, .side-s span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.side-d:hover, .side-s:hover { background: rgba(255, 255, 255, .7); }
.side-d.on { background: #fff; box-shadow: var(--shadow); }
.side-s { padding: 7px 12px 7px 32px; color: var(--ink-2); position: relative; }
.side-s.on { color: var(--ink); font-weight: 600; background: #fff; }
.side-s.on::before { content: ''; position: absolute; left: 16px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--c); }
/* Новый дизайн: все подразделы раскрыты и крупнее (сайтом пользуются возрастные люди); колонка не липкая — список длинный */
:root .side { position: static; max-height: none; overflow: visible; } /* клиент: плавающее меню мешает — просто прокручивается со страницей */
:root .side-d { font-size: 17px; padding: 11px 12px; }
:root .side-s { font-size: 16px; font-weight: 500; padding: 6px 12px 6px 30px; }
:root .side-s.on::before { left: 14px; }
:root .side-dept { margin-bottom: 8px; }
.subchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subchips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.subchips a span { color: var(--muted); font-weight: 500; }
.subchips a:hover { border-color: var(--ink); }
.subchips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.subchips a.on span { color: #A8ADB5; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.marks { display: flex; gap: 6px; flex-wrap: wrap; }
.marks a { padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.marks a.on { background: var(--yellow); border-color: var(--yellow); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { height: 42px; padding: 0 36px 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; color: var(--ink); font-weight: 600; cursor: pointer; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- Страница товара ---------- */
.product { padding-top: 22px; padding-bottom: 20px; }
.pr-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; margin-top: 18px; align-items: start; }
.gallery { position: sticky; top: calc(var(--hdr-h) + 16px); }
.gal-main { position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); display: grid; place-items: center; padding: 28px; overflow: hidden; }
.gal-main img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; }
.gal-main .badge { top: 18px; left: 18px; font-size: 12px; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs button { width: 76px; height: 76px; flex: none; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); padding: 6px; }
.gal-thumbs button.on { border: 2px solid var(--ink); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pr-dept { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pr-dept:hover { border-color: var(--ink); }
.pr-info h1 { font-weight: 700; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.18; margin-bottom: 10px; }
.pr-short { margin-top: 12px; color: var(--ink-2); }
.colors { border: 0; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.colors legend { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; padding: 0; }
.colors label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.colors input { position: absolute; opacity: 0; pointer-events: none; }
.colors i { width: 20px; height: 20px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.colors label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.colors label:has(input:focus-visible) { outline: 3px solid var(--yellow); }
.buy { margin: 22px 0 18px; padding: 22px; background: #fff; border-radius: 24px; border: 1px solid var(--line); display: grid; gap: 14px; }
.buy-price { font: 800 clamp(28px, 3vw, 38px)/1 var(--f-head); letter-spacing: -.02em; }
.buy-price small { font: 500 15px var(--f-body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.buy-price .ask { font: 700 22px var(--f-head); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 56px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; overflow: hidden; }
.qty button { width: 44px; height: 100%; font-size: 20px; font-weight: 600; }
.qty button:hover { background: var(--paper); }
.qty input { width: 52px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 17px; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perks { list-style: none; margin: 0; padding: 0; }
.perks li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.perks li:last-child { border-bottom: 0; }
.perks svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--yellow-soft); color: var(--ink); }
.perks b { color: var(--ink); }
.pr-details { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; margin-top: 44px; align-items: start; }
.pr-details h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.specs, .descr { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 24px; }
.specs dl { margin: 0; }
.specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--line-2); font-size: 14px; }
.specs dl div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.rich { color: var(--ink-2); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.rich ul { padding-left: 20px; margin: 8px 0; }
.rich strong { color: var(--ink); }
.rich h2, .rich h3 { font-size: 20px; font-weight: 700; margin: 20px 0 8px; color: var(--ink); }
.rich h3 { font-size: 17px; }
.rich h2:first-child, .rich h3:first-child { margin-top: 0; }
.rich p { margin: 0 0 10px; }
.rich a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--yellow); }
.rich a:hover { border-color: var(--ink); }
/* Текст раздела под товарами (пишется в админке) */
.cat-text { margin-top: 36px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px; }
.cat-text .rich { max-width: 860px; }
.t-x { grid-column: span 4; }
/* «Смотрите также» на разделах и товарах, «Часто ищут» в подвале */
.also { margin-top: 36px; }
.also-products { margin-top: 40px; }
.also-products .sec-head { margin-bottom: 18px; }
.also-products h2 { font-size: 24px; }
.also-products .row { scroll-snap-type: none; }
.also h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.also-arts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.also-arts a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--yellow-soft); border: 1px solid #F0D98C; font-size: 14px; font-weight: 600; }
.also-arts a:hover { border-color: var(--ink); }
.also-arts svg { color: var(--ink); }
.ftr-pop { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; padding-bottom: 22px; font-size: 13px; color: #868B94; }
.ftr-pop a { color: #BDB7AA; border-bottom: 1px solid #3A3E45; }
.ftr-pop a:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---------- Статьи ---------- */
.art-list { padding-top: 10px; padding-bottom: 40px; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-card-img { display: block; aspect-ratio: 16 / 9; margin-top: 3px; background: color-mix(in srgb, var(--c) 14%, var(--paper)); overflow: hidden; }
.art-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.art-card:hover .art-card-img img { transform: scale(1.03); }
.art-card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.art-card-noimg svg { width: 44px; height: 44px; stroke-width: 1.2; }
.art-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.art-card-dept { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.art-card-dept i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.art-card-title { font: 700 18px/1.25 var(--f-head); letter-spacing: -.01em; color: var(--ink); }
.art-card-lead { color: var(--ink-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--yellow); align-self: flex-start; }
.art-card:hover .art-card-more { border-color: var(--ink); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art-meta a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.art-meta a i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.art-meta a:hover { border-color: var(--ink); }
/* Текст — левая колонка, оглавление — справа и прилипает; на узком экране всё в одну колонку, оглавление между вступлением и текстом */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-auto-rows: max-content; column-gap: 44px; align-items: start; padding-top: 10px; padding-bottom: 36px; }
.art > * { grid-column: 1; min-width: 0; }
.art-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); background: #fff; margin-bottom: 26px; }
.art-lead { font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 40em; margin-bottom: 26px; }
.art-toc { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: calc(var(--hdr-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.art-toc h2 { font: 600 12px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.art-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.art-toc li { counter-increment: toc; }
.art-toc a { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); border-bottom: 1px dotted var(--line-2); }
.art-toc li:last-child a { border-bottom: 0; }
.art-toc a::before { content: counter(toc, decimal-leading-zero); font: 600 12px/1.6 var(--f-mono); color: var(--muted); flex: none; }
.art-toc a:hover { color: var(--ink); }
.art-text { font-size: 17px; line-height: 1.7; max-width: 760px; }
.art-text p { margin: 0 0 16px; }
.art-text h2 { font-size: 26px; margin: 36px 0 14px; letter-spacing: -.02em; line-height: 1.15; }
.art-text h3 { font-size: 20px; margin: 26px 0 10px; }
.art-text ul, .art-text ol { margin: 0 0 16px; padding-left: 22px; }
.art-text li { margin-bottom: 6px; }
.art-text li::marker { color: var(--muted); }
.art-cta { margin-top: 36px; background: var(--ink); color: #fff; border-radius: 24px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.art-cta > div { flex: 1 1 280px; }
.art-cta h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.art-cta p { color: #BDB7AA; font-size: 15px; }
.art-cta .btn-ghost { border-color: #fff; color: #fff; }
.art-cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.art-products { padding: 56px 0; }
.art-foot { padding-bottom: 24px; }
.art-foot .also { margin-top: 0; margin-bottom: 36px; }

/* ---------- Поиск, контакты, 404 ---------- */
.search-res { padding-top: 24px; padding-bottom: 40px; }
.note { padding: 12px 16px; border-radius: 14px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); margin-bottom: 16px; }
.empty-box { text-align: center; background: #fff; border-radius: 24px; padding: 44px 24px; border: 1px solid var(--line); display: grid; justify-items: center; gap: 12px; }
.empty-box p { color: var(--ink-2); }
.contacts { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; padding-top: 10px; padding-bottom: 40px; align-items: start; }
.ct-card { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 26px; display: grid; gap: 14px; justify-items: start; }
.ct-card h2 { font-size: 20px; font-weight: 700; }
.ct-card h3 { font-size: 15px; font-weight: 700; margin-top: 6px; }
.ct-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.ct-main .btn-ghost { border-color: #fff; color: #fff; }
.ct-main .btn-dark { background: var(--yellow); color: var(--ink); }
.ct-main a:not(.btn) { color: var(--yellow); }
.ct-phone { font: 700 26px/1.2 var(--f-head); color: #fff !important; }
.ct-msg { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-addr { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.ct-card .chips { margin: 0; }
.req { margin: 0; width: 100%; }
.req div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line-2); font-size: 14px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; text-align: right; }
.ct-hours, .ct-pay { font-size: 14px; color: var(--ink-2); }
/* Рейтинг с Яндекс Карт — живой виджет Яндекса, обновляется сам */
.ya-rating { display: block; width: 150px; height: 50px; border: 0; border-radius: 10px; margin-bottom: 8px; background: #f5f5f5; }
/* Фото склада и карта под контактами */
.ct-place { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding-bottom: 50px; align-items: stretch; }
.ct-photos { display: grid; grid-template-columns: 1.33fr 1fr; gap: 16px; }
.ct-photos figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.ct-photos img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; flex: 1; }
.ct-photos figcaption { padding: 12px 16px; font-size: 13px; color: var(--ink-2); }
.ct-map { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: 360px; }
.ct-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
/* Отзывы с Яндекс Карт на главной */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rv { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.rv::before { content: '“'; position: absolute; right: 20px; top: 4px; font: 800 72px/1 var(--f-head); color: var(--yellow); opacity: .8; }
.rv p { color: var(--ink-2); font-size: 15px; line-height: 1.55; flex: 1; }
.rv footer { display: grid; gap: 2px; }
.rv footer b { font-weight: 700; }
.rv footer span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .ct-place, .ct-photos, .reviews { grid-template-columns: 1fr; } }
.nf { text-align: center; padding: 60px 24px 80px; display: grid; justify-items: center; gap: 16px; }
.nf-code { font: 800 clamp(110px, 20vw, 200px)/1 var(--f-head); background: var(--tape); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .search-xl { width: 100%; max-width: 560px; text-align: left; }

/* ---------- Заявка (корзина) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-bg { position: absolute; inset: 0; background: rgba(21, 23, 27, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(470px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: slide .28s cubic-bezier(.2, .8, .3, 1); box-shadow: var(--shadow-lg); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { font-size: 22px; font-weight: 800; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px 26px; }
.ci-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; background: #fff; border-radius: 16px; padding: 10px; border: 1px solid var(--line); }
.ci-img { width: 64px; height: 64px; border-radius: 12px; background: var(--img-bg); display: grid; place-items: center; padding: 4px; }
.ci-img img { max-height: 100%; mix-blend-mode: multiply; }
.ci-info { display: grid; gap: 4px; font-size: 14px; }
.ci-info a { font-weight: 600; line-height: 1.3; }
.ci-info small { color: var(--muted); }
.ci-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; }
.ci-qty button { width: 30px; height: 30px; border-radius: 9px; background: var(--paper); font-weight: 700; }
.ci-qty button:hover { background: var(--yellow); }
.ci-qty span { min-width: 32px; text-align: center; font-weight: 700; }
.ci-del { width: 30px; height: 30px; border-radius: 50%; font-size: 20px; color: var(--muted); }
.ci-del:hover { background: var(--paper); color: var(--red); }
.ci-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 6px; border-top: 2px solid var(--ink); }
.ci-total span { color: var(--ink-2); font-size: 14px; }
.ci-total b { font: 800 24px var(--f-head); white-space: nowrap; }
.ci-hint { font-size: 13px; color: var(--muted); margin: 4px 4px 18px; }
.order { display: grid; gap: 12px; }
.order > label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.order input:not([type=radio]):not([type=checkbox]), .order textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-size: 16px; font-weight: 400; color: var(--ink); outline: none; resize: vertical; }
.order input:focus, .order textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 26, .45); }
.order .invalid { border-color: var(--red) !important; }
.pills { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pills legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; }
.pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--yellow); }
.consent { display: flex !important; grid-auto-flow: column; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; font-size: 13px !important; line-height: 1.35; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--ink); }
.consent a { font-weight: 600; border-bottom: 1.5px solid var(--yellow); }
/* Уведомление о cookie и страница политики (152-ФЗ) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; margin: 0 auto; max-width: 720px; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border-radius: 18px; background: var(--ink); color: #DDD8CC; box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.4; }
.cookie p { flex: 1; }
.cookie a { color: #fff; border-bottom: 1px solid var(--yellow); }
.cookie .btn { height: 40px; padding: 0 16px; flex: none; }
.policy { padding-top: 10px; padding-bottom: 50px; }
.policy .rich { max-width: 820px; font-size: 16px; }
@media (max-width: 640px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } }
.form-err { color: var(--red); font-size: 14px; font-weight: 600; }
.cart-empty, .cart-done { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 30px 6px; }
.cart-empty p, .cart-done p { color: var(--ink-2); }
.cart-empty .btn, .cart-done .btn { width: 100%; }
.ce-icon { width: 84px; height: 84px; border-radius: 24px; background: var(--yellow); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 5px 5px 0 var(--ink); margin-bottom: 6px; }
.ce-icon svg { width: 40px; height: 40px; }
.cart-done h3, .cart-empty h3 { font-size: 22px; font-weight: 800; }
.order-id { font: 700 15px var(--f-mono); background: #fff; border: 1.5px dashed var(--ink); padding: 8px 14px; border-radius: 10px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; transition: transform .25s, opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Кнопка «Наверх» (новый дизайн, создаёт app.js) */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 110; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .15s; cursor: pointer; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--yellow); color: var(--ink); }
@media (max-width: 760px) { .to-top { right: 14px; bottom: 16px; width: 46px; height: 46px; } }
.toast button { flex: none; padding: 8px 12px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 13px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .hdr-phone, .hdr-phones { display: none; }
  .hdr-in { grid-template-columns: auto auto 1fr auto; }
}
/* Планшеты и телефоны: текст сверху, фото ассортимента под ним */
@media (max-width: 1180px) {
  .hero-in { min-height: 0; }
  .hero-copy { max-width: 680px; padding: 36px 0 6px; }
  /* показываем только правые 60% и нижние 75% кадра — там товары */
  .hero-media { position: relative; left: auto; height: auto; aspect-ratio: 1.92; overflow: hidden; }
  .hero-media > img { position: absolute; right: 0; bottom: 0; width: 166.7%; height: auto; max-width: none; }
  .hero-media::after { background: linear-gradient(180deg, #F1EDE5 0%, rgba(241, 237, 229, 0) 22%); }
  /* живое фото на планшете и телефоне: сцена сверху целиком, текст под ней на тёмном */
  .hero-photo { display: flex; flex-direction: column; }
  .hero-photo .hero-media { order: 1; }
  .hero-photo .hero-nav { order: 2; }
  .hero-photo .hero-in { order: 3; min-height: 0; width: 100%; }
  .hero-photo .hero-copy { max-width: 640px; padding: 4px 0 36px; }
  .hero-photo .hero-media { position: relative; inset: auto; height: auto; aspect-ratio: var(--arn, 1.5); }
  .hero-photo .hero-scene { position: absolute; left: 0; right: auto; top: 0; width: 100%; height: 100%; }
  .hero-nav { position: static; justify-content: space-between; padding: 12px 24px 6px; }
  .hero-tabs { overflow-x: auto; scrollbar-width: none; }
  .hero-photo .hero-scene > picture img { position: static; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-photo .hero-media::after { background: linear-gradient(180deg, rgba(26, 28, 32, 0) 72%, #1A1C20 100%); }
}
@media (max-width: 900px) {
  .hide-m { display: none !important; } /* на планшете верхняя полоска не помещается: прячем доставку, город и почту */
  :root .tb-addr { display: none; } /* в новом дизайне почта остаётся, адрес прячем */
}
@media (max-width: 1024px) {
  /* minmax(0, 1fr), а не 1fr: иначе горизонтальная лента подразделов (nowrap) растягивает колонку шире экрана */
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .cat-main { min-width: 0; }
  .cat-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-side { top: 50%; } .hero-side-l { left: 14px; } /* на планшете сцена отдельным блоком — стрелки по её краям */
  .side { display: none; }
  .pr-grid, .pr-details { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .mega-in { grid-template-columns: repeat(3, 1fr); }
  :root .mega-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: 1fr 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .art { grid-template-columns: minmax(0, 1fr); }
  .art-toc { grid-column: 1; grid-row: auto; position: static; margin-bottom: 26px; }
  .art-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .catalog .cat-main > .subchips { display: none; } /* подразделы на широком экране — в боковой колонке; «Смотрите также» остаётся */
}
@media (max-width: 760px) {
  :root { --hdr-h: 116px; }
  .wrap { padding: 0 16px; }
  .topbar-in { gap: 12px; }
  .hide-m { display: none !important; }
  .hdr-in { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo logo phone cart" "cat search search search"; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 8px; }
  .logo { grid-area: logo; }
  /* на телефоне телефон — круглая кнопка-трубка рядом с заявкой */
  .hdr-phone { display: inline-flex; grid-area: phone; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 14px; }
  .hdr-phone small, .hdr-phone-num { display: none; }
  .hdr-phone-ic { display: block; }
  .hdr-phones { display: block; grid-area: phone; } .hdr-phone-alt { display: none; } /* на телефоне — одна кнопка-трубка с основным номером */
  :root .topbar-in { justify-content: center; gap: 6px 14px; }
  /* на телефоне правая группа занимает всю ширину и переносится — иначе она была шире экрана и страница уезжала влево */
  :root .tb-right { margin-left: 0; flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  :root .tb-mail { max-width: 100%; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-word { font-size: 15px; }
  .btn-catalog { grid-area: cat; width: 46px; height: 46px; padding: 0; justify-content: center; }
  .btn-catalog > span:last-child { display: none; }
  .btn-cart { grid-area: cart; height: 44px; padding: 0 12px; }
  .hdr .search { grid-area: search; }
  .hdr .search input { height: 46px; }
  .mega-in { grid-template-columns: 1fr 1fr; gap: 4px 16px; padding-top: 18px; }
  :root .mega-in { grid-template-columns: minmax(0, 1fr); }
  :root .mega-top { padding-top: 12px; justify-content: stretch; } .mega-all { flex: 1; justify-content: center; }
  .hero-copy { padding-top: 26px; }
  .hero-cta .btn { flex: 1 1 100%; }
  /* на телефоне сцена крупнее: показываем правые ~3/4 картинки, где все товары (сдвиг сцены — mobileLeft в slides.json) */
  .hero-photo .hero-media { aspect-ratio: calc(var(--arn, 1.5) / 1.36); }
  .hero-photo .hero-scene { width: 136%; left: var(--ml, -36%); }
  .hero-nav { padding: 10px 16px 4px; }
  .hero-side { width: 40px; height: 40px; top: 50%; } .hero-side-l { left: 10px; } .hero-side-r { right: 10px; }
  :root .sec-dark .row-nav, :root .also-products .row-nav { display: none; } /* на телефоне ленту листают пальцем */
  .cat-row-in { padding: 0; }
  .cat-row a { flex: 1 1 50%; padding: 13px 8px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .cat-row a:nth-child(2n) { border-right: 0; }
  .hero-tab { padding: 8px 11px; font-size: 12.5px; }
  .xp-card { min-width: 200px; padding: 9px 11px 10px; }
  .xp-card-t { font-size: 13px; }
  .xp-card-s { display: none; }
  .xp-hint { font-size: 10px; padding: 3px 7px; }
  /* на телефоне — только главные бирки (у остальных в tags.json стоит "mobile": false) */
  .ltag-nm { display: none; }
  /* бирки на телефоне — ещё компактнее */
  .ltag-card { height: 20px; padding: 0 6px 0 12px; bottom: 11px; }
  .ltag-d .ltag-card { top: 11px; }
  .ltag-card::before { left: 5px; width: 4px; height: 4px; margin-top: -2px; }
  .ltag::before { height: 10px; bottom: 4px; }
  .ltag-d::before { top: 4px; }
  .ltag-price { font-size: 10.5px; }
  .ltag-dot { left: -5px; top: -5px; width: 10px; height: 10px; }
  .ltag-r .ltag-card { left: 4px; }
  .ltag-l .ltag-card { right: 4px; }
  /* "mside": "l" — на телефоне ярлык слева от точки (у правого края экрана) */
  .ltag-ml .ltag-card { left: auto; right: 4px; }
  .ltag-ml::before { left: auto; right: 0; transform: rotate(-40deg); }
  .ltag-mr .ltag-card { right: auto; left: 4px; }
  .ltag-mr::before { right: auto; left: 0; transform: rotate(40deg); }
  .ltag-d.ltag-ml::before { transform: rotate(40deg); }
  .ltag-d.ltag-mr::before { transform: rotate(-40deg); }
  .ltag.ltag-ml .ltag-go svg { transform: rotate(40deg); }
  .ltag.ltag-mr .ltag-go svg { transform: rotate(140deg); }
  .ltag-d.ltag-ml .ltag-go svg { transform: rotate(-40deg); }
  .ltag-d.ltag-mr .ltag-go svg { transform: rotate(-140deg); }
  /* карточка кабины на телефоне прижата к правому краю */
  .xp-card { left: auto !important; right: 2%; transform: translateY(14px); }
  .xp.open .xp-card { transform: translateY(2px); }
  .hero-facts { margin-top: 22px; gap: 8px 18px; font-size: 13px; }
  .hero-facts b { font-size: 18px; }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .lead { font-size: 16px; }
  .search-xl input { height: 58px; font-size: 16px; padding-right: 64px; box-shadow: 4px 4px 0 var(--ink); }
  .search-xl > button span { display: none; }
  .search-xl > button { padding: 0 14px; }
  .sec { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .delivery-in, .about { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* на телефоне карточка узкая: название на всю ширину, стрелка под ним справа — иначе слова ломались и налезали на стрелку */
  .ch-body { grid-template-columns: minmax(0, 1fr); padding: 10px 12px 12px; gap: 2px; }
  .ch-title { font: 700 16px/1.2 var(--f-body); } /* узкий шрифт: «евроконтейнеры» и «металлические» помещаются без разрыва слова */
  .ch-count { font-size: 13px; }
  .ch-go { grid-column: 1; grid-row: 3; justify-self: end; width: 28px; height: 28px; margin-top: 6px; }
  .ch-go svg { width: 15px; height: 15px; }
  .card { border-radius: 16px; }
  .card-img { --pad: 8px; }
  .card-body { padding: 10px 12px 12px; gap: 4px; }
  .card-title { font-size: 14px; }
  .price { font-size: 16px; }
  .add { width: 100%; height: 38px; }
  .row { grid-auto-columns: minmax(170px, 200px); gap: 10px; }
  .subchips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .contacts { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .art-cover { border-radius: 16px; margin-bottom: 18px; }
  .art-lead { font-size: 17px; margin-bottom: 18px; }
  .art-text { font-size: 16px; }
  .art-text h2 { font-size: 22px; margin-top: 28px; }
  .art-cta { padding: 20px; }
  .art-cta .btn { flex: 1 1 100%; }
  .art-products { padding: 40px 0; }
  .ftr-in { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .review img { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
