/* ПФ-Торг – редизайн, 2026. Единый файл стилей для всех шаблонов. */
/* Manrope (OFL), локальные файлы, переменный 400–800 */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }



:root {
  --orange: #d85c28;
  --orange-600: #c04d1f;
  --orange-700: #a5421b;
  --orange-100: #f6dccd;
  --orange-50: #fbeee6;
  --ink: #1b1a18;
  --ink-2: #45423e;
  --muted: #7a766f;
  --muted-2: #a7a39b;
  --line: #e8e5df;
  --line-2: #d9d5cd;
  --bg: #f6f5f2;
  --bg-2: #efede8;
  --surface: #ffffff;
  --green: #1f8a57;
  --green-50: #e8f6ee;
  --amber: #b4720c;
  --amber-50: #fff6e3;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06), 0 1px 1px rgba(60, 40, 20, .04);
  --shadow-md: 0 10px 30px -12px rgba(60, 40, 20, .18), 0 2px 6px rgba(60, 40, 20, .06);
  --shadow-lg: 0 30px 60px -20px rgba(60, 40, 20, .28), 0 8px 20px -8px rgba(60, 40, 20, .12);
  --r-card: 16px;
  --r-ctl: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms var(--ease);
  --t-med: 320ms var(--ease);
  --t-slow: 600ms var(--ease);
  --container: 1360px;
  --gutter: 24px;
  --header-h: 72px;
  --z-sticky: 50;
  --z-drop: 60;
  --z-drawer: 80;
  --z-toast: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "lnum" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; }
h3 { font-size: 18px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); z-index: 100; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -6px rgba(216, 92, 40, .55); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 10px 22px -8px rgba(216, 92, 40, .6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2926; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--r-ctl); color: var(--ink-2); }
.btn-icon:hover { background: var(--bg-2); color: var(--ink); }

/* ---------- Шапка ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 24px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a { color: var(--ink-2); transition: color var(--t-fast); }
.topbar a:hover { color: var(--orange); }
.topbar-city { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.topbar-phone { font-weight: 600; color: var(--ink); }

.header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(255, 251, 245, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t-med); }
.header.is-stuck { box-shadow: 0 8px 30px -18px rgba(40, 30, 20, .35); }
.header-row { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo-svg { height: 40px; width: auto; }
.footer-brand .logo-svg { height: 44px; }
.drawer-head .logo-svg { height: 34px; }
.catalog-btn { gap: 10px; padding: 0 18px; }
.catalog-btn .icon-x { display: none; }
.catalog-btn[aria-expanded="true"] .icon-list { display: none; }
.catalog-btn[aria-expanded="true"] .icon-x { display: block; }

.search { flex: 1 1 auto; position: relative; }
/* Строка поиска: белая «таблетка» с тонким многослойным кантом вместо серой рамки, примеры товаров сменяют друг друга,
   круглая кнопка оживает, когда введён запрос, а при отправке текст рассыпается (site.js). */
.search-form {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 6px 0 16px; background: var(--surface); border-radius: var(--r-pill);
  box-shadow: 0 2px 3px -1px rgba(60, 40, 20, .10), 0 1px 0 0 rgba(60, 40, 20, .02), 0 0 0 1px rgba(60, 40, 20, .10);
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.search-form:hover { box-shadow: 0 2px 3px -1px rgba(60, 40, 20, .12), 0 1px 0 0 rgba(60, 40, 20, .02), 0 0 0 1px rgba(60, 40, 20, .18); }
.search-form:focus-within { box-shadow: 0 0 0 1px var(--orange), 0 0 0 5px rgba(216, 92, 40, .14), 0 10px 24px -14px rgba(60, 40, 20, .3); }
.search-ico { flex: none; width: 20px; height: 20px; color: var(--muted); transition: color var(--t-fast); }
.search-form:focus-within .search-ico { color: var(--ink-2); }
.search-form input { position: relative; z-index: 1; flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; font-size: 16px; color: var(--ink); }
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form.is-vanishing input { color: transparent; }
.search-ph { position: absolute; left: 46px; right: 58px; top: 0; bottom: 0; display: none; align-items: center; pointer-events: none; overflow: hidden; color: var(--muted); font-size: 16px; }
/* пример виден только в пустом поле без курсора: как только поставили курсор – исчезает и не мешает вводу */
.search-form.has-ph:not(.has-value):not(:focus-within) .search-ph { display: flex; }
.search-ph span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ph-in .3s var(--ease) both; }
.search-ph span.is-out { animation: ph-out .22s ease-in both; }
@keyframes ph-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ph-out { to { opacity: 0; transform: translateY(-12px); } }
.search-dust { position: absolute; pointer-events: none; opacity: 0; }
.search-form.is-vanishing .search-dust { opacity: 1; }
.search-go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--muted-2); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.search-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-go .go-stem { stroke-dasharray: 14; stroke-dashoffset: 7; transition: stroke-dashoffset .3s linear; }
.search-form.has-value .search-go { background: var(--orange-600); color: #fff; }
.search-form.has-value .search-go .go-stem { stroke-dashoffset: 0; }
.search-form.has-value .search-go:hover { background: var(--orange-700); }
.search-go:active { transform: scale(.94); }
.search-go:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .search-ph span, .search-ph span.is-out { animation: none; }
  .search-go .go-stem { transition: none; }
}
.search-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--t-fast), transform var(--t-med); z-index: var(--z-drop); }
.search.is-open .search-sugg { opacity: 1; transform: none; pointer-events: auto; }
.search-sugg-title { font-size: 12px; color: var(--muted); padding: 6px 10px; }
.search-sugg a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.search-sugg a:hover { background: var(--bg); }
.search-sugg a .icon { color: var(--muted-2); }
.search-sugg b { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.hdr-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: var(--r-ctl); color: var(--ink-2); font-size: 11px; transition: background var(--t-fast), color var(--t-fast); }
.hdr-action:hover { background: var(--bg-2); color: var(--ink); }
.hdr-action .icon { width: 22px; height: 22px; }
.badge { position: absolute; top: 2px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform var(--t-med); }
.badge.is-on { transform: scale(1); }
.badge.bump { animation: bump 420ms var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.burger { display: none; }

/* Полоса категорий под шапкой */
.chips-row { border-top: 1px solid var(--line); background: rgba(255, 251, 245, .86); }
.chips-row .container { position: relative; }
.chips-row .container::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 64px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: transparent; border: 1px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); white-space: nowrap; }
.chip:hover { background: var(--bg-2); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; }
.chip-outline { border-color: var(--line-2); background: var(--surface); }
.chip-outline:hover { border-color: var(--ink); background: var(--surface); }

/* Мегаменю каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-drop); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 40px 70px -30px rgba(40, 30, 20, .35); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity var(--t-med), transform var(--t-med); }
.mega.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mega-inner { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; max-height: calc(100vh - 140px); }
.mega-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 8px; }
.mega-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.mega-list a .icon { width: 16px; height: 16px; color: var(--muted-2); transition: transform var(--t-fast); }
.mega-list a:hover, .mega-list a.is-active { background: var(--orange-50); color: var(--orange-700); }
.mega-list a.is-active .icon { color: var(--orange); transform: translateX(2px); }
.mega-panel { padding: 24px 28px; overflow-y: auto; }
.mega-panel h3 { font-size: 20px; margin-bottom: 4px; }
.mega-panel .mega-all { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.mega-cols { columns: 3; column-gap: 24px; }
.mega-cols a { display: block; break-inside: avoid; padding: 6px 0; font-size: 14px; color: var(--ink-2); transition: color var(--t-fast); }
.mega-cols a:hover { color: var(--orange); }
.mega-empty { color: var(--muted); font-size: 14px; }
.mega-panel .fade { animation: fadeUp 280ms var(--ease); }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mega-backdrop { position: fixed; inset: 0; background: rgba(27, 26, 24, .35); z-index: calc(var(--z-sticky) - 1); opacity: 0; pointer-events: none; transition: opacity var(--t-med); }
.mega-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Мобильное меню ---------- */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, 90vw); background: var(--surface); z-index: var(--z-drawer); transform: translateX(-104%); transition: transform 380ms var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 8px 8px 24px; flex: 1; }
.drawer-body a { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px; border-radius: 10px; font-weight: 500; }
.drawer-body a:hover { background: var(--bg); }
.drawer-body .sec { font-size: 12px; color: var(--muted); padding: 14px 12px 4px; text-transform: none; }
.drawer-foot { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(27, 26, 24, .45); z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none; transition: opacity var(--t-med); }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Главная: герой ---------- */
.hero { padding: 36px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: stretch; }
.hero-copy { animation: heroIn 600ms var(--ease) both; background: var(--surface); border-radius: 24px; padding: 48px 48px 44px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.hero-copy::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 92, 40, .14), transparent 70%); pointer-events: none; }
.hero h1 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: 24px; overflow: hidden; min-height: 380px; box-shadow: var(--shadow-md); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero-media.is-in img { transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(20, 14, 8, .55)); }
.hero-note { position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 1; display: flex; align-items: center; gap: 14px; color: #fff; }
.hero-note .ava { display: flex; }
.hero-note .ava span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: var(--orange); display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-left: -8px; }
.hero-note .ava span:first-child { margin-left: 0; }
.hero-note p { font-size: 14px; line-height: 1.35; max-width: 32ch; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* Факты о компании: строка текста под первым экраном, а не ряд карточек – ничего не нажимается, поэтому без рамок,
   теней, подложек и реакции на наведение. Иконка – тонкая линия в одну строку с заголовком, без плашки. */
.usp { padding: 32px 0 12px; }
.usp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; margin: 0; padding: 0; list-style: none; }
.usp-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.usp-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--orange-700); }
.usp-item b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.usp-item span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* Секции */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin-top: 4px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; border-bottom: 1px solid transparent; transition: color var(--t-fast); }
.link-more:hover { color: var(--orange); }
.link-more .icon { transition: transform var(--t-fast); }
.link-more:hover .icon { transform: translateX(3px); }

/* Плитки категорий */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; padding: 16px 16px 8px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(40, 30, 20, .04); transition: transform 380ms var(--ease), box-shadow 380ms var(--ease); overflow: hidden; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(120, 60, 20, .35), 0 0 0 1px rgba(216, 92, 40, .18); }
.cat-tile b { font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; min-height: 2.5em; }
.cat-tile span { font-size: 13px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.cat-tile span .icon { width: 14px; height: 14px; transition: transform var(--t-fast); }
.cat-tile:hover span { color: var(--orange-700); }
.cat-tile:hover span .icon { transform: translateX(3px); }
.cat-tile .cat-img { margin: 12px -8px 0; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #f3f2ef; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }

/* Карточка товара */
.product-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { --img-bg: #f3f2ef; min-width: 0; position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; padding: 8px 8px 14px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(40, 30, 20, .04); transition: transform 380ms var(--ease), box-shadow 380ms var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(120, 60, 20, .35), 0 0 0 1px rgba(216, 92, 40, .18); }
.card-media { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--img-bg); isolation: isolate; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); -webkit-user-drag: none; user-select: none; }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(30,20,10,.06)); pointer-events: none; }
.card-badges { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.tag-sale { background: var(--orange); color: #fff; box-shadow: 0 4px 10px -4px rgba(216, 92, 40,.7); }
.tag-hit { background: var(--ink); color: #fff; }
.tag-order { background: var(--surface); color: var(--amber); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card-wish { position: absolute; z-index: 2; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink-2); display: grid; place-items: center; box-shadow: 0 2px 8px -2px rgba(0,0,0,.15); transition: transform 240ms var(--ease), color var(--t-fast), background var(--t-fast); }
.card-wish:hover { transform: scale(1.1); color: var(--orange); }
.card-wish:active { transform: scale(.92); }
.card-wish .icon { width: 18px; height: 18px; }
.card-wish .icon-fill { display: none; }
.card-wish.is-on { color: var(--orange); }
.card-wish.is-on .icon-line { display: none; }
.card-wish.is-on .icon-fill { display: block; animation: heartPop 420ms var(--ease); }
@keyframes heartPop { 0% { transform: scale(.4); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }
.card-quick { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; height: 38px; border-radius: 10px; background: rgba(27, 26, 24, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease), transform 360ms var(--ease); }
.card:hover .card-quick { opacity: 1; transform: none; }
.card-quick:hover { background: var(--ink); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px 0; flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 4px; }
.card-price b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.card-price .unit { font-size: 13px; color: var(--muted); font-weight: 500; }
.card-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--orange-700); font-weight: 600; }
.card-opt .pct { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--orange-50); color: var(--orange-700); font-size: 11.5px; font-weight: 700; }
.card-opt .muted { color: var(--muted); font-weight: 500; }
.card-sku { margin-top: 6px; font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.card-meta .icon { width: 15px; height: 15px; }
.card-meta.is-in { color: var(--green); }
.card-meta .sku { margin-left: auto; color: var(--muted-2); }
.card-actions { position: relative; z-index: 3; margin-top: auto; padding-top: 12px; height: 54px; }
.card-actions .btn-add { width: 100%; height: 42px; border-radius: 12px; font-size: 14.5px; }
.card-actions .btn-add .icon { width: 18px; height: 18px; }
.stepper { display: none; width: 100%; height: 42px; border-radius: 12px; background: var(--orange-50); color: var(--orange-700); align-items: center; justify-content: space-between; overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(216, 92, 40,.35); }
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--orange-700); transition: background var(--t-fast); }
.stepper button:hover { background: rgba(216, 92, 40,.12); }
.stepper button:active { transform: scale(.9); }
.stepper .n { white-space: nowrap; font-weight: 700; font-size: 14.5px; text-align: center; line-height: 1.1; }
.stepper .n small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.card-actions.in-cart .btn-add { display: none; }
.card-actions.in-cart .stepper { display: flex; animation: stepIn 320ms var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.btn-add.is-added { background: var(--green); color: #fff; box-shadow: none; }
.btn-add .lbl-added { display: none; }
.btn-add.is-added .lbl-add { display: none; }
.btn-add.is-added .lbl-added { display: inline-flex; align-items: center; gap: 6px; }

/* Защита фото: без перетаскивания и выделения, контекстное меню глушится в site.js */
.card-media img, .gallery-main img, .gallery-thumbs img, .cat-tile img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* Оптом / дилерам */
/* Блок для сетей и дилеров: одна тёмная поверхность без свечения. Шаги – нумерованный список (это настоящая
   последовательность: заявка → подбор → доставка): без плашек, рамок, иконок в квадратах и реакции на наведение. */
.b2b { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.b2b h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 14px; }
.b2b p { color: rgba(255, 255, 255, .78); max-width: 52ch; font-size: 16px; }
.b2b-steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: b2b; }
.b2b-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start; counter-increment: b2b; }
.b2b-step::before { content: counter(b2b); font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.05; color: var(--orange); font-variant-numeric: tabular-nums; }
.b2b-step b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.b2b-step span { display: block; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.b2b .hero-cta { margin-top: 28px; }
.b2b .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.b2b .btn-outline:hover { border-color: #fff; }

/* Блог */
.blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.blog-grid .post img { aspect-ratio: 4 / 3; }
.blog-grid .post-body { flex: 1; }
.post { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-med), box-shadow var(--t-med); }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 14px 16px 16px; }
.post-body time { font-size: 12.5px; color: var(--muted); }
.post-body h3 { font-size: 15.5px; line-height: 1.3; margin-top: 4px; font-weight: 600; }

/* Контакты-полоса */
/* Контакты: три колонки текстом, как факты о компании под первым экраном – без карточек, рамок и плашек под
   иконками. Нажимаются только телефон и почта – они ссылки с подчёркиванием, а не блоки. */
.contact-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 40px; }
.contact-card { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.contact-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--orange-700); }
.contact-card b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.contact-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.contact-card a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color var(--t-fast), text-decoration-color var(--t-fast); }
.contact-card a:hover { color: var(--orange-700); text-decoration-color: currentColor; }
.contact-card a.strong { font-weight: 600; color: var(--ink); }

