/* gorka.kz — общий CSS второй версии. Без библиотек (G1). Тёмная тема, лаймовый акцент (G4);
   второй цвет — янтарно-оранжевый для режима «С НДС» (этап 7, решение владельца, ответ 15). */

@font-face{font-family:"Unbounded";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/unbounded-cyrillic-700-normal.woff2?v=fdc2a845) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/unbounded-latin-700-normal.woff2?v=477fa230) 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}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/golos-text-cyrillic-400-normal.woff2?v=15a5cbad) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/golos-text-latin-400-normal.woff2?v=c8246f55) 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:#0d0f0d;--bg2:#141814;--bg3:#1a1f1a;--card:#161b16;--border:#2a302a;
  --accent:#c8f135;--accent-ink:#0d0f0d;--nds:#f1a335;--price:var(--accent);--text:#f0f2ee;--muted:#a3a9a1;--wa:#25d366;--wa-ink:#06200f;
  --head:"Unbounded",system-ui,sans-serif;--body:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;
  --radius:12px;--header-h:56px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);font-weight:400;font-synthesis:none;background:var(--bg);color:var(--text);line-height:1.5;font-size:16px}
h1,h2,h3,p,ul,dl,dd{margin:0}
ul{padding:0;list-style:none}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
button,input{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}
.mode-nds{--price:var(--nds)}
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.i{width:18px;height:18px;flex:none}
.wrap{max-width:1280px;margin:0 auto;padding:0 24px}
.js-only{visibility:hidden}
.js .js-only{visibility:visible}
.section-title{font-family:var(--head);font-weight:700;font-size:clamp(20px,2.4vw,28px);line-height:1.2;letter-spacing:-.3px}
.section-sub{color:var(--muted);font-size:14px;margin-top:0}

/* Кнопки */
.btn-primary,.btn-secondary,.btn-wa,.btn-call{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:10px;font-family:var(--head);font-weight:700;font-size:13px;line-height:1.2;padding:12px 18px;min-height:44px;transition:opacity .15s,border-color .15s}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-secondary{border:1.5px solid var(--border);color:var(--text)}
.btn-secondary:hover{border-color:var(--accent)}
.btn-wa{background:var(--wa);color:var(--wa-ink)}
.btn-call{border:1.5px solid var(--border);color:var(--text)}
.btn-primary:hover,.btn-wa:hover{opacity:.88}
.btn-wa-lg{margin-top:20px}

/* Шапка: логотип, меню «Каталог ▾ · Статьи», телефон, WhatsApp (этап 7, п. 4) */
.site-header{position:sticky;top:0;z-index:50;background:rgba(13,15,13,.96);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;gap:20px;height:var(--header-h)}
.logo{font-family:var(--head);font-weight:700;font-size:20px;color:var(--accent);text-decoration:none;letter-spacing:-.5px}
.logo span{color:var(--muted)}
.header-nav{display:flex;align-items:center}
.nav-desk{display:flex;align-items:center;gap:2px}
.nav-link{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 10px;border-radius:8px;font-size:15px;color:var(--text);text-decoration:none}
.nav-link:hover,.nav-drop[open] > .nav-link{background:var(--bg3)}
.nav-link[aria-current]{color:var(--accent)}
.nav-chev{width:16px;height:16px;transition:transform .15s}
.nav-drop{position:relative}
.nav-drop[open] .nav-chev{transform:rotate(180deg)}
.nav-drop .nav-sub{position:absolute;top:calc(100% + 8px);left:0;min-width:300px;background:var(--bg3);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 16px 40px rgba(0,0,0,.55)}
.nav-sub a{display:block;padding:10px 12px;border-radius:8px;text-decoration:none;color:var(--text);font-size:15px}
.nav-sub a:hover{background:var(--bg2);color:var(--accent)}
.nav-sub a[aria-current]{color:var(--accent)}
.nav-mob{display:none}
.header-contacts{margin-left:auto;display:flex;align-items:center;gap:14px}
.header-tel{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:15px;white-space:nowrap}
.site-header .btn-wa{padding:8px 14px;min-height:38px}

