/* Эколайн — стили сайта. Токены в :root, без сторонних библиотек.
   Концепция «каталог снабженца»: белая рабочая поверхность, тёмная хвойная полоса навигации,
   фирменный зелёный логотипа как цвет действия, пиктограммы отделов вместо отсутствующих фото. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/manrope-cyrillic-wght-normal.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: 300 800; font-display: swap; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --spruce: #12382B;       /* полоса навигации, тёмные блоки */
    --spruce-2: #1B4C3B;
    --leaf: #36B337;         /* фирменный зелёный — кнопки действий */
    --leaf-d: #2A9530;
    --leaf-ink: #1E7A33;     /* ссылки на белом, 5.3:1 */
    --lime: #B5E07A;         /* акцент на тёмном */
    --mist: #EFF4EF;         /* подложки, плашки пиктограмм */
    --mist-2: #E2EBE3;
    --line: #DCE4DD;
    --ink: #142219;
    --text: #2C3A31;
    --muted: #5D6C63;
    --signal: #FFC23D;       /* цены со скидкой, «хит» — жёлтый старого сайта */
    --sale: #D9412B;
    --r-lg: 20px;
    --r: 12px;
    --r-sm: 8px;
    --wrap: 1320px;
    --f-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --f-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 15px/1.55 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-ink); text-decoration: none; }
a:hover { color: var(--spruce); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--f-head); color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
.h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0 0 18px; }
.h2 { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2; margin: 0 0 18px; }
.h3 { font-size: 19px; margin: 0 0 14px; }