/* ---------- Подвал ---------- */
.footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 44px 0 36px; }
.footer h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--orange); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 36ch; margin-top: 14px; }
.footer-msg { display: flex; gap: 8px; margin-top: 16px; }
.footer-msg a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; transition: border-color var(--t-fast), background var(--t-fast); }
.footer-msg a:hover { border-color: var(--ink); }
.footer-msg img { width: 22px; height: 22px; }
.footer-dev { margin-top: 22px; max-width: 36ch; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.footer-dev img { display: inline-block; width: auto; height: 10px; margin: 0 1px; vertical-align: 0; opacity: .9; transition: opacity var(--t-fast); }
.footer-dev a:hover img { opacity: 1; }
.footer-dev a:last-child { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer-dev a:last-child:hover { text-decoration-color: currentColor; }
.footer-contacts a { display: block; font-weight: 600; color: var(--ink); font-size: 16px; padding: 2px 0; }
.footer-contacts p { font-size: 13.5px; color: var(--muted); margin: 2px 0 10px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 18px 0 10px; }
.crumbs a { color: var(--ink-2); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--orange); }
.crumbs .icon { width: 14px; height: 14px; color: var(--muted-2); }
.crumbs span[aria-current] { color: var(--muted); }

/* ---------- Категория ---------- */
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 18px; }
.cat-head .count { color: var(--muted); font-size: 14px; margin-top: 6px; }
.sub-chips { margin-bottom: 18px; }
.catalog-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 16px 10px; }
.filter { border-bottom: 1px solid var(--line); }
.filter:last-child { border-bottom: 0; }
.filter > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.filter > summary::-webkit-details-marker { display: none; }
.filter > summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-med); }
.filter[open] > summary .icon { transform: rotate(180deg); }
.filter-body { padding: 0 0 14px; display: grid; gap: 8px; animation: fadeUp 240ms var(--ease); }
.range { display: flex; gap: 8px; }
.range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.range input { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.range input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(216, 92, 40, .14); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); margin: 0; }
.check input::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--surface); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); transform: scale(0); transition: transform var(--t-fast); }
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { transform: scale(1); }
.check .n { margin-left: auto; color: var(--muted-2); font-size: 12.5px; }
.filters-foot { display: grid; gap: 8px; padding-top: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sort { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.sort select { border: 0; background: transparent; outline: 0; font-weight: 500; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.view-toggle button.is-on { background: var(--ink); color: #fff; }
.filters-open { display: none; }
.applied { display: flex; gap: 6px; flex-wrap: wrap; }
.applied .chip { height: 30px; font-size: 12.5px; gap: 6px; background: var(--orange-50); color: var(--orange-700); }
.applied .chip .icon { width: 12px; height: 12px; }
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-products.is-list { grid-template-columns: 1fr; }
.grid-products.is-list .card { flex-direction: row; gap: 18px; align-items: center; }
.grid-products.is-list .card-media { width: 150px; flex: 0 0 auto; }
.grid-products.is-list .card-body { padding: 0; }
.grid-products.is-list .card-name { -webkit-line-clamp: 3; min-height: 0; }
.grid-products.is-list .card-actions { width: 200px; flex: 0 0 auto; margin: 0 8px 0 0; }
.grid-products.is-list .card-quick { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 500; transition: background var(--t-fast); }
.pager a:hover { background: var(--bg-2); }
.pager .is-cur { background: var(--ink); color: #fff; }
.seo-text { max-width: 76ch; color: var(--ink-2); font-size: 14.5px; margin-top: 36px; }
.seo-text h2 { font-size: 20px; margin-bottom: 10px; }
.seo-text p + p { margin-top: 10px; }

/* ---------- Карточка товара ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 8px; }
.pdp-title { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
.pdp-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.pdp-meta .stars { display: inline-flex; gap: 2px; color: var(--orange); }
.pdp-meta .stars .icon { width: 15px; height: 15px; }
.pdp-meta .stars .icon.off { color: var(--line-2); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: var(--r-pill); }
.stock.is-in { background: var(--green-50); color: var(--green); }
.stock.is-order { background: var(--amber-50); color: var(--amber); }

.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.gallery.is-single { grid-template-columns: 1fr; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); overflow: hidden; padding: 4px; transition: border-color var(--t-fast); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button.is-on { border-color: var(--orange); }
.gallery-main { position: relative; aspect-ratio: 4 / 4.4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; opacity: 0; transform: scale(.97); transition: opacity var(--t-med), transform var(--t-med); }
.gallery-main img.is-on { opacity: 1; transform: none; }
.gallery-main .card-wish { opacity: 1; transform: none; top: 12px; right: 12px; width: 40px; height: 40px; }
.gallery-main .zoom-hint { position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: var(--muted); background: rgba(255, 251, 245, .9); padding: 4px 8px; border-radius: 8px; }

.pdp-info h2 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.opt { height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.opt .sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .12); }
.opt:hover { border-color: var(--ink); }
.opt.is-on { border-color: var(--orange); background: var(--orange-50); }
.opt:active { transform: scale(.97); }
.specs-short { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 24px; }
.specs-short div { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.specs-short span { display: block; font-size: 12px; color: var(--muted); }
.specs-short b { font-weight: 600; font-size: 14px; }
.delivery { display: grid; gap: 8px; }
.delivery > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.delivery > div > div { display: block; }
.delivery .icon { color: var(--orange); margin-top: 2px; }
.delivery b { font-weight: 600; }
.delivery span { color: var(--muted); display: block; font-size: 13px; }

.buybox { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-sm); }
.price-main { display: flex; align-items: baseline; gap: 6px; }
.price-main b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.price-main span { color: var(--muted); }
.price-opt { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; font-size: 14px; color: var(--ink-2); }
.price-opt b { font-weight: 600; }
.price-opt .tip { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; cursor: help; }
.price-opt .tip .icon { width: 12px; height: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-ctl); height: 46px; background: var(--surface); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--ink-2); transition: background var(--t-fast); }
.qty button:hover { background: var(--bg); }
.qty button:disabled { color: var(--line-2); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.qty input { width: 48px; text-align: center; border: 0; outline: 0; font-weight: 600; font-size: 15px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.buy-row { display: flex; gap: 8px; margin-bottom: 8px; }
.buy-row .btn-primary { flex: 1; }
.buybox .btn-block + .btn-block { margin-top: 8px; }
.buy-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.buy-contact { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.buy-contact .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.buy-contact b { display: block; }
.buy-contact span { color: var(--muted); }

.pdp-below { margin-top: 28px; }
.tabs { margin-top: 0; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); position: relative; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { height: 46px; padding: 0 16px; font-weight: 600; color: var(--muted); white-space: nowrap; position: relative; transition: color var(--t-fast); }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-ind { position: absolute; bottom: -1px; height: 2px; background: var(--orange); border-radius: 2px; transition: left var(--t-med), width var(--t-med); }
.tab-panel { display: none; padding: 24px 0 8px; animation: fadeUp 300ms var(--ease); }
.tab-panel.is-on { display: block; }
.tab-panel .prose { max-width: 72ch; color: var(--ink-2); font-size: 15px; }
.tab-panel .prose p + p { margin-top: 10px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 900px; }
.spec-grid div { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.spec-grid span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.spec-grid b { font-weight: 600; }
.reviews-empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r-card); max-width: 560px; display: flex; gap: 16px; align-items: center; }
.reviews-empty .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.reviews-empty b { display: block; }
.reviews-empty p { color: var(--muted); font-size: 14px; }
.form { display: grid; gap: 12px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; }
.field input, .field textarea { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 0 14px; background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(216, 92, 40, .14); }
.field .err { display: none; font-size: 12.5px; color: #b42318; }
.field.is-invalid input { border-color: #b42318; }
.field.is-invalid .err { display: block; }
/* ловушка для ботов (site.js): человеку не видна и не доступна с клавиатуры, экранному диктору скрыта */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
/* ошибка отправки формы: остаётся у кнопки, пока не отправят снова */
.form-err { margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: #fdecea; color: #8a1c12; font-size: 14px; line-height: 1.45; }
.form-err a { color: inherit; font-weight: 600; text-decoration: underline; }
.field .hint { font-size: 12.5px; color: var(--muted); }

.related { margin-top: 28px; }

/* Нижняя панель покупки на телефоне */
.buy-bar { display: none; }

/* ---------- Тост ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-ctl); box-shadow: var(--shadow-lg); z-index: var(--z-toast); opacity: 0; pointer-events: none; transition: opacity var(--t-med), transform var(--t-med); display: flex; align-items: center; gap: 10px; font-size: 14px; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--orange); font-weight: 600; margin-left: 6px; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); transition-delay: calc(min(var(--i, 0), 12) * 45ms); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* Куки */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; gap: 14px; align-items: center; z-index: var(--z-toast); font-size: 13.5px; color: var(--ink-2); transform: translateY(120%); transition: transform 500ms var(--ease); }
.cookie.is-on { transform: none; }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie .btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .product-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp-aside { grid-column: 1 / -1; }
  .buybox { position: static; }
}
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  :root { --header-h: 64px; }
  .topbar-left .hide-md { display: none; }
  .hdr-action span { display: none; }
  .hdr-action { min-width: 44px; }
  .catalog-btn span { display: none; }
  .catalog-btn { width: 46px; padding: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 28px; }
  .hero-media { min-height: 300px; }
  .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
  .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b2b { grid-template-columns: 1fr; padding: 36px 28px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-strip { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .mega-inner { grid-template-columns: 260px 1fr; }
  .mega-cols { columns: 2; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .topbar { display: none; }
  .burger { display: grid; }
  .logo-svg { height: 30px; }
  .hdr-action.is-login { display: none; }
  .hdr-action .icon { width: 24px; height: 24px; }
  .header-row { gap: 8px; }
  .catalog-btn { display: none; }
  .search { order: 10; flex: 1 1 100%; }
  .header-row { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .header-actions { margin-left: auto; }
  .hdr-action { min-width: 40px; padding: 4px; }
  .badge { right: 2px; top: -2px; }
  .chips-row { display: none; }
  .mega { display: none; }
  .hero { padding: 16px 0 10px; }
  .hero-copy { padding: 28px 22px; border-radius: 18px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 15.5px; margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-media { min-height: 220px; border-radius: 18px; }
  .hero-note p { max-width: none; font-size: 13px; }
  .usp { padding: 24px 0 4px; }
  .usp-grid { gap: 18px 20px; }
  .section { padding: 28px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 14px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 12px 12px 6px; border-radius: 16px; }
  .cat-tile b { font-size: 14.5px; }
  .cat-tile .cat-img { margin: 8px -6px 0; }
  .card { padding: 6px 6px 10px; border-radius: 16px; }
  .card-body { padding: 10px 4px 0; }
  .card-price b { font-size: 18px; }
  .card-name { font-size: 13px; }
  .card-opt { font-size: 12px; }
  .card-meta .sku { display: none; }
  .card-actions { height: 48px; padding-top: 10px; }
  .card-actions .btn-add, .stepper { height: 38px; }
  .card-quick { display: none; }
  .card-wish { opacity: 1; }
  .product-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .product-row::-webkit-scrollbar { display: none; }
  .product-row .card { flex: 0 0 72vw; max-width: 260px; scroll-snap-align: start; }
  .b2b { padding: 28px 20px; border-radius: 18px; }
  .blog-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .blog-grid::-webkit-scrollbar { display: none; }
  .blog-grid .post { flex: 0 0 78vw; max-width: 300px; scroll-snap-align: start; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 12px; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); z-index: var(--z-drawer); border-radius: 0; overflow-y: auto; transform: translateX(104%); transition: transform 380ms var(--ease); padding: 16px 16px 90px; }
  .filters.is-open { transform: none; }
  .filters-close { display: flex !important; }
  .filters-open { display: inline-flex; }
  .toolbar { flex-wrap: wrap; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-products.is-list .card { flex-direction: row; }
  .grid-products.is-list .card-media { width: 96px; }
  .grid-products.is-list .card-actions { width: auto; }
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .pdp-title { flex-direction: column; gap: 8px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery-thumbs button { width: 60px; height: 60px; flex: 0 0 auto; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .specs-short { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .buybox { box-shadow: none; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); background: rgba(255, 251, 245, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; transform: translateY(110%); transition: transform var(--t-med); }
  .buy-bar.is-on { transform: none; }
  .buy-bar b { font-size: 18px; }
  .buy-bar small { display: block; color: var(--muted); font-size: 12px; }
  .buy-bar .btn { margin-left: auto; }
  .cookie { flex-direction: column; align-items: stretch; }
  .toast { bottom: 84px; }
  .filters-close { display: flex; }
}
.filters-close { display: none; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }


/* ===================== Страницы всего сайта (v3) ===================== */
[hidden] { display: none !important; }
.mega-cols a span { color: var(--muted-2); font-size: 12px; margin-left: 4px; }

/* поиск: подсказки с фото */
.search-sugg { max-height: min(70vh, 560px); overflow-y: auto; }
.search-sugg .sg-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; }
.search-sugg .sg-price { font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.search-sugg .sg-item img { width: 48px; height: 48px; border-radius: 8px; background: #f3f2ef; object-fit: cover; }
.search-sugg .sg-item b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-sugg .sg-item small { color: var(--muted); font-size: 12.5px; }
.search-sugg .sg-all { justify-content: center; font-weight: 600; color: var(--orange-700); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 10px; }

/* подразделы картинками */
.subcats { display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)) 22px; padding: 4px var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.subcats .subcat { flex: 0 0 148px; scroll-snap-align: start; }
.subcat { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 12px; background: var(--surface); border-radius: 16px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(40,30,20,.04); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.subcat:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(120,60,20,.35), 0 0 0 1px rgba(216, 92, 40,.18); }
.subcat-img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f3f2ef; margin-bottom: 8px; }
.subcat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.subcat:hover .subcat-img img { transform: scale(1.05); }
.subcat b { font-size: 13.5px; font-weight: 600; line-height: 1.3; padding: 0 4px; }
.subcat span { font-size: 12px; color: var(--muted); padding: 0 4px; }

/* каталог: все разделы */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 20px; }
.dept { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; background: var(--surface); border-radius: 20px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(40,30,20,.04); }
.dept-img { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #f3f2ef; }
.dept-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.dept:hover .dept-img img { transform: scale(1.05); }
.dept-name { font-weight: 700; font-size: 16px; line-height: 1.25; transition: color var(--t-fast); }
.dept-name:hover { color: var(--orange-700); }
.dept-n { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.dept-subs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; }
.dept-subs a { color: var(--ink-2); transition: color var(--t-fast); }
.dept-subs a:hover { color: var(--orange-700); }
.dept-subs .more { color: var(--orange-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* длинные списки в фильтрах */
.filter-body.is-long { max-height: 260px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 24px 0 8px; }
.more-wrap .btn { min-width: 220px; }
.more-note { font-size: 13px; color: var(--muted); }


/* пустые состояния */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; background: var(--surface); border-radius: 20px; border: 1px dashed var(--line-2); }
.empty-state .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; margin-bottom: 4px; }
.empty-state .ico .icon { width: 26px; height: 26px; }
.empty-state b { font-size: 17px; }
.empty-state p { color: var(--muted); max-width: 44ch; margin-bottom: 8px; }
.skeleton-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-column: 1 / -1; }
.sk { height: 380px; border-radius: 20px; background: linear-gradient(90deg, #efede8 25%, #f7f6f3 50%, #efede8 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* статьи и текст */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.posts-grid .post img { aspect-ratio: 16 / 10; }
.prose { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 76ch; }
.prose > * + * { margin-top: 12px; }
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 28px; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 22px; }
.prose h4 { font-size: 16px; color: var(--ink); margin-top: 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li p { margin: 0; }
.prose a { color: var(--orange-700); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: 14px; margin: 16px 0; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { border-left: 3px solid var(--orange); padding: 4px 0 4px 16px; color: var(--ink); }
.seo-text.prose { margin-top: 40px; }
.article { max-width: 820px; margin: 0 auto; padding: 8px 0 24px; }
.article header time { color: var(--muted); font-size: 14px; }
.article h1 { margin: 6px 0 22px; font-size: clamp(26px, 3vw, 38px); }
.article-cta { max-width: 820px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px; border-radius: 20px; background: var(--ink); color: #fff; }
.article-cta > div { flex: 1 1 260px; }
.article-cta p { color: rgba(255,255,255,.7); font-size: 14px; }
.article-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-bottom: 24px; }
.content-main { background: var(--surface); border-radius: 20px; padding: 28px 32px; max-width: none; box-shadow: 0 1px 0 var(--line); }
/* боковая колонка текстовых страниц: одна белая панель с тремя пунктами контактов, а не три карточки */
.content-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; align-content: start; padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.map-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--orange-50); margin-bottom: 20px; }
.map-card p { color: var(--ink-2); font-size: 14px; }
.map-card .btn { text-decoration: none; color: #fff; }
/* текстовые страницы (content.json, build_all.content_page): единый ритм заголовков, абзацев, списков и таблиц */
.content-main { font-size: 16px; line-height: 1.65; }
.content-main > :first-child { margin-top: 0; }
.content-main > * + * { margin-top: 14px; }
.content-main h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin-top: 36px; }
.content-main h3 { font-size: 18px; line-height: 1.35; margin-top: 28px; }
.content-main h4 { font-size: 16px; line-height: 1.4; margin-top: 22px; }
.content-main :is(h2, h3, h4) + * { margin-top: 10px; }
.content-main ul, .content-main ol { padding-left: 24px; }
.content-main li { padding-left: 4px; }
.content-main li + li { margin-top: 8px; }
.content-main li::marker { color: var(--orange); }
.content-main ol > li::marker { font-weight: 600; }
.content-main a { color: var(--orange-700); text-decoration: underline; text-decoration-color: var(--orange-100); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.content-main a:hover { text-decoration-color: currentColor; }
.content-main img { max-width: 100%; height: auto; }
.content-main .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.content-main .table-wrap table { display: table; width: 100%; font-size: 15px; line-height: 1.5; }
.content-main .table-wrap :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content-main .table-wrap tr:last-child > * { border-bottom: 0; }
.content-main .table-wrap thead th { background: var(--bg); color: var(--ink); font-weight: 600; }
.content-main .table-wrap tbody th { width: 42%; color: var(--ink-2); font-weight: 500; }
.content-main .table-wrap tbody td { color: var(--ink); }
.content-main :is(.note, blockquote) { margin-left: 0; margin-right: 0; padding: 16px 20px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink-2); }
.content-main .note > * + *, .content-main blockquote > * + * { margin-top: 8px; }
.content-main p.note { color: var(--ink-2); }
.content-main .small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.content-main .lead { color: var(--ink); font-weight: 600; }
.content-main .map-card { margin-bottom: 0; }
/* «Контакты»: адрес, режим, телефоны с ролями, почта, мессенджеры – карточками */
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.ct-wide { grid-column: 1 / -1; }
.content-main .ct-box h2 { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.content-main .ct-box h2 + * { margin-top: 0; }
.ct-box p { color: var(--ink); }
.content-main .ct-box a[href^="mailto:"] { font-weight: 600; color: var(--ink); text-decoration-color: var(--line-2); }
.content-main .ct-phones { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.content-main .ct-phones li { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ct-num { display: flex; flex-direction: column; }
.content-main .ct-num a { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); text-decoration: none; white-space: nowrap; }
.content-main .ct-num a:hover { color: var(--orange-700); }
.ct-role { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.content-main .ct-box .table-wrap { border: 0; border-radius: 0; }
.content-main .ct-hours :is(th, td) { padding: 3px 0; border: 0; }
.content-main .ct-hours tbody th { width: 64px; font-weight: 500; color: var(--muted); }
.content-main .ct-hours tbody td { font-weight: 600; }
.msg-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.content-main .msg-btns a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color var(--t-fast); }
.content-main .msg-btns a:hover { border-color: var(--ink); }
.msg-btns img { width: 22px; height: 22px; }
.content-main .ct-req tbody td { font-weight: 600; font-variant-numeric: tabular-nums; }
/* «Лицензии и сертификаты»: сканы превью в колонку карточек, по нажатию – целиком */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); gap: 20px; }
.doc-grid figure { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color var(--t-fast); }
.doc-grid figure:has(a:hover) { border-color: var(--line-2); }
.content-main .doc-grid a { display: block; }
.doc-grid img { width: 100%; margin: 0; border-radius: 6px; }
.doc-grid figcaption { margin-top: 10px; padding: 0 4px 2px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 768px) {
  .content-main { font-size: 15.5px; }
  .content-main h2 { font-size: 20px; margin-top: 30px; }
  .content-main h3 { font-size: 17px; margin-top: 24px; }
  .content-main ul, .content-main ol { padding-left: 20px; }
  .ct-grid, .content-main .ct-phones { grid-template-columns: minmax(0, 1fr); }
  .ct-box { padding: 16px; }
  /* таблицы «название – значение» на телефоне: название над значением, без прокрутки вбок */
  .content-main :is(.t-price, .ct-req) :is(tr, th, td) { display: block; width: auto; }
  .content-main :is(.t-price, .ct-req) tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .content-main :is(.t-price, .ct-req) tr:last-child { border-bottom: 0; }
  .content-main :is(.t-price, .ct-req) :is(th, td) { padding: 0; border: 0; }
  .content-main :is(.t-price, .ct-req) tbody th { font-size: 13.5px; color: var(--muted); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* корзина */
.basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-bottom: 24px; }
.basket-list { display: grid; gap: 10px; }
.basket-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px; gap: 16px; align-items: center; padding: 10px 12px 10px 10px; background: var(--surface); border-radius: 18px; box-shadow: 0 1px 0 var(--line); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.basket-row.is-leaving { opacity: 0; transform: translateX(-12px); }
.b-img { display: block; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #f3f2ef; }
.b-img img { width: 100%; height: 100%; object-fit: cover; }
.b-name { display: block; font-weight: 500; line-height: 1.3; margin: 2px 0; }
.b-name:hover { color: var(--orange-700); }
.b-unit { font-size: 12.5px; color: var(--muted); }
.b-sum { font-size: 17px; text-align: right; white-space: nowrap; }
.stepper.is-flex { display: flex; width: 132px; height: 40px; }
.basket-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 15px; }
.sum-row b { font-size: 22px; }
.sum-row.muted { color: var(--muted); }
.sum-row.muted b { font-size: 16px; color: var(--ink-2); }
.basket-aside .form { margin-top: 14px; }
.check.consent { align-items: flex-start; font-size: 13px; color: var(--muted); }
.check.consent input { flex: 0 0 auto; margin-top: 1px; }
.check.consent a { color: var(--ink); text-decoration: underline; }
.check.consent.is-invalid { color: #b42318; }
.check.consent.is-invalid input { border-color: #b42318; }
.done { text-align: center; padding: 24px 8px; display: grid; gap: 8px; justify-items: center; }
.done .icon { color: var(--green); width: 40px; height: 40px; }
.done b { font-size: 18px; }
.done p { color: var(--muted); font-size: 14px; }

/* быстрый просмотр */
.qv { position: fixed; inset: 0; z-index: var(--z-drawer); background: rgba(27,26,24,.5); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease); }
.qv.is-on { opacity: 1; pointer-events: auto; }
.qv-box { position: relative; width: min(920px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 22px; transform: translateY(14px) scale(.98); transition: transform 360ms var(--ease); box-shadow: var(--shadow-lg); }
.qv.is-on .qv-box { transform: none; }
.qv-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface); }
.qv-img { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f3f2ef; }
.qv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-img img.hi { opacity: 0; transition: opacity 300ms var(--ease); }
.qv-img img.hi.is-on { opacity: 1; }
.qv-info { display: flex; flex-direction: column; gap: 10px; padding: 10px 6px 6px 0; }
.qv-info h3 { font-size: 22px; line-height: 1.25; }
.qv-info .stock { align-self: flex-start; }
.qv-actions { display: grid; gap: 8px; margin-top: auto; }

/* 404 */
.nf { text-align: center; padding: 64px 0 40px; display: grid; justify-items: center; gap: 12px; }
.nf > b { font-size: 96px; line-height: 1; font-weight: 800; color: var(--orange); letter-spacing: -.04em; }
.nf p { color: var(--muted); max-width: 52ch; }

/* без сети */
html.is-offline .header { box-shadow: inset 0 -3px 0 var(--amber); }

/* планшет */
@media (max-width: 1024px) {
  .content-layout, .basket-layout { grid-template-columns: 1fr; }
  .content-aside, .basket-aside { position: static; }
  .content-aside { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skeleton-row { grid-template-columns: repeat(3, 1fr); }
  .qv-box { grid-template-columns: 1fr 1fr; gap: 18px; }
}
/* телефон */
@media (max-width: 768px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-products.is-list { grid-template-columns: 1fr; }
  .subcats { gap: 8px; }
  .subcats .subcat { flex-basis: 116px; }
  .subcat { padding: 6px 6px 10px; border-radius: 14px; }
  .subcat b { font-size: 12.5px; }
  .dept { grid-template-columns: 88px 1fr; gap: 12px; padding: 10px; }
  .content-main { padding: 20px 16px; border-radius: 16px; }
  .prose { font-size: 15px; }
  .basket-row { grid-template-columns: 72px minmax(0, 1fr) 32px; grid-template-areas: "img info del" "img step sum"; gap: 8px 12px; }
  .b-img { width: 72px; height: 72px; grid-area: img; }
  .b-info { grid-area: info; }
  .basket-row .stepper { grid-area: step; width: 120px; height: 36px; }
  .b-sum { grid-area: sum; align-self: center; font-size: 15px; }
  .b-del { grid-area: del; width: 32px; height: 32px; align-self: start; }
  .qv { align-items: end; padding: 0; }
  .qv-box { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92dvh; transform: translateY(40px); }
  .skeleton-row { grid-template-columns: 1fr 1fr; }
  .sk { height: 300px; }
  .more-wrap .btn { width: 100%; }
}
@media (max-width: 380px) {
  .grid-products { gap: 6px; }
  .card-price b { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

.catalog-layout > div, .pdp > *, .content-layout > *, .basket-layout > * { min-width: 0; }

/* окно звонка и вход */
.cb-box { grid-template-columns: 1fr; width: min(520px, 100%); padding: 28px; gap: 18px; }
.cb-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 36px; }
.cb-head .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.cb-head h3 { font-size: 20px; margin-bottom: 4px; }
.cb-head p { color: var(--muted); font-size: 14px; }
.cb-head a { color: var(--ink); font-weight: 600; }
.cb-box .form { max-width: none; }
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 360px); gap: 24px; justify-content: center; padding: 24px 0 40px; }
.auth-card, .auth-side { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: 0 1px 0 var(--line); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .muted { color: var(--muted); margin-bottom: 18px; }
.auth-card .form { max-width: none; }
.auth-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.auth-side { display: grid; gap: 10px; align-content: start; background: var(--orange-50); box-shadow: none; }
.auth-side p { color: var(--ink-2); font-size: 14px; }
@media (max-width: 768px) { .auth { grid-template-columns: 1fr; } .cb-box { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); } }

/* шапка в две строки (v4) */
.topbar .container { height: 36px; }
.topbar-left { gap: 20px; }
.topbar-right { gap: 18px; }
.topbar-city { font-size: 12.5px; }
.hdr-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: 0 0 auto; padding: 0 6px; }
.hdr-phone b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.hdr-phone span { font-size: 11.5px; color: var(--muted); }
.hdr-phone:hover b { color: var(--orange-700); }
@media (max-width: 1200px) { .hdr-phone { display: none; } }
@media (max-width: 1024px) { .topbar-city { display: none; } }
.hdr-call { display: none; }
@media (max-width: 1200px) { .hdr-call { display: flex; } }

/* ===================== Карточка товара в стиле маркетплейса (v4) ===================== */
.pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 340px; gap: 28px; margin-top: 4px; }
.pdp .gallery { grid-column: 1; }
.gallery-main { aspect-ratio: 1 / 1; border: 0; background: #f3f2ef; }
.gallery-main img { padding: 0; object-fit: cover; }
.gallery-thumbs button { background: #f3f2ef; border-color: transparent; padding: 0; }
.gallery-thumbs button img { object-fit: cover; }
.gallery-thumbs button.is-on { border-color: var(--orange); }
.pdp-info { display: flex; flex-direction: column; gap: 18px; padding-top: 2px; }
.pdp-info h1 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.pdp-meta { margin-top: -8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted); font-size: 13.5px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.link-btn:hover { color: var(--orange-700); }
.pdp-block { display: grid; gap: 10px; }
.pdp-label { font-size: 14px; color: var(--muted); }
.pdp-label b { color: var(--ink); font-weight: 600; }
.pdp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pdp-head h2 { font-size: 18px; }
.opts { margin-bottom: 0; }
.kv-list { display: grid; gap: 0; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; color: var(--ink); }
.kv-list.is-full { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; max-width: 980px; }
.kv-list.is-full .kv:last-child { border-bottom: 1px dashed var(--line-2); }
.excerpt { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.pdp-aside { display: grid; gap: 12px; align-content: start; position: sticky; top: calc(var(--header-h) + 16px); }
.buybox { position: static; padding: 20px; border-radius: 20px; box-shadow: 0 12px 32px -18px rgba(60, 40, 20, .3), 0 0 0 1px var(--line); border: 0; }
.price-main b { font-size: 32px; }
.price-main span { font-size: 14px; }
.price-opt-chip { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 18px; padding: 8px 12px; border-radius: 12px; background: var(--orange-50); color: var(--orange-700); font-size: 14px; }
.price-opt-chip b { font-size: 18px; font-weight: 800; color: var(--orange-700); }
.price-opt-chip em { font-style: normal; font-weight: 700; font-size: 12px; background: var(--orange); color: #fff; border-radius: 6px; padding: 2px 6px; }
.price-opt-chip.is-ask { color: var(--ink-2); background: var(--bg-2); }
.buy-row .btn-primary { height: 50px; font-size: 16px; }
.buy-row .qty { height: 50px; }
.buy-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-row2 .btn { padding: 0 10px; font-size: 14px; }
.side-card { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line); }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.dl { display: grid; gap: 12px; }
.dl > div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.dl .icon { color: var(--orange); margin-top: 1px; }
.dl b { display: block; font-weight: 600; }
.dl span { color: var(--muted); font-size: 13px; }
.side-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--orange-700); }
.help-card { display: flex; gap: 12px; align-items: center; }
.help-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; flex: 0 0 auto; }
.help-card b { display: block; font-size: 14.5px; }
.help-card span { font-size: 13px; color: var(--muted); }
.help-card a { color: var(--ink); font-weight: 600; }
.pdp-nav { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 6px; margin: 32px 0 0; padding: 10px 0; background: rgba(246, 245, 242, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pdp-nav::-webkit-scrollbar { display: none; }
.pdp-nav a { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.pdp-nav a:hover, .pdp-nav a.is-on { background: var(--ink); color: #fff; }
.pdp-sec { padding: 32px 0 8px; scroll-margin-top: calc(var(--header-h) + 64px); }
.pdp-sec > h2 { font-size: 22px; margin-bottom: 16px; }
.pdp-sec.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: start; background: var(--surface); border-radius: 24px; padding: 28px; margin: 32px 0 8px; }
.pdp-sec.ask p { color: var(--muted); margin-top: 8px; max-width: 46ch; }
@media (max-width: 1200px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp-aside { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  .pdp-aside { grid-template-columns: 1fr; }
  .pdp-info h1 { font-size: 21px; }
  .kv-list.is-full { grid-template-columns: 1fr; }
  .pdp-nav { top: 0; margin-top: 20px; }
  .pdp-sec.ask { grid-template-columns: 1fr; padding: 20px 16px; }
  .gallery-main { border-radius: 16px; }
}

/* ===================== Меню каталога с фото (v4) ===================== */
.mega-inner { grid-template-columns: 320px 1fr; min-height: 480px; max-height: calc(100vh - 120px); }
.mega-list { padding: 10px 8px; }
.mega-list a { padding: 6px 10px 6px 6px; gap: 12px; justify-content: flex-start; }
.mega-list a .ml-name { flex: 1; line-height: 1.25; }
.ml-img { width: 36px; height: 36px; border-radius: 10px; background: #f3f2ef; overflow: hidden; flex: 0 0 auto; display: block; }
.ml-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.mega-list a.is-active .ml-img { box-shadow: 0 0 0 2px var(--orange); }
.mega-panel { padding: 22px 28px 28px; }
.mp { animation: fadeUp 260ms var(--ease); }
.mp-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.mp-head h3 { font-size: 22px; margin: 0; }
.mp-head .mega-all { margin: 0; }
.mp-note { color: var(--muted); font-size: 13.5px; margin: -8px 0 12px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mp-tile { display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); opacity: 0; transform: translateY(8px); animation: tileIn 380ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 28ms); transition: box-shadow 260ms var(--ease), transform 260ms var(--ease); }
@keyframes tileIn { to { opacity: 1; transform: none; } }
.mp-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(120,60,20,.35), 0 0 0 1px rgba(216, 92, 40,.3); }
.mp-img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f3f2ef; margin-bottom: 6px; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.mp-tile:hover .mp-img img { transform: scale(1.07); }
.mp-tile b { font-size: 13.5px; font-weight: 600; line-height: 1.3; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-tile span:not(.mp-img) { font-size: 12px; color: var(--muted); padding: 0 4px; }
.mp-tile .mp-price { color: var(--ink) !important; font-weight: 700; font-size: 14px !important; }
@media (max-width: 1200px) { .mp-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* мобильная шторка: разделы с фото и второй уровень */
.drawer { overflow: hidden; }
.dr-cat { gap: 12px; justify-content: flex-start !important; padding: 8px 10px !important; }
.dr-cat .ml-name { flex: 1; }
.drawer-level2 { position: absolute; inset: 0; background: var(--surface); transform: translateX(100%); transition: transform 360ms var(--ease); display: flex; flex-direction: column; }
.drawer-level2.is-open { transform: none; }
.drawer-level2 .drawer-head b { flex: 1; text-align: center; font-size: 16px; }
.drawer-level2 .drawer-head span { width: 42px; }
.dr-all { display: flex !important; align-items: center; gap: 6px; justify-content: flex-start !important; color: var(--orange-700); font-weight: 600; }
.dr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; }
.dr-grid .mp-tile { padding: 6px 6px 10px; }
.drawer-body .mp-tile { justify-content: flex-start; align-items: stretch; }

/* ===================== Карточка товара v5: равные колонки, всё на одном экране ===================== */
.pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 340px; grid-template-areas: "gal info buy"; gap: 32px; align-items: start; }
.pdp .gallery { grid-area: gal; position: sticky; top: calc(var(--header-h) + 16px); }
.pdp .pdp-info { grid-area: info; }
.pdp .buybox { grid-area: buy; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { position: relative; }
.gal-count { display: none; }
.pdp-block h2 { font-size: 17px; margin-bottom: 6px; }
.pdp-info { gap: 22px; }
.kv-list .kv.is-more { display: none; }
.kv-list.is-open .kv.is-more { display: grid; animation: fadeUp 240ms var(--ease); }
.kv { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 8px 10px; border-bottom: 0; border-radius: 8px; }
.kv:nth-child(odd) { background: rgba(239, 237, 232, .6); }
.more-btn { margin-top: 6px; font-weight: 600; color: var(--orange-700); }
.more-btn .icon { transition: transform var(--t-med); }
.more-btn.is-open .icon { transform: rotate(180deg); }
.desc { font-size: 14.5px; line-height: 1.6; max-width: none; }
.desc.is-clamped { max-height: 10.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.desc.is-clamped.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.buybox { padding: 22px; display: grid; gap: 0; }
.buybox .dl { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); gap: 10px; }
.buybox .side-link { margin-top: 14px; }
.pdp-sec.related { padding-top: 40px; }
@media (max-width: 1200px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gal info" "gal buy"; }
  .pdp .buybox { position: static; }
}
/* телефон: как в маркетплейсе – фото во всю ширину, сразу цена и кнопки, потом описание */
@media (max-width: 768px) {
  .pdp { display: flex; flex-direction: column; gap: 14px; }
  .pdp .gallery { order: 1; position: static; margin: 0 calc(-1 * var(--gutter)); display: block; }
  .pdp .buybox { order: 2; }
  .pdp .pdp-info { order: 3; }
  .gallery-main { border-radius: 0; aspect-ratio: 1 / 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery-main::-webkit-scrollbar { display: none; }
  .gallery-main img { position: static; flex: 0 0 100%; width: 100%; height: 100%; opacity: 1; transform: none; scroll-snap-align: center; }
  .gallery-main .card-wish { position: absolute; }
  .gal-count { display: block; position: absolute; left: 12px; bottom: 12px; background: rgba(27,26,24,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
  .gallery-thumbs { display: none; }
  .gallery .card-wish { position: absolute; top: 12px; right: 12px; }
  .buybox { padding: 16px; box-shadow: 0 0 0 1px var(--line); }
  .price-main b { font-size: 28px; }
  .price-opt-chip { margin: 8px 0 14px; }
  .pdp-info h1 { font-size: 19px; }
  .kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 13.5px; }
}
/* телефон: порядок как в маркетплейсе – фото, цена, название, характеристики; кнопка всегда внизу */
.gal-count:empty { display: none !important; }
@media (max-width: 768px) {
  .pdp .buybox { display: contents; }
  .pdp .price-main { order: 2; padding: 0 2px; }
  .pdp .price-opt-chip { order: 3; margin: -6px 0 0; align-self: flex-start; }
  .pdp .pdp-info { order: 4; }
  .pdp .buy-row { order: 5; margin: 0; }
  .pdp .buy-row2 { order: 6; }
  .pdp .dl { order: 7; margin: 0; padding: 16px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .pdp .side-link { order: 8; margin: 0 0 4px; }
  .buy-bar { transform: none !important; }
  body:has(.buy-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body:has(.buy-bar) .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .logo-svg { height: 27px; }
  .header-row { gap: 4px; }
  .hdr-action { min-width: 36px; padding: 4px 2px; }
  .hdr-action .icon { width: 22px; height: 22px; }
  .burger { width: 36px; }
}
.cat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 768px) { .cat-actions { width: 100%; } .cat-actions .btn { flex: 1; } }
#kp-pdf { margin-top: 8px; }

/* шапка: «Каталог» первой кнопкой, меню выезжает слева (v5) */
.header-row { gap: 16px; }
.catalog-btn { order: 0; }
.mega { left: 0; right: auto; width: min(1180px, 96vw); top: 100%; border-radius: 0 0 24px 0; border-right: 1px solid var(--line); transform: translateX(-40px); opacity: 0; transition: opacity 260ms var(--ease), transform 420ms var(--ease); }
.mega.is-open { transform: none; opacity: 1; }
.mega > .container { max-width: none; padding: 0; }
.mega-inner { max-height: calc(100dvh - 130px); }
.mega-list { padding-left: max(12px, calc((100vw - var(--container)) / 2 + 12px)); }
@media (min-width: 1400px) { .mega { width: calc((100vw - var(--container)) / 2 + 1180px); } }

/* главная: живые плитки с товарами вместо фото интерьера (v5) */
@media (min-width: 1025px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero-bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 420px; }
.hb-tile { position: relative; display: block; overflow: hidden; border-radius: 22px; background: #f3f2ef; box-shadow: 0 0 0 1px var(--line); opacity: 0; transform: translateY(14px) scale(.98); animation: tileIn 600ms var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 90ms); }
.hb-tile.is-tall { grid-row: span 2; }
.hb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.hb-tile.is-tall img { object-fit: cover; }
.hb-tile:hover img { transform: scale(1.06) rotate(-.6deg); }
.hb-cap { position: absolute; left: 12px; right: 56px; bottom: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px -10px rgba(40, 30, 20, .35); transition: transform 400ms var(--ease); }
.hb-cap b { display: block; font-size: 16px; font-weight: 700; }
.hb-cap span { font-size: 13px; color: var(--muted); }
.hb-go { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; transform: translateY(4px); opacity: .9; transition: transform 300ms var(--ease), opacity 300ms; box-shadow: 0 8px 18px -8px rgba(216, 92, 40, .8); }
.hb-tile:hover .hb-go { transform: none; opacity: 1; }
.hb-tile:hover .hb-cap { transform: translateY(-2px); }
@media (max-width: 1024px) { .hero-bento { min-height: 360px; } }
@media (max-width: 768px) {
  .hero-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px; min-height: 0; gap: 8px; }
  .hb-tile.is-tall { grid-row: span 2; }
  .hb-cap { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; }
  .hb-cap b { font-size: 14px; }
  .hb-cap span { font-size: 12px; }
  .hb-go { display: none; }
}

/* ===================== Блок покупки v6: цена главная, опт понятный, фото весомее ===================== */
.pdp { grid-template-columns: minmax(0, 6fr) minmax(0, 4.4fr) 320px; gap: 36px; }
.pdp .buybox { box-shadow: none; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--surface); }
.pb-price { display: flex; align-items: baseline; gap: 8px; }
.pb-price b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pb-price span { color: var(--muted); font-size: 14px; }
.pb-opt { margin: 12px 0 16px; padding: 10px 12px; border-radius: 14px; background: var(--orange-50); }
.pb-opt > div { display: flex; align-items: baseline; gap: 8px; }
.pb-opt b { font-size: 20px; font-weight: 800; color: var(--orange-700); letter-spacing: -.01em; }
.pb-opt span { font-size: 13.5px; font-weight: 600; color: var(--orange-700); }
.pb-opt small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.pb-opt.is-ask { background: var(--bg-2); }
.buybox .buy-row { margin-bottom: 8px; }
.buybox .buy-row .btn-primary { height: 52px; }
.buybox > .btn-outline.btn-block { height: 44px; }
.pb-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.pb-links .link-btn { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.buybox .dl { margin-top: 16px; padding: 14px; border: 0; border-radius: 14px; background: var(--bg); gap: 10px; }
.buybox .dl span { font-size: 12.5px; }
.ask-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 36px 0 8px; padding: 20px 24px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ask-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; }
.ask-ico .icon { width: 26px; height: 26px; }
.ask-txt b { display: block; font-size: 17px; }
.ask-txt span { color: var(--muted); font-size: 14px; }
.ask-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-btns img { display: inline-block; }
.opt-meter { margin: 10px 0 4px; }
.om-bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.om-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #de7a52); border-radius: 4px; transition: width 600ms var(--ease); }
.opt-meter p { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.opt-meter.is-done .om-bar i { background: var(--green); }
.opt-meter.is-done p { color: var(--green); font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.sum-row.total b { font-size: 26px; }
@media (max-width: 1200px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 768px) {
  .pb-price { order: 2; padding: 0 2px; }
  .pb-opt { order: 3; margin: -4px 0 0; }
  .pdp .pb-links { order: 7; margin: 0; }
  .pdp > .buybox > .btn-outline.btn-block { order: 6; }
  .pb-price b { font-size: 30px; }
  .ask-bar { grid-template-columns: auto 1fr; padding: 16px; }
  .ask-btns { grid-column: 1 / -1; }
  .ask-btns .btn { flex: 1; }
}

/* ===================== Заголовки Manrope (v7) ===================== */
:root { --font-display: "Manrope", system-ui, sans-serif; }
h1, h2, h3, .hero h1, .cat-tile b, .dept-name, .mp-head h3, .pb-price b, .price-main b, .card-price b, .hb-cap b, .b2b h2, .nf > b, .logo-svg text { font-family: var(--font-display); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.cat-head h1 { font-size: clamp(26px, 2.6vw, 36px); }
.card-price b, .pb-price b { font-weight: 800; letter-spacing: -.02em; }

/* подразделы – компактная строка с фото (v7) */
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 22px; padding: 0; overflow: visible; }
.subcats .subcat { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.subcats .subcat:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--orange), 0 8px 18px -12px rgba(120,60,20,.35); }
.subcats .subcat-img { width: 40px; height: 40px; margin: 0; border-radius: 10px; flex: 0 0 auto; }
.subcats .subcat b { font-size: 14px; font-weight: 600; padding: 0; white-space: nowrap; }
.subcats .subcat span:not(.subcat-img) { font-size: 12.5px; color: var(--muted-2); padding: 0; }
@media (max-width: 768px) {
  .subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .subcats::-webkit-scrollbar { display: none; }
  .subcats .subcat { flex-basis: auto; }
  .subcats .subcat-img { width: 34px; height: 34px; }
  .subcats .subcat b { font-size: 13px; }
}
.subcats .subcat.is-more { display: none; }
.subcats.is-open .subcat.is-more { display: flex; animation: fadeUp 240ms var(--ease); }
.subcat-more { padding: 0 16px; height: 50px; border-radius: 14px; font-weight: 600; font-size: 14px; color: var(--orange-700); background: var(--orange-50); }
.subcats.is-open .subcat-more { display: none; }
@media (max-width: 768px) { .subcats .subcat.is-more { display: flex; } .subcat-more { display: none; } }

.sum-row b, .b-sum, .check .n, .badge { font-variant-numeric: tabular-nums; }

/* ===================== Карточка товара v8: единая подложка, сильная левая часть ===================== */
.pdp { background: var(--surface); border-radius: 28px; padding: 28px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(60, 40, 20, .25); grid-template-columns: minmax(0, 5.4fr) minmax(0, 4.4fr) 330px; gap: 32px; }
.pdp .gallery { display: flex; flex-direction: column; gap: 12px; top: calc(var(--header-h) + 16px); }
.pdp .gallery-main { border-radius: 20px; background: #f3f2ef; aspect-ratio: 1 / 1; }
.pdp .gallery-thumbs { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pdp .gallery-thumbs::-webkit-scrollbar { display: none; }
.pdp .gallery-thumbs button { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 12px; border: 2px solid transparent; }
.pdp .gallery-thumbs button.is-on { border-color: var(--orange); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); }
.fact .icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--orange); margin-top: 1px; }
.fact span { display: block; font-size: 12px; color: var(--muted); }
.fact b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.dims-line { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: -6px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-weight: 700; font-size: 15px; }
.dims-line .icon { color: var(--orange); }
.dims-line span { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.pdp .buybox { border: 0; background: var(--bg); border-radius: 22px; padding: 22px; top: calc(var(--header-h) + 16px); }
.pdp .buybox .dl { background: var(--surface); }
.pdp .buybox > .btn-outline.btn-block { background: var(--surface); }
.pdp .kv:nth-child(odd) { background: var(--bg); }
.pct-badge { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: var(--orange); border-radius: 8px; padding: 3px 8px; letter-spacing: 0; box-shadow: 0 4px 10px -4px rgba(216, 92, 40, .7); }
.pb-opt { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--orange-100); }
.pb-opt > div { align-items: center; }
@media (max-width: 1200px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 768px) {
  .pdp { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
  .pdp .gallery { gap: 8px; }
  .pdp .gallery-main { border-radius: 0; }
  .pdp .gallery-thumbs { display: none; }
  .facts { padding: 0 var(--gutter); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fact { flex-direction: column; gap: 4px; padding: 10px; }
  .fact b { font-size: 12.5px; }
  .pdp .buybox { display: contents; }
  .pdp .pb-opt { background: var(--orange-50); box-shadow: none; }
}
.facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 768px) { .pdp .facts { display: none; } }

/* подвал всегда внизу; «резинка» при прокрутке за край показывает белый, как подвал и верхняя полоса */
html { background: var(--surface); }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .footer { margin-top: 40px; }
/* меню каталога поверх страницы: закрытое не удлиняет документ */
.mega { position: fixed; top: var(--mega-top, 110px); visibility: hidden; }
.mega.is-open { visibility: visible; }
.mega-inner { max-height: calc(100dvh - var(--mega-top, 110px) - 12px); }
/* меню каталога: закрытое убрано из раскладки, открытое выезжает слева */
.mega { position: absolute; top: 100%; visibility: visible; }
.mega:not(.is-open) { display: none; }
.mega.is-open { animation: megaIn 420ms var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.mega-inner { max-height: calc(100dvh - 140px); }

/* ===================== Раздел каталога: иерархия (v9) ===================== */
.cat-head { align-items: baseline; margin: 2px 0 16px; }
.cat-head h1, .cat-head .cat-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.cat-head h1 .count, .cat-title > .count { font-family: var(--font-body, inherit); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin: 0; }
.cat-actions { gap: 4px 18px; }
.act-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color var(--t-fast); }
.act-link .icon { color: var(--muted); transition: color var(--t-fast); }
.act-link:hover, .act-link:hover .icon { color: var(--orange-700); }

/* лента подразделов: одна строка плиток, фото над подписью */
.strip { position: relative; margin: 0 0 26px; }
.strip .subcats { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 2px 0 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; }
.strip .subcats::-webkit-scrollbar { display: none; }
.strip .subcat { flex: 0 0 112px; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px 8px; border-radius: 16px; background: transparent; box-shadow: none; scroll-snap-align: start; text-align: center; }
.strip .subcat:hover { transform: none; box-shadow: none; background: var(--surface); }
.strip .subcat-img { width: 84px; height: 84px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin: 0; transition: box-shadow var(--t-med), transform var(--t-med); }
.strip .subcat:hover .subcat-img { box-shadow: 0 0 0 2px var(--orange); transform: translateY(-2px); }
.strip .subcat-img img { object-fit: contain; padding: 6px; }
.strip .subcat b { font-size: 13px; line-height: 1.25; font-weight: 600; white-space: normal; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip-arrow { position: absolute; top: 34px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 18px -6px rgba(40, 30, 20, .3), 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--ink); z-index: 2; transition: opacity var(--t-med), transform var(--t-fast); }
.strip-arrow:hover { transform: scale(1.06); }
.strip-arrow.is-prev { left: -14px; }
.strip-arrow.is-next { right: -14px; }
.strip.at-start .is-prev, .strip.at-end .is-next { opacity: 0; pointer-events: none; }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; z-index: 1; transition: opacity var(--t-med); }
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.strip.at-start::before, .strip.at-end::after { opacity: 0; }
@media (max-width: 768px) {
  .strip { margin: 0 calc(-1 * var(--gutter)) 18px; }
  .strip .subcats { padding: 2px var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
  .strip .subcat { flex-basis: 88px; }
  .strip .subcat-img { width: 68px; height: 68px; border-radius: 18px; }
  .strip .subcat b { font-size: 12px; }
  .strip-arrow, .strip::before, .strip::after { display: none; }
}

/* фильтры без рамки-карточки, заголовок на одной линии с сортировкой */
.filters-title { display: none; }
@media (min-width: 1025px) {
  .filters { background: transparent; border: 0; border-radius: 0; padding: 0; }
  .filters-title { display: flex; align-items: center; justify-content: space-between; height: 38px; margin-bottom: 4px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
  .filters-title b { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
  .link-reset { font-size: 13px; color: var(--muted); }
  .link-reset:hover { color: var(--orange-700); }
  .filters-foot { display: none; }
}
.filter > summary { font-size: 14px; font-weight: 700; padding: 13px 0; }
.toolbar { margin-bottom: 16px; }
.sort { border: 0; background: transparent; padding: 0 4px 0 0; height: 38px; font-weight: 600; color: var(--ink); }
.sort select { font-weight: 600; cursor: pointer; }
.view-toggle { border: 0; background: #ece9e4; padding: 3px; border-radius: 11px; gap: 2px; }
.view-toggle button { width: 34px; height: 32px; border-radius: 8px; }
.view-toggle button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(40, 30, 20, .15); }

/* «О разделе»: SEO-текст свёрнут, рядом помощь с подбором */
.about-sec { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-700); margin-bottom: 10px; }
.about-text { position: relative; max-width: 76ch; max-height: 9.6em; overflow: hidden; color: var(--ink-2); font-size: 15px; line-height: 1.6; transition: max-height 500ms var(--ease); }
.about-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(transparent, var(--bg)); pointer-events: none; transition: opacity var(--t-med); }
.about-text.is-open { max-height: none; }
.about-text.is-open::after { opacity: 0; }
.about-text h2 { font-size: 20px; margin: 22px 0 8px; }
.about-text h2:first-child { margin-top: 0; }
.about-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--orange-700); }
.about-more .icon { transition: transform var(--t-med); }
.about-more.is-open .icon { transform: rotate(180deg); }
.about-help { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); padding: 22px; display: grid; gap: 10px; justify-items: start; }
.about-help .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; }
.about-help b { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.about-help p { font-size: 14px; color: var(--muted); margin: 0; }
.about-help .btn { width: 100%; margin-top: 4px; }
.about-phone { font-weight: 700; font-size: 16px; }
.about-help .muted { font-size: 12.5px; margin-top: -6px; }
@media (max-width: 1024px) { .about-sec { grid-template-columns: 1fr; } .about-help { position: static; } }

.card { min-width: 0; }
.card-meta { min-width: 0; }
.card-meta > :not(.icon) { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .card-meta { white-space: normal; align-items: flex-start; line-height: 1.3; }
  .card-meta .icon { flex: 0 0 auto; margin-top: 1px; }
  .view-toggle { display: none; }
  .cat-actions { width: auto; }
}

/* ===================== Раздел: контраст и прокрутка фильтров (v10) ===================== */
@media (min-width: 1025px) {
  /* панель фильтров – белая карточка; если длиннее экрана, прокручивается сама */
  .filters { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -22px rgba(60, 40, 20, .35); padding: 4px 18px 8px;
    max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .filters-title { position: sticky; top: 0; z-index: 1; background: var(--surface); height: 54px; margin: 0 -18px 0; padding: 0 18px; border-bottom: 1px solid var(--line); }
}
.filter > summary { color: var(--ink); }
.filter[open] > summary { color: var(--ink); }
.filter-body.is-long { max-height: 232px; }
.check { color: var(--ink-2); }
.check:hover { color: var(--ink); }
.check:hover input { border-color: var(--orange); }
.check:has(input:checked) { color: var(--ink); font-weight: 600; }
.range input { background: var(--bg); border-color: transparent; }
.range input:focus { background: var(--surface); }
/* полоса сортировки – белая, как карточки */
.toolbar { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 8px 8px 8px 14px; }
.view-toggle { background: var(--bg); }
.strip .subcat-img { box-shadow: 0 0 0 1px var(--line), 0 6px 16px -12px rgba(60, 40, 20, .3); }
.cat-head h1 .count, .cat-title > .count { color: var(--muted-2); }
@media (max-width: 1024px) { .toolbar { padding: 6px; } .filters { background: var(--surface); } }
.check.is-extra { display: none; }
.filter-body.is-open .check.is-extra, .check.is-extra:has(input:checked) { display: flex; }
.filter-more { justify-self: start; font-size: 13.5px; font-weight: 600; color: var(--orange-700); padding: 2px 0; }
.filter-more:hover { color: var(--orange); }
@media (min-width: 1025px) { .filters { scrollbar-gutter: stable; padding-right: 12px; } .filters-title { margin-right: -12px; } }

/* ===================== Цена: поля + ползунок с гистограммой (v11) ===================== */
.price-filter { display: grid; gap: 14px; }
.price-filter .range label { position: relative; }
.price-filter .range label span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted-2); pointer-events: none; }
.price-filter .range input { height: 42px; padding-left: 34px; font-size: 14.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-filter .range input::placeholder { color: var(--muted); font-weight: 500; }
.dual { position: relative; height: 54px; margin: 0 11px; }
.dual-hist { position: absolute; left: 0; right: 0; bottom: 20px; height: 30px; display: flex; align-items: flex-end; gap: 2px; }
.dual-hist i { flex: 1; min-width: 0; background: var(--line-2); border-radius: 2px 2px 0 0; transition: background var(--t-fast); }
.dual-hist i.is-in { background: rgba(216, 92, 40, .45); }
.dual-track { position: absolute; left: 0; right: 0; bottom: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.dual-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--orange); }
.dual input[type=range] { position: absolute; left: -11px; right: -11px; width: calc(100% + 22px); bottom: 5px; height: 22px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 2; }
.dual input[type=range]:focus { outline: none; }
.dual input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.dual input[type=range]::-moz-range-track { background: none; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--orange); box-shadow: 0 2px 6px rgba(60, 40, 20, .25); cursor: grab; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--orange); box-shadow: 0 2px 6px rgba(60, 40, 20, .25); cursor: grab; }
.dual input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(216, 92, 40, .16), 0 2px 6px rgba(60, 40, 20, .25); }
.dual input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(216, 92, 40, .3); }
@media (max-width: 768px) { .dual input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; } .dual { height: 58px; } }

/* ===================== Корзина v2: товары, оформление по шагам, итог (v12) ===================== */
.basket-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding-bottom: 32px; }
.basket-main { display: grid; gap: 16px; min-width: 0; }
.b-card { background: var(--surface); border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -24px rgba(60, 40, 20, .35); padding: 8px 22px; }
.b-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.b-head h2, .b-step h2, .b-recent h2 { font-size: 20px; }
.b-tools { display: flex; gap: 18px; }
.b-tools .act-link { font-size: 13.5px; color: var(--muted); }
.basket-list { gap: 0; }
.basket-row { grid-template-columns: 96px minmax(0, 1fr) 132px 130px; gap: 18px; align-items: start; padding: 16px 0; background: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.basket-row:first-child { border-top: 0; }
.b-img { width: 96px; height: 96px; border-radius: 14px; background: #f3f2ef; }
.b-img img { object-fit: contain; }
.b-info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.b-name { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; }
.b-meta { font-size: 12.5px; color: var(--muted); }
.b-meta em { font-style: normal; color: var(--amber); }
.b-meta em.is-in { color: var(--green); }
.b-acts { display: flex; gap: 16px; margin-top: 4px; }
.b-acts button { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); transition: color var(--t-fast); }
.b-acts button:hover { color: var(--ink); }
.b-acts button.is-on { color: var(--orange-700); }
.b-acts [data-del]:hover { color: #b42318; }
.basket-row .stepper.is-flex { width: 132px; height: 40px; margin-top: 2px; }
.b-price { display: grid; gap: 2px; justify-items: end; text-align: right; padding-top: 4px; }
.b-sum { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.b-unit { font-size: 12.5px; color: var(--muted); }
.b-opt { font-size: 12.5px; color: var(--orange-700); font-weight: 600; }

/* шаги оформления */
.b-checkout { padding: 4px 22px 22px; display: grid; gap: 0; max-width: none; }
.b-step { padding: 18px 0 4px; display: grid; gap: 14px; }
.b-step + .b-step { border-top: 1px solid var(--line); margin-top: 14px; }
.b-step h2 { display: flex; align-items: center; gap: 10px; }
.b-num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; font-family: var(--font-body, inherit); letter-spacing: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { height: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow var(--t-fast), background var(--t-fast); }
.choice:hover .choice-box { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.choice input:checked + .choice-box { background: var(--orange-50); box-shadow: inset 0 0 0 2px var(--orange); }
.choice input:focus-visible + .choice-box { outline: 3px solid rgba(216, 92, 40, .3); outline-offset: 2px; }
.choice-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--ink-2); display: grid; place-items: center; flex: 0 0 auto; }
.choice input:checked + .choice-box .choice-ico { color: var(--orange); }
.choice-box b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.choice-box small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.dlv-info { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.dlv-info .icon { flex: 0 0 auto; margin-top: 2px; color: var(--muted); }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fields-2 .is-wide { grid-column: 1 / -1; }
.b-checkout textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font: inherit; background: var(--surface); }
.b-checkout textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(216, 92, 40, .14); }
.field.is-req label::after { content: " *"; color: var(--orange-700); }
.b-checkout .check.consent { margin-top: 4px; }

/* итог */
.summary { background: var(--surface); border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px -26px rgba(60, 40, 20, .45); padding: 22px; display: grid; gap: 4px; }
.summary h3 { font-size: 20px; margin-bottom: 8px; }
.summary .sum-row { padding: 5px 0; font-size: 14.5px; color: var(--ink-2); }
.summary .sum-row b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.summary .sum-row.is-disc b { color: var(--green); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 6px; margin-top: 6px; border-top: 1px dashed var(--line-2); }
.sum-total span { font-weight: 700; font-size: 16px; }
.sum-total b { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.meter { margin: 6px 0 4px; }
.meter-bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #de7a52, var(--orange)); border-radius: 3px; transition: width 600ms var(--ease); }
.meter p { margin-top: 7px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.meter p b { color: var(--ink); }
.meter.is-done .meter-bar i { background: var(--green); }
.meter.is-done p { color: var(--green); font-weight: 600; }
.opt-box { display: grid; gap: 2px; margin: 10px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--orange-50); }
.opt-box b { font-size: 14.5px; }
.opt-box b span { color: var(--orange-700); }
.opt-box > span { font-size: 13px; color: var(--orange-700); font-weight: 600; }
.opt-box small { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.sum-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; text-align: center; margin-top: 10px; }
.b-recent { margin-top: 12px; }
.b-recent h2 { margin-bottom: 12px; }
.b-recent .product-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.done.is-order { max-width: 560px; margin: 8px auto 40px; padding: 40px 28px; }
.b-bar { display: none; }

@media (max-width: 1024px) {
  .basket-layout { grid-template-columns: 1fr; }
  .basket-aside { position: static; }
  .b-recent .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .b-card { padding: 4px 14px; border-radius: 18px; }
  .b-checkout { padding: 0 14px 18px; }
  .b-head h2, .b-step h2, .b-recent h2 { font-size: 18px; }
  .b-tools { gap: 12px; }
  .basket-row { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img info" "img step" "img price"; gap: 8px 12px; padding: 14px 0; }
  .basket-row .b-img { grid-area: img; width: 76px; height: 76px; }
  .basket-row .b-info { grid-area: info; }
  .basket-row .stepper.is-flex { grid-area: step; width: 120px; height: 36px; }
  .basket-row .b-price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-align: left; padding: 0; }
  .b-sum { font-size: 17px; }
  .basket-row { grid-template-areas: "img info" "img price" "img step"; }
  .choice-grid, .choice-grid.is-2, .fields-2 { grid-template-columns: 1fr; }
  .choice-box { padding: 12px; }
  .summary { padding: 18px; }
  .b-recent .product-row { display: flex; }
  /* итог и кнопка всегда под рукой */
  .b-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 251, 245, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -20px rgba(60, 40, 20, .4); }
  .b-bar[hidden] { display: none; }
  .b-bar small { display: block; font-size: 12px; color: var(--muted); }
  .b-bar b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
  .b-bar .btn { flex: 0 0 auto; padding: 0 28px; height: 48px; }
  body:has(.b-bar:not([hidden])) .footer { padding-bottom: 76px; }
}

/* меню каталога на невысоких экранах: колонки не растут выше окна и прокручиваются сами (v13) */
.mega-inner { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.mega-list, .mega-panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ===================== Контраст (созвон 13.10): текст темнее, фон отделён от карточек ===================== */
:root {
  --ink: #12110f;
  --ink-2: #2e2b27;
  --muted: #5d5952;
  --muted-2: #87827a;
  --line: #e0dcd4;
  --line-2: #cbc6bc;
  --bg: #f1efeb;
  --shadow-sm: 0 1px 2px rgba(50, 35, 15, .08), 0 1px 1px rgba(50, 35, 15, .05);
  --shadow-md: 0 12px 30px -12px rgba(50, 35, 15, .22), 0 2px 6px rgba(50, 35, 15, .08);
}
.card { box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.card-price b { color: var(--ink); }
.card-sku, .b-meta, .b-unit { color: var(--muted); }
.check .n { color: var(--muted-2); }

/* ===================== Главная: шоурум с точками и баннеры (v13) ===================== */
.showroom > img { transform: none; }
.hero-note { display: none; }

.promo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 10px; min-height: 132px; padding: 18px 16px 18px 22px; border-radius: 20px; overflow: hidden; transition: transform var(--t-med), box-shadow var(--t-med); }
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo.is-orange { background: linear-gradient(135deg, #d86a42, var(--orange)); color: #fff; }
.promo.is-sand { background: #e9dfcf; color: var(--ink); }
.promo.is-dark { background: var(--ink); color: #fff; }
.promo-txt { display: grid; gap: 4px; align-content: center; }
.promo-txt b { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.promo-txt span { font-size: 13.5px; opacity: .85; line-height: 1.35; }
.promo-txt em { font-style: normal; font-size: 12.5px; font-weight: 700; margin-top: 4px; opacity: .95; }
.promo-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: 6px; background: rgba(255, 255, 255, .22); transition: transform var(--t-fast); }
.promo.is-sand .promo-go { background: rgba(18, 17, 15, .08); }
.promo:hover .promo-go { transform: translateX(4px); }
.promo-media { height: 110px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 251, 245, .92); overflow: hidden; }
.promo-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform 600ms var(--ease); }
.promo:hover .promo-media img { transform: scale(1.06); }
.promo-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.promo-ico .icon { width: 30px; height: 30px; }
.promo.is-dark .promo-media { background: rgba(255, 255, 255, .06); }
@media (max-width: 1024px) { .promo-row { grid-template-columns: 1fr; } .promo { min-height: 112px; } }
@media (max-width: 768px) {
  .promo-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 14px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .promo-row::-webkit-scrollbar { display: none; }
  .promo { flex: 0 0 84vw; max-width: 340px; scroll-snap-align: start; grid-template-columns: minmax(0, 1fr) 92px; }
  .promo-media { height: 88px; }
}

/* варианты с разной ценой: цена под названием цвета, вспышка при смене (v13) */
.opt { height: auto; min-height: 40px; padding: 6px 14px 6px 10px; }
.opt-t { display: grid; line-height: 1.2; text-align: left; }
.opt-t small { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt.is-on .opt-t small { color: var(--orange-700); }
.pb-price b.is-flash { animation: priceFlash 700ms var(--ease); }
@keyframes priceFlash { 0% { color: var(--orange); transform: translateY(-3px); } 100% { color: inherit; transform: none; } }
/* точки стоят в процентах от фото – контейнер держит пропорции фото, без обрезки */
.showroom { min-height: 0; aspect-ratio: 960 / 573; align-self: center; }
.showroom > img { position: absolute; inset: 0; object-fit: fill; }

/* ===================== Шоурум (1.3.2) ===================== */
/* Одна белая поверхность без рамки и тени – от фона её отделяет тон. Метки на фото – белые кружки с номером: номер
   связывает точку с пунктом легенды под фото. Без оранжевых «стикеров», обводки и пульсации; подсветка – только
   у ссылок (точка и пункт легенды подсвечивают друг друга, site.js). Над заголовком нет надписи капслоком. */
.showroom-wrap { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); align-self: stretch; }
.showroom-wrap .showroom { border-radius: 0; box-shadow: none; overflow: visible; flex: 0 0 auto; align-self: stretch; width: 100%; }
.showroom::after, .showroom-cap { display: none; }
.spot { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; }
.spot i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: background var(--t-fast), color var(--t-fast); }
.spot:hover i, .spot.is-hot i { background: var(--ink); color: #fff; }
.spot:focus-visible { outline: none; }
.spot:focus-visible i { background: var(--ink); color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
/* раздел при наведении на точку: это ссылка, ей можно всплыть над фото */
.spot .spot-card { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; background: var(--surface); color: var(--ink); white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-med); }
.spot .spot-card img { position: static; transform: none; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #f3f2ef; }
.spot .spot-card b { display: block; font-size: 14px; font-weight: 700; }
.spot .spot-card small { display: block; font-size: 12.5px; color: var(--muted); }
.spot .spot-card .icon { color: var(--muted); }
.spot:hover .spot-card, .spot:focus-visible .spot-card, .spot.is-hot .spot-card { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* подпись под фото: заголовок и легенда текстом – номер серым, название ссылкой */
.sr-panel { display: grid; gap: 10px; padding: 18px 22px 20px; }
.sr-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.sr-chip { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color var(--t-fast); }
.sr-chip i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--t-fast); }
.sr-chip:hover, .sr-chip.is-hot, .sr-chip:hover i, .sr-chip.is-hot i { color: var(--orange-700); }
.sr-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 768px) {
  .showroom-wrap { border-radius: 18px; }
  .spot .spot-card { display: none; }
  .spot i { width: 24px; height: 24px; font-size: 12px; }
  .sr-panel { padding: 14px 16px 16px; }
  .sr-title { font-size: 17px; }
  .sr-chips { gap: 4px 18px; }
}
.spot.is-down .spot-card { bottom: auto; top: calc(100% + 12px); transform: translate(-50%, -8px); }
.spot.is-right .spot-card { left: auto; right: -12px; transform: translateY(8px); }
.spot.is-left .spot-card { left: -12px; transform: translateY(8px); }
.spot.is-down.is-right .spot-card, .spot.is-down.is-left .spot-card { transform: translateY(-8px); }
.spot.is-right:hover .spot-card, .spot.is-right.is-hot .spot-card, .spot.is-left:hover .spot-card, .spot.is-left.is-hot .spot-card { transform: none; }
.spot.is-down:not(.is-right):not(.is-left):hover .spot-card, .spot.is-down:not(.is-right):not(.is-left).is-hot .spot-card { transform: translate(-50%, 0); }

/* v14: корзина на телефоне не шире экрана – лента «Вы смотрели» больше не распирает сетку */
.basket-main { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) {
  .basket-layout { grid-template-columns: minmax(0, 1fr); }
}

/* телефон: зона нажатия не меньше 44 px (иконки шапки, действия в корзине, ползунки цены) */
@media (max-width: 768px) {
  .hdr-action, .burger, .search-go { position: relative; }
  .hdr-action { min-height: 40px; justify-content: center; }
  .hdr-action::before, .burger::before, .search-go::before { content: ''; position: absolute; inset: -4px -2px; }
  .b-acts { gap: 4px; margin-left: -8px; }
  .b-acts button { min-height: 40px; padding: 0 8px; font-size: 14px; border-radius: var(--r-ctl); }
  .b-del { width: 40px; height: 40px; }
  .dual { height: 64px; }
  .dual input[type=range] { height: 36px; bottom: -2px; }
  .dual input[type=range]::-webkit-slider-runnable-track { height: 36px; }
  .dual input[type=range]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: 3px; }
  .dual input[type=range]::-moz-range-thumb { width: 26px; height: 26px; }
}

/* поиск: разделы найденного */
.sec-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 20px; padding-bottom: 2px; }
.sec-chips::-webkit-scrollbar { display: none; }
.sec-chips .chip small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.sec-chips .chip.is-active small { color: rgba(255, 255, 255, .7); }
.sec-chips .chip.is-active { border-color: var(--ink); }
.search-sugg .sg-sec { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 14px; }
.search-sugg .sg-sec span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-sugg .sg-sec small { color: var(--muted); font-variant-numeric: tabular-nums; }
.search-sugg .sg-sec + .sg-item { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 10px; }

/* лента подразделов: подпись целиком – до 3 строк, плитка шире, перенос по слогам («Буклетницы настенные, карманы…») */
.strip .subcat { flex-basis: 128px; }
.strip .subcat b { -webkit-line-clamp: 3; font-size: 12.5px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 768px) { .strip .subcat { flex-basis: 100px; } .strip .subcat b { font-size: 12px; } }

/* «В корзину» → «Добавлено» без смены ширины: подпись «Добавлено» ложится поверх, соседняя цена не сдвигается */
.btn-add { position: relative; }
.btn-add .lbl-added, .btn-add.is-added .lbl-added { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; gap: 6px; opacity: 0; pointer-events: none; white-space: nowrap; }
.btn-add.is-added .lbl-add { display: inline; visibility: hidden; }
.btn-add.is-added > .icon { visibility: hidden; }
.btn-add.is-added .lbl-added { opacity: 1; }
.buy-bar .btn-add, .buy-row .btn-add { min-width: 150px; }

/* пока фото грузится – мягкий перелив вместо пустой белой плитки; site.js ставит .is-ready, когда картинка пришла */
.card-media, .strip .subcat-img, .gallery-main, .subcat-img { background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 70%); background-color: #f0eee9; background-size: 220% 100%; background-repeat: no-repeat; animation: imgWait 1.3s linear infinite; }
.card-media.is-ready, .strip .subcat-img.is-ready, .gallery-main.is-ready, .subcat-img.is-ready { animation: none; background-image: none; }
.strip .subcat-img.is-ready { background-color: var(--surface); }
.card-media.is-ready { background-color: var(--img-bg); }
@keyframes imgWait { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .card-media, .strip .subcat-img, .gallery-main, .subcat-img { animation: none; } }

/* хлебные крошки на телефоне – одна строка с прокруткой; название товара и так в заголовке */
@media (max-width: 768px) {
  .crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 12px 0 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .crumbs::-webkit-scrollbar { display: none; }
  .crumbs > * { flex: none; }
  .pdp-crumbs .icon:nth-last-child(2), .pdp-crumbs span[aria-current] { display: none; }
}

/* плашка cookie: одна строка и «Хорошо», как принято; на компьютере – в левом углу, не по центру над товарами */
.cookie { max-width: 420px; padding: 12px 12px 12px 16px; gap: 12px; font-size: 13px; line-height: 1.4; }
@media (min-width: 769px) { .cookie { left: 20px; right: auto; bottom: 20px; margin: 0; } }
@media (max-width: 768px) { .cookie { flex-direction: row; align-items: center; } body:has(.buy-bar) .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* карточка товара: сверху ровный ряд (фото – главное о товаре – покупка), ниже описание и все характеристики.
   Без прилипания: раньше фото «висело» у шапки, пока листали длинную колонку характеристик */
.pdp .gallery, .pdp .buybox, .gallery, .buybox { position: static; }
.pdp-key .kv-list { margin-top: -4px; }
.pdp-key .link-btn { justify-self: start; }
.pdp-excerpt { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.pdp-excerpt a { color: var(--orange-700); white-space: nowrap; }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.pdp-details .pdp-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.pdp-details h2 { font-size: 20px; margin-bottom: 8px; }
@media (max-width: 960px) { .pdp-details { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; padding-top: 24px; } }

/* без «выезжания» блоков при прокрутке: контент на месте сразу, анимация – только в ответ на действие */
.reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
/* подпись над текстом раздела – обычным регистром, без разрядки капсом */
.about-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
/* без декора ради декора: пятно-свечение за заголовком, затемнение фото в карточках, градиенты на полосках, стекло на кнопке */
.hero-copy::after, .card-media::after { display: none; }
.om-bar i, .meter-bar i { background: var(--orange); }
.promo.is-orange { background: var(--orange); }
.card-quick { background: rgba(27, 26, 24, .9); backdrop-filter: none; -webkit-backdrop-filter: none; }
.search-dust { display: none; }
/* окно «Купить в 1 клик» / «Запросить КП»: какой товар уйдёт в заявку */
.cb-product { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--ink); }
/* юридическое: «Отказаться от статистики» в подвале выглядит как соседние ссылки; строка о политике под кнопкой формы */
.footer-legal .link-btn { font: inherit; color: inherit; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.footer-legal .link-btn:hover { text-decoration: underline; }
.form-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ===== телефон: карточка товара как в маркетплейсе (Ozon) =====
   фото во всю ширину → белая карточка «цена, опт, название, артикул» → варианты → «Купить в 1 клик / КП» →
   доставка → «О товаре» → описание и характеристики; кнопка «В корзину» всегда внизу (buy-bar).
   Колонки .pdp-info и .buybox на телефоне раскрыты (display: contents), их части расставлены по order
   и собраны в карточки фоном и скруглениями первой/последней части группы. */
@media (max-width: 768px) {
  .pdp { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0; }
  .pdp .pdp-info, .pdp .pdp-info-body, .pdp .buybox { display: contents; }
  .pdp > *, .pdp :is(.pdp-info, .pdp-info-body) > *, .pdp .buybox > * { order: 50; margin: 0; }
  .pdp .gallery { order: 0; margin: 0 calc(-1 * var(--gutter)) 8px; }
  .pdp .gallery-main { border-radius: 0 0 22px 22px; }
  /* общая «карточка» */
  .pdp .pb-price, .pdp .pb-opt, .pdp .pdp-info h1, .pdp .pdp-meta,
  .pdp :is(.pdp-info, .pdp-info-body) > .pdp-block, .pdp .buybox > .dl, .pdp .pdp-excerpt {
    background: var(--surface); padding-left: 16px; padding-right: 16px; border-radius: 0; box-shadow: none;
  }
  /* 1. цена, опт, название, артикул и наличие */
  .pdp .pb-price { order: 1; padding-top: 16px; border-radius: 20px 20px 0 0; }
  .pdp .pb-price b { font-size: 30px; }
  .pdp .pb-opt { order: 2; padding-top: 4px; padding-bottom: 0; }
  .pdp .pb-opt > div { gap: 6px; }
  .pdp .pb-opt b, .pdp .pb-opt span { font-size: 15px; }
  .pdp .pb-opt small { display: none; }
  .pdp .pb-opt.is-ask small { display: block; margin: 0; font-size: 13px; color: var(--muted); }
  .pdp .pdp-info h1 { order: 3; padding-top: 10px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
  .pdp .pdp-meta { order: 4; padding-top: 10px; padding-bottom: 16px; border-radius: 0 0 20px 20px; margin-bottom: 8px; font-size: 13px; }
  /* 2. варианты */
  .pdp :is(.pdp-info, .pdp-info-body) > .pdp-block:not(.pdp-key) { order: 5; padding-top: 14px; padding-bottom: 16px; border-radius: 20px; margin-bottom: 8px; }
  /* 3. купить в 1 клик и КП (основная кнопка «В корзину» – внизу экрана) */
  .pdp .buy-row { display: none; }
  .pdp .buybox > [data-oneclick] { order: 6; margin: 0; padding: 0 16px; background: var(--surface); border-radius: 14px; min-height: 48px; }
  .pdp .pb-links { order: 7; background: none; padding: 10px 4px 14px; justify-content: space-between; }
  /* 4. доставка */
  .pdp .buybox > .dl { order: 8; padding-top: 14px; padding-bottom: 14px; border: 0; border-radius: 20px; margin-bottom: 8px; }
  /* 5. о товаре и кратко */
  .pdp .pdp-key { order: 9; background: var(--surface); padding: 14px 16px 6px; border-radius: 20px 20px 0 0; }
  .pdp .pdp-key h2 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
  .pdp .pdp-key .kv { padding: 7px 0; }
  /* краткое описание на телефоне не нужно: полное идёт сразу следующей карточкой */
  .pdp .pdp-excerpt { display: none; }
  .pdp .pdp-key { border-radius: 20px; padding-bottom: 14px; }
  .pdp .facts { display: none; }
  /* описание и все характеристики – тоже карточками */
  .pdp-details { margin-top: 8px; padding-top: 0; border-top: 0; gap: 8px; }
  .pdp-details .pdp-block { background: var(--surface); border-radius: 20px; padding: 16px; }
  .pdp-details h2 { font-size: 17px; }
}

/* телефон: уведомление («Добавлено в отложенные») – во всю ширину сверху экрана, в одну-две строки,
   не узкой колонкой поверх плашки статистики и панели покупки */
@media (max-width: 768px) {
  .toast, body:has(.buy-bar) .toast { left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 10px); bottom: auto; max-width: none; transform: translateY(-12px); display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14.5px; line-height: 1.3; }
  .toast.is-on, body:has(.buy-bar) .toast.is-on { transform: none; }
  .toast span { flex: 1; min-width: 0; }
  .toast a { margin-left: auto; white-space: nowrap; }
}

/* «О товаре» одним блоком: на компьютере заголовок общего блока не нужен (описание и характеристики рядом) */
.pdp-details-title { display: none; }
.pdp-details .more-btn { margin-top: 6px; }
@media (max-width: 768px) {
  /* телефон: «О товаре» – одна карточка: характеристики (8 строк + «Все характеристики»), затем описание;
     отдельная короткая «О товаре» сверху уже не нужна */
  .pdp .pdp-key { display: none; }
  .pdp-details { display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-radius: 20px; padding: 16px; margin-top: 8px; }
  .pdp-details .kv:nth-child(odd), .pdp .pdp-details .kv:nth-child(odd) { background: none; }
  .pdp-details-title { display: block; font-size: 19px; margin: 0 0 6px; }
  .pdp-details .pdp-block { background: none; border-radius: 0; padding: 0; }
  .pdp-details #chars { order: 1; }
  .pdp-details #about { order: 2; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .pdp-details .pdp-block h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
  .pdp-details #chars h2 { display: none; }
  .pdp-details .kv { padding: 8px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .pdp-details .kv:hover { background: none; }

  /* «Похожие» и «С этим покупают» – сеткой в две колонки, как в маркетплейсе, а не лентой вбок */
  .pdp-sec.related .product-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .pdp-sec.related .product-row .card { flex: none; max-width: none; padding: 6px 6px 10px; border-radius: 16px; }
  .pdp-sec.related .product-row .card:nth-child(n+7) { display: none; }
  .pdp-sec.related .card-sku, .pdp-sec.related .card-meta { display: none; }
  .pdp-sec.related .card-name { font-size: 13px; line-height: 1.3; -webkit-line-clamp: 2; }
  .pdp-sec.related .section-head { margin-bottom: 10px; }
  .pdp-sec.related .section-head p { display: none; }
  .pdp-sec.related { padding-top: 24px; }
}
@media (max-width: 768px) {
  /* скидка опта – рядом с оптовой ценой, «Поделиться» – одной иконкой в строке артикула */
  .pdp .pb-opt > div { justify-content: flex-start; }
  .pdp .pb-opt .pct-badge { margin-left: 4px; }
  .pdp .pdp-meta { flex-wrap: nowrap; }
  .pdp .pdp-meta [data-share] { font-size: 0; gap: 0; margin-left: auto; padding: 8px; }
  .pdp .pdp-meta [data-share] .icon { width: 20px; height: 20px; }
}

/* телефон, как Ozon: внизу всегда две кнопки; доставка – строкой меток под ценой; лишнее служебное убрано */
@media (max-width: 768px) {
  .buy-bar { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; }
  .buy-bar .btn { width: 100%; min-width: 0; height: 50px; border-radius: 14px; font-size: 15.5px; padding: 0 10px; }
  .buy-bar [data-oneclick] { background: var(--surface); }
  body:has(.buy-bar) .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .pdp .buybox > [data-oneclick] { display: none; }
  /* «Запросить КП» – ссылкой под оптовой ценой, «Прайс раздела» на телефоне не нужен */
  .pdp .pb-links { order: 2; background: var(--surface); padding: 4px 16px 0; margin: 0; justify-content: flex-start; }
  .pdp .pb-links a[download] { display: none; }
  .pdp .pb-links [data-optreq] { font-size: 14px; color: var(--orange-700); }
  /* доставка: «Самовывоз сегодня», «По Москве завтра» – метками в карточке цены, без подписей и строки об оплате */
  .pdp .buybox > .dl { order: 2; display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); padding: 10px 16px 0; margin: 0; border-radius: 0; }
  .pdp .buybox > .dl > div { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--bg-2); }
  .pdp .buybox > .dl > div:nth-child(n+3) { display: none; }
  .pdp .buybox > .dl > div > div { display: block; }
  .pdp .buybox > .dl span { display: none; }
  .pdp .buybox > .dl b { font-size: 13px; font-weight: 600; }
  .pdp .buybox > .dl .icon { width: 16px; height: 16px; flex: none; }
  /* описание – обычным текстом, длинное свёрнуто */
  .pdp-details .desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
  .pdp-details .desc br + br { display: none; }
}
@media (max-width: 768px) {
  /* плашка статистики на телефоне – сверху: внизу у Safari своя панель и наши кнопки «Купить» */
  .cookie, body:has(.buy-bar) .cookie { top: calc(env(safe-area-inset-top) + 8px); bottom: auto; left: 10px; right: 10px; transform: translateY(-140%); padding: 10px 10px 10px 14px; font-size: 13px; }
  .cookie.is-on, body:has(.buy-bar) .cookie.is-on { transform: none; }
  .cookie .btn { height: 38px; padding: 0 14px; }
  /* метки доставки – в одну строку */
  .pdp .buybox > .dl { gap: 6px; flex-wrap: nowrap; }
  .pdp .buybox > .dl > div { padding: 5px 9px; gap: 5px; }
  .pdp .buybox > .dl b { font-size: 12.5px; white-space: nowrap; }
  .pdp .buybox > .dl .icon { width: 14px; height: 14px; }
  .pdp .pb-links [data-optreq] { font-size: 13px; font-weight: 600; gap: 5px; }
  .pdp .pb-links [data-optreq] .icon { width: 15px; height: 15px; }
}
/* компьютер, как и телефон: один блок «О товаре» внизу (характеристики + описание), без дубля сверху */
@media (min-width: 769px) {
  .pdp-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "title title" "chars about"; row-gap: 12px; }
  .pdp-details-title { display: block; grid-area: title; font-size: 24px; margin: 0; }
  .pdp-details #chars { grid-area: chars; }
  .pdp-details #about { grid-area: about; }
  .pdp-details .pdp-block h2 { font-size: 15px; color: var(--muted); font-weight: 600; }
}

/* наличие и «Запросить КП» в строках цены – на телефоне; на компьютере они есть в своих местах */
.pb-avail, .pb-kp { display: none; }
@media (max-width: 768px) {
  /* без «резинки» с бежевым фоном: страница не оттягивается, под подвалом белое, а не полоса фона */
  html, body { overscroll-behavior-y: none; }
  body:has(.buy-bar) { padding-bottom: 0; }
  body:has(.buy-bar) .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* секции карточки – сплошные белые полосы во всю ширину, между ними тонкий серый зазор (как Ozon),
     а не россыпь скруглённых плашек */
  .pdp .gallery { margin-bottom: 0; }
  .pdp .gallery-main { border-radius: 0; }
  .pdp .pb-price, .pdp .pb-opt, .pdp .buybox > .dl, .pdp .pdp-info h1, .pdp .pdp-meta,
  .pdp :is(.pdp-info, .pdp-info-body) > .pdp-block:not(.pdp-key), .pdp-details, .pdp-sec.related, .pdp-sec.ask-bar {
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter); padding-right: var(--gutter); border-radius: 0 !important; box-shadow: none;
  }
  .pdp .pdp-meta { margin-bottom: 8px; }
  .pdp :is(.pdp-info, .pdp-info-body) > .pdp-block:not(.pdp-key) { margin-bottom: 8px; }
  .pdp-details { margin-top: 0; padding-top: 18px; padding-bottom: 18px; }
  .pdp-sec.related { background: var(--surface); margin-top: 8px; padding-top: 18px; padding-bottom: 16px; }

  /* строка цены: цена слева, наличие справа; опт слева, «Запросить КП» справа */
  .pdp .pb-price { align-items: baseline; padding-top: 14px; }
  .pdp .pb-avail { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  .pdp .pb-avail .icon { width: 15px; height: 15px; }
  .pdp .pb-avail.is-in { color: var(--green); }
  .pdp .pb-avail.is-order { color: var(--amber); }
  .pdp .pb-opt > div { align-items: baseline; gap: 6px; }
  .pdp .pb-opt .pct-badge { background: none; box-shadow: none; padding: 0; margin-left: 2px; color: var(--orange-700); font-size: 14px; font-weight: 700; }
  .pdp .pb-kp { display: inline; margin-left: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--orange-700); white-space: nowrap; }
  .pdp .pb-opt.is-ask > div { display: flex; align-items: baseline; gap: 8px; }
  .pdp .pb-opt.is-ask small { flex: 1; }
  .pdp .pb-links { display: none; }
  .pdp .pdp-meta .stock { display: none; }
  .pdp .pdp-meta { color: var(--muted); }

  /* доставка – строкой текста с иконками, без «таблеток» */
  .pdp .buybox > .dl { gap: 16px; padding-top: 10px; }
  .pdp .buybox > .dl > div { background: none; padding: 0; border-radius: 0; }
  .pdp .buybox > .dl b { font-weight: 500; color: var(--ink-2); }
  .pdp .buybox > .dl .icon { color: var(--muted-2); }
}
@media (max-width: 768px) {
  /* карточки в «Похожих» на телефоне – без рамок и теней, компактная цена и кнопка (как в ленте маркетплейса) */
  .pdp-sec.related .product-row { gap: 14px 10px; }
  .pdp-sec.related .product-row .card { padding: 0; box-shadow: none; background: none; border-radius: 0; }
  .pdp-sec.related .card:hover { transform: none; box-shadow: none; }
  .pdp-sec.related .card-media { border-radius: 14px; }
  .pdp-sec.related .card-body, .pdp-sec.related .card > div:not(.card-media) { padding-left: 2px; padding-right: 2px; }
  .pdp-sec.related .card-price b { font-size: 17px; }
  .pdp-sec.related .card-price span { font-size: 12px; }
  .pdp-sec.related .card-opt { font-size: 12.5px; }
  .pdp-sec.related .card-actions { height: 40px; padding-top: 8px; }
  .pdp-sec.related .card-actions .btn-add, .pdp-sec.related .stepper { height: 34px; font-size: 13.5px; border-radius: 10px; box-shadow: none; }
  .pdp-sec.related .card-actions .btn-add .icon { display: none; }
  .pdp-sec.related [class*="badge"] { font-size: 11.5px; padding: 3px 7px; top: 8px; left: 8px; }
  .pdp-sec.related .card-wish { width: 32px; height: 32px; top: 6px; right: 6px; }
}
@media (max-width: 768px) { .pdp-details .kv:last-child { border-bottom: 0; } }
@media (max-width: 768px) {
  /* «Остались вопросы»: звонок на всю ширину, телефон и Max – двумя равными кнопками; до подвала – тонкий зазор */
  .pdp-sec.ask-bar { margin-top: 8px; margin-bottom: 0; padding-top: 18px; padding-bottom: 18px; background: var(--surface); }
  .pdp-sec.ask-bar .ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .pdp-sec.ask-bar .ask-btns .btn { width: 100%; min-width: 0; height: 46px; padding: 0 10px; font-size: 14.5px; white-space: nowrap; }
  .pdp-sec.ask-bar .ask-btns .btn:first-child { grid-column: 1 / -1; }
  body:has(.pdp) .footer { margin-top: 8px; border-top: 0; }
  body:has(.pdp) main, body:has(.pdp) .container:last-of-type { padding-bottom: 0; margin-bottom: 0; }
}

/* подвал: заголовки колонок – кнопки-раскрывашки на телефоне, на компьютере обычные заголовки */
.footer-toggle { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; text-align: left; }
.footer-main { padding: 36px 0 28px; }
@media (max-width: 768px) {
  .footer-main { gap: 0; padding: 20px 0 8px; }
  .footer-brand { padding-bottom: 14px; }
  .footer-brand p { display: none; }
  .footer-brand .logo-svg { height: 36px; }
  .footer-msg { margin-top: 12px; }
  .footer-col { border-top: 1px solid var(--line); }
  .footer-col h4 { margin: 0; }
  .footer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; font-size: 16px; font-weight: 700; cursor: pointer; }
  .footer-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform var(--t-fast); }
  .footer-col.is-open .footer-toggle::after { transform: rotate(-135deg) translateY(-1px); }
  .footer-col > :not(h4) { display: none; }
  .footer-col.is-open > :not(h4) { display: block; }
  .footer-col.is-open { padding-bottom: 12px; }
  .footer-bottom { font-size: 12px; padding: 14px 0 18px; }
  .footer-legal { gap: 4px 14px; }
}

/* «В корзину» в карточках – снова оранжевые (с ними живее); на странице товара «Запросить КП» – тёмной ссылкой */
.pdp .pb-kp { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
@media (max-width: 768px) {
  /* «Похожие», «С этим покупают», «Вы смотрели» – одной лентой небольших карточек вбок, а не высокой сеткой */
  .pdp-sec.related .product-row { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .pdp-sec.related .product-row::-webkit-scrollbar { display: none; }
  .pdp-sec.related .product-row .card { flex: 0 0 40vw; max-width: 170px; scroll-snap-align: start; }
  .pdp-sec.related .product-row .card:nth-child(n+7) { display: flex; }
  .pdp-sec.related .card-price b { font-size: 15px; }
  .pdp-sec.related .card-opt { font-size: 12px; }
  .pdp-sec.related .card-name { font-size: 12.5px; }
  .pdp-sec.related .tag { display: none; }
  .pdp-sec.related .section-head h2 { font-size: 18px; }
}
@media (max-width: 768px) {
  .pdp-sec.related .section-head { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .pdp-sec.related .section-head .link-more { font-size: 14px; color: var(--muted); white-space: nowrap; }
  .pdp-sec.ask-bar .ask-btns .btn-primary { background: var(--ink); box-shadow: none; }
}

/* компьютер: «О товаре» внизу – белой карточкой, как верх страницы, а не текстом на бежевом фоне */
@media (min-width: 769px) {
  .pdp-details { background: var(--surface); border-radius: 28px; padding: 28px 32px 32px; margin-top: 20px; border-top: 0; column-gap: 56px; }
  .pdp-details .kv { padding: 10px 12px; }
  .pdp-details .desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
  .pdp .pdp-key { background: none; padding: 0; }
  .pdp .pdp-key h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .pdp .pdp-excerpt { color: var(--ink-2); }
}

/* открытый каталог: верхняя строка ссылок не серая (над затемнением), сам каталог – на всю ширину,
   без тёмной полосы справа; затемнение под ним мягче */
@media (min-width: 769px) {
  .topbar { position: relative; z-index: var(--z-sticky); background: var(--surface); }
  .mega { left: 0; right: 0; width: auto; border-radius: 0 0 24px 24px; border-right: 0; }
  .mega-backdrop { background: rgba(27, 26, 24, .18); }
}
@media (min-width: 1400px) { .mega { width: auto; } }

/* ===== фирменная палитра «тёплый минимализм» (референс 17.10.2026): терракота, кремовый фон, тёплый белый
   вместо больничного белого и холодного серого ===== */
:root, :root:not([data-theme]) {
  --orange: #d85c28; --orange-600: #c04d1f; --orange-700: #a5421b; --orange-100: #f6dccd; --orange-50: #fbeee6;
  --bg: #f3ece1; --bg-2: #ebe2d4; --surface: #fffbf5; --line: #e7ddcf; --line-2: #d8ccbb; --ink: #241a14;
}
html { background: var(--bg); }
.hero h1 em { font-style: normal; color: var(--orange); }

/* плитки «Каталог оборудования» как карточки референса: фото во всю плитку сверху, внизу название, число товаров
   и круглая кнопка со стрелкой (на наведении – терракотовая) */
.cat-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img img" "name go" "count go"; column-gap: 10px; padding: 8px 8px 14px; overflow: hidden; }
.cat-tile .cat-img { grid-area: img; margin: 0 0 12px; aspect-ratio: 4 / 3.4; background: var(--bg); }
.cat-tile b { grid-area: name; min-height: 0; padding: 0 6px; align-self: end; }
.cat-tile span { grid-area: count; padding: 0 6px; }
.cat-tile::after { content: ""; grid-area: go; align-self: center; margin-right: 6px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23a5421b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: background-color var(--t-fast), transform var(--t-fast); }
.cat-tile:hover::after { background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transform: translateX(2px); }
@media (max-width: 768px) { .cat-tile::after { width: 30px; height: 30px; background-size: 15px; } .cat-tile b { font-size: 14px; } }

/* первый экран: фирменный мотив с референса – терракотовая четверть круга в углу блока с заголовком */
.hero-copy { position: relative; overflow: hidden; }
.hero-copy::before { content: ""; position: absolute; right: -70px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%;
  background: var(--orange); opacity: .9; pointer-events: none; }
.hero-copy::after { display: none; }
.hero-copy > * { position: relative; z-index: 1; }
@media (max-width: 768px) { .hero-copy::before { width: 120px; height: 120px; right: -50px; bottom: -50px; } }
/* первый экран: без шарика-мотива; ключевые слова в подзаголовке – жирным */
.hero-copy::before { display: none; }
.hero-lead b { font-weight: 700; color: var(--ink); }

/* компьютер: «Описание и характеристики» внутри основного блока (средняя колонка), без отдельной нижней карточки;
   короткий «О товаре» и начало описания там уже не нужны */
@media (min-width: 769px) {
  .pdp .pdp-key, .pdp .pdp-excerpt { display: none; }
  .pdp-details.is-inline { display: flex; flex-direction: column; gap: 22px; background: none; border-radius: 0; padding: 0; margin: 4px 0 0; border: 0; }
  .pdp-details.is-inline .pdp-details-title { display: none; }
  .pdp-details.is-inline .pdp-block h2 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
  .pdp-details.is-inline .desc { font-size: 15px; }
}
@media (min-width: 769px) { .pdp-details.is-inline #chars { order: -1; } }
@media (min-width: 769px) { .pdp-details.is-inline .pdp-block, .pdp-details.is-inline .kv-list { width: 100%; max-width: none; } }

/* планшет и узкий компьютер (блоки первого экрана друг под другом): заголовок слева, текст и кнопки справа –
   плашка заполнена по ширине, а не прижата к левой половине */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
  .hero-copy h1 { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; align-self: center; }
  .hero-copy .hero-lead { grid-column: 2; grid-row: 1; max-width: none; margin-bottom: 20px; }
  .hero-copy .hero-cta { grid-column: 2; grid-row: 2; flex-wrap: wrap; }
}

/* компьютер, три колонки (JS ставит .is-fit и --gal-h): фото и блок цены одной высоты, средняя колонка обрезана
   по той же линии; целиком характеристики и описание – в панели справа (.pdp-sheet) */
.pdp-readmore { display: none; }
@media (min-width: 769px) {
  .pdp.is-fit .gallery-main { aspect-ratio: auto; height: var(--gal-h); }
  .pdp.is-fit .gallery-main img { object-fit: contain; }
  .pdp.is-fit .pdp-info-body { position: relative; overflow: hidden; }
  .pdp.is-fit .pdp-info.can-more .pdp-info-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0), var(--surface) 90%); }
  .pdp.is-fit .kv-list .kv.is-more { display: grid; animation: none; }
  .pdp.is-fit .pdp-details .more-btn { display: none; }
  .pdp.is-fit .desc.is-clamped { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .pdp.is-fit .pdp-info.can-more .pdp-readmore { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0;
    background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--orange-700); cursor: pointer; align-self: flex-start; }
  .pdp-readmore svg { transition: transform var(--t-fast); }
  .pdp-readmore:hover { color: var(--orange); }
  .pdp-readmore:hover svg { transform: translateX(3px); }
}

/* панель «Характеристики и описание» – выезжает справа поверх страницы */
.pdp-sheet { position: fixed; inset: 0; z-index: 200; }
.pdp-sheet[hidden] { display: none; }
.pdp-sheet-bg { position: absolute; inset: 0; background: rgba(36, 26, 20, .22); opacity: 0; transition: opacity 360ms var(--ease); }
.pdp-sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 94vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: -24px 0 60px -30px rgba(60, 40, 20, .35); border-radius: 24px 0 0 24px;
  transform: translateX(104%); transition: transform 420ms cubic-bezier(.22, .61, .36, 1); }
.pdp-sheet.is-on .pdp-sheet-bg { opacity: 1; }
.pdp-sheet.is-on .pdp-sheet-panel { transform: none; }
.pdp-sheet-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 24px 12px 28px; }
.pdp-sheet-head b { flex: 1; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.pdp-sheet-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast); }
.pdp-sheet-x:hover { background: var(--bg-2); }
.pdp-sheet-tabs { display: flex; gap: 6px; padding: 0 28px 12px; border-bottom: 1px solid var(--line); }
.pdp-sheet-tabs button { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
.pdp-sheet-tabs button.is-on { background: var(--orange-50); color: var(--orange-700); }
.pdp-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 40px; }
.pdp-sheet-body .pdp-block + .pdp-block { margin-top: 28px; }
.pdp-sheet-body h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.pdp-sheet-body .kv { padding: 10px 12px; border-radius: 10px; }
.pdp-sheet-body .kv:nth-child(odd) { background: var(--bg); }
.pdp-sheet-body .desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
html.sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pdp-sheet-bg, .pdp-sheet-panel { transition: none; } }
@media (min-width: 769px) {
  .pdp-info-body { display: flex; flex-direction: column; gap: 22px; }
  .pdp.is-fit .pdp-info { gap: 0; }
}
/* телефон: метки доставки в одну строку, но у товара под заказ («…после поступления») они длиннее экрана –
   строка листается пальцем, а не раздвигает страницу вбок */