/* Первый экран: без фото (этап 7d, D-020), заголовок и подзаголовок разделены отступом; подзаголовок в две строки,
   вторая — салатовым. Цена и счётчики в ряд, одна кнопка на компьютере (этап 7, п. 1) */
.hero{background:radial-gradient(ellipse 55% 120% at 82% 50%,rgba(200,241,53,.07),transparent 70%),#151a15;border-bottom:1px solid var(--border)}
.hero-inner{padding-top:16px;padding-bottom:16px}
/* без фото место справа занимают цена, счётчики и кнопка: первый экран ниже, каталог выше */
.hero-text{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:start}
.hero-text > *{grid-column:1}
.hero-badge{justify-self:start}
.hero-text > .hero-row{grid-column:2;grid-row:1 / span 3;align-self:center;flex-direction:column;align-items:stretch;gap:12px;width:300px}
.hero-text > .hero-row .hero-from{flex-basis:100%}
.hero-text > .hero-row .hero-from + .hero-dot{display:none}
.hero-badge{display:inline-block;color:var(--accent);border:1px solid rgba(200,241,53,.35);background:rgba(200,241,53,.08);border-radius:100px;padding:2px 12px;font-size:13px;margin-bottom:8px}
h1{font-family:var(--head);font-weight:700;font-size:clamp(21px,2.1vw,28px);line-height:1.15;letter-spacing:-.5px;margin-bottom:6px}
.hero h1{margin-bottom:14px}
.hero-sub{color:var(--muted);font-size:15px;margin-bottom:12px}
.hero-sub-1,.hero-sub-2{display:block}
.hero-sub-2{color:var(--accent);font-size:16px;margin-top:2px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.hero-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px}
.hero-stats{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:15px;color:var(--muted)}
.hero-from{color:var(--text)}
.from-val{font-family:var(--head);font-weight:700;color:var(--price);font-size:22px;white-space:nowrap}
.hero-stats [data-stat]{color:var(--text)}
.hero-dot{color:var(--muted)}
.hero-ctas{display:flex;flex-wrap:wrap;gap:10px}
.btn-hero{min-height:46px;padding:12px 22px;font-size:14px}
.hero-catalog{display:none}

/* Каталог */
.catalog{padding:24px 0 40px}
.catalog .wrap > *{scroll-margin-top:calc(var(--header-h) + 12px)}
.catalog{scroll-margin-top:var(--header-h)}
.catalog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.catalog-title{font-size:20px}
.catalog-head-cat .filters{margin-bottom:0}
.catalog-head-cat .price-toggle{margin-left:auto}
.price-toggle{display:flex;border:1.5px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg3)}
.toggle-btn{border:0;background:none;padding:9px 18px;cursor:pointer;font-family:var(--head);font-weight:700;font-size:12px;color:var(--muted);min-height:40px}
.toggle-btn:first-child{border-right:1.5px solid var(--border)}
.toggle-btn.is-active{background:var(--accent);color:var(--accent-ink)}
.toggle-btn[data-mode="nds"].is-active{background:var(--nds)}
.filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.filters:empty{display:none}
.filter{border:1.5px solid var(--border);border-radius:8px;padding:6px 10px;font-size:13px;white-space:nowrap;text-decoration:none;color:var(--muted);background:var(--bg3);line-height:1.3}
.filter:hover{color:var(--text);border-color:var(--accent)}
.filter.is-active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.catalog-note{background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:10px 14px;font-size:14px;color:var(--muted);margin-bottom:14px}
.cat-block{margin-bottom:30px;scroll-margin-top:calc(var(--header-h) + 12px)}
.cat-block.is-filtered{display:none}
.cat-title{font-family:var(--head);font-weight:700;font-size:16px;margin-bottom:8px}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}