/* ---------- Кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; background: var(--leaf); color: #fff;
    border-radius: var(--r-sm); font-weight: 700; font-size: 15px; line-height: 1.1; text-align: center; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--leaf-d); color: #fff; text-decoration: none; }
.btn .i { width: 18px; height: 18px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--leaf-ink); box-shadow: inset 0 0 0 1.5px #B9DDB6; }
.btn-outline:hover { background: var(--mist); color: var(--spruce); box-shadow: inset 0 0 0 1.5px var(--leaf); }
.btn-light { background: #fff; color: var(--spruce); }
.btn-light:hover { background: var(--lime); color: var(--spruce); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--leaf-ink); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; line-height: 1.3; }
.link-btn:hover { color: var(--spruce); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--mist); }

.fld { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; }
.fld input, .fld textarea, .fld select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 15px; font-weight: 400; color: var(--ink); }
.fld textarea { resize: vertical; line-height: 1.45; }
.fld input:focus, .fld textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(54, 179, 55, .16); }
.fld.err input, .fld.err textarea { border-color: var(--sale); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fld-group { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 7px; }
.fld-group legend { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 7px; padding: 0; }
.radio { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.radio input { width: 18px; height: 18px; accent-color: var(--leaf); margin: 0; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 2px 0 14px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--leaf); }
.consent.err span { color: var(--sale); }
.form-err { color: var(--sale); background: #FCEBE7; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; margin: 0 0 12px; }
.form-ok { text-align: center; padding: 10px 0; }
.form-ok .i { width: 52px; height: 52px; color: var(--leaf); }
.form-ok p { font-size: 16px; color: var(--ink); }

/* ---------- Шапка ---------- */
.hdr { position: relative; z-index: 31; }
.hdr-main { background: #fff; }
.hdr-in { display: flex; align-items: center; gap: 28px; min-height: 86px; }
.logo { flex: none; display: block; }
.logo img { width: 214px; height: auto; }
.burger { display: none; }
.search { flex: 1; display: flex; min-width: 0; position: relative; max-width: 620px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 54px 0 18px; border: 1.5px solid var(--line); border-radius: 24px; background: #fff; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(54, 179, 55, .14); }
.search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; background: var(--leaf); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.search button:hover { background: var(--leaf-d); }
.search button .i { width: 18px; height: 18px; }
.search-lg { max-width: 720px; margin: 0 0 22px; }
.hdr-phone { display: flex; flex-direction: column; line-height: 1.3; flex: none; margin-left: auto; }
.hp-main { font: 700 19px/1.2 var(--f-head); color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.hp-main:hover { color: var(--leaf-ink); text-decoration: none; }
.hp-sub { font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; gap: 12px; }
.hp-sub a { color: var(--text); }
.hdr-cart { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; font-weight: 700; }
.hdr-cart:hover { text-decoration: none; color: var(--leaf-ink); }
.hc-ico { position: relative; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--mist); border-radius: 50%; color: var(--spruce); }
.hc-ico .i { width: 22px; height: 22px; }
.hc-ico b { position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--leaf); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.hc-txt { white-space: nowrap; }

.hdr-bar { background: var(--spruce); position: sticky; top: 0; z-index: 30; }
.bar-in { display: flex; align-items: center; gap: 26px; min-height: 52px; }
.cat-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border: 0; background: var(--leaf); color: #fff; font-weight: 700; font-size: 15px; flex: none; margin-left: -1px; }
.cat-btn:hover, .cat-btn[aria-expanded="true"] { background: var(--leaf-d); }
.cat-btn .cb-chev { width: 16px; height: 16px; transition: transform .2s; }
.cat-btn[aria-expanded="true"] .cb-chev { transform: rotate(180deg); }
.bar-links { display: flex; gap: 24px; flex-wrap: wrap; overflow: hidden; height: 52px; align-items: center; }
.bar-links a { color: #D6E4DA; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.bar-links a:hover, .bar-links a[aria-current] { color: #fff; text-decoration: none; }
.bar-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--lime); padding: 15px 0; }
.bar-price { margin-left: auto; color: var(--lime); font-weight: 700; font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.bar-price:hover { color: #fff; text-decoration: none; }
.bar-price .i { width: 18px; height: 18px; }

/* мега-меню */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(18, 56, 43, .16); z-index: 40; }
.mega-in { display: grid; grid-template-columns: 330px 1fr; min-height: 440px; max-height: calc(100vh - 150px); }
.mega-l { list-style: none; margin: 0; padding: 14px 0; border-right: 1px solid var(--line); overflow-y: auto; }
.mega-l a { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 4px; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.25; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.mega-l a.on, .mega-l a:hover { color: var(--spruce); text-decoration: none; background: var(--mist); }
.ml-ico { width: 30px; height: 30px; color: var(--leaf-ink); flex: none; }
.mega-r { padding: 22px 0 26px 34px; overflow-y: auto; }
.mega-t { font: 700 21px/1.2 var(--f-head); margin: 0 0 18px; }
.mega-t a { color: var(--ink); }
.mega-t span { font: 600 13px var(--f-body); color: var(--muted); margin-left: 6px; }
.mega-cols { columns: 3 210px; column-gap: 30px; }
.mega-g { break-inside: avoid; margin: 0 0 20px; display: flex; flex-direction: column; gap: 5px; }
.mega-g a { color: var(--text); font-size: 14px; line-height: 1.35; }
.mega-g a.mega-s, .mega-cols > .mega-s { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.mega-g a:hover { color: var(--leaf-ink); }
.mega-more { color: var(--leaf-ink) !important; font-weight: 600; }

/* мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10, 30, 22, .5); }
.drawer-in { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 380px); background: #fff; overflow-y: auto; padding: 14px 18px 30px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer-h { font: 700 15px var(--f-head); color: var(--ink); margin: 20px 0 6px; }
.drawer-cats { list-style: none; margin: 0; padding: 0; }
.drawer-cats li { border-bottom: 1px solid var(--line); }
.drawer-cats summary, .dc-top { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 700; color: var(--ink); list-style: none; cursor: pointer; font-size: 14.5px; line-height: 1.3; }
.drawer-cats summary span, .dc-top span { flex: 1; }
.drawer-cats summary::-webkit-details-marker { display: none; }
.drawer-cats summary > .i { width: 18px; height: 18px; transition: transform .2s; color: var(--muted); }
.drawer-cats details[open] summary > .i { transform: rotate(180deg); }
.dc-ico { width: 28px; height: 28px; color: var(--leaf-ink); flex: none; }
.drawer-cats details a { display: block; padding: 7px 0 7px 38px; color: var(--text); font-size: 14.5px; }
.drawer-cats details a.dc-all { color: var(--leaf-ink); font-weight: 600; }
.drawer-cats details a:last-child { margin-bottom: 8px; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { padding: 8px 0; color: var(--ink); font-weight: 600; }
.drawer-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.drawer-contacts a { color: var(--ink); font-weight: 700; display: flex; gap: 8px; align-items: center; }

/* ---------- Общие блоки ---------- */
.crumbs-wrap { padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '›'; margin: 0 8px; color: #A9B6AD; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--leaf-ink); }
.crumbs li[aria-current] { color: var(--ink); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { padding-top: 18px; padding-bottom: 64px; }
.page.narrow { max-width: 900px; }
.sect { padding: 56px 0; }
.sect-mist { background: var(--mist); }
.sect-line { border-top: 1px solid var(--line); }
.sect-in { margin-top: 48px; }
.sect-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; flex-wrap: wrap; }
.sect-h .h2 { margin: 0; }
.more { font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.more-light { color: var(--lime); }
.more-light:hover { color: #fff; }
.empty { background: var(--mist); border-radius: var(--r); padding: 26px; color: var(--text); }
.empty p { margin: 0 0 8px; }
.empty p:last-child { margin: 0; }
.rich { line-height: 1.7; color: var(--text); overflow-wrap: break-word; max-width: 78ch; }
.rich h2 { font-size: 22px; margin: 30px 0 12px; }
.rich h3 { font-size: 18px; margin: 22px 0 10px; }
.rich p, .rich ul, .rich ol { margin: 0 0 14px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich li { margin-bottom: 5px; }
.rich table { border-collapse: collapse; width: 100%; margin: 0 0 16px; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich img { border-radius: var(--r-sm); margin: 10px 0; }

/* ---------- Главная: поиск и список закупки ---------- */
.hero { padding: 24px 0 0; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; background: var(--spruce); border-radius: var(--r-lg); padding: 48px 48px 44px; color: #D8E6DC; position: relative; overflow: hidden; }
.hero-panel::before { content: ''; position: absolute; right: 360px; top: -120px; width: 420px; height: 420px; background: url('../img/mark.svg') no-repeat center / contain; opacity: .07; pointer-events: none; }
.hero-main { position: relative; display: flex; flex-direction: column; }
.hero-t { color: #fff; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; max-width: 17ch; font-weight: 800; }
.hero-s { margin: 0 0 26px; font-size: 16.5px; line-height: 1.6; max-width: 60ch; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 30px; max-width: 680px; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; font-size: 16px; background: transparent; color: var(--ink); border-radius: 24px; }
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 24px; min-height: 48px; padding: 0 24px; }
.hero-pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; font-size: 13.5px; }
.hero-pop span { color: #9DB5A6; margin-right: 2px; }
.hero-pop a { color: #E8F1EA; padding: 5px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.hero-pop a:hover { background: var(--lime); color: var(--spruce); text-decoration: none; }
.hero-facts { list-style: none; margin: auto 0 0; padding: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; font-size: 14px; line-height: 1.4; }
.hero-facts li { display: flex; gap: 10px; align-items: flex-start; }
.hero-facts .i { color: var(--lime); width: 22px; height: 22px; margin-top: 1px; }
.hero-facts b { color: #fff; font-weight: 800; }
.hero-list { position: relative; background: #fff; color: var(--text); border-radius: var(--r); padding: 26px 24px 22px; align-self: start; }
.hl-t { font: 700 21px/1.2 var(--f-head); color: var(--ink); margin: 0 0 6px; }
.hl-s { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

/* ---------- Справочник отделов ---------- */
.depts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.dept { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.dept-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--mist); color: var(--leaf-ink); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.dept-ico .cico { width: 44px; height: 44px; }
.dept:hover .dept-ico { background: var(--leaf); color: #fff; }
.dept-t { font: 700 17px/1.25 var(--f-head); margin: 2px 0 3px; letter-spacing: -.01em; }
.dept-t a { color: var(--ink); }
.dept-t a:hover { color: var(--leaf-ink); }
.dept-n { margin: 0 0 9px; font-size: 13px; color: var(--muted); }
.dept-sub { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; line-height: 1.4; }
.dept-sub a { color: var(--text); }
.dept-sub a:hover { color: var(--leaf-ink); }
.dept-sub .dept-more { color: var(--leaf-ink); font-weight: 600; }

/* ---------- Блок «ЭКОЛАЙН» ---------- */
.word { background: var(--spruce); color: #C9DACE; padding: 64px 0 60px; }
.word-t { color: #fff; font-size: clamp(20px, 2vw, 24px); margin: 0 0 30px; }
.word-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.word-row li { padding: 18px 12px 20px 0; border-right: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 8px; }
.word-row li:last-child { border-right: 0; }
.word-row li + li { padding-left: 16px; }
.word-row b { font: 800 clamp(48px, 6.4vw, 92px)/.9 var(--f-head); color: var(--lime); letter-spacing: -.03em; }
.word-row span { font-size: 14px; font-weight: 600; color: #E3EEE6; }
.word-txt { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; margin-top: 34px; flex-wrap: wrap; }
.word-txt p { margin: 0; max-width: 72ch; font-size: 15.5px; line-height: 1.65; }

/* бренды, новости */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 20px; border-radius: 26px; border: 1.5px solid var(--line); color: var(--ink); font: 700 15px/1.2 var(--f-head); }
.brand:hover { border-color: var(--leaf); text-decoration: none; color: var(--leaf-ink); }
.brand img { max-height: 32px; width: auto; }
.brand small { font: 500 12px var(--f-body); color: var(--muted); margin-left: 8px; }
.brands-all .brand { min-height: 60px; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.ngrid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ncard { display: flex; flex-direction: column; gap: 8px; }
.nc-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-d { font-size: 13px; color: var(--muted); font-weight: 600; }
.nc-t { font: 700 16.5px/1.35 var(--f-head); margin: 0; letter-spacing: -.01em; }
.nc-t a { color: var(--ink); }
.nc-t a:hover { color: var(--leaf-ink); }
.nc-x { margin: 0; font-size: 14px; color: var(--muted); }
.article .nc-d { display: block; margin-bottom: 8px; }
.art-img { margin: 0 0 22px; border-radius: var(--r); overflow: hidden; }

/* ---------- Карточка товара ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.pgrid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; min-width: 0; transition: border-color .15s; }
.pcard:hover { border-color: #A9D3A6; }
.pc-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 4; margin: 0 0 12px; border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; }
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--mist); color: #8DB596; border-radius: inherit; }
.noimg .cico { width: 42%; height: 42%; max-width: 96px; max-height: 96px; }
.pc-badges { position: absolute; left: 20px; top: 20px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.bdg { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.bdg-sale { background: var(--sale); color: #fff; }
.bdg-hit { background: var(--signal); color: var(--ink); }
.bdg-new { background: var(--spruce); color: #fff; }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pc-t { font: 600 14.5px/1.4 var(--f-body); margin: 0; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-t a { color: var(--ink); }
.pc-t a:hover { color: var(--leaf-ink); }
.pc-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.stock { margin: 0; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-many { color: var(--leaf-ink); }
.st-few { color: #B06F00; }
.st-order, .st-ask { color: var(--muted); }
.st-ask::before { background: #C3CEC6; }
.pc-buy { margin-top: 14px; }
.pc-price { font: 800 20px/1.15 var(--f-head); color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.pc-price small { font: 500 13px var(--f-body); color: var(--muted); }
.pc-price s, .bb-price s { font: 500 14px var(--f-body); color: var(--muted); margin-left: 6px; }
.pc-noprice { font: 600 15px var(--f-body); color: var(--muted); }
.buy { display: flex; gap: 8px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); flex: none; background: #fff; }
.qty button { width: 28px; height: 40px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { color: var(--leaf-ink); }
.qty .i { width: 15px; height: 15px; }
.qty input { width: 34px; height: 40px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; padding: 0; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-buy { flex: 1; min-height: 43px; padding: 0 10px; min-width: 0; font-size: 14.5px; }
.btn-buy span { white-space: nowrap; }
.btn-buy.added { background: var(--spruce); }
.pgrid-list { grid-template-columns: 1fr; gap: 10px; }
.pcard-row { flex-direction: row; align-items: center; gap: 20px; padding: 12px 16px; }
.pcard-row .pc-img { width: 96px; flex: none; margin: 0; aspect-ratio: 1; }
.pcard-row .pc-badges { left: 18px; top: 10px; }
.pcard-row .pc-buy { margin: 0; width: 250px; flex: none; }
.pcard-row .pc-price { margin-bottom: 8px; }

/* панель сортировки */
.ptool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 0 0 14px; margin: 0 0 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-f { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pt-f select { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 7px 10px; color: var(--ink); font-weight: 600; max-width: 220px; }
.pt-chk { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.pt-chk input { width: 17px; height: 17px; accent-color: var(--leaf); }
.pt-view { display: flex; gap: 2px; margin-left: auto; }
.pt-view a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--muted); }
.pt-view a.on { background: var(--mist); color: var(--spruce); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 34px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 21px; color: var(--ink); font-weight: 700; }
.pager a:hover { background: var(--mist); text-decoration: none; }
.pager .on { background: var(--spruce); color: #fff; }
.pager .pg-gap { min-width: 20px; }

/* ---------- Раздел каталога ---------- */
.cat-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.cat-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 90px); overflow-y: auto; padding-bottom: 10px; }
.cs-h { display: flex; gap: 12px; align-items: center; font: 700 16px/1.25 var(--f-head); color: var(--ink); }
.cs-h:hover { color: var(--leaf-ink); text-decoration: none; }
.cs-ico { width: 40px; height: 40px; color: var(--leaf-ink); background: var(--mist); border-radius: 12px; padding: 5px; flex: none; }
.cs-list, .cs-list ul { list-style: none; margin: 0; padding: 0; }
.cs-list > li { border-top: 1px solid var(--line); }
.cs-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.35; }
.cs-list ul { padding: 0 0 8px 12px; }
.cs-list ul a { font-weight: 500; padding: 6px 4px; font-size: 13.5px; }
.cs-list small { color: var(--muted); font-weight: 500; flex: none; }
.cs-list a:hover { color: var(--leaf-ink); text-decoration: none; }
.cs-list li.on > a { color: var(--leaf-ink); box-shadow: inset 3px 0 0 var(--leaf); padding-left: 12px; }
.cs-help { background: var(--mist); border-radius: var(--r); padding: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cs-help p { margin: 0; }
.csh-t { font: 700 15px var(--f-head); color: var(--ink); }
.csh-phone { font: 700 18px var(--f-head); color: var(--ink); margin-top: 4px; }
.cat-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.cat-head .h1 { margin: 0 0 4px; }
.cat-n { margin: 0; color: var(--muted); font-size: 14px; }
.cat-badge { width: 72px; height: 72px; border-radius: 18px; background: var(--mist); color: var(--leaf-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-badge .cico { width: 50px; height: 50px; }
.subcats { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.subcats li { border-bottom: 1px solid var(--line); }
.subcats a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 2px; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.subcats a:hover { color: var(--leaf-ink); text-decoration: none; }
.subcats small { color: var(--muted); font-weight: 500; font-size: 13px; }
.subcats-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; align-items: baseline; }
.subcats-inline a { font-weight: 600; }
.cat-intro { margin: 0 0 22px; }
.seo-txt { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }

/* ---------- Товар ---------- */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.prod-gal { position: sticky; top: 72px; }
.pg-main { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 28px; background: #fff; }
.pg-main .noimg { border-radius: var(--r); }
.pg-main .pc-badges { left: 18px; top: 18px; }
.pg-main a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; cursor: zoom-in; }
.pg-main img { max-height: 100%; width: auto; object-fit: contain; }
.pg-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pg-thumbs button { width: 72px; height: 72px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.pg-thumbs button.on { border-color: var(--leaf); }
.pg-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.prod-t { font-size: clamp(22px, 2.4vw, 31px); }
.prod-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); margin: -4px 0 18px; }
.prod-meta b { color: var(--ink); }
.mark-cz { color: var(--ink); font-weight: 600; }
.prod-short { margin: 0 0 18px; color: var(--muted); }
.buybox { border-radius: var(--r-lg); padding: 24px; background: var(--mist); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bb-price { font: 800 34px/1.05 var(--f-head); color: var(--ink); margin: 0; letter-spacing: -.02em; }
.bb-price small { font: 500 16px var(--f-body); color: var(--muted); }
.buy-lg { width: 100%; max-width: 440px; }
.buy-lg .qty button { width: 40px; height: 52px; }
.buy-lg .qty input { width: 56px; height: 52px; font-size: 16px; }
.buy-lg .btn-buy { min-height: 55px; font-size: 16px; }
.bb-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.prod-adv { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.prod-adv li { display: flex; gap: 10px; align-items: flex-start; }
.prod-adv .i { color: var(--leaf-ink); }
.prod-tabs { margin-top: 52px; }
.prod-tabs .tabs-h { margin-bottom: 20px; }
.prod-tabs .tabs-p { max-width: 900px; }
.props { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 14.5px; }
.props th, .props td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.props th { width: 42%; color: var(--muted); font-weight: 500; }
.zoom { position: fixed; inset: 0; z-index: 70; background: rgba(255, 255, 255, .97); display: flex; align-items: center; justify-content: center; padding: 30px; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom .icon-btn { position: absolute; top: 14px; right: 14px; background: var(--mist); }

/* вкладки */
.tabs-h { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs-h button { border: 0; background: none; color: var(--muted); padding: 8px 14px; border-radius: 20px; font-weight: 700; font-size: 15px; }
.tabs-h button:hover { color: var(--ink); }
.tabs-h button.on { background: var(--spruce); color: #fff; }

/* ---------- Корзина ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 36px; align-items: start; }
.cart-items { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ci { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 110px 40px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-img { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); overflow: hidden; }
.ci-img img { max-height: 100%; width: auto; object-fit: contain; }
.ci-name a { color: var(--ink); font-weight: 600; line-height: 1.35; display: block; }
.ci-name small { color: var(--muted); font-size: 13px; }
.ci-sum { margin: 0; font: 800 17px var(--f-head); text-align: right; white-space: nowrap; color: var(--ink); }
.cart-clear { align-self: flex-start; margin-top: 14px; font-size: 14px; color: var(--muted); }
.checkout { position: sticky; top: 72px; background: var(--mist); border-radius: var(--r-lg); padding: 24px; }
.co-total { font-size: 16px; margin: 0 0 4px; }
.co-total b { font: 800 26px var(--f-head); color: var(--ink); }
.co-free { margin: 0 0 16px; font-size: 13.5px; color: var(--leaf-ink); }
.co-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.org-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.done { text-align: center; max-width: 640px; }
.done-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--mist); color: var(--leaf); display: inline-flex; align-items: center; justify-content: center; margin: 24px 0 16px; }
.done-ico .i { width: 40px; height: 40px; }

/* ---------- Контакты, прайс, 404 ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: stretch; }
.ct-list { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ct-i { display: flex; gap: 14px; }
.ct-i > .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--mist); color: var(--leaf-ink); }
.ct-i p { margin: 0; }
.ct-l { color: var(--muted); font-size: 13px; font-weight: 600; }
.ct-big { display: block; font: 700 20px/1.35 var(--f-head); color: var(--ink); }
.ct-map { min-height: 380px; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); position: relative; }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-map-btn { position: absolute; inset: 0; width: 100%; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-weight: 700; font-size: 16px; }
.ct-map-btn .i { width: 40px; height: 40px; color: var(--leaf); }
.ct-map-btn small { color: var(--muted); font-weight: 500; font-size: 13px; }
.requisites { background: var(--mist); border-radius: var(--r); padding: 20px 24px; max-width: 900px; }
.price-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-b { display: flex; gap: 8px; flex-wrap: wrap; }
.price-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.price-tbl th, .price-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.price-tbl thead th { background: var(--spruce); color: #fff; position: sticky; top: 52px; }
.price-tbl .pt-cat th { background: var(--mist); color: var(--spruce); font-family: var(--f-head); }
.price-tbl td:first-child { color: var(--muted); white-space: nowrap; }
.price-tbl td a { color: var(--ink); }
.nf { text-align: center; max-width: 760px; }
.nf .search { margin: 20px auto; }
.nf .subcats-inline { justify-content: center; }
.nf-code { font: 800 96px/1 var(--f-head); margin: 20px 0 6px; color: var(--leaf); letter-spacing: -.04em; }

/* ---------- Подвал ---------- */
.cta-band { background: var(--leaf); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.cta-t { font: 700 22px/1.25 var(--f-head); margin: 0 0 4px; }
.cta-s { margin: 0; max-width: 62ch; color: #EAF7E6; }
.cta-b { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-white { background: #fff; color: var(--spruce); }
.cta-band .btn-white:hover { background: var(--spruce); color: #fff; }
.cta-band .btn-ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.cta-band .btn-ghost-w:hover { background: rgba(255, 255, 255, .14); }
.ftr { background: var(--spruce); color: #A9C0B1; font-size: 14px; }
.ftr a { color: #E2EDE5; }
.ftr a:hover { color: var(--lime); text-decoration: none; }
.ftr-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 34px; }
.ftr-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 16px; }
.ftr-logo img { width: 180px; }
.ftr-about p { margin: 0 0 14px; max-width: 36ch; }
.ftr-dl { display: flex; flex-direction: column; gap: 8px; }
.ftr-dl a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-h { font: 700 15px var(--f-head); color: #fff; margin: 0 0 6px; }
.fc-phone { font: 700 18px var(--f-head); }
.ftr-soc { display: flex; gap: 8px; margin-top: 6px; }
.ftr-soc a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ftr-soc a:hover { background: var(--leaf); color: #fff; }
.ftr-bot { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #86A090; }
.ftr-bot a { color: #A9C0B1; }

/* ---------- Окна ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 30, 22, .55); }
.modal-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 28px 26px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.modal-x { position: absolute; top: 10px; right: 10px; }
.modal-t { font: 700 22px/1.25 var(--f-head); color: var(--ink); margin: 0 0 6px; padding-right: 30px; }
.modal-s { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.modal-product { margin: 0 0 14px; padding: 10px 12px; background: var(--mist); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink); }
/* окно cookie: текст сверху, кнопки под ним — двум кнопкам («Принять все», «Только необходимые») всегда хватает места */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 75; width: min(440px, calc(100vw - 32px)); background: var(--spruce); color: #D8E6DC; border-radius: var(--r); box-shadow: 0 10px 40px rgba(0, 0, 0, .2); padding: 16px 18px; font-size: 13.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cookie p { margin: 0; }
.cookie a { color: var(--lime); }
.cookie-b { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-b .btn { flex: 1 1 auto; white-space: nowrap; }
.cookie .btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 85; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: 14px; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast a { color: var(--lime); font-weight: 700; white-space: nowrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
    .pgrid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pgrid-5 > :nth-child(5) { display: none; }
    .hero-panel { grid-template-columns: minmax(0, 1fr) 360px; padding: 40px; gap: 32px; }
    .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bar-links { gap: 18px; }
}
@media (max-width: 1080px) {
    .hdr-phone { display: none; }
    .hero-panel { grid-template-columns: 1fr; }
    .hero-panel::before { right: -100px; }
    .hero-list { max-width: 560px; }
    .hero-facts { padding-top: 26px; }
    .cat-page { grid-template-columns: 1fr; }
    .cat-side { display: none; }
    .cart { grid-template-columns: 1fr; }
    .checkout { position: static; }
    .ftr-in { grid-template-columns: 1fr 1fr; }
    .word-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
    .word-row li:nth-child(4) { border-right: 0; }
    .word-row li:nth-child(5) { padding-left: 0; }
    .bar-links a:nth-child(n+5) { display: none; }
}
@media (max-width: 860px) {
    .wrap { padding: 0 18px; }
    .hdr-in { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
    .burger { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; background: var(--mist); border-radius: var(--r-sm); color: var(--ink); }
    .logo img { width: 150px; }
    .search { order: 5; flex-basis: 100%; max-width: none; }
    .search input { height: 46px; }
    .search button { top: 4px; }
    .hdr-cart { margin-left: auto; }
    .hc-txt { display: none; }
    .hdr-bar { display: none; }
    .mega { display: none !important; }
    .hero { padding-top: 6px; }
    .hero-panel { padding: 28px 22px; border-radius: var(--r); }
    .hero-facts { grid-template-columns: 1fr; gap: 12px; }
    .depts { grid-template-columns: 1fr; }
    .pgrid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pgrid-5 > :nth-child(5) { display: flex; }
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard { padding: 10px; }
    .pc-badges { left: 16px; top: 16px; }
    .buy { flex-wrap: wrap; }
    .pcard .qty { width: 100%; justify-content: space-between; }
    .pcard .qty input { flex: 1; }
    .pcard-row { flex-wrap: wrap; }
    .pcard-row .pc-img { width: 76px; }
    .pcard-row .pc-body { flex: 1; min-width: 0; }
    .pcard-row .pc-buy { width: 100%; }
    .prod { grid-template-columns: 1fr; gap: 24px; }
    .prod-gal { position: static; }
    .contacts { grid-template-columns: 1fr; }
    .ci { grid-template-columns: 64px minmax(0, 1fr) 40px; grid-template-areas: 'img name del' 'img qty sum'; gap: 8px 12px; }
    .ci-img { grid-area: img; width: 64px; height: 64px; }
    .ci-name { grid-area: name; }
    .ci .buy { grid-area: qty; }
    .ci-sum { grid-area: sum; }
    .ci-del { grid-area: del; }
    .price-tbl thead th { top: 0; }
    .word { padding: 44px 0; }
    .word-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cat-badge { width: 56px; height: 56px; border-radius: 14px; }
    .cat-badge .cico { width: 38px; height: 38px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .hero-t { font-size: 27px; }
    .hero-search { flex-direction: column; border-radius: var(--r); background: transparent; padding: 0; gap: 8px; }
    .hero-search input { background: #fff; height: 50px; flex: none; border-radius: var(--r-sm); }
    .hero-search .btn { border-radius: var(--r-sm); }
    .hero-list { padding: 20px 18px; }
    .fld-row { grid-template-columns: 1fr; }
    .dept { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
    .dept-ico { width: 52px; height: 52px; border-radius: 14px; }
    .dept-ico .cico { width: 36px; height: 36px; }
    .pc-price { font-size: 18px; }
    .pt-view, .pt-per { display: none; }
    .pt-f span { display: none; }
    .ptool { gap: 8px 12px; }
    .ftr-in { grid-template-columns: 1fr; }
    .org-fields { grid-template-columns: 1fr; }
    .sect { padding: 40px 0; }
    .buybox { padding: 18px; }
    .bb-price { font-size: 29px; }
    .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; }
    .ct-map { min-height: 280px; }
    .word-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .word-row li, .word-row li + li { padding: 14px 10px 14px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .word-row li:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .1); }
    .word-row b { font-size: 52px; }
    .subcats { grid-template-columns: 1fr; }
}

@media print {
    .hdr, .ftr, .cta-band, .cookie, .crumbs-wrap, .price-b, .modal, .toast { display: none !important; }
    body { font-size: 11px; }
    .price-tbl thead th { position: static; background: #eee; color: #000; }
    .price-tbl td a { color: #000; }
    .price-tbl th, .price-tbl td { padding: 3px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* боковой список отделов (страница отдела верхнего уровня) */
.cs-cap { font: 700 15px var(--f-head); color: var(--ink); margin: 0; }
.cs-depts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cs-depts li { border-bottom: 1px solid var(--line); }
.cs-depts a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cs-depts a:hover { color: var(--leaf-ink); text-decoration: none; }
.cs-depts li.on a { color: var(--leaf-ink); }
.csd-ico { width: 26px; height: 26px; color: var(--leaf-ink); flex: none; }
/* карточка без фото: зона пиктограммы ниже */
.pcard-noimg .pc-img { aspect-ratio: 2 / 1; }
.pcard-noimg .noimg .cico { width: 30%; height: 60%; }
.pcard-row.pcard-noimg .pc-img { aspect-ratio: 1; }
.pg-noimg { aspect-ratio: 4 / 3; padding: 18px; }
.pg-noimg .noimg .cico { width: 26%; height: 50%; }
.prod-t { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.2; }

/* ---------- Текстовые страницы и статьи ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.doc-main { min-width: 0; max-width: 820px; }
.doc-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 22px; }
.doc-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.doc-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14.5px; }
.doc-nav a:hover { color: var(--leaf-ink); text-decoration: none; }
.doc-nav a[aria-current] { color: var(--leaf-ink); box-shadow: inset 3px 0 0 var(--leaf); padding-left: 14px; }
.doc-card { background: var(--spruce); color: #C9DACE; border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 14px; }
.doc-card a { color: #E2EDE5; }
.doc-card a:hover { color: var(--lime); text-decoration: none; }
.dc-t { font: 700 16px var(--f-head); color: #fff; margin: 0 0 6px; }
.dc-phone { font: 700 19px var(--f-head); color: #fff !important; }
.dc-h { margin: 6px 0 10px; color: #9DB5A6; font-size: 13px; }
.rich ul { list-style: none; padding-left: 0; }
.rich ul li { position: relative; padding-left: 22px; }
.rich ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--leaf); }
.rich h2:first-child, .rich h3:first-child { margin-top: 0; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more-list li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.more-list a { font-weight: 600; color: var(--ink); }
.more-list time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.h1-n { font: 600 15px/1 var(--f-body); color: var(--muted); vertical-align: middle; background: var(--mist); padding: 5px 10px; border-radius: 20px; margin-left: 6px; letter-spacing: 0; }
.ncard { border-top: 2px solid var(--ink); padding-top: 14px; }
.ncard .nc-img { margin-bottom: 4px; }
.requisites { column-count: 2; column-gap: 40px; max-width: none; }
.requisites h3 { break-after: avoid; margin-top: 0; }
.requisites p { break-inside: avoid; margin-top: 0; }
@media (max-width: 1080px) {
    .doc { grid-template-columns: 1fr; gap: 36px; }
    .doc-side { position: static; }
    .doc-nav { display: none; }
    .doc-card { max-width: 420px; }
}
@media (max-width: 700px) { .requisites { column-count: 1; } }
.rich table { display: table; border: 0; }
.rich th { background: var(--mist); font-weight: 700; color: var(--ink); }
.rich td, .rich th { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
.rich td:last-child { font-weight: 600; color: var(--ink); }
.rich ol { padding-left: 0; counter-reset: st; list-style: none; }
.rich ol li { counter-increment: st; position: relative; padding-left: 40px; min-height: 28px; margin-bottom: 10px; }
.rich ol li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--spruce); color: #fff; font: 700 13px/28px var(--f-head); text-align: center; }
@media (max-width: 560px) { .rich table { display: block; overflow-x: auto; } }

/* бренды — плитки с логотипами */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.brand { flex-direction: column; gap: 6px; min-height: 88px; padding: 14px; border-radius: var(--r); text-align: center; }
.brand img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.brand small { margin: 0; }
.brands-all { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brands-all .brand { min-height: 120px; }
.brands-all .brand img { max-height: 56px; }
.brand-badge { width: 150px; height: 80px; border: 1px solid var(--line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; padding: 12px; flex: none; }
.brand-badge img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 560px) { .brand-badge { width: 96px; height: 60px; } }
@media (max-width: 860px) {
    .ci { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .ci-sum { align-self: center; }
    .price-tbl, .price-tbl tbody { display: block; }
    .price-tbl thead { display: none; }
    .price-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .price-tbl td { border: 0; padding: 0; }
    .price-tbl td:nth-child(2) { grid-column: 1 / -1; order: -1; }
    .price-tbl td:nth-child(3) { display: none; }
    .price-tbl td:nth-child(1) { font-size: 12.5px; }
    .price-tbl td:nth-child(4) { font-weight: 700; color: var(--ink); text-align: right; }
    .price-tbl tr.pt-cat { display: block; padding: 0; margin-top: 14px; border: 0; }
    .price-tbl .pt-cat th { display: block; padding: 8px 10px; border-radius: var(--r-sm); }
}
.price-tbl td, .pc-t, .ci-name a, .cs-list a, .subcats a, .crumbs li { overflow-wrap: anywhere; }

/* разработчик сайта в подвале */
.ftr-bot { align-items: center; }
.ftr-dev { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: #A9C0B1 !important; white-space: nowrap; }
.ftr-dev img { height: 23px; width: auto; transition: opacity .15s; opacity: .9; }
.ftr-dev:hover { color: #fff !important; }
.ftr-dev:hover img { opacity: 1; }
@media (max-width: 860px) { .ftr-dev { margin-left: 0; } }
.ftr-note { order: 5; flex-basis: 100%; font-size: 12px; color: #6F8A79; }

/* ---------- Город: кнопка в шапке, вопрос «Ваш город?», окно выбора ---------- */
html.modal-open, html.flt-lock { overflow: hidden; }
.hdr-city { position: relative; flex: none; }
.city-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 4px; color: var(--ink); text-align: left; border-radius: var(--r-sm); }
.city-btn > .i { width: 20px; height: 20px; color: var(--leaf-ink); }
.city-btn .cb-txt { display: flex; flex-direction: column; line-height: 1.2; }
.city-btn small { font-size: 12px; color: var(--muted); }
.city-btn b { font-size: 14.5px; font-weight: 700; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.city-btn .cb-chev { width: 14px; height: 14px; color: var(--muted); }
.city-btn:hover b { color: var(--leaf-ink); }
.city-ask { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 45; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: 0 18px 40px rgba(18, 56, 43, .18); }
.city-ask::before { content: ''; position: absolute; top: -7px; left: 26px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.ca-t { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.ca-b { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { background: var(--mist); color: var(--ink); }
.drawer-city { display: flex; align-items: center; gap: 8px; width: 100%; margin: 18px 0 0; padding: 12px 14px; border: 0; border-radius: var(--r-sm); background: var(--mist); color: var(--ink); text-align: left; font-size: 14.5px; }
.drawer-city .i { color: var(--leaf-ink); }
.drawer-city small { margin-left: auto; color: var(--leaf-ink); font-weight: 600; }
.city-box { max-width: 760px; padding: 30px 30px 26px; }
.city-q { width: 100%; height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin: 4px 0 18px; font-size: 15px; }
.city-q:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(54, 179, 55, .14); }
.city-cols { columns: 3 190px; column-gap: 28px; }
.city-g { break-inside: avoid; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; margin-bottom: 10px; }
.city-l { font: 700 15px/30px var(--f-head); color: var(--leaf-ink); }
.city-g ul { list-style: none; margin: 0; padding: 0; }
.city-g a { display: block; padding: 4px 8px; margin-left: -8px; border-radius: 6px; color: var(--ink); font-weight: 600; line-height: 22px; }
.city-g a:hover { background: var(--mist); text-decoration: none; color: var(--leaf-ink); }
.city-g a.on { background: var(--spruce); color: #fff; }
.city-none { margin: 4px 0 0; color: var(--muted); }
.city-note { display: flex; gap: 14px; align-items: flex-start; background: var(--mist); border-radius: var(--r); padding: 18px 20px; margin: 0 0 28px; max-width: 900px; }
.city-note > .i { width: 26px; height: 26px; color: var(--leaf-ink); margin-top: 2px; }
.city-note p { margin: 0; }
.cn-t { font: 700 16px var(--f-head); color: var(--ink); margin-bottom: 4px !important; }

/* ---------- Товар под заказ ---------- */
.btn-preorder { background: var(--spruce); }
.btn-preorder:hover { background: #0B2A1F; }
.bb-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 152-ФЗ: документы, капча, подвал ---------- */
.cap-note { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.cap-note a { color: var(--muted); text-decoration: underline; }
.cap-box { height: 0; overflow: hidden; }
.doc-meta { color: var(--muted); font-size: 14px; }
.rich .doc-list { padding-left: 1.1em; }
.rich .doc-list li { margin-bottom: 10px; }
.rich blockquote { margin: 16px 0 24px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--r); background: #fff; font-size: 14.5px; }
.ftr-link { border: 0; background: none; padding: 0; color: #A9C0B1; font: inherit; cursor: pointer; }
.ftr-link:hover { color: #fff; text-decoration: underline; }

/* ---------- Фильтры каталога ---------- */
.cat-side { position: static; max-height: none; overflow: visible; }
.flt { display: flex; flex-direction: column; background: #fff; }
.flt-side { border: 1px solid var(--line); border-radius: var(--r); }
.flt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.flt-t { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 16px var(--f-head); color: var(--ink); }
.flt-t .i { width: 18px; height: 18px; color: var(--leaf-ink); }
.flt-n, .fg-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--leaf); color: #fff; font: 700 12px/22px var(--f-body); text-align: center; }
.flt-x { display: none; }
.flt-body { padding: 0 16px; }
.fg { border-top: 1px solid var(--line); padding: 12px 0; }
.flt-body > .fg:first-of-type { border-top: 0; }
.fg-t { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; list-style: none; }
.fg-t::-webkit-details-marker { display: none; }
details.fg > .fg-t { margin: 0; }
details.fg[open] > .fg-t { margin-bottom: 8px; }
.fg-t span { flex: 1; }
.fg-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
details.fg[open] .fg-chev { transform: rotate(180deg); }
.fg-list { display: flex; flex-direction: column; }
.fo { position: relative; display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; color: var(--text); cursor: pointer; line-height: 1.3; }
.fo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fo .cb { flex: none; width: 18px; height: 18px; border: 1.5px solid #B8C6BB; border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s; }
.fo input:checked + .cb { background: var(--leaf); border-color: var(--leaf); }
.fo input:checked + .cb::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.fo input:focus-visible + .cb, .fo input:focus-visible + .sw { outline: 2px solid var(--leaf); outline-offset: 2px; }
.fo:hover .cb { border-color: var(--leaf); }
.fo-l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fo small { color: var(--muted); font-size: 12.5px; flex: none; }
.fo input:checked ~ .fo-l { color: var(--ink); font-weight: 600; }
.fo.off { opacity: .45; cursor: default; }
.fo.off:hover .cb { border-color: #B8C6BB; }
.swatch { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.fo-sw .sw { flex: none; position: relative; width: 34px; height: 20px; border-radius: 10px; background: #CBD5CD; transition: background .15s; }
.fo-sw .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.fo-sw input:checked + .sw { background: var(--leaf); }
.fo-sw input:checked + .sw::after { transform: translateX(14px); }
.fg-flags { display: flex; flex-direction: column; }
.fg-more { margin-top: 6px; font-size: 13.5px; }
.fg-q { width: 100%; height: 36px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin: 0 0 6px; font-size: 14px; }
.fp-in { display: flex; align-items: center; gap: 8px; }
.fp-in label { flex: 1; min-width: 0; }
.fp-in input { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 14px; -moz-appearance: textfield; }
.fp-in input::-webkit-outer-spin-button, .fp-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fp-in input:focus { outline: none; border-color: var(--leaf); }
.fp-in > span { color: var(--muted); }
.fp-range { position: relative; height: 26px; margin: 8px 2px 0; }
.fp-track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--mist-2); }
.fp-track i { position: absolute; top: 0; bottom: 0; background: var(--leaf); border-radius: 2px; }
.fp-range input { position: absolute; left: -2px; right: -2px; width: calc(100% + 4px); top: 3px; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.fp-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--leaf); cursor: grab; }
.fp-range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--leaf); cursor: grab; }
.fp-range input::-webkit-slider-runnable-track { background: none; }
.fp-range input::-moz-range-track { background: none; }
.no-js .fp-range { display: none; }
.flt-foot { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.flt-reset { font-size: 14px; font-weight: 600; }
.js .flt-side .flt-foot .btn { display: none; }
.js .flt-side .flt-foot { padding-top: 0; }
.pt-flt { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 700; color: var(--ink); }
.pt-flt .i { width: 18px; height: 18px; color: var(--leaf-ink); }
.pt-flt b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--leaf); color: #fff; font-size: 12px; line-height: 20px; text-align: center; padding: 0 5px; }
.pt-flt-side { display: none; }
.pt-n { margin: 0; font-weight: 700; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 16px; background: var(--mist); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.chip .i { width: 14px; height: 14px; color: var(--muted); }
.chip:hover { background: var(--mist-2); text-decoration: none; color: var(--ink); }
.chip-reset { font-size: 13.5px; font-weight: 600; margin-left: 4px; }
.listing { transition: opacity .15s; }
.listing.is-loading { opacity: .45; pointer-events: none; }
.cs-nav { display: flex; flex-direction: column; gap: 14px; }

/* выезжающая панель: на страницах без колонки и на узких экранах */
.flt-drawer { display: none; }
.flt-drawer.open, .flt-side.open { display: flex; }
.flt-drawer, .flt.open { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(380px, 100%); border-radius: 0; border: 0; box-shadow: -20px 0 50px rgba(10, 30, 22, .2); }
.flt.open .flt-x, .flt-drawer .flt-x { display: inline-flex; }
.flt.open .flt-head, .flt-drawer .flt-head { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 18px; }
.flt.open .flt-body, .flt-drawer .flt-body { flex: 1; overflow-y: auto; padding: 4px 18px 10px; overscroll-behavior: contain; }
.flt.open .flt-foot, .flt-drawer .flt-foot { border-top: 1px solid var(--line); padding: 12px 18px 16px; }
.flt.open .flt-foot .btn, .flt-drawer .flt-foot .btn { display: inline-flex; }
.flt-bg { position: fixed; inset: 0; z-index: 84; background: rgba(10, 30, 22, .45); }
.no-js .flt-drawer { position: static; display: flex; width: auto; box-shadow: none; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
@media (max-width: 1080px) {
    .cat-page .cat-side { display: contents; }
    .cat-side > :not(.flt) { display: none; }
    .js .flt-side { display: none; }
    .js .flt-side.open { display: flex; }
    .pt-flt-side { display: inline-flex; }
}
@media (max-width: 860px) {
    .hdr-city { margin-left: auto; order: 3; }
    .hdr-cart { margin-left: 0; order: 4; }
    .city-btn small, .city-btn .cb-chev { display: none; }
    .city-btn b { max-width: 112px; font-size: 14px; }
    .city-ask { left: auto; right: -60px; width: min(300px, calc(100vw - 32px)); }
    .city-ask::before { left: auto; right: 100px; }
    .city-box { padding: 24px 18px 20px; }
    .city-cols { columns: 2 140px; column-gap: 16px; }
}
@media (max-width: 560px) {
    .pt-n { display: none; }
    .ptool { gap: 8px 10px; }
}

.subcats small { flex: none; white-space: nowrap; }
@media (max-width: 860px) {
    .city-ask { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; }
    .city-ask::before { display: none; }
}
@media (max-width: 440px) {
    .hdr-in { gap: 10px 8px; }
    .logo img { width: 124px; }
    .city-btn { gap: 5px; padding: 6px 2px; }
    .city-btn > .i { width: 18px; height: 18px; }
    .city-btn b { max-width: 92px; font-size: 13.5px; }
    .hc-ico { width: 42px; height: 42px; }
    .burger { width: 40px; height: 40px; }
}

/* ---------- Выбор города: регионы, поиск по всем городам; страница «Города доставки» ---------- */
.city-box { max-width: 880px; }
.city-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.city-tabs button { border: 0; background: var(--mist); color: var(--ink); border-radius: 16px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.city-tabs button:hover { background: var(--mist-2); }
.city-tabs button.on { background: var(--spruce); color: #fff; }
.city-cols { columns: 4 160px; column-gap: 24px; min-height: 120px; }
.city-cols.is-search { columns: 2 220px; }
.city-cols.is-search .city-g { grid-template-columns: minmax(0, 1fr); }
.city-cols.is-search .city-l { display: none; }
.city-g a small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.city-g a.on small { color: #C9DCCF; }
.city-all { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.cities-lead { max-width: 780px; margin: -6px 0 30px; font-size: 16px; color: var(--text); }
.cities-regions { display: grid; gap: 34px; }
.cr-t { font: 700 20px/1.25 var(--f-head); color: var(--ink); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.cr-t small { font: 600 14px var(--f-body); color: var(--muted); }
.cr-list { list-style: none; margin: 0; padding: 0; columns: 5 170px; column-gap: 24px; }
.cr-list li { break-inside: avoid; }
.cr-list a { display: inline-block; padding: 4px 0; color: var(--ink); font-weight: 600; }
.cr-list a:hover { color: var(--leaf-ink); }
.cr-list a.on { color: var(--leaf-ink); text-decoration: underline; text-underline-offset: 3px; }
.cities-note { margin: 34px 0 0; padding: 18px 20px; background: var(--mist); border-radius: var(--r); max-width: 780px; }
@media (max-width: 860px) {
    .city-tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px; scrollbar-width: none; }
    .city-tabs button { flex: none; }
    .city-cols { columns: 2 130px; }
    .cr-list { columns: 2 140px; }
}
.rich .doc-table td:last-child, .rich .doc-table td { font-weight: 400; }
.rich .doc-table td b { font-weight: 700; }
/* очень узкие экраны (320–360 px): бургер, логотип, город и корзина в одну строку */
@media (max-width: 360px) {
    .hdr-in { gap: 10px 6px; }
    .logo img { width: 96px; }
    .burger { width: 38px; height: 38px; }
    .hc-ico { width: 40px; height: 40px; }
    .city-btn { padding: 6px 2px; }
    .city-btn > .i { display: none; }
    .city-btn b { max-width: 86px; font-size: 13px; }
}