@media (max-width: 768px) {
  .pdp .buybox > .dl { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pdp .buybox > .dl::-webkit-scrollbar { display: none; }
  .pdp .buybox > .dl > div { flex: none; }
}

/* логотип айдентики 17.10.2026 (картинка, tools/brand_logo.py): на компьютере крупнее прежнего – чтобы читалась
   подпись «Торговое оборудование»; на телефоне – вариант без подписи */
.logo-pic { display: flex; align-items: center; }
.logo-svg { height: 46px; width: auto; display: block; }
.footer-brand .logo-svg { height: 54px; }
.drawer-head .logo-svg { height: 30px; }
@media (max-width: 1100px) { .header .logo-svg { height: 40px; } }
@media (max-width: 768px) { .logo-svg, .header .logo-svg { height: 28px; } .footer-brand .logo-svg { height: 34px; } }

/* ===================== Первый экран (19.10.2026) =====================
   Текст прямо на фоне (без белой подложки), справа фото зала с 18 точками – у каждой раздел каталога; подпись
   «Такой зал можно собрать…» плашкой на фото. Размеры – плавные (clamp от ширины окна), перестройка одна:
   до 960 px текст и фото столбиком. Классы hs-*, а не hero-copy/hero-grid – старые правила их не задевают */
.hero-scene { padding: clamp(16px, 2.6vw, 40px) 0 clamp(20px, 2.6vw, 40px); overflow-x: clip; }
.hs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: center; }
.hs-copy { min-width: 0; animation: heroIn 600ms var(--ease) both; }
.hero-scene h1 { margin: 0; font-size: clamp(30px, 6vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; color: var(--ink); }
.hero-scene h1 em { display: block; font-style: normal; color: var(--orange); }
.hs-sub { display: block; margin-top: .42em; font-size: .5em; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.hs-lead { text-wrap: balance; margin: clamp(10px, 1.3vw, 18px) 0 0; max-width: 40ch; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.5; color: var(--ink-2); }
.hs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 2.2vw, 32px); }
.hs-cta .btn { gap: 10px; padding: 0 clamp(18px, 1.7vw, 26px); font-size: clamp(15px, 1.15vw, 16px); }
.hero-scene .showroom-wrap { background: none; align-self: center; width: 100%; animation: heroIn 600ms var(--ease) 80ms both; }
.hero-scene .showroom { aspect-ratio: 1672 / 941; overflow: hidden; border-radius: clamp(16px, 1.8vw, 24px); }
.hero-scene .showroom > img { object-fit: cover; }
.sr-in { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); }
.sr-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-badge { position: absolute; left: clamp(8px, 1.3vw, 18px); bottom: clamp(8px, 1.3vw, 18px); z-index: 1; max-width: calc(100% - 2 * clamp(8px, 1.3vw, 18px));
  padding: clamp(5px, .7vw, 10px) clamp(9px, 1.1vw, 16px); border-radius: clamp(9px, 1vw, 14px);
  background: rgba(255, 251, 245, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink);
  font-family: var(--font-display); font-size: clamp(11.5px, 1.25vw, 17px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
  box-shadow: 0 8px 24px -14px rgba(36, 26, 20, .5); pointer-events: none; animation: fadeUp 500ms var(--ease) 200ms both; }
.sr-badge .nw { white-space: nowrap; }
/* точки: оранжевые при наведении, появляются по очереди, мягкое «дыхание» – видно, что на них можно нажать */
.hero-scene .spot { animation: spotIn 460ms var(--ease) both; animation-delay: calc(250ms + var(--n, 1) * 45ms); }
.hero-scene .spot i { width: clamp(22px, 2.2vw, 30px); height: clamp(22px, 2.2vw, 30px); font-size: clamp(10.5px, .95vw, 13px); position: relative;
  box-shadow: 0 2px 10px rgba(36, 26, 20, .28); transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.hero-scene .spot i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 251, 245, .85); opacity: 0;
  animation: spotRing 3.2s ease-out infinite; animation-delay: calc(1.2s + var(--n, 1) * 180ms); pointer-events: none; }