/* Карточка (этап 7, п. 5): низ как на рабочем сайте — линия, слева цена, справа «Купить», прижато к низу */
.card{background:var(--card);border:1.5px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;scroll-margin-top:calc(var(--header-h) + 12px);transition:border-color .2s}
.card:hover{border-color:rgba(200,241,53,.4)}
.card-img{background:#fff}
.card-img img{width:100%;aspect-ratio:10/7;object-fit:contain}
.img-placeholder{display:block;width:100%;aspect-ratio:10/7}
.catalog-empty{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:20px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-bottom:14px}
.catalog-empty p{font-size:16px}
.card-body{padding:12px 16px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.card-name{font-family:var(--head);font-weight:700;font-size:14px;line-height:1.35;min-height:4.05em}
.card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px;color:var(--muted)}
.card-stock{border:1px solid rgba(200,241,53,.3);background:rgba(200,241,53,.06);color:var(--accent);border-radius:6px;padding:2px 8px}
.card-old{font-size:13px;color:var(--muted)}
.old-pct{color:var(--accent)}
.card-specs{font-size:13px}
.card-specs summary{color:var(--accent)}
.card-specs dl{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin-top:4px}
.card-specs dt{color:var(--muted)}
.card-kp{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;min-height:36px;margin-top:-2px}
.kp-check{display:inline-flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;min-height:36px}
.kp-check input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.kp-qty{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.kp-num{width:64px;background:var(--bg);border:1.5px solid var(--border);border-radius:8px;padding:5px 8px}
.card.is-selected{border-color:var(--accent)}
/* flex-wrap — страховка: если цена не помещается рядом с кнопкой, кнопка уходит под цену, а не налезает на неё */
.card-foot{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px;padding-top:12px;border-top:1px solid var(--border)}
/* ширину блока цены задаёт сама цена, подпись под ней может переноситься */
.card-price{display:flex;flex-direction:column;gap:4px;flex:1 1 0}
.price-val{font-family:var(--head);font-weight:700;font-size:17px;line-height:1.1;color:var(--price);white-space:nowrap}
.price-note{font-size:10px;line-height:1.3;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.price-mode{color:var(--price)}
.btn-buy{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;background:var(--wa);color:var(--wa-ink);text-decoration:none;border-radius:8px;padding:9px 14px;min-height:40px;font-family:var(--head);font-weight:700;font-size:12px}
.btn-buy:hover{opacity:.88}
.btn-buy .i{width:16px;height:16px}

/* Страница категории */
.cat-intro{background:var(--bg2);border-bottom:1px solid var(--border);padding:12px 0 14px}
.crumbs ol{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 6px;padding:0;list-style:none;font-size:13px;color:var(--muted)}
.crumbs li+li::before{content:"/";margin-right:4px}
.crumbs a{color:var(--muted)}
.cat-stock{color:var(--accent);font-size:15px;margin:2px 0 6px}
.cat-lead{color:var(--muted);font-size:15px;max-width:900px}
.cat-text{padding:8px 0 8px}
.text-wrap{max-width:900px}
.text-wrap p{margin-bottom:12px;color:var(--text)}
.cat-more{margin-top:10px;font-size:14px}
.cat-more a{color:var(--accent)}
.sections{padding:32px 0}
.sections-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.sections-list a{display:inline-block;border:1.5px solid var(--border);border-radius:10px;padding:10px 14px;text-decoration:none;background:var(--card)}
.sections-list a:hover{border-color:var(--accent)}

/* Статьи (этап 7, п. 9): тёмная тема, текст на тёмно-серой подложке, крупнее и свободнее; справа — содержание */
.article{padding:14px 0 36px}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}
.article-main{background:#181c18;border:1px solid var(--border);border-radius:18px;padding:28px 40px 32px;min-width:0}
.article h1{max-width:820px;font-size:clamp(22px,2.4vw,32px);line-height:1.2;margin-bottom:18px}
.article-short{border:1.5px solid rgba(200,241,53,.45);border-radius:14px;padding:14px 18px;margin:0 0 26px;background:rgba(200,241,53,.04)}
.article-short-title{font-family:var(--head);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:var(--accent);margin-bottom:6px}
.article-short ul{display:grid;gap:6px}
.article-short li{position:relative;padding-left:20px;font-size:16px;line-height:1.5;color:#e2e5df}
.article-short li::before{content:"";position:absolute;left:2px;top:.6em;width:8px;height:8px;border-radius:2px;background:var(--accent)}
.article-short a{color:var(--text)}
.article-body{max-width:740px;font-size:18px;line-height:1.75;color:#d9ddd6}
.article-body > p:first-child{font-size:20px;line-height:1.6;color:#eef0ec}
.article-body h2{font-family:var(--head);font-weight:700;font-size:23px;line-height:1.3;color:var(--text);margin:40px 0 14px;scroll-margin-top:calc(var(--header-h) + 16px)}
.article-body p,.article-body ul,.article-body ol{margin:0 0 16px}
.article-body ul,.article-body ol{padding-left:26px}
.article-body ul{list-style:disc}
.article-body ul > li::marker{color:var(--accent)}
.article-body ol > li::marker{color:var(--accent);font-family:var(--head);font-weight:700;font-size:.9em}
.article-body li{margin-bottom:8px;padding-left:4px}
.article-body a:not([class]),.text-wrap a:not([class]),.article-under a:not([class]){color:var(--accent)}
.article-body strong{font-family:var(--head);font-weight:700;font-size:.88em;color:var(--text)}
.callout{border-left:4px solid var(--accent);background:rgba(200,241,53,.06);border-radius:0 12px 12px 0;padding:14px 18px;color:#e6e9e3}
.article-body ul.checklist{list-style:none;padding-left:0}
.checklist li{position:relative;padding-left:32px}
.checklist li::before{content:"";position:absolute;left:0;top:.35em;width:18px;height:18px;border:2px solid var(--accent);border-radius:4px}
.photo-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;list-style:none!important;padding:0!important;margin:6px 0 16px!important}
.photo-row li{margin:0;padding:0}
.photo-row a{display:block;background:#fff;border-radius:10px;overflow:hidden;text-decoration:none;border:1.5px solid transparent}
.photo-row a:hover{border-color:var(--accent)}
.photo-row img{width:100%;aspect-ratio:4/3;object-fit:contain}
.photo-row-cap{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.photo-row-cap a{background:var(--card);border-color:var(--border);height:100%}
.photo-row-cap picture{display:block;background:#fff}
.photo-cap{display:block;padding:8px 10px;font-size:13px;line-height:1.35;color:var(--text)}
.table-wrap{max-width:100%}
.set-table{width:100%;border-collapse:collapse;font-size:16px;margin:4px 0 6px}
.set-table th,.set-table td{border-bottom:1px solid var(--border);padding:9px 6px;text-align:left;vertical-align:top}
.set-table thead th{font-size:13px;color:var(--muted);font-weight:400}
.set-table td:nth-child(2){white-space:nowrap}
.set-table td:last-child,.set-table thead th:last-child{text-align:right;white-space:nowrap}
.set-table tfoot th{font-weight:400}
.set-table tfoot strong{font-family:var(--head);font-weight:700}
.sum-spec strong,span.sum-spec{color:var(--accent)}
.sum-nds strong,span.sum-nds{color:var(--nds)}
span.sum-spec,span.sum-nds{white-space:nowrap}
.short-sums{display:block;color:var(--muted)}
.set-date{font-size:13px;color:var(--muted)}
.set-warn{background:var(--bg3);border:1px solid var(--accent);border-radius:10px;padding:8px 12px;font-size:15px}
.set{margin-bottom:12px}
.set .btn-wa{margin:4px 0 8px}
.article-cta{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
.article-sections{margin:6px 0 20px}
/* список разделов в тексте статьи: кнопки без маркеров списка (этап 7b, п. 5) */
.article-body .sections-list{list-style:none;padding-left:0;margin:0}
.article-body .sections-list li{margin:0;padding:0}
.article-body .sections-list a{color:var(--text);font-size:15px;line-height:1.3}
.article-body .sections-list a:hover{color:var(--accent)}
.article-aside{position:sticky;top:calc(var(--header-h) + 16px)}
.aside-inner{background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:16px 16px 18px;max-height:calc(100vh - var(--header-h) - 32px);overflow:auto}
.aside-title{font-family:var(--head);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:8px}
.toc{list-style:none;padding:0;margin:0 0 14px;counter-reset:toc}
.toc li{counter-increment:toc}
.toc a{display:flex;gap:8px;padding:6px 8px;border-radius:8px;font-size:14px;line-height:1.35;text-decoration:none;color:var(--muted)}
.toc a::before{content:counter(toc);font-family:var(--head);font-weight:700;font-size:11px;color:var(--accent);min-width:16px;padding-top:2px}
.toc a:hover{background:var(--bg3);color:var(--text)}
.aside-cta{width:100%}
/* /stati/: карточки с фото */
.article-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.article-card{background:var(--card);border:1.5px solid var(--border);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s}
.article-card:hover{border-color:rgba(200,241,53,.4)}
/* картинки карточек статей — 2:1, собраны tools/make_article_images.py (этап 7e, D-021) */
.article-card-img{display:block;background:#151a15}
.article-card-img img{width:100%;aspect-ratio:2/1;object-fit:cover}
.article-card-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.article-item-title{font-family:var(--head);font-weight:700;font-size:17px;line-height:1.3}
.article-item-title a{text-decoration:none;color:var(--text)}
.article-item-title a:hover{color:var(--accent)}
.article-list p{color:var(--muted);font-size:15px}
.article-card-more{margin-top:auto;color:var(--accent);font-size:14px;text-decoration:none}
.article-under{max-width:820px}

/* Страница и окно товара (этап 7b, D-018) */
.card-name a{color:inherit;text-decoration:none}
.card-name a:hover{color:var(--accent)}
.card-photo{display:block}
.product-page{padding:14px 0 40px}
.card.product,.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px 36px;align-items:start;background:none;border:0;border-radius:0;overflow:visible}
.card.product:hover{border-color:transparent}
.product-media .card-img{background:#fff;border-radius:16px;overflow:hidden}
.product .card-img img,.product .img-placeholder{aspect-ratio:4/3}
.product .card-name.product-title,.product-title{font-family:var(--head);font-weight:700;font-size:clamp(22px,2.3vw,30px);line-height:1.2;letter-spacing:-.3px;margin:0 0 10px;min-height:0}
.product .card-meta{font-size:13px;margin-bottom:14px}
.product-sold{background:var(--bg3);border:1px solid var(--border);border-radius:10px;padding:10px 14px;margin-bottom:14px}
.product-buy{background:var(--card);border:1.5px solid var(--border);border-radius:14px;padding:14px 16px;display:grid;gap:12px;max-width:460px}
.product-buy .price-toggle{justify-self:start}
.product .card-foot{margin-top:0}
.product .price-val{font-size:24px}
.product .price-note{font-size:11px}
.product .card-kp{margin:0}
.product.is-sold .product-buy{display:none}
.product-h{font-family:var(--head);font-weight:700;font-size:17px;margin:26px 0 10px}
.spec-table{width:100%;max-width:560px;border-collapse:collapse;font-size:15px}
.spec-table th,.spec-table td{border-bottom:1px solid var(--border);padding:9px 4px;text-align:left;vertical-align:top}
.spec-table th{font-weight:400;color:var(--muted);width:52%;padding-right:14px}
.spec-list{list-style:disc;padding-left:22px;max-width:560px;font-size:15px}
.spec-list li{margin-bottom:6px}
.spec-list li::marker{color:var(--accent)}
.product-purpose{max-width:560px;font-size:15px}
.product-country{margin-top:20px;font-size:15px;color:var(--muted)}
.product-back{margin-top:24px;font-size:15px}
.product-back a{color:var(--accent)}
html.has-dialog{overflow:hidden}
.product-dialog{padding:0;border:1px solid var(--border);border-radius:18px;background:var(--bg2);color:var(--text);width:min(1100px,calc(100vw - 48px));max-width:none;max-height:calc(100vh - 48px);overflow:auto;overscroll-behavior:contain}
.product-dialog::backdrop{background:rgba(5,7,5,.78)}
.dialog-inner{position:relative;padding:26px 30px 30px}
.dialog-close{position:sticky;top:0;float:right;z-index:2;margin:-10px -14px 0 12px;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1.5px solid var(--border);background:var(--bg3);color:var(--text);cursor:pointer}
.dialog-close:hover{border-color:var(--accent);color:var(--accent)}
.dialog-close .i{width:22px;height:22px}
.product-dialog .product{clear:none}

/* Полоса преимуществ */
.usp{background:var(--bg3);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.usp-list{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;padding-top:16px;padding-bottom:16px;font-size:14px;color:var(--muted)}
.usp-list li{display:flex;align-items:center;gap:8px}
.usp-list .i{color:var(--accent)}
.usp-list strong{color:var(--text);font-weight:400}

/* Блок доверия, преимущества, вопросы, призыв */
.trust,.why,.faq,.cta{padding:40px 0}
.trust-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:16px}
.trust-list div{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px}
.trust-list dt{font-size:12px;color:var(--muted)}
.why{background:var(--bg2)}
.why-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:16px}
.why-grid li{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px}
.why-grid .i{width:26px;height:26px;color:var(--accent);margin-bottom:8px}
.why-grid h3{font-family:var(--head);font-weight:700;font-size:14px;margin-bottom:6px}
.why-grid p{font-size:14px;color:var(--muted)}
.faq-list{margin-top:16px;display:grid;gap:8px;max-width:900px}
.faq-list details{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px}
.faq-list summary{cursor:pointer;font-size:15px}
.faq-list p{margin-top:8px;color:var(--muted);font-size:14px}
.cta{background:var(--bg3);border-top:1px solid var(--border)}
.cta-inner{text-align:center}
.cta-inner p{color:var(--muted);margin-top:8px}
.cta-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:6px}
.cta-buttons .btn-call{margin-top:20px}

/* Футер: логотип, телефон, WhatsApp, адрес, год (этап 7, п. 8) */
.site-footer{background:var(--bg2);border-top:1px solid var(--border);padding:28px 0 26px;font-size:14px;color:var(--muted)}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.footer-info{display:flex;flex-wrap:wrap;align-items:center;gap:6px 24px}
.footer-info a{text-decoration:none;color:var(--text)}
.footer-info a:hover{color:var(--accent)}
.footer-copy{margin-top:18px;padding-top:16px;border-top:1px solid var(--border);font-size:13px}

/* Панель заявки на КП (D2) */
.kp-panel{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--bg3);border-top:2px solid var(--price);box-shadow:0 -8px 24px rgba(0,0,0,.4)}
.kp-inner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding-top:10px;padding-bottom:10px}
.kp-summary{font-size:14px}
.kp-summary strong{font-family:var(--head);font-weight:700;color:var(--price)}
.kp-buttons{display:flex;gap:8px;margin-left:auto}
.kp-clear{background:none;border:1.5px solid var(--border);border-radius:10px;padding:8px 14px;cursor:pointer;min-height:44px}
.kp-hint{font-size:12px;color:var(--muted);width:100%}
body.has-kp{padding-bottom:110px}

/* Панель на мобильном (D4) */
.mobile-bar{display:none}

/* Число карточек в ряду — по ширине, при которой цена и «Купить» помещаются в одну строку (замер, этап 7) */
@media (max-width:1249px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:959px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1099px){
  .article-layout{grid-template-columns:minmax(0,1fr)}
  .article-aside{display:none}
}
/* колонка с ценой справа — только там, где H1 первого экрана помещается в одну строку (замер: от 1000 px, с запасом 1040) */
@media (max-width:1039px){
  .hero-text{display:block}
  .hero-text > .hero-row{flex-direction:row;align-items:center;width:auto}
  .hero-text > .hero-row .hero-from{flex-basis:auto}
  .hero-text > .hero-row .hero-from + .hero-dot{display:inline}
}
@media (max-width:900px){
  .header-tel span{display:none}
}
@media (max-width:640px){
  .set-table{font-size:14px}
  .set-table th,.set-table td{padding:7px 3px}
  .article-main{padding:18px 16px 20px;border-radius:14px;margin:0 -6px}
  .article-body{font-size:17px;line-height:1.7}
  .article-body > p:first-child{font-size:18px}
  .article-body h2{font-size:19px;margin-top:30px}
  .article-short li{font-size:15px}
  .callout{padding:12px 14px}
  .photo-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .photo-row-cap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .article-list{grid-template-columns:minmax(0,1fr)}
  .wrap{padding:0 16px}
  .header-inner{gap:10px}
  .logo{font-size:19px}
  .header-contacts{gap:8px}
  .header-nav{order:3}
  .header-tel span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  .header-tel{width:40px;height:40px;justify-content:center;border:1.5px solid var(--border);border-radius:10px}
  .site-header .btn-wa{display:none}
  /* меню на телефоне: кнопка «Меню» раскрывает список разделов и статьи */
  .nav-desk{display:none}
  .nav-mob{display:block}
  .nav-burger{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:1.5px solid var(--border);border-radius:10px;font-size:14px}
  .nav-mob[open] .nav-burger{border-color:var(--accent);color:var(--accent)}
  .nav-panel{position:fixed;left:0;right:0;top:var(--header-h);z-index:80;background:var(--bg2);border-bottom:1px solid var(--border);box-shadow:0 16px 40px rgba(0,0,0,.6);padding:10px 16px 16px;max-height:calc(100vh - var(--header-h));overflow:auto}
  .nav-panel-title{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);padding:6px 12px 2px}
  .nav-more{border-top:1px solid var(--border);margin-top:6px;padding-top:6px}
  .nav-panel .nav-link{display:block;min-height:0;padding:10px 12px;line-height:1.5}
  .hero-inner{padding-top:12px;padding-bottom:14px}
  .hero-badge{font-size:12px;margin-bottom:6px}
  .hero h1{font-size:22px;margin-bottom:16px}
  .hero-sub{font-size:14px;margin-bottom:10px}
  .hero-sub-2{font-size:15px}
  .hero-row{gap:10px}
  .hero-stats{font-size:14px;gap:2px 8px}
  .from-val{font-size:19px}
  .hero-ctas{width:100%}
  .hero-catalog{display:inline-flex;order:-1}
  .hero-ctas a{flex:1 1 auto;padding:10px 12px;font-size:13px}
  .catalog{padding-top:20px}
  .catalog-title{font-size:18px}
  .catalog-head-cat .filters{order:2;width:100%}
  .catalog-head-cat .price-toggle{margin-left:0}
  .filters{flex-wrap:nowrap;overflow-x:auto;margin-left:-16px;margin-right:-16px;padding:0 16px 4px;scrollbar-width:thin}
  .catalog-head-cat .filters{margin-left:-16px;margin-right:-16px}
  .grid{gap:10px}
  .card-body{padding:10px 10px 12px;gap:6px}
  .card-name{font-size:12px}
  .card-meta{font-size:11px;gap:4px 8px}
  .kp-check{font-size:12px;gap:6px}
  /* на узкой карточке цена над кнопкой — цены и кнопки всё равно в одну линию по всей строке */
  .card-foot{flex-direction:column;align-items:stretch;gap:8px;padding-top:10px}
  .price-val{font-size:14px}
  .price-note{font-size:9px}
  .btn-buy{padding:8px 10px}
  .kp-panel{bottom:56px}
  .kp-buttons{margin-left:0;width:100%}
  .kp-send{flex:1}
  .kp-hint{display:none}
  body{padding-bottom:56px}
  body.has-kp{padding-bottom:180px}
  .mobile-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;height:56px;background:var(--bg2);border-top:1px solid var(--border)}
  .mobile-bar a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-family:var(--head);font-weight:700;font-size:13px}
  .mb-wa{background:var(--wa);color:var(--wa-ink)}
  .footer-inner{flex-direction:column;align-items:flex-start}
  .card.product,.product{grid-template-columns:minmax(0,1fr);gap:14px}
  .product .card-name.product-title,.product-title{font-size:21px}
  .product .price-val{font-size:22px}
  .product .price-note{font-size:10px}
  .product .card-foot{flex-direction:row;align-items:center}
  .product-dialog{width:100vw;height:100%;max-height:100%;margin:0;border-radius:0;border:0}
  .dialog-inner{padding:12px 16px 24px}
  .dialog-close{margin:0 0 6px 10px}
  .footer-info{flex-direction:column;align-items:flex-start;gap:6px}
}
@media (max-width:380px){
  .grid{gap:8px}
  .hero-ctas a{font-size:12px}
  .nav-burger span{display:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
