/* Мелітополь Інструмент — публичный сайт.
   Цвета — из админки (красный #D62B1F, тёмный #1B1E22, шрифт Manrope); формат — светлый, просторный,
   минимум рамок: блоки разделяются воздухом и тонкими линиями, а не «коробочками». */
/* Manrope (OFL), свои файлы — без запросов к Google */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("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("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("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("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 {
  --bg: #ffffff;
  --soft: #f6f5f2;
  --soft-2: #efede8;
  --ink: #14161a;
  --ink-2: #33363c;
  --muted: #5f646b;
  --line: #e7e4de;
  --line-soft: #f0eeea;
  --dark: #1B1E22;
  --dark-2: #2b2f34;
  --dark-ink: #c9ccd1;
  --accent: #D62B1F;
  --accent-dark: #b4231a;
  --accent-soft: #fdeceb;
  --ok: #18753f;
  --ok-soft: #e5f4ea;
  --bad: #A8231A;
  --r: 6px;
  --r-lg: 10px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --shadow: 0 18px 50px rgba(20, 22, 26, .14);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.6px; margin: 0; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.3px; margin: 0 0 16px; font-weight: 800; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); font-size: .9em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ic { flex: none; vertical-align: -3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt { margin-top: 14px; }

/* ---------- кнопки, поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  text-decoration: none; background: var(--accent); color: #fff; font: inherit; font-weight: 700;
  padding: 11px 20px; border-radius: var(--r); transition: background .15s, color .15s, border-color .15s; line-height: 1.2;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #d6d2cb; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--soft); }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.big { padding: 14px 24px; font-size: 16.5px; }
.btn.full { width: 100%; }
input, select, textarea, button { font: inherit; }

/* ---------- служебная строка ---------- */
.util { background: var(--soft); font-size: 13.5px; color: var(--muted); }
.util-in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.util-note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.util-note .ic { color: var(--accent); }
.util-note .dot { margin: 0 2px; }
.util-links { display: flex; gap: 22px; }
.util a { text-decoration: none; }
.util a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; align-items: center; font-weight: 700; }
.langs span { color: #c4bfb6; }
.langs a.on { color: var(--accent); }

/* ---------- шапка ---------- */
.head { background: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 18px; height: 84px; }
.burger { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--ink); }
.logo { flex: none; line-height: 0; }
.logo img { height: 50px; width: auto; }
.cat-btn {
  flex: none; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 20px; border: 0; border-radius: var(--r);
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15.5px; cursor: pointer; transition: background .15s;
}
.cat-btn:hover, .cat-btn[aria-expanded="true"] { background: var(--accent-dark); }
.search { flex: 1; min-width: 0; position: relative; display: flex; height: 48px; }
.search .search-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 16px 0 44px; border: 1.5px solid transparent; border-right: 0;
  border-radius: var(--r) 0 0 var(--r); background: var(--soft); color: var(--ink); outline: none; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: #8a8e94; }
.search input:focus { border-color: var(--ink); background: #fff; }
.search button {
  border: 0; background: var(--ink); color: #fff; padding: 0 22px; border-radius: 0 var(--r) var(--r) 0; font-weight: 700; cursor: pointer;
}
.search button:hover { background: #000; }
.head-phone { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.head-phone a { font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.2px; }
.head-phone a:hover { color: var(--accent); }
.head-phone span { font-size: 12.5px; color: var(--muted); }
.head-ic {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px;
  text-decoration: none; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.head-ic:hover { color: var(--accent); }
.head-call { display: none; }
.badge { position: absolute; top: -6px; right: 8px; background: var(--accent); color: #fff; border-radius: 99px;
  font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.mega-shade { position: fixed; inset: 0; background: rgba(20, 22, 26, .28); z-index: 30; }

/* мобильное меню */
.mnav { position: fixed; inset: 0; background: rgba(20, 22, 26, .45); z-index: 60; }
.mnav-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(360px, 90vw); background: #fff; display: flex; flex-direction: column; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.mnav-head button { background: none; border: 0; cursor: pointer; padding: 4px; }
.mnav-body { overflow-y: auto; flex: 1; }
.mnav details { border-bottom: 1px solid var(--line-soft); }
.mnav summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .ic:first-child { color: var(--accent); }
.mnav summary span { flex: 1; }
.mnav details[open] summary .ic:last-child { transform: rotate(180deg); }
.mnav details a { display: flex; justify-content: space-between; padding: 9px 18px 9px 50px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.mnav details a span { color: var(--muted); font-size: 13px; }
.mnav details .mn-all { color: var(--accent); font-weight: 700; }
.mnav details a:last-child { padding-bottom: 16px; }
.mnav-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14.5px; background: var(--soft); }
.mnav-foot a { text-decoration: none; display: flex; align-items: center; gap: 7px; }

/* ---------- основная часть ---------- */
.main { padding-top: 26px; padding-bottom: 64px; min-height: 50vh; }
.main.main-full { padding-top: 0; }
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: 28px; }
.sec-head a { color: var(--accent); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; color: #c4bfb6; }
.page-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-title .pt-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.h-n { color: var(--muted); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.note { background: #fff7e0; border-left: 3px solid #e9b949; color: #6b4d00; padding: 11px 16px; border-radius: 0 var(--r) var(--r) 0; }
.ok-note { background: var(--ok-soft); color: var(--ok); padding: 11px 16px; border-radius: var(--r); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.alert { background: #fbe5e3; color: var(--bad); padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 700; display: flex; gap: 8px; align-items: center; }

/* главная: первый экран */
.hero { background: var(--soft); border-bottom: 1px solid var(--line-soft); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; padding-top: 54px; padding-bottom: 54px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.hero h1 { font-size: 48px; letter-spacing: -1.2px; max-width: 760px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 18px 0 26px; line-height: 1.6; }
.search-hero { height: 60px; max-width: 720px; }
.search-hero input { background: #fff; font-size: 17px; border-color: var(--line); padding-left: 50px; }
.search-hero .search-ic { left: 18px; }
.search-hero button { padding: 0 30px; font-size: 16px; background: var(--accent); }
.search-hero button:hover { background: var(--accent-dark); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.quick span { color: var(--muted); margin-right: 4px; }
.quick a { text-decoration: none; background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 99px; font-weight: 600; }
.quick a:hover { border-color: var(--accent); color: var(--accent); }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.hero-facts li { display: grid; border-left: 3px solid var(--accent); padding-left: 18px; }
.hero-facts b { font-size: 34px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.hero-facts span { color: var(--muted); font-size: 14.5px; }
.adv-strip { border-bottom: 1px solid var(--line-soft); }
.adv-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.adv-in > div { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px 22px 0; }
.adv-in > div + div { padding-left: 22px; border-left: 1px solid var(--line-soft); }
.adv-in .ic { color: var(--accent); margin-top: 2px; }
.adv-in span { display: grid; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.adv-in b { color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* полки каталога */
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 36px; }
.shelf { display: flex; flex-direction: column; }
.shelf-head { display: flex; align-items: center; gap: 14px; text-decoration: none; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); }
.shelf-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.shelf-head b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.shelf-head small { color: var(--muted); font-size: 13px; font-weight: 600; }
.shelf-head:hover .shelf-ic { background: var(--accent); color: #fff; }
.shelf-head:hover b { color: var(--accent); }
.shelf-list { list-style: none; margin: 0; padding: 0; }
.shelf-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-2); }
.shelf-list a:hover { color: var(--accent); }
.shelf-list em, .cb-list em, .subnav em, .cb-title em { font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; }
.shelf-more { margin-top: 10px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14.5px; }

/* страница группы */
.group-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 30px; }
.group-tabs a { text-decoration: none; padding: 8px 15px; border-radius: 99px; background: var(--soft); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.group-tabs a:hover { color: var(--accent); }
.group-tabs a.on { background: var(--ink); color: #fff; }
.cat-blocks { columns: 3 300px; column-gap: 44px; }
.cat-block { break-inside: avoid; margin-bottom: 34px; }
.cb-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.cb-title:hover { color: var(--accent); }
.cb-list { list-style: none; margin: 0; padding: 0; }
.cb-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.cb-list a { text-decoration: none; color: var(--ink-2); }
.cb-list a:hover { color: var(--accent); }

/* шаги и промо */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { display: grid; gap: 12px; font-weight: 600; font-size: 15.5px; color: var(--ink-2); position: relative; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -14px; height: 2px; background: var(--line); }
.promo { display: flex; align-items: center; gap: 22px; background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 28px 32px; }
.promo-ic { width: 60px; height: 60px; border-radius: 50%; background: #2aa3df; display: grid; place-items: center; flex: none; }
.promo b { font-size: 20px; }
.promo p { margin: 4px 0 0; color: var(--dark-ink); }
.promo > div { flex: 1; }

/* подразделы раздела */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.subnav a:hover { background: var(--ink); color: #fff; }
.subnav a:hover em { color: #c9ccd1; }

/* инструменты списка */
.tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.tools-f { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sel { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sel select { border: 0; background: transparent; padding: 6px 4px; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; }

/* ---------- таблица товаров ---------- */
.ptable { border-top: 2px solid var(--ink); }
.pt-head, .pt-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 140px 130px 250px; gap: 20px; align-items: center; }
.pt-head { padding: 10px 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--line); }
.pt-row { padding: 14px 0; border-bottom: 1px solid var(--line); transition: background .12s; }
.pt-row:hover { background: #fcfbf9; }
.pt-img { width: 72px; height: 72px; display: grid; place-items: center; background: var(--soft); border-radius: var(--r); overflow: hidden; color: #c4bfb6; }
.pt-img img { width: 72px; height: 72px; object-fit: contain; background: #fff; }
.pt-name a { font-weight: 700; text-decoration: none; line-height: 1.4; font-size: 15.5px; }
.pt-name a:hover { color: var(--accent); }
.pt-art { color: var(--muted); font-size: 13px; margin-top: 3px; }
.st { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.st.ok { color: var(--ok); }
.st.no { color: var(--muted); font-weight: 600; }
.pt-row.out .pt-name a { color: #55585e; }
.pt-price { font-weight: 800; font-size: 18px; letter-spacing: -.2px; }
.pt-buy { display: flex; gap: 8px; justify-content: flex-end; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.qty input { width: 42px; border: 0; text-align: center; padding: 8px 0; font-weight: 800; -moz-appearance: textfield; background: transparent; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-btn { background: none; border: 0; padding: 0 9px; height: 38px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.q-btn:hover { color: var(--accent); }
.btn.buy { padding: 9px 16px; white-space: nowrap; }
.btn.buy.added { background: var(--ok); }
.qty.big input { width: 60px; font-size: 18px; padding: 12px 0; }
.qty.big .q-btn { height: 50px; padding: 0 14px; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 9px 13px; border-radius: var(--r); text-decoration: none; font-weight: 700; font-size: 15px; }
.pager a { background: var(--soft); }
.pager a:hover { background: var(--ink); color: #fff; }
.pager .cur { background: var(--accent); color: #fff; }
.pager .gap { color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.empty-box { text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--r-lg); padding: 56px 24px; }
.empty-box .ic { color: #c4bfb6; }
.empty-box h1, .empty-box h2 { color: var(--ink); margin: 12px 0 8px; }
.empty-box .search { margin: 22px auto; max-width: 560px; }
.empty-box .search input { background: #fff; }
.empty-box p .btn { margin: 4px; }
.err-code { font-size: 80px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -2px; }

/* ---------- карточка товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery { position: relative; }
.g-main { display: grid; place-items: center; aspect-ratio: 1 / 1; max-height: 520px; width: 100%; background: var(--soft); border-radius: var(--r-lg); overflow: hidden; color: #c4bfb6; cursor: zoom-in; }
.g-main img { max-width: 100%; max-height: 520px; object-fit: contain; background: #fff; }
.g-main.empty { cursor: default; aspect-ratio: auto; height: 340px; }
.g-note { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); border-radius: 99px; padding: 3px 11px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.g-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.g-thumbs button { width: 70px; height: 70px; padding: 3px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox h1 { font-size: 30px; letter-spacing: -.5px; }
.bb-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 14.5px; margin: 14px 0 22px; }
.bb-meta a { color: var(--accent); text-decoration: none; font-weight: 700; }
.bb-stock { margin-bottom: 8px; }
.bb-split { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.bb-price { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 20px; }
.bb-price .per { font-size: 17px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.bb-buy { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.bb-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.bb-info li { display: flex; align-items: center; gap: 10px; }
.bb-info .ic { color: var(--accent); }
.bb-info a { font-weight: 800; text-decoration: none; }
.p-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 56px; }
.p-sec h2 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 14px 10px 0; width: 40%; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.specs a { color: var(--accent); text-decoration: none; }
.desc { white-space: pre-line; font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }

/* ---------- корзина, оформление, кабинет ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.card h2 .ic { color: var(--accent); }
.cart-grid, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.co-main { display: grid; gap: 20px; }
.cart-row { grid-template-columns: 72px minmax(0, 1fr) 140px 120px 40px; }
.cart-qty { display: flex; justify-content: center; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 7px; border-radius: var(--r); display: grid; place-items: center; }
.icon-btn:hover { color: var(--bad); background: var(--accent-soft); }
.warn-s { color: #8a6100; font-size: 13px; margin-top: 3px; font-weight: 600; }
.summary { position: sticky; top: 110px; background: var(--soft); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; }
.summary h2 { font-size: 20px; margin: 0; }
.summary .btn { width: 100%; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15.5px; }
.sum-row b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; max-height: 340px; overflow-y: auto; }
.co-items li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.co-items b { white-space: nowrap; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; position: relative; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.has-err input { border-color: var(--bad); }
.f-err { color: var(--bad); font-size: 13px; margin-top: 5px; font-weight: 700; }
.req { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); max-height: 290px; overflow-y: auto; z-index: 30; }
.ac-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; cursor: pointer; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.ac-list button:hover, .ac-list button.on { background: var(--soft); }
.ac-list button span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.ac-list .ac-empty { padding: 11px 14px; color: var(--muted); font-size: 14px; }
.done { max-width: 720px; margin: 10px auto; text-align: center; }
.done-ic { color: var(--ok); }
.done h1 { margin: 10px 0; }
.done-card { text-align: left; margin: 24px 0; }
.done .btn { margin: 4px; }
.auth { max-width: 470px; margin: 16px auto; }
.auth-card h1 { font-size: 28px; margin-bottom: 20px; }
.auth-links { text-align: right; margin: 12px 0 0; font-size: 14.5px; }
.auth-links a, .auth-alt a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-alt { border-top: 1px solid var(--line); margin: 20px 0 0; padding-top: 16px; text-align: center; font-size: 14.5px; }
.auth-ic { color: var(--accent); text-align: center; }
.row-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.row-note span { flex: 1; min-width: 200px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.acc-side { display: grid; gap: 20px; }
.acc-order { display: grid; grid-template-columns: minmax(0, 1fr) auto 130px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.acc-order:hover b:first-child { color: var(--accent); }
.acc-order small { display: block; color: var(--muted); font-size: 13px; }
.st-new { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.st-done { color: var(--ok); font-weight: 700; font-size: 13.5px; }
.st-cancelled { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.field input:disabled { background: var(--soft); color: var(--muted); }

/* ---------- текстовые страницы и справочник ---------- */
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-nav { position: sticky; top: 110px; display: grid; gap: 2px; }
.doc-nav .dn-title { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.doc-nav a { text-decoration: none; padding: 8px 12px; border-left: 2px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.doc-nav a:hover { color: var(--accent); }
.doc-nav a.on { border-left-color: var(--accent); color: var(--ink); font-weight: 800; }
.doc { min-width: 0; max-width: 820px; }
.doc h1 { margin-bottom: 18px; }
.doc-wide { margin: 0 auto; }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 23px; margin: 34px 0 12px; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 24px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose .callout { background: var(--soft); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 16px; }
.prose .tbl { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th { text-align: left; font-weight: 800; padding: 10px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; color: var(--ink); }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prose tr:hover td { background: #fcfbf9; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 26px; }
.cc { display: flex; gap: 14px; align-items: flex-start; background: var(--soft); border-radius: var(--r-lg); padding: 18px; text-decoration: none; }
.cc .ic { color: var(--accent); margin-top: 2px; }
.cc span { display: grid; gap: 2px; }
.cc b { font-size: 16.5px; }
.cc small { color: var(--muted); font-size: 13px; }
.cc small a { color: var(--accent); text-decoration: none; }
.msg-row .btn { margin: 0 8px 8px 0; }
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 40px; }
.art-card { padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: grid; gap: 8px; align-content: start; }
.art-card:hover .art-t { color: var(--accent); }
.art-ic { color: var(--accent); }
.art-t { font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.art-s { color: var(--muted); font-size: 15px; }
.art-more { color: var(--accent); font-weight: 700; font-size: 14.5px; }

/* ---------- подвал ---------- */
.foot { background: var(--dark); color: var(--dark-ink); font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.f-col { display: flex; flex-direction: column; gap: 9px; }
.f-col .f-title { color: #fff; margin: 0 0 8px; font-size: 15.5px; font-weight: 800; }
.f-col a { color: var(--dark-ink); text-decoration: none; }
.f-col a:hover { color: #fff; }
.f-col .muted { color: #8d9198; font-size: 13.5px; }
.f-phone { color: #fff !important; font-weight: 800; font-size: 17px; }
.f-brand p { color: #fff; font-weight: 800; font-size: 17px; margin: 8px 0 0; }
.f-msg { display: flex; gap: 8px; margin-top: 8px; }
.f-msg a { width: 38px; height: 38px; border-radius: 50%; background: var(--dark-2); display: grid; place-items: center; }
.f-msg a:hover { background: var(--accent); }
.foot-bottom { border-top: 1px solid var(--dark-2); padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: #8d9198; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: var(--r); font-weight: 700; z-index: 80; box-shadow: var(--shadow); }
.toast a { color: #ffb4ad; margin-left: 10px; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .head-phone { display: none; }
  .head-call { display: flex; }
  .pt-head, .pt-row { grid-template-columns: 64px minmax(0, 1fr) 120px 110px 200px; gap: 14px; }
  .pt-img, .pt-img img { width: 64px; height: 64px; }
  .btn.buy span { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .wrap { padding: 0 18px; }
  .util-links { display: none; }
  .burger { display: block; }
  .head-in { flex-wrap: wrap; height: auto; gap: 10px 14px; padding-top: 10px; padding-bottom: 12px; }
  .logo img { height: 40px; }
  .cat-btn { display: none; }
  .search { order: 10; flex-basis: 100%; height: 46px; }
  .head-call { margin-left: auto; }
  .head-ic { min-width: 44px; }
  .head-ic .lbl { display: none; }
  .badge { right: 2px; }
  .cm-drop, .mega-shade { display: none !important; }
  .hero-in { padding-top: 34px; padding-bottom: 34px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16.5px; }
  .adv-in { grid-template-columns: 1fr 1fr; }
  .adv-in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .adv-in > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .product, .p-tabs { grid-template-columns: 1fr; gap: 28px; }
  .p-tabs { margin-top: 36px; }
  .doc-grid { grid-template-columns: 1fr; gap: 20px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-nav .dn-title { width: 100%; }
  .doc-nav a { border-left: 0; background: var(--soft); border-radius: 99px; padding: 6px 13px; font-size: 14px; }
  .doc-nav a.on { background: var(--ink); color: #fff; }
  .cart-grid, .checkout, .acc-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  /* таблица → карточки */
  .pt-head { display: none; }
  .pt-row { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img stock price" "buy buy buy"; gap: 6px 14px; padding: 16px 0; }
  .pt-img { grid-area: img; width: 72px; height: 72px; }
  .pt-img img { width: 72px; height: 72px; }
  .pt-name { grid-area: name; }
  .pt-stock { grid-area: stock; }
  .pt-price { grid-area: price; }
  .pt-buy { grid-area: buy; justify-content: stretch; margin-top: 6px; }
  .pt-buy .btn.buy { flex: 1; }
  .btn.buy span { display: inline; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) 36px; grid-template-areas: "img name del" "img qty price"; }
  .cart-row .pt-img { grid-area: img; } .cart-row .pt-name { grid-area: name; } .cart-row .cart-del { grid-area: del; }
  .cart-row .cart-qty { grid-area: qty; justify-content: flex-start; } .cart-row .pt-price { grid-area: price; }
  .acc-order { grid-template-columns: minmax(0, 1fr) auto; }
  .acc-order .num { grid-column: 2; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  h1, .buybox h1 { font-size: 25px; }
  .hero h1 { font-size: 29px; letter-spacing: -.6px; }
  .util-note { font-size: 12.5px; }
  .head-in { gap: 8px; }
  .logo img { height: 34px; }
  .head-ic { min-width: 40px; }
  .search button { padding: 0 16px; }
  .search-hero { height: 54px; }
  .search-hero button { padding: 0 18px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .hero-facts li { padding-left: 10px; }
  .hero-facts b { font-size: 22px; }
  .hero-facts span { font-size: 12.5px; }
  .adv-in { grid-template-columns: 1fr; }
  .adv-in > div, .adv-in > div + div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .adv-in > div:first-child { border-top: 0; }
  .sec { margin-top: 42px; }
  .sec-head h2 { font-size: 23px; }
  .shelves { grid-template-columns: 1fr; gap: 30px; }
  .cat-blocks { columns: 1; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { grid-template-columns: 44px 1fr; align-items: center; }
  .promo { flex-wrap: wrap; padding: 22px; }
  .bb-price { font-size: 34px; }
  .bb-buy .btn.big { flex: 1; }
  .f-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .page-title .pt-ic { width: 44px; height: 44px; }
}
.subnav-more { display: contents; }
.subnav-more summary { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1.5px dashed var(--line); font-weight: 700; font-size: 14px; color: var(--accent); cursor: pointer; list-style: none; }
.subnav-more summary::-webkit-details-marker { display: none; }
.subnav-more[open] summary { display: none; }


/* ---------- фильтры ---------- */
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.listing.no-filters { grid-template-columns: minmax(0, 1fr); }
.listing-side { min-width: 0; }
.fdrawer-btn { display: none; }
.filters { display: grid; gap: 4px; }
.fgroup { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fgroup:first-of-type { padding-top: 0; }
.fgroup legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.fgroup.is-on legend { color: var(--accent); }
.fopt { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.fopt input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; margin: 0; }
.fopt span { flex: 1; min-width: 0; }
.fopt em { font-style: normal; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fopt:hover span { color: var(--accent); }
.fopt.zero { opacity: .45; }
.fmore summary { color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0 2px; list-style: none; }
.fmore summary::-webkit-details-marker { display: none; }
.fmore[open] summary { display: none; }
.fmore-list { }
.frange { display: flex; align-items: center; gap: 8px; }
.frange label { flex: 1; }
.frange input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 600; background: #fff; color: var(--ink); -moz-appearance: textfield; }
.frange input:focus { outline: none; border-color: var(--ink); }
.frange span { color: var(--muted); }
.fbtns { display: flex; gap: 8px; padding-top: 16px; padding-bottom: 4px; }
.fbtns .btn { flex: 1; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; text-decoration: none; padding: 6px 10px 6px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 700; }
.fchip:hover { background: var(--accent); }
.fchip-clear { color: var(--accent); font-weight: 700; font-size: 13.5px; text-decoration: none; margin-left: 4px; }
.fcount { background: var(--accent); color: #fff; border-radius: 99px; font-size: 12px; padding: 0 7px; margin-left: 2px; }
@media (max-width: 960px) {
  .listing { grid-template-columns: 1fr; gap: 0; }
  .listing-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .fdrawer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 800; cursor: pointer; margin-bottom: 12px; background: #fff; color: var(--ink); }
  .fdrawer .fbody { display: none; }
  .fdrawer.open .fbody { display: block; }
  .fdrawer.open .fdrawer-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
  .fdrawer.open .filters { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; }
}
@media (max-width: 960px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 20px; padding: 0 18px 4px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a, .subnav-more summary { white-space: nowrap; flex: none; }
  .subnav-more[open] { display: contents; }
}

/* ---------- боковое меню каталога ---------- */
:root { --cm-w: 290px; }
.cm-host { position: relative; }
.cmenu { width: var(--cm-w); background: #fff; display: flex; flex-direction: column; }
.cm-list { list-style: none; margin: 0; padding: 6px 0; }
.cm-item { position: static; }
.cm-link { display: flex; align-items: center; gap: 12px; padding: 9px 14px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-2); border-radius: var(--r); }
.cm-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; transition: background .12s, color .12s; }
.cm-name { flex: 1; min-width: 0; }
.cm-link em { font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-arr { color: #c4bfb6; flex: none; }
.cm-link:hover, .cm-item.on > .cm-link, .cm-item.cur > .cm-link { background: var(--soft); color: var(--ink); }
.cm-item.on .cm-ic, .cm-item.cur .cm-ic, .cm-link:hover .cm-ic { background: var(--accent); color: #fff; }
.cm-item.on .cm-arr { color: var(--accent); }
.cm-all { display: flex; align-items: center; gap: 6px; padding: 12px 14px 14px 62px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14.5px; border-top: 1px solid var(--line-soft); }
.cm-all:hover { color: var(--accent-dark); }
.cm-fly { display: none; position: absolute; z-index: 35; top: 0; left: var(--cm-w); right: 0; min-height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 28px 10px 30px; }
/* без JS — по наведению; с JS — по классу .on (с задержкой, чтобы панель не мигала при движении мыши) */
.cmenu:not(.js) .cm-item:hover > .cm-fly, .cm-item.on > .cm-fly { display: block; }
.mp-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.mp-head a { font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: -.3px; }
.mp-head a:hover { color: var(--accent); }
.mp-head span { color: var(--muted); font-size: 14px; }
.mp-cols { columns: 3 220px; column-gap: 32px; }
.mp-cat { break-inside: avoid; margin-bottom: 20px; display: grid; gap: 5px; }
.mp-cat a { text-decoration: none; font-size: 14px; color: var(--muted); line-height: 1.35; }
.mp-cat a:hover { color: var(--accent); }
.mp-cat .mp-title { color: var(--ink); font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.mp-cat .mp-more { color: var(--accent); font-weight: 700; }

/* выпадающее меню под кнопкой «Каталог» (все страницы, кроме главной) */
.cm-drop { position: absolute; left: 0; right: 0; top: calc(100% - 1px); }
.cm-drop .cm-host { padding: 0; max-width: min(var(--wrap), calc(100vw - 32px)); }
.cm-drop .cmenu { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); padding: 4px 6px 0; }
.cm-drop .cm-fly { border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 0; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: none; }
.cm-drop .cm-fly::-webkit-scrollbar { display: none; }

/* главная: меню слева постоянно, справа — приветствие */
.home-top { background: var(--soft); border-bottom: 1px solid var(--line-soft); }
.home-grid { display: grid; grid-template-columns: var(--cm-w) minmax(0, 1fr); gap: 40px; padding-top: 24px; padding-bottom: 24px; }
.home-grid .cmenu { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 4px 6px 0; align-self: start; }
.home-grid .hero { background: none; border: 0; }
.home-grid .hero-in { grid-template-columns: minmax(0, 1fr) 200px; gap: 36px; padding: 26px 0; }
.home-grid .hero h1 { font-size: 42px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(20, 22, 26, .06); }
.tile-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.tile-t { flex: 1; min-width: 0; display: grid; }
.tile-t b { font-size: 15.5px; line-height: 1.3; }
.tile-t small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tile-arr { color: #c4bfb6; flex: none; }
.tile:hover .tile-arr, .tile:hover b { color: var(--accent); }

/* страница группы и раздел: боковая колонка */
.with-side { display: grid; grid-template-columns: var(--cm-w) minmax(0, 1fr); gap: 40px; align-items: start; }
.side { position: sticky; top: 100px; }
.side .cmenu { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 6px 0; }
.side-cats { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sc-title { font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.sc-up { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; text-decoration: none; margin-bottom: 8px; }
.sc-up:hover { color: var(--accent); }
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: var(--r); text-decoration: none; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.sc-list a:hover { color: var(--accent); background: var(--soft); }
.sc-list a.on { background: var(--ink); color: #fff; font-weight: 700; }
.sc-list em { font-style: normal; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sc-list a.on em { color: #c9ccd1; }
/* на компьютере подразделы — в боковой колонке, на телефоне — лентой над списком */
@media (min-width: 961px) { .subnav.has-side { display: none; } }
@media (max-width: 1180px) {
  :root { --cm-w: 260px; }
  .home-grid .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .home-grid .hero h1 { font-size: 36px; }
}
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-bottom: 20px; }
  .home-grid .cmenu { order: 2; width: auto; }
  .home-grid .cm-arr { display: none; }
  .home-grid .cm-fly { display: none !important; }
  .home-grid .hero-in { padding: 28px 0 22px; }
  .with-side { grid-template-columns: 1fr; gap: 0; }
  .with-side .side { display: none; }
  .side-cats { display: none; }
}
/* правки бокового меню */
a.cat-btn { text-decoration: none; }
.sc-list { margin: 0 -10px; }
.cm-drop .cm-host { max-width: min(calc(var(--wrap) - 48px), calc(100vw - 48px)); }
@media (min-width: 961px) {
  .home-grid .cm-fly { top: 24px; left: calc(24px + var(--cm-w) + 10px); right: 24px; min-height: calc(100% - 48px); }
}
@media (max-width: 600px) { .subnav { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } }

/* ---------- боковая колонка раздела: «Розділи» отдельным блоком, ниже фильтры ---------- */
.side-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.side-h .ic { color: var(--accent); }
.side-cats { background: var(--soft); border: 0; border-radius: var(--r-lg); padding: 16px 16px 12px; margin-bottom: 26px; }
.side-cats .sc-list { margin: 0 -8px; }
.side-cats .sc-list a { padding: 7px 8px; }
.side-cats .sc-list a:hover { background: #fff; }
.sc-up { margin-bottom: 6px; }
.sc-more summary { color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; padding: 8px 0 2px; }
.sc-more summary::-webkit-details-marker { display: none; }
.sc-more[open] summary { display: none; }
.f-head { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.fgroup:first-of-type { padding-top: 14px; }
@media (max-width: 960px) { .f-head { display: none; } }

/* ---------- карточка товара ---------- */
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "gal info" "det info"; gap: 28px 48px; align-items: start; margin-top: 6px; }
.pc-gallery { grid-area: gal; position: relative; }
.pc-gallery .g-main { max-height: 460px; aspect-ratio: 4 / 3; border: 1px solid var(--line-soft); background: #fff; }
.pc-gallery .g-main img { max-height: 458px; }
.pc-gallery .g-main.empty { height: auto; aspect-ratio: 16 / 7; background: var(--soft); border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; color: #b9b3a9; font-weight: 700; font-size: 14px; }
.pc-info { grid-area: info; position: sticky; top: 104px; }
.pc-info h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.4px; margin: 0 0 14px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--soft); font-size: 13.5px; color: var(--muted); font-weight: 600; }
.tag b { color: var(--ink); }
.tag.ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.tag.no { background: #f1efeb; color: var(--muted); }
.pcard .bb-split { margin: -8px 0 16px; }
.buy-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 6px; box-shadow: 0 6px 24px rgba(20, 22, 26, .05); }
.bc-price { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 18px; }
.bc-price .per { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.bc-form { display: flex; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.bc-form .btn.buy { flex: 1; justify-content: center; }
.bc-info { list-style: none; margin: 0; padding: 6px 0; }
.bc-info li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; color: var(--muted); }
.bc-info li + li { border-top: 1px solid var(--line-soft); }
.bc-info .ic { color: var(--accent); flex: none; margin-top: 2px; }
.bc-info span { display: grid; gap: 1px; }
.bc-info b, .bc-info a { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 15px; }
.bc-info a:hover { color: var(--accent); }
.pc-details { grid-area: det; display: grid; gap: 36px; }
.pc-block h2 { font-size: 21px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(140px, 38%) minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; }
.spec-list dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.spec-list dd a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 1180px) { .pcard { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px 32px; } }
@media (max-width: 960px) {
  .pcard { grid-template-columns: 1fr; grid-template-areas: "gal" "info" "det"; gap: 22px; }
  .pc-info { position: static; }
  .pc-gallery .g-main.empty { aspect-ratio: 16 / 6; }
}
@media (max-width: 600px) {
  .pc-info h1 { font-size: 22px; }
  .bc-price { font-size: 32px; }
  .buy-card { padding: 18px 16px 4px; }
  .bc-form .qty.big input { width: 46px; }
  .spec-list > div { grid-template-columns: 1fr 1.2fr; gap: 10px; font-size: 14.5px; }
}
.cm-drop .mp-cols { columns: 4 190px; column-gap: 28px; }

/* нет фото — компактная заглушка, чтобы характеристики были на первом экране */
.pc-gallery .g-main.empty { aspect-ratio: auto; height: 200px; flex-direction: row; gap: 14px; }
@media (max-width: 960px) { .pc-gallery .g-main.empty { height: 120px; } }