.hero-scene .spot:hover i, .hero-scene .spot.is-hot i { background: var(--orange); color: #fff; transform: scale(1.08); }
.hero-scene .spot:hover, .hero-scene .spot.is-hot, .hero-scene .spot:focus-visible { z-index: 6; }   /* карточка – поверх соседних точек */
@keyframes spotIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes spotRing { 0% { opacity: .9; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
@media (prefers-reduced-motion: reduce) { .hero-scene .spot, .hero-scene .spot i::after { animation: none; } }

/* компьютер и широкий планшет: текст слева (~37 %), фото справа; заголовок в три строки, кегль растёт с колонкой */
@media (min-width: 960px) {
  .hs-grid { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); }
  .hero-scene h1 { font-size: clamp(36px, calc(4.2vw - 3px), 54px); }
  .hs-lead { max-width: none; }
  .sr-badge { white-space: nowrap; }
  /* обе кнопки в колонку текста не помещаются – одна под другой одинаковой ширины, а не «лесенкой» */
  .hs-cta { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 330px; }
  .hs-cta .btn { justify-content: center; }
}
/* столбиком: заголовок в две строки, кнопки рядом */
@media (min-width: 600px) and (max-width: 959px) { .hero-scene h1 { font-size: clamp(36px, 5.6vw, 50px); } .sr-badge { white-space: nowrap; } }
/* телефон: кнопки во всю ширину, на фото без карточек – касание сразу ведёт в раздел */
@media (max-width: 599px) {
  .hero-scene h1 { font-size: clamp(28px, 8.2vw, 40px); }
  .hs-sub { font-size: .56em; }
  .hs-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hs-cta .btn { height: 48px; justify-content: center; }
  .hero-scene .spot i::after { inset: -4px; }
}
/* компьютер: первый экран – текст, фото зала и преимущества; каталог начинается ниже сгиба */
@media (min-width: 1025px) { .hero-scene + .usp { padding-top: 20px; padding-bottom: 88px; } }

/* «Наши работы» и «Ваши менеджеры» на главной (появляются, когда в home.json есть данные) */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work { margin: 0; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.work img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work figcaption { display: grid; gap: 4px; padding: 14px 16px 16px; }
.work figcaption b { font-size: 16px; }
.work figcaption span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mgr { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.mgr img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.mgr b { display: block; font-size: 16px; }
.mgr > div > span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.mgr-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.mgr-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 600; }
.mgr-links a:hover { color: var(--orange-700); }
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }

/* ===================== Статья блога (18.10.2026) =====================
   Обложка над текстом, время чтения, оглавление сбоку (на телефоне – сворачивается), ширина строки для чтения */
.art { max-width: 1040px; margin: 0 auto; padding: 8px 0 28px; }
.art-head { max-width: 760px; margin: 0 auto 20px; }
.art.has-toc .art-head { max-width: 860px; margin-left: 0; }
.art:not(.has-toc) .art-head { max-width: 1040px; }
.art-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.art-meta span::before { content: "·"; margin-right: 10px; }
.art-head h1 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; }
.art-cover { margin: 0 0 32px; border-radius: 24px; overflow: hidden; background: var(--bg-2); }
.art-cover img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; }
.art.has-toc .art-layout { grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: start; }
.art-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.art-toc summary { list-style: none; cursor: default; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 9px; }
.art-toc a { color: var(--ink-2); line-height: 1.35; display: block; }
.art-toc a:hover, .art-toc a.is-on { color: var(--orange-700); }
.art-body { font-size: 17.5px; line-height: 1.72; max-width: none; color: var(--ink-2); }
.art-body > * + * { margin-top: 16px; }
.art-body > p:first-child { font-size: 19.5px; line-height: 1.6; color: var(--ink); }
.art-body h2 { font-size: 27px; line-height: 1.25; margin-top: 44px; scroll-margin-top: calc(var(--header-h) + 20px); letter-spacing: -.01em; }
.art-body h3 { font-size: 20px; margin-top: 30px; }
.art-body img { display: block; width: 100%; border-radius: 18px; margin: 24px 0; }
.art-body p:has(> img:only-child) { margin: 0; }
.art-body li + li { margin-top: 8px; }
.art-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--orange); background: var(--surface); border-radius: 0 14px 14px 0; color: var(--ink); }
.art-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.art-body td, .art-body th { border: 1px solid var(--line); padding: 8px 10px; }
.art-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.art.has-toc .art-foot { margin-left: calc(240px + 56px); }
.art ~ .article-cta { max-width: 1040px; }
@media (max-width: 1100px) {
  .art.has-toc .art-layout { grid-template-columns: minmax(0, 760px); justify-content: center; gap: 0; }
  .art.has-toc .art-head, .art.has-toc .art-foot { margin-left: auto; margin-right: auto; max-width: 760px; }
  .art-toc { position: static; margin-bottom: 24px; padding: 14px 18px; border-radius: 16px; background: var(--surface); }
  .art-toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; }
  .art-toc summary::after { content: "+"; font-weight: 400; color: var(--muted); }
  .art-toc details[open] summary { margin-bottom: 10px; }
  .art-toc details[open] summary::after { content: "–"; }
}
@media (max-width: 768px) {
  .art-head h1 { font-size: 27px; }
  .art-cover { margin: 0 calc(-1 * var(--gutter)) 22px; border-radius: 0; }
  .art-cover img { aspect-ratio: 16 / 10; }
  .art-body { font-size: 16.5px; line-height: 1.68; }
  .art-body > p:first-child { font-size: 17.5px; }
  .art-body h2 { font-size: 22px; margin-top: 34px; }
  .art-body h3 { font-size: 18px; }
  .art-body img { border-radius: 14px; }
}

