/* TX52.RU — стили нового дизайна (из site-new/src/assets/css/main.css). Шрифты — через asset_url. Перенос: пункт 2.1. */
/* ==========================================================================
   TX52.RU — прототип нового сайта. Фирменный стиль: графит + оранжевый.
   ========================================================================== */


@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('https://cdn.insales-shop.ru/assets/1/4009/11915177/1795986051/tx-inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('https://cdn.insales-shop.ru/assets/1/4009/11915177/1795986051/tx-inter-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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('https://cdn.insales-shop.ru/assets/1/4009/11915177/1795986051/tx-oswald-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('https://cdn.insales-shop.ru/assets/1/4009/11915177/1795986051/tx-oswald-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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --orange: #ff5b13;
  --orange-600: #e94d08;
  --orange-50: #fff1ea;
  --ink: #161616;
  --ink-2: #1f1f1f;
  --ink-3: #2b2b2b;
  --ink-4: #3a3a3a;
  --text: #1c1c1c;
  --muted: #6a6a66;
  --line: #e4e3de;
  --bg: #f4f3ef;
  --surface: #fff;
  --ok: #1f8a4c;
  --warn: #b26a00;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --wrap: 1320px;
  --hdr-h: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; }
h2 { font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; }
h3 { font-size: 18px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.num { font-family: var(--font-head); font-weight: 700; color: var(--orange); }
.link { background: none; border: 0; padding: 0; color: var(--orange-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 12px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost { background: transparent; border-color: var(--orange); color: var(--orange-600); }
.btn--ghost:hover { background: var(--orange-50); }
.btn--light { background: #fff; border-color: var(--line); color: var(--text); }
.btn--light:hover { border-color: #c9c8c2; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.hdr.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.hdr__top-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1;
  text-decoration: none; letter-spacing: .01em; padding: 6px 10px 7px; background: #0d0d0d; border-bottom: 3px solid var(--orange); }
.logo__tx { color: #fff; }
.logo__ru { color: var(--orange); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: #e9e9e9; text-decoration: none; font-family: var(--font-head); font-size: 16px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .03em; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: #fff; background: var(--ink-3); }
.hdr__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hdr__phone { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: .02em; }
.hdr__phone:hover { color: var(--orange); }
.hdr__note { font-size: 12px; color: #a8a8a8; }
.hdr__icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink-3);
  border: 0; color: #fff; cursor: pointer; text-decoration: none; }
.hdr__icon:hover { background: var(--ink-4); }
.hdr__icon svg { width: 22px; height: 22px; }
.hdr__icon--phone, .hdr__burger { display: none; }
.hdr__cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.hdr__bar { background: var(--ink-2); border-top: 1px solid #2a2a2a; }
.hdr__bar-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.hdr__catalog { min-height: 44px; padding: 0 18px; font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.hdr__catalog[aria-expanded="true"] { background: var(--orange-600); }
.hdr__info { display: flex; gap: 18px; color: #cfcfcf; font-size: 13px; white-space: nowrap; }
.hdr__info > * { display: inline-flex; align-items: center; gap: 6px; }
.hdr__info svg { width: 16px; height: 16px; color: var(--orange); }
.hdr__mail { text-decoration: none; }
.hdr__mail:hover { color: #fff; }

/* Поиск */
.search { position: relative; flex: 1; display: flex; }
.search__input { flex: 1; height: 44px; border: 2px solid transparent; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 0 14px; background: #fff; color: var(--text); min-width: 0; }
.search__input:focus { outline: none; border-color: var(--orange); }
.search__btn { width: 52px; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--orange); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search__btn:hover { background: var(--orange-600); }
.search__drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.sugg:hover, .sugg.is-active { background: var(--orange-50); }
.sugg img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; }
.sugg__t { flex: 1; font-size: 14px; line-height: 1.3; }
.sugg__t small { display: block; color: var(--muted); font-size: 12px; }
.sugg__p { font-weight: 700; font-size: 14px; white-space: nowrap; }
.sugg__p--req { font-weight: 500; color: var(--muted); font-size: 12px; }
.sugg-all { display: block; padding: 10px 12px; text-align: center; font-weight: 600; color: var(--orange-600); text-decoration: none; background: #faf9f6; }
.sugg-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.search--page { max-width: 720px; margin-top: 8px; gap: 8px; }
.search--page .search__input { border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Мега-меню каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); border-top: 3px solid var(--orange); max-height: calc(100vh - 140px); overflow: auto; }
.mega__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 32px; padding-top: 24px; padding-bottom: 28px; }
.mega__head { display: flex; gap: 10px; align-items: baseline; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.mega__head:hover span:last-child { color: var(--orange-600); }
.mega__list { list-style: none; margin: 0 0 18px; padding: 0 0 0 30px; columns: 1; }
.mega__list a { display: block; padding: 4px 0; color: #444; text-decoration: none; font-size: 14px; }
.mega__list a:hover { color: var(--orange-600); }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.5); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #2c2c2c; }
.drawer__body { overflow: auto; padding: 8px 16px 32px; }
.drawer__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8f8f8f; margin: 18px 0 6px; }
.drawer__group { border-bottom: 1px solid #2c2c2c; }
.drawer__group summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; gap: 10px; font-family: var(--font-head); text-transform: uppercase; font-size: 16px; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 30px; }
.drawer__group a, .drawer__links a { display: block; padding: 7px 0; color: #ddd; text-decoration: none; }
.drawer__links a { font-size: 16px; border-bottom: 1px solid #262626; }
.drawer__contacts { margin-top: 20px; color: #bbb; font-size: 14px; }
.drawer__contacts a:not(.btn) { color: var(--orange); }

/* ---------- Общие блоки ---------- */
main { min-height: 50vh; }
.block { margin-top: 44px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block__head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-600); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 14px; }
.more svg { width: 16px; height: 16px; }
.page-head { padding-top: 18px; padding-bottom: 8px; }
.page-head--tight { padding-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-600); text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--orange); }
.chips--light .chip { background: #fff; border-color: var(--line); color: var(--text); }
.chips--light .chip:hover, .chips--light .chip.is-active { border-color: var(--orange); color: var(--orange-600); }
.chip span { color: var(--muted); font-size: 12px; }
/* архив статей (блоги живого сайта, которых нет в меню) и листалка страниц раздела */
.chips--archive { margin-top: 8px; align-items: center; }
.chips--archive .chip { font-size: 13px; padding: 5px 12px; }
.chips__label { color: var(--muted); font-size: 13px; margin-right: 2px; flex: none; }
.page-head h1 .muted { color: var(--muted); font-weight: 400; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 8px; flex-wrap: wrap; }
.pager__info { color: var(--muted); font-size: 14px; }
/* шаблон InSales: номера страниц paginate.parts (в макете только «назад/вперёд»), форма «В корзину» в карточке */
.pager { gap: 6px; }
.pager__num, .pager__gap { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: var(--radius-sm); font-size: 14px; text-decoration: none; color: var(--text); }
.pager__num { border: 1px solid var(--line); background: #fff; }
.pager__num:hover { border-color: var(--orange); color: var(--orange-600); }
.pager__num.is-current { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.pager__gap { color: var(--muted); }
.card__buy { display: contents; }
.buybox__quick { margin-top: 10px; }
.docs__body { padding: 4px 0 8px; max-height: 60vh; overflow: auto; }
.pinfo__short { margin-top: 14px; font-size: 14px; }
.pdetails .video iframe { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.filters__apply { width: 100%; margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge--off { background: #3a3a3a; color: #fff; }

/* ---------- Главная ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-top: 18px; }
.hero__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Плитка группы: фото фоном (прижато вправо), текст — живой HTML поверх затемнения.
   Фото 4:3, главный объект справа (см. «Плашки главной/Шаблон разметки 1600x1200.png»), без осветления и сдвигов */
.tile { position: relative; display: flex; min-height: 318px; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; isolation: isolate; }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; transition: transform .4s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,14,14,.82) 0%, rgba(14,14,14,.72) 36%, rgba(14,14,14,.22) 58%, rgba(14,14,14,0) 78%),
    linear-gradient(180deg, rgba(14,14,14,.86) 0%, rgba(14,14,14,.66) 20%, rgba(14,14,14,0) 36%); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.tile:hover .tile__bg { transform: scale(1.04); }
.tile__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px; width: 100%; }
.tile__head { display: flex; align-items: flex-start; gap: 10px; }
.tile__num { flex: none; background: var(--orange); color: #fff; font: italic 700 26px/1 var(--font-head); padding: 5px 12px 5px 9px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.tile__title { margin: 0; font-size: 17px; line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.tile__link { color: #fff; text-decoration: none; }
.tile__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile__sub { margin: -2px 0 0; color: var(--orange); font: 500 12px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.tile__list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; max-width: 66%; }
.tile__list li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.tile__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); }
.tile__list a { position: relative; z-index: 2; color: #f1f1f1; text-decoration: none; }
.tile__list a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.tile__rest a { color: #bdbdbd; }
.tile__btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #fff;
  font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-radius: 6px; }
.tile__btn svg { width: 14px; height: 14px; }
.tile:hover .tile__btn { background: var(--orange-600); }
.tile__count { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.hero__side { display: flex; flex-direction: column; gap: 12px; }
/* Баннер над новостями: картинка, GIF или видео — всегда 16:9, лишнее обрезается */
.side-banner { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.side-banner img, .side-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Заглушка бокового баннера группы, пока нет своей картинки */
.side-banner--ph { display: grid; place-items: center; padding: 12px; background: var(--ink-2); border: 2px dashed var(--orange); box-shadow: none; color: #cfcfcf; text-align: center; }
.side-banner--ph span { display: grid; gap: 4px; font-size: 13px; line-height: 1.35; }
.side-banner--ph strong { color: #fff; font: 600 16px/1.15 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.side-banner--ph code { margin-top: 2px; color: var(--orange); font-size: 11px; }
.side-news { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; flex: 1; }
.side-news__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.side-news__head h2 { font-size: 18px; margin: 0; }
.side-news__head a { display: inline-flex; gap: 4px; align-items: center; color: var(--orange-600); font-size: 13px; font-weight: 600; text-decoration: none; }
.side-news__head svg { width: 14px; height: 14px; }
.side-news__item { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; line-height: 1.35; }
.side-news__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.side-news__item time { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.side-news__item:hover span { color: var(--orange-600); }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.benefits--3 { grid-template-columns: repeat(3, 1fr); } /* шаблон InSales: без «TX52 в соцсетях», страницы видео нет */
.benefit { display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px; }
.benefit svg { width: 34px; height: 34px; color: var(--orange); }
.benefit strong { display: block; font-family: var(--font-head); font-weight: 500; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; }
.benefit span { font-size: 13px; color: #b9b9b9; }
.benefit--link { text-decoration: none; transition: background .15s, box-shadow .15s; }
.benefit--link:hover, .benefit--link:focus-visible { background: var(--ink-2); box-shadow: inset 0 0 0 2px var(--orange); }
.benefit .benefit__more { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--orange); font-weight: 600; }
.benefit .benefit__more svg { width: 14px; height: 14px; flex: none; }

.carousel { position: relative; }
.carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 calc(50% - 6px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: var(--shadow); }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; transition: transform .3s; }
.carousel__slide:hover img { transform: scale(1.02); }
.carousel__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.carousel__nav:hover { background: var(--orange); }
.carousel__nav--prev { left: 12px; } .carousel__nav--prev svg { rotate: 180deg; }
.carousel__nav--next { right: 12px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carousel__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cfcdc6; cursor: pointer; padding: 0; }
.carousel__dots button[aria-current="true"] { background: var(--orange); width: 26px; border-radius: 5px; }
.promos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.promo { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; font-size: 13px; line-height: 1.35; }
.promo img { width: 100%; aspect-ratio: 275 / 85; object-fit: cover; }
.promo span { padding: 10px 12px 12px; }
.promo:hover span { color: var(--orange-600); }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--ink) 0%, #2a2018 100%); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--orange); opacity: .14; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: #c8c8c8; max-width: 560px; }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.seo { background: #fff; border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.seo__text { max-height: 220px; overflow: hidden; position: relative; }
.seo__text::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #fff); }
.seo.is-open .seo__text { max-height: none; }
.seo.is-open .seo__text::after { display: none; }
.seo__toggle { margin-top: 12px; }

/* ---------- Карточка товара в списке ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid #f0efea; overflow: hidden; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #b0b0aa; font-size: 13px; background: repeating-linear-gradient(45deg, #faf9f6, #faf9f6 10px, #f3f2ee 10px, #f3f2ee 20px); }
.card__body { padding: 12px 14px 0; flex: 1; }
.card__brand { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.card__title { font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--orange-600); }
.card__title a::after { content: ''; position: absolute; inset: 0 0 64px 0; }
.card__sku { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.card--off { opacity: .7; }
.price { font-weight: 700; font-size: 18px; line-height: 1.1; white-space: nowrap; }
.price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.price--req { font-size: 14px; color: var(--warn); }
.price--muted { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- Карточка статьи ---------- */
.post { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.post__img { display: block; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__noimg { display: grid; place-items: center; height: 100%; color: var(--orange); font-family: var(--font-head); font-size: 28px; }
.post__body { padding: 12px 14px 16px; }
.post__date { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post__title { font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.post__title a { text-decoration: none; }
.post__title a::after { content: ''; position: absolute; inset: 0; }
.post:hover .post__title a { color: var(--orange-600); }
.post__preview { margin: 0; font-size: 13px; color: var(--muted); }
.more-live { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- Каталог ---------- */
.catalog-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cgroup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.cgroup__tile img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 400/314; object-fit: cover; }
.cgroup__title { font-size: 20px; margin: 2px 0 2px; }
.cgroup__title a { text-decoration: none; display: flex; gap: 10px; }
.cgroup__title a:hover { color: var(--orange-600); }
.cgroup__meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.cgroup__list { list-style: none; margin: 0 0 12px; padding: 0; columns: 2; column-gap: 18px; font-size: 14px; }
.cgroup__list li { display: flex; justify-content: space-between; gap: 6px; break-inside: avoid; padding: 3px 0; }
.cgroup__list a { text-decoration: none; }
.cgroup__list a:hover { color: var(--orange-600); text-decoration: underline; }
.cgroup__list span { color: #a3a29c; font-size: 12px; }

.ghero__num { font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1; color: var(--orange); margin: 0 0 4px; }

/* ---------- Страница группы (/catalog/<группа>/): баннер + тёмные плашки разделов ---------- */
.gbanner-wrap { padding-top: 18px; }
.gbanner { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: 250px; margin-top: 10px; background: var(--ink); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); }
/* Фото группы (то же, что на плашке главной) — только правая часть картинки, где главный объект; левый край растушёван */
.gbanner__media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; overflow: hidden; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); }
.gbanner__bg { position: absolute; top: 50%; right: 0; width: 168%; max-width: none; height: auto; transform: translateY(-50%); }
/* Группы 02 «Изделия из полиуретана», 04 «Экспедиции», 06 «Радиосвязь» (по просьбе владельца): фото на 2/3 баннера,
   масштаб прежний (168 % × 46 % ≈ 116 % × 66,7 %); фото поднято: 02 — на 2 см, 04 — на 1,5 см, 06 — на 1 см.
   Только компьютер — на планшете и телефоне баннер как у остальных групп */
@media (min-width: 901px) {
  .gbanner--g02 .gbanner__media, .gbanner--g04 .gbanner__media, .gbanner--g06 .gbanner__media { width: 66.667%; }
  .gbanner--g02 .gbanner__bg, .gbanner--g04 .gbanner__bg, .gbanner--g06 .gbanner__bg { width: 116%; }
  .gbanner--g02 .gbanner__bg { transform: translateY(calc(-50% - 2cm)); }
  .gbanner--g04 .gbanner__bg { transform: translateY(calc(-50% - 1.5cm)); }
  .gbanner--g06 .gbanner__bg { transform: translateY(calc(-50% - 1cm)); }
}
.gbanner__body { display: flex; flex-direction: column; gap: 10px; max-width: 58%; padding: 22px 24px; }
.gbanner__head { display: flex; align-items: center; gap: 12px; }
.gbanner__head .tile__num { font-size: 30px; }
.gbanner__title { margin: 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.gbanner__sub { margin: 0; color: var(--orange); font: 500 14px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.gbanner__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gchip { padding: 6px 11px; border: 1px solid #3a3a3a; border-radius: 999px; background: #2b2b2b; color: #fff; font-size: 13px; text-decoration: none; transition: background .15s, border-color .15s; }
.gchip:hover { background: var(--orange); border-color: var(--orange); }
.gsecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 40px; }
.gsec { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--ink); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; scroll-margin-top: 150px; }
.gsec:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--orange), 0 10px 24px rgba(0,0,0,.2); }
.gsec__img { position: relative; flex: none; width: 92px; height: 92px; overflow: hidden; border-radius: 10px; background: #fff; }
.gsec__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gsec__body { flex: 1; min-width: 0; }
.gsec__title { margin: 0 0 6px; font-size: 17px; line-height: 1.15; letter-spacing: .02em; }
.gsec__link { color: #fff; text-decoration: none; }
.gsec__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gsec__count { margin-left: 8px; color: #a3a29c; font: 400 12px/1 var(--font); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.gsec__subs { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.gsec__subs li:not(:last-child)::after { content: '·'; margin: 0 7px; color: #6a6a66; }
.gsec__subs a { position: relative; z-index: 2; color: #ff9a66; text-decoration: none; }
.gsec__subs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.gsec__rest a { color: #bdbdbd; }
.gsec__arrow { flex: none; width: 22px; height: 22px; color: var(--orange); transition: transform .2s; }
.gsec:hover .gsec__arrow { transform: translateX(3px); }
.gseo { margin: -16px 0 40px; }
/* Страница группы: разделы (2 колонки) + правая колонка как на главной (баннер и новости), колонка «липкая» */
.glayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 16px; }
.glayout .gsecs { margin-top: 0; }
.glayout > .hero__side { position: sticky; top: calc(var(--hdr-h) + 12px); margin-bottom: 40px; }
.colcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.colcard__img { aspect-ratio: 1; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid #f0efea; }
.colcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.colcard h3 { font-family: var(--font); font-size: 15px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.colcard h3 a { text-decoration: none; }
.colcard h3 a:hover { color: var(--orange-600); }
.colcard__count { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.colcard__subs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.colcard__subs a { color: #4a4a4a; text-decoration: none; display: block; padding: 2px 0; }
.colcard__subs a:hover { color: var(--orange-600); }

/* Раздел: фильтры + сетка */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.listing--nofilters { grid-template-columns: minmax(0, 1fr); } /* шаблон InSales: у раздела нет характеристик для фильтра */
.filters { position: sticky; top: calc(var(--hdr-h) + 12px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; max-height: calc(100vh - var(--hdr-h) - 24px); overflow: auto; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.filters__close { display: none; }
.fgroup { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0; }
.fgroup legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.radio, .check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.check span { margin-left: auto; color: #a3a29c; font-size: 12px; }
.radio input, .check input { accent-color: var(--orange); width: 16px; height: 16px; }
.check.is-extra { display: none; }
.fgroup__list.is-all .check.is-extra { display: flex; }
.range { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.range input { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar__filters { display: none; }
.toolbar__q { flex: 1; min-width: 160px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: #fff; }
.toolbar__sort select { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; background: #fff; }
.toolbar__found { color: var(--muted); font-size: 14px; margin: 0; }
.listing__more { display: flex; justify-content: center; margin-top: 18px; }
/* SEO-блок раздела/подраздела — под товарами (текст из content/collections/<раздел>.md) */
.cseo { margin: 28px 0 8px; }
/* SEO-окно товара — под «Ещё в разделе» (текст из content/products/<товар>.md) */
.pseo { margin-top: 32px; }
/* ---------- Гарантия и сертификаты (/garantiya/) ---------- */
.doc-link { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; transition: box-shadow .15s; }
.doc-link > svg:first-child { width: 32px; height: 32px; color: var(--orange); }
.doc-link strong { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }
.doc-link span span { color: var(--muted); font-size: 14px; }
.doc-link__arrow { margin-left: auto; color: var(--orange); }
.doc-link:hover { box-shadow: inset 0 0 0 2px var(--orange), var(--shadow); }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.cert { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cert:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.cert__img { position: relative; aspect-ratio: 3 / 4; background: #f0efea; }
.cert__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.cert__pdf { position: absolute; inset: 0; display: grid; place-items: center; font: 700 28px/1 var(--font-head); color: var(--orange); }
.cert__body { padding: 10px 12px 12px; }
.cert__title { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cert:hover .cert__title { color: var(--orange-600); }
.cert__note { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
/* «О компании»: сертификаты под текстом — 5 в ряд в основной колонке (на планшете 3, на телефоне 2) */
.page-main { min-width: 0; }
.page-certs { margin-top: 28px; }
.certs--row5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
@media (max-width: 900px) { .certs--row5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- Видео (/video/) ---------- */
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.channels .btn svg { color: var(--orange); }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.vcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.vcard__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.vcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__body { padding: 14px 16px 16px; }
.vcard__title { font-size: 18px; text-transform: none; margin: 0 0 6px; }
.vcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--muted); }
.vcard__src { color: var(--orange-600); font-weight: 600; }
.vcard__meta a { color: var(--text); }
@media (max-width: 900px) { .vgrid { grid-template-columns: 1fr; } }

.empty { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* ---------- Товар ---------- */
.pcard { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: sticky; top: calc(var(--hdr-h) + 12px); }
.gallery__main { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery__zoom { position: absolute; inset: 0; border: 0; background: none; padding: 0; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: contain; }
.gallery__noimg { color: var(--muted); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery__thumb { width: 72px; height: 72px; flex: none; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--orange); }
.pinfo__brand { display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-decoration: none; }
.pinfo__title { font-size: clamp(22px, 2.4vw, 30px); text-transform: none; margin: 4px 0 10px; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.pinfo__meta b { color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok); } .status--order { color: var(--warn); } .status--off { color: #777; }
.buybox { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.buybox__price { font-size: 32px; font-weight: 800; line-height: 1.1; }
.buybox__price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.buybox__price--req { font-size: 24px; color: var(--warn); font-weight: 700; }
.buybox__old { color: var(--muted); }
.buybox__note { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.buybox__actions { display: flex; gap: 10px; margin-top: 14px; }
.buybox__actions .btn { flex: 1; }
.buybox__call { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.buybox__call a { display: inline-flex; gap: 6px; align-items: center; color: var(--text); font-weight: 700; font-size: 17px; text-decoration: none; }
.buybox__call svg { color: var(--orange); }
/* Документация в карточке товара: кнопка с цветными точками (зелёная — файл есть, красная — нет) + окно со списком */
.pdocs__dots .is-ok, .docs__row.is-ok { --c: var(--ok); --bg: #e9f6ee; }
.pdocs__dots .is-no, .docs__row.is-no { --c: #d64541; --bg: #fdeeee; }
.pdocs { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--text);
  font: 600 15px/1.2 var(--font); text-align: left; cursor: pointer; transition: border-color .15s; }
.pdocs:hover { border-color: var(--orange); }
.pdocs__label { display: inline-flex; align-items: center; gap: 8px; }
.pdocs__label svg { color: var(--orange); }
.pdocs__label b { margin-left: 2px; color: var(--muted); font-weight: 400; font-size: 13px; }
.pdocs__label b::before { content: '·'; margin-right: 6px; }
.pdocs__dots { display: inline-flex; gap: 5px; }
.pdocs__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.docs { width: min(620px, 94vw); max-height: 90vh; border: 0; border-radius: 16px; padding: 20px 22px 22px; box-shadow: var(--shadow-lg); color: var(--text); }
.docs::backdrop { background: rgba(0,0,0,.5); }
.docs__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.docs__head h2 { margin: 0; font-size: 22px; }
.docs__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2f1ed; cursor: pointer; }
.docs__sub { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.docs__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.docs__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-left: 4px solid var(--c); border-radius: 10px; background: var(--bg); }
.docs__icon { width: 22px; height: 22px; color: var(--c); }
.docs__name { flex: 1; min-width: 0; font-size: 14px; }
.docs__name b { display: block; }
.docs__name span { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.docs__act { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 55%; }
.docs__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--c); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.docs__btn svg { width: 15px; height: 15px; }
.docs__btn--req { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
@media (max-width: 640px) {
  .docs { padding: 16px; }
  .docs__row { flex-wrap: wrap; }
  .docs__act { width: 100%; max-width: none; justify-content: flex-start; padding-left: 34px; }
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; height: 50px; }
.qty button { width: 40px; height: 100%; border: 0; background: #faf9f6; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--orange-50); }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; margin: 16px 0; padding: 0; font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.perks svg { color: var(--orange); }
.perks a { color: var(--orange-600); }
.specs { margin: 0; display: grid; }
.specs > div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.specs--short { margin: 8px 0; }
.specs--plain > div { grid-template-columns: minmax(110px, 38%) 1fr; }
.pdetails { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.pdetails__block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.pdetails__block:only-child { grid-column: 1 / -1; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; background: #fff; border-radius: 8px; }
.lightbox__close { position: fixed; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- Текстовые страницы ---------- */
.prose { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose + .prose { margin-top: 1em; } /* текст из магазина и свой текст товара в блоке «Описание» */
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-head); text-transform: none; margin: 1.3em 0 .5em; line-height: 1.25; }
.prose h1 { font-size: 30px; } .prose h2 { font-size: 22px; } .prose h3 { font-size: 19px; } .prose h4 { font-size: 17px; }
.prose img { border-radius: var(--radius-sm); margin: 12px 0; height: auto !important; }
.prose a { color: var(--orange-600); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; width: 100%; height: auto; }
.prose--page { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
/* «О компании» (content/pages/o-kompanii.md): подпись под «ТХ52» и выделенная финальная фраза */
.prose .about-lead { margin-top: -.2em; color: var(--orange-600); font-size: 18px; font-weight: 600; }
.prose .about-final { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--orange); border-radius: 10px; background: var(--orange-50); }
.prose .about-final p { margin: .2em 0; }
.prose .about-final strong { font-size: 18px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.page-aside { position: sticky; top: calc(var(--hdr-h) + 12px); display: flex; flex-direction: column; gap: 12px; }
.aside-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-size: 14px; }
.aside-card h2 { font-size: 18px; }
.aside-card p { color: var(--muted); }
.aside-card a:not(.btn) { color: var(--orange-600); }
.aside-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.aside-nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.aside-nav a:hover { background: var(--bg); }
.aside-nav a[aria-current] { background: var(--orange-50); color: var(--orange-600); font-weight: 600; }

/* Контакты */
.contacts__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; font-size: 13px; color: var(--muted); }
.ccard svg { width: 28px; height: 28px; color: var(--orange); margin-bottom: 6px; }
.ccard strong { color: var(--text); font-size: 18px; font-family: var(--font-head); font-weight: 600; }
.ccard__label { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
a.ccard:hover strong { color: var(--orange-600); }
.ccard--accent { background: var(--ink); color: #bbb; }
.ccard--accent strong { color: #fff; font-size: 22px; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
/* Контакты: лента «Наши сотрудники» — прокрутка вбок (видно ~2,5 плашки), стрелки, клик — крупно (config/staff.json) */
.staff { margin-top: 24px; }
.staff__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.staff__head h2 { margin: 0; }
.staff__navs { display: flex; gap: 8px; }
.staff__nav { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--text); cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.staff__nav:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: #fff; }
.staff__nav:disabled { opacity: .35; cursor: default; }
.staff__nav[data-staff-prev] svg { transform: rotate(180deg); }
.staff__strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 10px; scrollbar-width: thin; }
.staff__strip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: var(--radius); }
.staff__item { flex: 0 0 calc((100% - 24px) / 2.4); margin: 0; scroll-snap-align: start; }
.staff__dept { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--orange-50); color: var(--orange-600); font-size: 12px; font-weight: 600; }
.staff__zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); cursor: zoom-in; overflow: hidden; transition: transform .2s; }
.staff__zoom:hover { transform: translateY(-2px); }
.staff__zoom img { display: block; width: 100%; height: auto; }

/* Корзина */
.cart__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cart__empty { background: #fff; border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); }
.cart__list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.citem { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto 40px; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.citem img { width: 88px; height: 88px; object-fit: contain; }
.citem__t a { text-decoration: none; font-weight: 500; }
.citem__t a:hover { color: var(--orange-600); }
.citem__t small { display: block; color: var(--muted); }
.citem__p { font-weight: 700; white-space: nowrap; text-align: right; min-width: 110px; }
.citem__p--req { color: var(--warn); font-weight: 600; font-size: 13px; }
.citem .qty { height: 40px; }
.citem__rm { border: 0; background: none; cursor: pointer; color: var(--muted); width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; }
.citem__rm:hover { background: var(--bg); color: #c0392b; }
.cart__aside { position: sticky; top: calc(var(--hdr-h) + 12px); }
.cart__sum { margin: 0 0 10px; }
.cart__sum > div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart__sum dd { margin: 0; font-weight: 700; font-size: 18px; }
.cart__hint { font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.form input, .form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 400; font-size: 15px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); }
.form .is-invalid { border-color: #d64545; }
/* Согласие на обработку персональных данных в форме заказа — обязательная галочка */
.form label.consent { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.form .consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--orange); cursor: pointer; }
.consent b { display: block; margin-bottom: 2px; font-size: 13px; }
.consent a { color: var(--orange-600); }
.consent__err { display: none; margin-top: 4px; color: #d64545; font-size: 12px; font-weight: 600; }
.form label.consent.is-invalid { border-color: #d64545; background: #fdeeee; }
.consent.is-invalid .consent__err { display: block; }
.form__note { font-size: 12px; color: var(--muted); margin: 0; }
/* Корзина: прикрепление файлов к заявке (реквизиты); min-width: 0 — длинное имя файла обрезается «…», а не растягивает колонку */
.cart__aside { min-width: 0; }
.attach { display: flex; flex-direction: column; gap: 6px; }
.form label.attach__btn { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--orange); border-radius: 8px; color: var(--orange-600); font-size: 14px; cursor: pointer; background: #fff; }
.form label.attach__btn:hover, .form label.attach__btn:focus-within { background: var(--orange-50); }
.form .attach__btn input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.attach__btn svg { width: 18px; height: 18px; }
.attach__hint { font-size: 12px; color: var(--muted); }
.attach__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.attach__list li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; }
.attach__list li > svg { width: 16px; height: 16px; flex: none; color: var(--orange-600); }
.attach__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach__size { flex: none; color: var(--muted); }
.attach__rm { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.attach__rm svg { width: 16px; height: 16px; }
.attach__rm:hover { background: #fdeeee; color: #d64545; }
.attach__err { margin: 0; font-size: 12px; font-weight: 600; color: #d64545; }
.form__done { background: #eef8f1; border-radius: 8px; padding: 14px; margin-top: 12px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--ink); color: #cfcfcf; margin-top: 56px; padding-top: 40px; font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.ftr__brand p { color: #a5a5a5; margin: 14px 0; }
.ftr__phone { color: #fff; font-family: var(--font-head); font-size: 24px; font-weight: 600; text-decoration: none; }
.ftr__muted { font-size: 12px; margin-top: 0 !important; }
.ftr__h { color: #fff; font-size: 16px; margin-bottom: 12px; }
.ftr__list { list-style: none; margin: 0; padding: 0; }
.ftr__list li { padding: 4px 0; display: flex; gap: 8px; }
.ftr__list a { text-decoration: none; }
.ftr__list a:hover { color: var(--orange); }
.ftr__list--icons svg { width: 16px; height: 16px; color: var(--orange); margin-top: 3px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #2c2c2c; margin-top: 32px; padding-top: 18px; padding-bottom: 22px; font-size: 12px; color: #8b8b8b; }
.ftr__bottom a { color: #b5b5b5; }

/* Плавающие элементы */
.fab-call { display: none; }
/* Предупреждение о cookies — полоса во всю ширину в самом низу экрана, пока не нажали «Понятно».
   Пока она видна (body.has-cookie, высота — --cookie-h из app.js), плавающие элементы поднимаются над ней, а низ страницы не прячется под неё. */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); color: #e9e9e6;
  border-top: 3px solid var(--orange); box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.cookie__in { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.cookie p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.cookie a { color: #ff9a66; text-decoration: underline; text-underline-offset: 2px; }
.cookie__ok { flex: none; }
.has-cookie { padding-bottom: var(--cookie-h, 0px); }
.has-cookie .toast { bottom: calc(var(--cookie-h, 0px) + 24px); }
.has-cookie .proto-note { bottom: calc(var(--cookie-h, 0px) + 10px); }
.has-cookie .fab-call { bottom: calc(var(--cookie-h, 0px) + 46px); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.toast a { color: var(--orange); font-weight: 600; }
.proto-note { position: fixed; right: 10px; bottom: 10px; z-index: 40; background: rgba(22,22,22,.85); color: #ddd; font-size: 11px; padding: 4px 8px; border-radius: 6px; pointer-events: auto; }
.notfound { text-align: center; padding: 60px 20px; }
/* Меню «Написать письмо» по клику на любой адрес почты (app.js): веб-почта, почтовая программа, копирование */
.mailmenu { position: absolute; z-index: 95; min-width: 240px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); color: var(--text); font-size: 14px; }
.mailmenu__head { margin-bottom: 4px; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mailmenu__head b { display: block; color: var(--text); font-size: 14px; }
.mailmenu a, .mailmenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.mailmenu a:hover, .mailmenu button:hover, .mailmenu a:focus-visible, .mailmenu button:focus-visible { background: var(--orange-50); color: var(--orange-600); outline: none; }
.mailmenu i { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; color: #fff; font: 700 12px/1 var(--font); font-style: normal; }
.mailmenu i svg { width: 14px; height: 14px; }
.mailmenu .ya { background: #fc3f1d; } .mailmenu .mr { background: #005ff9; } .mailmenu .gm { background: #ea4335; }
.mailmenu .ap { background: #6a6a66; } .mailmenu .cp { background: var(--orange); }
/* Контакты → Реквизиты: кнопка «Скачать реквизиты» (Word) */
.req-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.req-download span { color: var(--muted); font-size: 12px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1240px) {
  .nav a { font-size: 15px; padding: 8px 7px; }
  .hdr__info .hdr__hours { display: none; }
  .grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--posts > :nth-child(4) { display: none; }
}
@media (max-width: 1100px) {
  :root { --hdr-h: 120px; }
  .nav { display: none; }
  .hdr__top-in { justify-content: space-between; }
  .hdr__burger { display: inline-grid; }
  .hero { grid-template-columns: 1fr; }
  .hero__side { display: grid; grid-template-columns: 1fr 1.6fr; }
  .glayout { grid-template-columns: 1fr; }
  .glayout > .hero__side { position: static; }
  .grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-groups { grid-template-columns: 1fr; }
  .promos { grid-template-columns: repeat(2, 1fr); }
  .mega__in { grid-template-columns: repeat(2, 1fr); }
  .pdetails { grid-template-columns: 1fr; }
  .contacts__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hdr__contacts, .hdr__info { display: none; }
  .hdr__icon--phone { display: inline-grid; }
  .hdr__top-in { gap: 8px; min-height: 58px; }
  .logo { font-size: 24px; margin-right: auto; }
  .hdr__bar-in { min-height: 60px; gap: 8px; }
  .hdr__catalog { padding: 0 12px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .hero__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 85; border-radius: 0; max-height: none; padding-bottom: 80px; }
  .filters.is-open { display: block; }
  .filters__close { display: inline-grid; background: var(--bg); color: var(--text); }
  .toolbar__filters { display: inline-flex; }
  .pcard { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .page-layout, .cart__layout { grid-template-columns: 1fr; }
  .page-aside, .cart__aside { position: static; }
  .gbanner__body { max-width: 66%; }
  .gbanner__media { width: 40%; }
  .gsecs { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  /* третья колонка — по ширине цены (иначе цена в 40px-колонке вылезает за край экрана) */
  .citem { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img t rm" "img q p"; }
  .citem img { grid-area: img; width: 72px; height: 72px; }
  .citem__t { grid-area: t; } .citem .qty { grid-area: q; justify-self: start; } .citem__p { grid-area: p; } .citem__rm { grid-area: rm; justify-self: end; }
  .fab-call { display: grid; place-items: center; position: fixed; right: 16px; bottom: 46px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(255,91,19,.45); }
  .fab-call svg { width: 26px; height: 26px; }
  .staff__item { flex-basis: calc((100% - 12px) / 1.6); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hdr__catalog span { display: none; }
  .hero__tiles { grid-template-columns: 1fr; gap: 8px; }
  .hero__side { grid-template-columns: 1fr; }
  .side-banner { display: none; }
  .tile { min-height: 128px; }
  .tile::before { background: linear-gradient(90deg, rgba(14,14,14,.9) 0%, rgba(14,14,14,.82) 44%, rgba(14,14,14,.3) 68%, rgba(14,14,14,0) 90%); }
  .tile__body { padding: 12px; gap: 6px; }
  .tile__head { max-width: 78%; }
  .tile__num { font-size: 20px; padding: 4px 10px 4px 8px; }
  .tile__title { font-size: 15px; }
  .tile__sub { max-width: 70%; font-size: 11px; }
  .tile__list, .tile__btn { display: none; }
  .tile__count { font-size: 11px; }
  .benefits { grid-template-columns: 1fr; }
  .grid { gap: 10px; }
  .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--posts { grid-template-columns: 1fr 1fr; }
  .grid--posts > :nth-child(4) { display: flex; }
  .grid--cols { grid-template-columns: 1fr; }
  .gbanner { min-height: 0; }
  .gbanner__media { display: none; }
  .gbanner__body { max-width: 100%; padding: 16px; }
  .gbanner__head .tile__num { font-size: 22px; }
  .gbanner__chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 0 16px 4px 0; scrollbar-width: none; }
  .gbanner__chips::-webkit-scrollbar { display: none; }
  .gchip { flex: none; white-space: nowrap; }
  .gsec { gap: 12px; padding: 10px 12px 10px 10px; }
  .gsec__img { width: 68px; height: 68px; }
  .gsec__title { font-size: 15px; }
  .gsec__arrow { display: none; }
  .promos { grid-template-columns: 1fr; }
  .cgroup { grid-template-columns: 1fr; }
  .cgroup__list { columns: 1; }
  .card__body { padding: 10px 10px 0; }
  .card__foot { padding: 10px; }
  .card__foot .btn { width: 100%; }
  .card__title { font-size: 13px; }
  .price { font-size: 16px; }
  .prose--page { padding: 18px; }
  .contacts__cards, .contacts__grid { grid-template-columns: 1fr; }
  .staff__item { flex-basis: 86%; }
  .staff__navs { display: none; }
  .ftr__grid { grid-template-columns: 1fr; }
  .carousel__nav { display: none; }
  .carousel__slide { flex-basis: 88%; }
  .mega__in { grid-template-columns: 1fr; }
  .buybox__actions { flex-direction: column; }
  .buybox__actions .qty { align-self: flex-start; }
  .cookie__in { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .cookie p { font-size: 12.5px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
  .proto-note { display: none; }
}