/* ===================== Телефон: корзина, нижние панели, шапка (18.10.2026) ===================== */
.b-submit, .add-note { display: none; }
.add-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; color: var(--orange-700); }
@media (max-width: 768px) {
  /* нижние панели: над панелью браузера и «полоской» айфона; при открытой клавиатуре уезжают */
  .b-bar, .buy-bar { bottom: var(--vv-bottom, 0px) !important; padding-bottom: calc(10px + max(env(safe-area-inset-bottom), 6px)) !important;
    transition: transform 260ms var(--ease), bottom 160ms linear; }
  html.kbd-open .b-bar, html.kbd-open .buy-bar { transform: translateY(130%) !important; }
  /* кнопка оформления внизу формы – на случай, если нижняя панель скрыта */
  .b-submit { display: flex; margin-top: 16px; }
  .b-recent { display: none !important; }
  /* шапка: строка поиска прячется при прокрутке вниз */
  .header .search { max-height: 64px; transition: max-height 240ms var(--ease), opacity 180ms var(--ease), margin 240ms var(--ease); }
  .header.is-compact .search { max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
  .header.is-compact .header-row { padding-bottom: 6px; }
  .header-row { transition: padding 240ms var(--ease); }
}
.add-note[hidden], .field[hidden] { display: none !important; }
@media (max-width: 768px) { .basket-aside .summary > .btn-primary { display: none; } }
/* самые узкие телефоны (320–360): шапка в одну строку – меньше зазоры и логотип; точки на фото помельче */
@media (max-width: 360px) {
  .header-row { gap: 8px; }
  .logo-svg, .header .logo-svg { height: 24px; }
  .header-actions .btn-icon { width: 36px; }
  .hero-scene .spot i { width: 20px; height: 20px; font-size: 9.5px; }
  .sr-badge { font-size: 10.5px; }
}

/* ===================== Первый экран – моноблок (19.10.2026, вечер) =====================
   Одна белая плашка: текст слева, фото зала справа внутри неё (фото «вырастает» из блока, отступ – как рамка).
   Шире 1100 px – рядом (фото ~62 %, высота фото подтягивается к тексту, site.js), уже – текст сверху, фото снизу.
   Преимущества – сразу под блоком, без большого отступа */
.hs-block { background: var(--surface); border-radius: clamp(20px, 2vw, 30px); padding: clamp(8px, 1vw, 14px);
  box-shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 24px 60px -36px rgba(60, 40, 20, .35); gap: 0; align-items: stretch; }
.hs-block .hs-copy { padding: clamp(18px, 2.4vw, 40px) clamp(12px, 2.2vw, 36px) clamp(18px, 2.4vw, 36px); align-self: center; }
.hs-block .showroom-wrap { align-self: center; border-radius: clamp(14px, 1.5vw, 22px); }
.hero-scene .hs-block .showroom { border-radius: clamp(14px, 1.5vw, 22px); }
@media (min-width: 960px) and (max-width: 1099px) {
  .hs-grid.hs-block { grid-template-columns: minmax(0, 1fr); }
  .hs-block .hs-copy { max-width: 760px; }
  .hs-block .hs-cta { display: flex; max-width: none; }
  .hero-scene .hs-block h1 { font-size: clamp(36px, 4.6vw, 48px); }
}
@media (min-width: 1100px) {
  .hs-grid.hs-block { grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); }
  .hs-block .hs-copy { padding-left: clamp(18px, 2.2vw, 34px); padding-right: clamp(14px, 1.6vw, 26px); }
  .hero-scene .hs-block h1 { font-size: clamp(32px, calc(3.4vw - 4px), 45px); }
  .hs-block .hs-lead { font-size: clamp(15px, 1.2vw, 17px); }
  .hs-block .hs-cta { max-width: 320px; }
}
@media (max-width: 959px) { .hs-block .hs-copy { padding-bottom: 20px; } }
@media (max-width: 599px) { .hs-block { padding: 6px; } .hs-block .hs-copy { padding: 16px 12px 16px; } }
.hero-scene { padding-bottom: clamp(8px, 1.2vw, 16px); }
@media (min-width: 1025px) { .hero-scene + .usp { padding-top: 28px; padding-bottom: 36px; } }
/* плашка cookie: спрятанная – невидима (видимость гаснет после ухода за край), чтобы при смене ширины окна
   не было видно, как она переезжает снизу наверх; [hidden] – после выбора её нет совсем */
.cookie { visibility: hidden; transition: transform 500ms var(--ease), visibility 0s linear 500ms; }
.cookie.is-on { visibility: visible; transition: transform 500ms var(--ease), visibility 0s; }
.cookie[hidden] { display: none; }
/* компьютер: первый экран на всю высоту окна (min-height ставит site.js), блок по центру, преимущества – у нижнего края */
@media (min-width: 1100px) {
  .hero-scene { display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
  .hero-scene > .container { width: 100%; }
  .hero-scene .hs-block h1 { font-size: clamp(34px, calc(3.5vw - 4px), 50px); }
  .hs-block .hs-sub { font-size: .52em; }
  .hs-block .hs-lead { font-size: clamp(16px, 1.25vw, 18px); }
  .hs-block .hs-cta { max-width: 340px; }
  .hs-block .hs-cta .btn { height: 56px; }
  .hero-scene + .usp { padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .hs-grid.hs-block { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .hero-scene .hs-block h1 { font-size: clamp(32px, calc(3.1vw - 2px), 46px); }
}

/* ===================== Первый экран: фото зала на всю ширину (19.10.2026, вариант C) =====================
   Фото – на весь экран, текст светлый на тёплом затемнении слева (там в кадре пустая стена, оборудование – справа).
   Блок прилегает к шапке и к полосе преимуществ, высоту и кадрирование ставит site.js.
   Прежние варианты сохранены в git: ветки keep/hero-monoblock-2026-10-19 и keep/hero-card-2026-10-19 */
@media (min-width: 1100px) {
  .hv-bleed { --hv-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding: 0; justify-content: stretch; }
  .hv-bleed > .container { max-width: none; padding: 0; flex: 1; display: flex; flex-direction: column; }
  .hv-bleed .hs-grid.hs-block { flex: 1; border-radius: 0; padding: 0; box-shadow: none; background: var(--surface); gap: 0; align-items: stretch;
    grid-template-columns: calc(var(--hv-left) + min(520px, 36vw)) minmax(0, 1fr); }
  .hv-bleed .hs-block .hs-copy { align-self: center; padding: 40px clamp(28px, 3vw, 56px) 40px var(--hv-left); position: relative; z-index: 3; }
  .hv-bleed .hs-block .showroom-wrap { align-self: stretch; height: 100%; border-radius: 0; position: relative; }
  .hero-scene.hv-bleed .hs-block .showroom { height: 100%; aspect-ratio: auto; border-radius: 0; }
  .hero-scene.hv-bleed .hs-block h1 { font-size: clamp(40px, calc(3.6vw - 2px), 58px); }
  .hv-bleed .hs-block .hs-sub { font-size: .5em; }
  .hv-bleed .hs-block .hs-lead { font-size: clamp(16px, 1.3vw, 19px); max-width: 30ch; }
  .hv-bleed .hs-block .hs-cta { display: flex; flex-wrap: wrap; max-width: none; }
  .hv-bleed .hs-block .hs-cta .btn { height: 56px; }
  .hv-bleed .sr-badge { left: auto; right: max(18px, calc(var(--hv-left) - 6px)); }
  .hero-scene .spot.is-under { display: none; }
  /* c: фото на весь экран, текст светлый на тёплом затемнении слева */
  .hv-c .hs-grid.hs-block { grid-template-columns: minmax(0, 1fr); background: var(--ink); }
  .hv-c .hs-block .hs-copy, .hv-c .hs-block .showroom-wrap { grid-area: 1 / 1; }
  .hv-c .hs-block .hs-copy { justify-self: start; max-width: calc(var(--hv-left) + 540px); }
  .hv-c .showroom-wrap::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, rgba(23, 16, 11, .88) 0%, rgba(23, 16, 11, .8) 26%, rgba(23, 16, 11, .45) 38%, rgba(23, 16, 11, 0) 50%); }
  .hv-c .hs-block h1, .hv-c .hs-block .hs-sub { color: #fff; }
  .hv-c .hs-block h1 em { color: #ff8a4e; }
  .hv-c .hs-block .hs-lead { color: rgba(255, 255, 255, .88); }
  .hv-c .hs-block .hs-cta .btn-outline { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .hv-c .hs-block .hs-cta .btn-outline:hover { background: rgba(255, 255, 255, .16); }
}
/* точка за краем кадра или под текстом (site.js) – не показываем на любой ширине */
.hero-scene .spot.is-under { display: none; }

/* первый экран, 19.10.2026 вечер: крупнее текст; телефон – фото 3:2 по правой части кадра (оборудование, без пустой стены) */
@media (min-width: 1100px) {
  .hv-c .hs-block .hs-copy { max-width: calc(var(--hv-left) + 580px); }
  .hero-scene.hv-bleed .hs-block h1 { font-size: clamp(44px, calc(4vw - 2px), 62px); }
  .hv-bleed .hs-block .hs-sub { font-size: .46em; margin-top: .5em; }
  .hv-bleed .hs-block .hs-lead { font-size: clamp(17px, 1.4vw, 21px); max-width: 32ch; }
}
@media (max-width: 1099px) {
  .hero-scene.hv-bleed .showroom { aspect-ratio: 3 / 2; }
}
@media (max-width: 599px) {
  .hero-scene.hv-bleed h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .hv-bleed .hs-sub { font-size: .52em; }
  .hv-bleed .hs-lead { font-size: 16.5px; }
}
/* мягкое затемнение – основной вариант (19.10.2026) */
@media (min-width: 1100px) {
  .hv-soft .showroom-wrap::before { background: linear-gradient(90deg, rgba(23, 16, 11, .66) 0%, rgba(23, 16, 11, .5) 26%, rgba(23, 16, 11, .2) 40%, rgba(23, 16, 11, 0) 52%); }
  .hv-soft .hs-block h1, .hv-soft .hs-block .hs-sub, .hv-soft .hs-block .hs-lead { text-shadow: 0 2px 18px rgba(23, 16, 11, .45); }
}

/* ===================== Единый стиль на телефоне и планшете (19.10.2026) =====================
   Первый экран – тот же тёплый тёмный тон, что затемнение на компьютере: текст светлый сверху, фото зала под ним
   во всю ширину и «вырастает» из тёмного (мягкий переход сверху). Блок «Оснащаем магазины…» – тем же тоном. */
:root { --hero-dark: #41372e; }
.b2b { background: linear-gradient(120deg, #3a3028 0%, var(--hero-dark) 55%, #56483c 100%); }
@media (max-width: 1099px) {
  .hero-scene.hv-bleed { padding: 0; }
  .hv-bleed > .container { max-width: none; padding: 0; }
  .hv-bleed .hs-grid.hs-block { border-radius: 0; padding: 0; gap: 0; box-shadow: none; background: var(--hero-dark); }
  .hv-bleed .hs-block .hs-copy { padding: 26px var(--gutter) 20px; max-width: none; }
  .hv-bleed .hs-block h1, .hv-bleed .hs-block .hs-sub { color: #fff; }
  .hv-bleed .hs-block h1 em { color: #ff8a4e; }
  .hv-bleed .hs-block .hs-lead { color: rgba(255, 255, 255, .86); }
  .hv-bleed .hs-block .hs-cta .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
  .hv-bleed .hs-block .showroom-wrap { border-radius: 0; position: relative; animation: none; }
  .hero-scene.hv-bleed .hs-block .showroom { border-radius: 0; }
  .hv-bleed .showroom-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24%; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, var(--hero-dark) 0%, rgba(65, 55, 46, 0) 100%); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hero-scene.hv-bleed .showroom { aspect-ratio: 2.1 / 1; }
  .hv-bleed .hs-block .hs-copy { padding: 40px var(--gutter) 28px; }
}

/* телефон: плитки разделов – компактные строки (фото 52 px + название), карточки товаров в ленте – вдвое уже */
@media (max-width: 599px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-tile { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "img name" "img count"; column-gap: 10px; row-gap: 2px;
    padding: 8px 10px 8px 8px; align-items: center; border-radius: 14px; }
  .cat-tile .cat-img { margin: 0; width: 52px; height: 52px; aspect-ratio: 1; border-radius: 10px; }
  .cat-tile::after { display: none; }
  .cat-tile b { font-size: 13.5px; line-height: 1.2; padding: 0; align-self: end; }
  .cat-tile span { font-size: 12px; padding: 0; align-self: start; }
  .product-row .card { flex: 0 0 46vw; max-width: 200px; }
  .product-row .card-price b { font-size: 17px; }
  .product-row .card-opt { font-size: 12px; }
  .product-row .card-name { font-size: 13px; }
  .product-row .card-sku, .product-row .card-meta { font-size: 11.5px; }
  .product-row .card-meta { white-space: normal; }
  .product-row .card-wish { width: 30px; height: 30px; }
  .product-row .card-actions { height: 46px; padding-top: 8px; }
  .product-row .card-actions .btn-add { height: 38px; font-size: 13px; }
}
/* компьютер: колонка текста не шире 41 % окна (дальше в кадре оборудование), заголовок подстраивается под неё */
@media (min-width: 1100px) {
  .hv-c .hs-block .hs-copy { max-width: min(calc(var(--hv-left) + 580px), 41vw); padding-right: 24px; }
  .hero-scene.hv-bleed .hs-block h1 { font-size: clamp(36px, calc((41vw - var(--hv-left) - 24px) / 8.4), 62px); }
}
/* каталог и сетки товаров на телефоне – компактнее (19.10.2026): раздел – фото 56 px, 3 подраздела; карточки товаров
   в любой сетке – как в ленте на главной */
.dept-subs .more-m { display: none; }
@media (max-width: 599px) {
  .dept-grid { gap: 8px; }
  .dept { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; align-items: start; }
  .dept-img { border-radius: 10px; }
  .dept-name { font-size: 15px; }
  .dept-n { margin: 1px 0 5px; font-size: 12px; }
  .dept-subs { gap: 3px 10px; font-size: 12.5px; }
  .dept-subs .sx, .dept-subs .more:not(.more-m) { display: none; }
  .dept-subs .more-m { display: inline-flex; }
  .card { padding: 5px 5px 8px; border-radius: 14px; }
  .card-media { border-radius: 10px; }
  .card-body { gap: 3px; padding: 9px 4px 0; }
  .card-price b { font-size: 17px; }
  .card-price .unit, .card-opt { font-size: 12px; }
  .card-name { font-size: 13px; }
  .card-sku, .card-meta { font-size: 11.5px; }
  .card-meta { white-space: normal; }
  .card-wish { width: 30px; height: 30px; top: 6px; right: 6px; }
  .card-actions { height: 46px; padding-top: 8px; }
  .card-actions .btn-add { height: 38px; font-size: 13px; border-radius: 10px; }
}
/* планшет: 10 разделов – ровными рядами (900–1099: 5 в ряд; 600–899: компактные строки по 2, как на телефоне) */
@media (min-width: 900px) and (max-width: 1099px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .cat-tile b { font-size: 14px; } }
@media (min-width: 600px) and (max-width: 899px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img name" "img count"; column-gap: 12px; row-gap: 2px;
    padding: 10px 12px 10px 10px; align-items: center; border-radius: 16px; }
  .cat-tile .cat-img { margin: 0; width: 64px; height: 64px; aspect-ratio: 1; border-radius: 12px; }
  .cat-tile::after { display: none; }
  .cat-tile b { font-size: 15px; line-height: 1.2; padding: 0; align-self: end; }
  .cat-tile span { font-size: 12.5px; padding: 0; align-self: start; }
}
/* плашка cookie: «Отказаться» и «Согласен» рядом (19.10.2026) */
.cookie-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie .cookie-btns .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .cookie { flex-wrap: wrap; } .cookie-btns { width: 100%; } .cookie-btns .btn { flex: 1 1 0; } }
/* точки на фото зала: зона наведения и касания шире самого кружка (невидимый круг 52 px, на телефоне 40 px) */
.hero-scene .spot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; }
@media (max-width: 1099px) { .hero-scene .spot::before { width: 40px; height: 40px; } }

/* ===================== Телефон, финальная вёрстка (19.10.2026) ===================== */
@media (max-width: 768px) {
  /* шапка: сетка «меню – логотип – действия», поиск отдельной строкой; при прокрутке поиск сворачивается без остатка.
     Над шапкой – подложка её цвета: в Safari верхняя панель прозрачная, без подложки под ней просвечивала страница */
  .header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 240px; background: var(--surface); pointer-events: none; }
  .header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "burger logo actions" "search search search";
    align-items: center; column-gap: 6px; row-gap: 10px; padding: 8px 0 10px; transition: row-gap 240ms var(--ease), padding 240ms var(--ease); }
  .header-row > .burger { grid-area: burger; margin-left: -6px; }
  .header-row > .logo { grid-area: logo; justify-self: start; display: flex; align-items: center; }
  .header-row > .header-actions { grid-area: actions; margin: 0 -4px 0 0; }
  .header-row > .search { grid-area: search; }
  .header-row > .catalog-btn, .header-row > .hdr-phone { display: none; }
  .header.is-compact .header-row { row-gap: 0; padding-bottom: 8px; }
  .header.is-compact .search { max-height: 0; }

  /* заголовки разделов: крупный заголовок, ссылка «Все …» – маленькая, справа в его строке */
  .section { padding: 30px 0; }
  .section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; row-gap: 4px; margin-bottom: 14px; }
  .section-head > div { display: contents; }
  .section-head h2 { grid-column: 1; grid-row: 1; font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
  .section-head p { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
  .section-head .link-more { grid-column: 2; grid-row: 1; font-size: 13.5px; font-weight: 600; color: var(--orange-700); white-space: nowrap; }
  .section-head .link-more::after { content: "→"; margin-left: 4px; }

  /* преимущества – одна белая плашка 2×2 с тонкими разделителями */
  .usp, .hero-scene + .usp { padding: 14px 0 0; }
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
  .usp-item { grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; padding: 12px 12px 12px 12px; }
  .usp-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .usp-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .usp-ico { width: 20px; height: 20px; }
  .usp-item b { font-size: 13.5px; line-height: 1.25; }
  .usp-item span { font-size: 12px; line-height: 1.35; margin-top: 2px; }
}
@media (max-width: 599px) {
  /* каталог – лента плиток: фото квадратом, название в две строки */
  .cat-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 132px; display: flex; flex-direction: column; padding: 8px 8px 10px; border-radius: 14px; scroll-snap-align: start; }
  .cat-tile .cat-img { order: -1; width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 8px; border-radius: 10px; }
  .cat-tile b { font-size: 13px; line-height: 1.2; min-height: 2.4em; padding: 0 2px; }
  .cat-tile span { font-size: 11.5px; padding: 0 2px; margin-top: 2px; }

  /* товары в ленте – уже, чтобы было видно больше */
  .product-row .card { flex: 0 0 41vw; max-width: 176px; }
  .product-row .card-actions .btn-add { font-size: 12.5px; }

  /* статьи – списком: картинка слева, дата и заголовок справа, три штуки */
  .blog-grid { display: grid; grid-template-columns: 1fr; gap: 8px; overflow: visible; margin: 0; padding: 0; }
  .blog-grid .post { flex: none; max-width: none; flex-direction: row; align-items: center; border-radius: 14px; }
  .blog-grid .post img { flex: 0 0 104px; width: 104px; height: 78px; aspect-ratio: auto; }
  .blog-grid .post-body { padding: 8px 12px; }
  .blog-grid .post-body h3 { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-grid .post-body time { font-size: 11.5px; }
  .blog-grid .post:nth-child(n+4) { display: none; }
}
/* телефон: плашка cookie – всплывающая карточка снизу (над нижними панелями товара и корзины), а не полоса вверху */
@media (max-width: 768px) {
  .cookie, body:has(.buy-bar) .cookie, body:has(.b-bar) .cookie {
    top: auto; left: 10px; right: 10px; max-width: none; margin: 0;
    bottom: calc(var(--vv-bottom, 0px) + max(env(safe-area-inset-bottom), 8px) + 10px);
    flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px 12px; border-radius: 18px;
    box-shadow: 0 18px 50px -12px rgba(36, 26, 20, .45), 0 0 0 1px var(--line); transform: translateY(calc(100% + 40px)); }
  body:has(.buy-bar) .cookie, body:has(.b-bar) .cookie { bottom: calc(var(--vv-bottom, 0px) + max(env(safe-area-inset-bottom), 8px) + 84px); }
  .cookie.is-on, body:has(.buy-bar) .cookie.is-on, body:has(.b-bar) .cookie.is-on { transform: none; }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1 1 0; height: 42px; }
}
@media (max-width: 768px) { .cookie .cookie-btns .btn { flex: 1 1 0; } }
@media (max-width: 599px) { .cat-grid .cat-tile b, .cat-grid .cat-tile span { align-self: stretch; text-align: left; } }

/* телефон: полный логотип с подписью; первый экран, где текст над фото, – в фирменном рыжем (на компьютере, где текст
   на фото, – тёмное затемнение) (19.10.2026) */
@media (max-width: 768px) { .header .logo-svg { height: 34px; } }
@media (max-width: 380px) { .header .logo-svg { height: 30px; } }
@media (max-width: 340px) { .header .logo-svg { height: 26px; } }
@media (max-width: 1099px) {
  .hv-bleed .hs-grid.hs-block { background: var(--orange); }
  .hv-bleed .hs-block h1 em { color: #2a1a10; }
  .hv-bleed .hs-block .hs-sub { color: #fff; }
  .hv-bleed .hs-block .hs-lead { color: rgba(255, 255, 255, .94); }
  .hv-bleed .hs-block .hs-cta .btn-primary { background: #fff; color: var(--orange-700); box-shadow: 0 10px 24px -14px rgba(60, 20, 0, .5); }
  .hv-bleed .hs-block .hs-cta .btn-primary:hover { background: var(--orange-50); }
  .hv-bleed .hs-block .hs-cta .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .75); color: #fff; }
  .hv-bleed .showroom-wrap::before { background: linear-gradient(180deg, var(--orange) 0%, rgba(216, 92, 40, 0) 100%); height: 18%; }
}

/* телефон (19.10.2026, вечер): шапка закреплена сверху (fixed, сплошной фон) – Safari 26 продолжает её цвет под своей
   прозрачной верхней панелью, и страница там больше не просвечивает; первый экран над фото – светлый, в тон фона сайта */
@media (max-width: 768px) {
  .header { position: fixed; top: 0; left: 0; right: 0; }
  .header::before { content: none; }
  body { padding-top: var(--hdr-h, 118px); }
}
@media (max-width: 1099px) {
  .hv-bleed .hs-grid.hs-block { background: var(--bg); }
  .hv-bleed .hs-block h1, .hv-bleed .hs-block .hs-sub { color: var(--ink); }
  .hv-bleed .hs-block h1 em { color: var(--orange); }
  .hv-bleed .hs-block .hs-lead { color: var(--ink-2); }
  .hv-bleed .hs-block .hs-cta .btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -14px rgba(216, 92, 40, .7); }
  .hv-bleed .hs-block .hs-cta .btn-primary:hover { background: var(--orange-600); }
  .hv-bleed .hs-block .hs-cta .btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
  .hv-bleed .showroom-wrap::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(243, 236, 225, 0) 100%); height: 16%; }
}
@media (max-width: 768px) { html { scroll-padding-top: calc(var(--hdr-h, 118px) + 8px); } }

/* каталог на всю ширину (20.10.2026): содержимое – по сетке страницы, как шапка. Старый отступ списка
   «(100vw − container) / 2» остался от узкой панели и на широких мониторах съедал колонку разделов целиком */
@media (min-width: 769px) {
  .mega > .container { max-width: var(--container); padding: 0 var(--gutter); }
  .mega-list { padding-left: 0; }
}

/* ---------- карточка товара: фото на весь экран (лайтбокс) ----------
   Клик по фото или кнопка-лупа открывают просмотр; листание стрелками и свайпом, клик по фото – увеличение,
   закрытие по Esc, крестику и нажатию вне фото. Без внешних библиотек (site.js). */
.gallery-main img { cursor: zoom-in; }
.gal-zoom { position: absolute; left: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 251, 245, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity var(--t-fast), background var(--t-fast); }
.gal-zoom:hover { background: #fff; }
.gallery-main:hover .gal-zoom, .gal-zoom:focus-visible { opacity: 1; }
@media (hover: none) { .gal-zoom { opacity: 1; } }
.lb { position: fixed; inset: 0; z-index: calc(var(--z-toast) + 5); background: rgba(27, 26, 24, .94); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease); }
.lb.is-on { opacity: 1; pointer-events: auto; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-out; }
.lb-stage img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); width: auto; height: auto; border-radius: 8px; background: #f3f2ef; cursor: zoom-in; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; transform-origin: center; transition: transform 280ms var(--ease), opacity 200ms var(--ease); will-change: transform; }
.lb-stage img.is-wait { opacity: 0; }
.lb.is-zoom .lb-stage img { cursor: grab; }
.lb.is-drag .lb-stage img { cursor: grabbing; transition: opacity 200ms var(--ease); }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--t-fast); }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 12px; pointer-events: none; white-space: nowrap; }
.lb-hint { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 13px; pointer-events: none; white-space: nowrap; animation: lbHint 3.2s var(--ease) forwards; }
@keyframes lbHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 768px) {
  .gal-zoom { display: none; }
  .lb-prev, .lb-next, .lb-hint { display: none; }
  .lb-close { top: 12px; right: 12px; }
  .lb-stage img { max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .lb-count { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .lb, .lb-stage img { transition: none; } .lb-hint { animation: none; opacity: 0; } }

/* ===================== Онлайн-чат: кнопка в правом нижнем углу (20.10.2026) =====================
   Окно – assets/css/chat.css, грузится по нажатию вместе с chat.js. Плашка cookie на компьютере – слева внизу;
   на телефоне она снизу во всю ширину – пока она открыта, site.js поднимает кнопку над ней. Нижние панели
   «В корзину» и «Оформить» на телефоне кнопка обходит сверху, при открытой клавиатуре – прячется */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 6px;
  border-radius: var(--r-pill); background: #241a14; color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -12px rgba(36, 26, 20, .5), 0 2px 6px rgba(36, 26, 20, .12);
  transition: background var(--t-fast), transform var(--t-fast), opacity 200ms var(--ease), bottom 260ms var(--ease); }
/* значок – в терракотовом круге (21.10.2026, в тон шапке окна чата) */
.chat-fab::before { content: ""; position: absolute; left: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); transition: background var(--t-fast); }
.chat-fab:hover { background: #3a2c22; }
.chat-fab:hover::before { background: var(--orange-600); }
.chat-fab:active { transform: scale(.97); }
.chat-fab:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: var(--r-pill); }
.chat-fab .icon { position: relative; width: 22px; height: 22px; margin: 0 9px; }
.chat-fab.is-loading .icon { animation: chat-wait 1s ease-in-out infinite; }
.chat-fab.is-open { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-fab-dot { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--orange);
  color: #fff; font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.chat-fab-dot[hidden] { display: none; }
@keyframes chat-wait { 50% { opacity: .35; } }
@media (max-width: 768px) {
  .chat-fab { right: 14px; bottom: calc(var(--vv-bottom, 0px) + 14px + env(safe-area-inset-bottom)); width: 52px; padding: 0; justify-content: center; }
  .chat-fab-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body:has(.buy-bar) .chat-fab, body:has(.b-bar:not([hidden])) .chat-fab { bottom: calc(var(--vv-bottom, 0px) + 84px + env(safe-area-inset-bottom)); }
  html.kbd-open .chat-fab { opacity: 0; pointer-events: none; }
  .footer-bottom { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .chat-fab.is-loading .icon { animation: none; } }

/* ===================== Первый экран на планшете и узком ноутбуке, 700–1099 px (21.10.2026) =====================
   Заголовок крупно слева, подзаголовок и кнопки справа; фото во всю ширину, пустая стена слева срезана (site.js). */
@media (min-width: 700px) and (max-width: 1099px) {
  .hero-scene.hv-bleed .hs-grid.hs-block { background: var(--bg); }
  .hero-scene.hv-bleed .hs-block .hs-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px);
    align-items: end; padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(22px, 3vw, 32px); }
  .hero-scene.hv-bleed .hs-block h1 { grid-column: 1; grid-row: 1 / span 2; align-self: center; font-size: clamp(40px, 5.6vw, 58px);
    line-height: 1.02; color: var(--ink); text-shadow: none; }
  .hero-scene.hv-bleed .hs-block h1 em { color: var(--orange); }
  .hero-scene.hv-bleed .hs-block .hs-sub { font-size: .44em; margin-top: .55em; color: var(--ink); text-shadow: none; }
  .hero-scene.hv-bleed .hs-block .hs-lead { grid-column: 2; grid-row: 1; margin: 0 0 16px; max-width: 32ch; font-size: clamp(16px, 1.8vw, 18px);
    color: var(--ink-2); text-shadow: none; }
  .hero-scene.hv-bleed .hs-block .hs-cta { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
    margin: 0; max-width: 340px; }
  .hero-scene.hv-bleed .hs-block .hs-cta .btn { height: 54px; justify-content: center; }
  .hero-scene.hv-bleed .hs-block .hs-cta .btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
  .hero-scene.hv-bleed .showroom { aspect-ratio: 2.2 / 1; }
  /* как на телефоне: фото мягко «вырастает» из фона сверху, без резкого края */
  .hv-bleed .showroom-wrap::before { display: block; height: 26%;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(243, 236, 225, .55) 45%, rgba(243, 236, 225, 0) 100%); }
}

/* Отложить (21.10.2026): на карточке в ленте – поверх ссылки карточки (раньше клик уводил на товар);
   на странице товара – в блоке цены справа, а не на фото */
/* фото карточки изолировано (isolation) и лежало под растянутой ссылкой названия: поднимаем фото над ссылкой,
   само фото пропускает клик к ссылке (pointer-events), кнопки на фото – ловят свои */
.card > .card-media { z-index: 2; pointer-events: none; }
.card > .card-media .card-wish, .card > .card-media .card-quick, .card > .card-media a, .card > .card-media button { pointer-events: auto; }
.pdp .buybox { position: sticky; }
@media (max-width: 1200px) { .pdp .buybox { position: relative; } }
.pdp .buybox .pb-wish { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; opacity: 1; transform: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.pdp .buybox .pb-wish:hover { transform: scale(1.06); }
.pdp .buybox .pb-wish .icon { width: 20px; height: 20px; }
@media (min-width: 769px) { .pdp .buybox .pb-price { padding-right: 52px; } }

/* ---------- плавная загрузка (21.10.2026) ----------
   Первый экран сразу нужной высоты и с кадром на своём месте – до site.js (он потом только уточняет до пикселя),
   поэтому блоки ниже не прыгают. Фото зала проявляется, когда site.js поставил кадр и картинка декодирована;
   без скрипта – само через 3 с. Точки появляются после фото */
@media (min-width: 1100px) { .hero-scene.hv-bleed { min-height: max(520px, calc(100vh - 205px)); } }
@media (min-width: 1100px) and (max-width: 1279px) { .hero-scene.hv-bleed { min-height: max(520px, calc(100vh - 226px)); } }
.hero-scene .sr-in { width: auto; height: auto; min-width: 100%; min-height: 100%; aspect-ratio: 1983 / 793; }
@media (max-width: 1099px) { .hero-scene .sr-in { left: auto; right: 0; transform: translateY(-50%); } }
@media (min-width: 700px) and (max-width: 1099px) { .hero-scene .sr-in { min-width: 130%; } }
.hero-scene .sr-in > img { opacity: 0; animation: srShow 400ms var(--ease) 3s forwards; }
.hero-scene .sr-in.is-ready > img { opacity: 1; animation: none; transition: opacity 520ms var(--ease); }
.hero-scene .sr-in:not(.is-ready) .spot { animation-play-state: paused; }
@keyframes srShow { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-scene .sr-in > img { transition: none; } }
/* кнопка чата поднимается над плашкой cookie сдвигом, а не сменой bottom – без перерасчёта раскладки */
.chat-fab { translate: 0 calc(-1 * var(--fab-lift, 0px)); transition: background var(--t-fast), transform var(--t-fast), opacity 200ms var(--ease), translate 260ms var(--ease); }
/* лайк в карточке товара: на компьютере – справа в блоке цены, на телефоне – на фото справа сверху, как в маркетплейсах */
.pdp .g-wish { display: none; }
@media (max-width: 768px) {
  .pdp .buybox .pb-wish { display: none; }
  .pdp .g-wish { display: grid; position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; opacity: 1; transform: none; }
  .pdp .g-wish .icon { width: 21px; height: 21px; }
}

/* ---------- корзина: строка товара по-маркетплейсному (21.10.2026) ----------
   Название и «Арт. · в наличии», справа сверху – «отложить» и «удалить» значками; ниже сумма и количество в одну строку,
   под суммой – цена за штуку и оптовая в скобках, всегда одной строкой */
.b-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-unit { white-space: nowrap; }
.b-unit .b-opt { font-size: inherit; }
@media (min-width: 769px) { .basket-row { grid-template-columns: 96px minmax(0, 1fr) 132px 196px; } }
@media (max-width: 768px) {
  .basket-row { position: relative; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img sum step" "img unit unit";
    align-items: center; gap: 6px 12px; padding: 14px 0; }
  .basket-row .b-img { grid-area: img; align-self: start; width: 76px; height: 76px; }
  .basket-row .b-info { grid-area: info; gap: 3px; padding-right: 84px; }
  .basket-row .b-name { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .basket-row .b-acts { position: absolute; top: 8px; right: -6px; margin: 0; gap: 0; }
  .basket-row .b-acts button { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; color: var(--muted); }
  .basket-row .b-acts button .icon { width: 20px; height: 20px; }
  .basket-row .b-acts button.is-on { color: var(--orange); }
  .basket-row .b-acts .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .basket-row .b-price { display: contents; }
  .basket-row .b-sum { grid-area: sum; font-size: 18px; text-align: left; }
  .basket-row .stepper.is-flex { grid-area: step; width: 116px; height: 36px; margin: 0; }
  .basket-row .b-unit { grid-area: unit; margin-top: -2px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .basket-row .b-unit .b-opt { color: var(--orange-700); font-weight: 600; }
  .basket-row .b-unit:empty { display: none; }

  /* порядок на телефоне: товары – итог («Ваш заказ») – оформление; итог раньше кнопки «Оформить заявку» */
  .basket-layout { display: flex; flex-direction: column; gap: 16px; }
  .basket-main { display: contents; }
  .basket-main > .b-card:first-child { order: 1; }
  .basket-aside { order: 2; }
  .basket-main > .b-checkout { order: 3; }
  .basket-main > .b-recent { order: 4; }
}

/* скидка – заметно: зелёная плашка в итоге и на полоске прогресса */
.summary .sum-row.is-disc { margin: 4px -10px; padding: 8px 10px; border-radius: 12px; background: var(--green-50); color: var(--green); font-weight: 600; }
.summary .sum-row.is-disc b { font-size: 16px; font-weight: 800; color: var(--green); }

/* карточка товара на телефоне: оптовая цена – оранжевой плашкой, процент – залитым значком */
@media (max-width: 768px) {
  .pdp .pb-opt:not(.is-ask) > div { align-items: center; }
  .pdp .pb-opt:not(.is-ask) b { font-size: 17px; }
  .pdp .pb-opt .pct-badge { background: var(--orange); color: #fff; padding: 2px 7px; border-radius: 8px; font-size: 13px; font-weight: 800; margin-left: 2px; }
}
/* плашка cookie (как у «Читай-города», 21.10.2026): на компьютере шире – текст в 2–3 строки */
@media (min-width: 769px) { .cookie { max-width: 860px; padding: 10px 10px 10px 16px; font-size: 13px; line-height: 1.4; gap: 16px; } }
/* телефон: компактно – текст в три строки мелким, кнопка ниже невысокая */
@media (max-width: 768px) {
  .cookie, body:has(.buy-bar) .cookie, body:has(.b-bar) .cookie { gap: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.35; border-radius: 14px; }
  .cookie-btns .btn, .cookie .cookie-btns .btn { height: 34px; font-size: 13px; }
}
.cookie .nw { white-space: nowrap; }

/* «Полезно знать» и «Вопросы и ответы» – под товарами раздела, на главной и в каталоге (src/section_texts.py, 22.10.2026).
   Вопросы – <details>, без скриптов; старый текст «О разделе» идёт ниже отдельным блоком */
.know { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.know.is-single { grid-template-columns: minmax(0, 76ch); }
.know.know-home { margin-top: 0; padding-top: 0; border-top: 0; }
.know-label { font-size: 14px; font-weight: 700; color: var(--orange-700); margin-bottom: 6px; }
.know-h { font-size: clamp(20px, 2vw, 26px); margin-bottom: 14px; }
.know-text { max-width: 68ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.know-text p + p { margin-top: 12px; }
.know-text a, .faq-a a { color: var(--orange-700); text-decoration: underline; text-underline-offset: 2px; }
.know-text a:hover, .faq-a a:hover { color: var(--orange); }
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--surface); border-radius: var(--r-ctl); box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--t-fast); }
.faq-item[open] { box-shadow: 0 0 0 1px var(--line-2); }
.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; font-size: 15px; line-height: 1.35; cursor: pointer; border-radius: var(--r-ctl); transition: color var(--t-fast); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--orange-700); }
.faq-item > summary .icon { color: var(--muted); transition: transform var(--t-med); }
.faq-item[open] > summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 16px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 68ch; }
@media (max-width: 1024px) { .know { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 768px) {
  .know { margin-top: 32px; padding-top: 24px; }
  .know-text { font-size: 15px; }
  .faq-item > summary { padding: 13px 14px; font-size: 14.5px; }
  .faq-a { padding: 0 14px 14px; font-size: 14.5px; }
}

/* «Товары по теме» под статьёй блога: 3–4 раздела каталога (build_all.related_block) */
.art-rel { max-width: 1040px; margin: 4px auto 28px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 899px) { .rel-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 599px) { .rel-grid .cat-tile b, .rel-grid .cat-tile span { align-self: stretch; text-align: left; } }

/* каталог в шапке: мягкое закрытие (22.10.2026) – зеркало megaIn; правило после .mega:not(.is-open) { display: none } */
.mega.is-closing { display: block; pointer-events: none; animation: megaOut 320ms cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes megaOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-40px); } }

/* «Контакты»: карта Яндекса по нажатию (22.10.2026) – до нажатия ни запросов, ни cookie Яндекса */
.ymap { position: relative; margin: 14px 0 6px; height: 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(216, 92, 40, .05), rgba(216, 92, 40, .05)), repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), var(--surface); }
.ymap-btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.ymap-btn .icon { width: 34px; height: 34px; color: var(--orange); filter: drop-shadow(0 6px 10px rgba(216, 92, 40, .35)); transition: transform var(--t-fast); }
.ymap-btn b { font-size: 16px; }
.ymap-btn span { font-size: 13px; color: var(--muted); }
.ymap-btn:hover .icon { transform: translateY(-3px); }
.ymap iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) { .ymap { height: 300px; } }
.topbar a.topbar-city { color: var(--muted); }  /* ссылка на Яндекс Карты; скрытие на узких экранах – правило выше */
.topbar a.topbar-city:hover { color: var(--orange); }
