/* ЭнергоРезерв — демо-каталог ИБП/АКБ. Дизайн-система. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6ebf2;
  --line-2: #eef2f7;
  --brand: #ea580c;
  --brand-d: #c2410c;
  --brand-dd: #9a3412;
  --navy: #0b1220;
  --navy-2: #131c2e;
  --accent: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow: 0 6px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.16);
  --container: 1240px;
  --header-h: 70px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
body.nofscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
img, svg { max-width: 100%; display: block; }
code { background: #eef2f7; border-radius: 5px; padding: 1px 6px; font-size: .9em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  border-radius: 10px; padding: 11px 20px; transition: .16s ease; white-space: nowrap;
  line-height: 1; text-align: center;
}
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(180deg, var(--brand), var(--brand-d)); color: #fff; box-shadow: 0 6px 16px rgba(234,88,12,.28); }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--outline { background: #fff; border-color: #cdd8e6; color: var(--ink); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-d); }
.btn--ghost { background: #fff2ea; color: var(--brand-dd); }
.btn--ghost:hover { background: #ffe0cc; }
.btn--light { background: #fff; color: var(--brand-dd); }
.btn--light:hover { transform: translateY(-1px); }

/* ---------- demo ribbon ---------- */
.demo-ribbon {
  display: block; text-align: center; background: linear-gradient(90deg, #0b1220, #1e293b);
  color: #cbd5e1; font-size: 12.5px; font-weight: 600; padding: 7px 12px; letter-spacing: .01em;
}
.demo-ribbon:hover { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #f97316, #dc2626); position: relative; box-shadow: 0 4px 12px rgba(234,88,12,.35); }
.logo-mark::after { content: "\1F525"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; }
.logo-text b { color: var(--brand-d); font-weight: 800; }
.logo--light .logo-text { color: #fff; }
.logo--light .logo-text b { color: #fdba74; }
.main-nav { display: flex; gap: 4px; margin-left: 6px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.main-nav a:hover { background: #fff2ea; color: var(--brand-dd); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-search { display: flex; align-items: center; background: #eef2f7; border: 1px solid transparent; border-radius: 10px; overflow: hidden; }
.header-search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,88,12,.15); }
.header-search input { border: 0; background: transparent; padding: 9px 12px; width: 200px; font: inherit; outline: none; }
.header-search button { border: 0; background: transparent; color: var(--muted); padding: 0 12px; cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { color: var(--brand-d); }
.header-phone { display: flex; flex-direction: column; line-height: 1.1; }
.header-phone__num { font-weight: 700; font-size: 15px; }
.header-phone__note { font-size: 11px; color: var(--muted); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(249,115,22,.18), transparent 60%), linear-gradient(180deg, #0b1220, #131c2e); color: #e6edf6; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 20px 72px; }
.hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fdba74; background: rgba(249,115,22,.14); padding: 6px 12px; border-radius: 100px; }
.hero h1 { color: #fff; margin: 16px 0 14px; font-size: clamp(30px, 4vw, 50px); }
.hero p { color: #b7c3d4; font-size: 17px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero__stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 0; }
.hero__stats b { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.hero__stats span { color: #91a1b8; font-size: 13px; }
.hero__cards { position: relative; height: 340px; }
.hero__glass { position: absolute; width: 250px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); padding: 14px; box-shadow: var(--shadow-lg); }
.hero__glass svg { border-radius: 10px; }
.hero__glass--1 { top: 0; right: 40px; transform: rotate(-4deg); }
.hero__glass--2 { bottom: 0; left: 20px; width: 210px; transform: rotate(5deg); }

/* ---------- category tiles ---------- */
.cats { margin-top: -36px; position: relative; z-index: 2; }
.cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat-tile { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: .18s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #f6c1a3; }
.cat-tile__ico { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 12px; overflow: hidden; background: #f1f5f9; }
.cat-tile__txt h2 { font-size: 20px; margin-bottom: 6px; }
.cat-tile__txt p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.link-arrow { color: var(--brand-d); font-weight: 600; font-size: 14px; }

/* ---------- sections ---------- */
.feat { padding: 48px 20px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; }
.section-head--mt { margin-top: 40px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid--catalog { grid-template-columns: repeat(3, 1fr); }

/* ---------- product card ---------- */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .16s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f6c1a3; }
.pcard__img { position: relative; aspect-ratio: 4/3; background: #f1f5f9; }
.pcard__img svg { width: 100%; height: 100%; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 100px; }
.badge--in { background: #dcfce7; color: #15803d; }
.badge--out { background: #fef3c7; color: #b45309; }
.pcard__body { padding: 14px 14px 8px; flex: 1; }
.pcard__brand { font-size: 12px; color: var(--muted); font-weight: 600; }
.pcard__title { font-size: 15.5px; font-weight: 700; margin: 3px 0 8px; }
.pcard__specs { font-size: 13px; color: var(--ink-2); }
.pcard__meta { margin-top: 8px; }
.pcard__sku { font-size: 12px; color: var(--muted); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.price-val { font-weight: 800; font-size: 17px; color: var(--ink); }
.price-req { font-weight: 700; font-size: 14px; color: var(--brand-d); }

/* ---------- advantages / cta ---------- */
.adv { padding: 52px 20px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.adv-ico { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; background: #fff2ea; border-radius: 12px; margin-bottom: 12px; }
.adv-item h3 { font-size: 16px; margin-bottom: 6px; }
.adv-item p { color: var(--muted); font-size: 13.5px; margin: 0; }
.cta-band { background: linear-gradient(120deg, var(--brand-d), #0369a1); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { margin: 0; color: #dbeafe; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 20px 0 6px; }
.breadcrumbs a:hover { color: var(--brand-d); }
.crumb-sep { color: #cbd5e1; }
.crumb-cur { color: var(--ink-2); font-weight: 600; }

/* ---------- catalog ---------- */
.catalog { padding-bottom: 60px; }
.catalog__head { margin: 6px 0 22px; }
.catalog__intro { color: var(--muted); max-width: 860px; }
.catalog__layout { display: grid; grid-template-columns: 288px 1fr; gap: 26px; align-items: start; }
.catalog__main { min-width: 0; }
.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog__count { color: var(--muted); font-size: 14px; }
.catalog__count b { color: var(--ink); }
.catalog__tools { display: flex; gap: 10px; align-items: center; }
.sortsel { border: 1px solid #cdd8e6; border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; cursor: pointer; }
.filter-mobile-btn { display: none; }

/* ---------- filter ---------- */
.filter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 14px; position: sticky; top: calc(var(--header-h) + 12px); }
.filter__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; font-weight: 700; border-bottom: 1px solid var(--line-2); }
.filter__reset { border: 0; background: none; color: var(--brand-d); font: inherit; font-size: 13px; cursor: pointer; font-weight: 600; }
.filter__reset:hover { text-decoration: underline; }
.filter__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.chip { border: 1px solid #f6c1a3; background: #fff2ea; color: var(--brand-dd); border-radius: 100px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-weight: 600; }
.chip:hover { background: #ffe6d5; }
.fblock { border-bottom: 1px solid var(--line-2); }
.fblock__head { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 600; font-size: 14px; padding: 13px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.fblock__chev { color: var(--muted); transition: .2s; }
.fblock--collapsed .fblock__chev { transform: rotate(-90deg); }
.fblock--collapsed .fblock__body { display: none; }
.fblock__body { padding-bottom: 12px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 13.5px; }
.fopt input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; flex: 0 0 auto; }
.fopt__label { flex: 1; color: var(--ink-2); }
.fopt__count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fopt--muted { opacity: .45; }
.fopt--hidden { display: none; }
.fblock__more { border: 0; background: none; color: var(--brand-d); font: inherit; font-size: 13px; cursor: pointer; font-weight: 600; padding: 4px 0; }
.fblock__more:hover { text-decoration: underline; }
/* range */
.frange__inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.frange__num { width: 74px; border: 1px solid #cdd8e6; border-radius: 8px; padding: 7px 8px; font: inherit; }
.frange__num:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,88,12,.15); }
.frange__dash { color: var(--muted); }
.frange__unit { color: var(--muted); font-size: 12.5px; }
.frange__slider { position: relative; height: 26px; margin: 0 4px; }
.frange__track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; background: #e2e8f0; border-radius: 4px; }
.frange__fill { position: absolute; top: 0; bottom: 0; background: var(--brand); border-radius: 4px; }
.frange__slider input[type=range] { position: absolute; top: 0; left: 0; width: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; height: 26px; }
.frange__slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: var(--shadow-sm); cursor: pointer; margin-top: 4px; }
.frange__slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }
.frange__slider input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.filter__mclose, .filter__applybar { display: none; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h1 { font-size: 64px; margin-bottom: 4px; }
.empty-state h3 { color: var(--ink); }
.empty-state .btn { margin-top: 14px; }

/* ---------- product page ---------- */
.product { padding-bottom: 60px; }
.product__top { display: grid; grid-template-columns: 460px 1fr; gap: 40px; margin: 8px 0 40px; }
.gallery__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: #f1f5f9; cursor: pointer; padding: 0; }
.gallery__thumb.is-active { border-color: var(--brand); }
.psum__brand { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.psum__title { font-size: clamp(22px, 2.6vw, 30px); }
.psum__meta { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; flex-wrap: wrap; }
.psum__sku { color: var(--muted); font-size: 13.5px; }
.psum__key { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; border-top: 1px solid var(--line-2); }
.psum__key li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.psum__key span { color: var(--muted); }
.psum__key b { text-align: right; }
.psum__buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.psum__price { margin-bottom: 14px; }
.psum__price .price-val { font-size: 26px; }
.psum__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.psum__hint { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.psum__desc { color: var(--ink-2); margin-top: 20px; }

.pspecs, .pdocs, .psimilar { margin: 34px 0; }
.specgroup { margin-bottom: 22px; }
.specgroup h3 { font-size: 15px; color: var(--brand-dd); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 8px; }
.spectable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spectable tr:nth-child(odd) { background: #fafcfe; }
.spectable td { padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.spectable td:first-child { color: var(--muted); width: 46%; }
.spectable td:last-child { font-weight: 600; }
.spectable tr:last-child td { border-bottom: 0; }

.pdocs__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.docitem { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: .15s; }
.docitem:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.docitem__ico { width: 44px; height: 44px; border-radius: 8px; background: #fee2e2; color: #dc2626; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.docitem__t { flex: 1; display: flex; flex-direction: column; }
.docitem__t small { color: var(--muted); font-size: 12px; }
.docitem__dl { color: var(--brand-d); font-size: 20px; font-weight: 700; }

/* ---------- pages ---------- */
.page { padding-bottom: 60px; }
.page h1 { margin-top: 8px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 900px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0; }
.about-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 7px 0 7px 28px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: #fff; background: var(--accent); width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; }
.about-cta { margin-top: 18px; }
.stagechips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.stagechips span { background: #fff2ea; color: var(--brand-dd); border-radius: 100px; padding: 7px 14px; font-size: 13px; font-weight: 600; }

.brandgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brandcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; transition: .15s; }
.brandcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f6c1a3; }
.brandcard__logo { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.02em; }
.brandcard__name { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.brandcard__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contacts-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contacts-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.contacts-row span { color: var(--muted); }
.contacts-note { color: var(--muted); font-size: 13px; margin: 14px 0 18px; }
.map-fake { background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e6ebf2 12px, #e6ebf2 24px); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; min-height: 260px; display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* ---------- modal ---------- */
.modal-host { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,17,32,.55); backdrop-filter: blur(3px); }
.modal { position: relative; background: #fff; width: 100%; max-width: 460px; border-radius: 16px; padding: 26px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal__x { position: absolute; top: 14px; right: 14px; border: 0; background: #f1f5f9; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--muted); }
.modal__x:hover { background: #e2e8f0; }
.modal__title { font-size: 20px; margin-bottom: 4px; padding-right: 30px; }
.modal__note { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.modal__prod { display: flex; align-items: center; gap: 12px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 16px; }
.modal__prodimg { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #eef2f7; flex: 0 0 auto; }
.modal__prod small { display: block; color: var(--muted); font-size: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
.field input, .field textarea { width: 100%; border: 1px solid #cdd8e6; border-radius: 10px; padding: 11px 12px; font: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,88,12,.15); }
.modal__hidden { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; color: var(--muted); display: grid; gap: 3px; margin: 6px 0 14px; word-break: break-all; }
.modal__hidden b { color: var(--ink-2); font-weight: 600; }
.modal__policy { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.modal__success { text-align: center; padding: 20px 0; }
.modal__check { width: 60px; height: 60px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 30px; display: grid; place-items: center; margin: 0 auto 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; z-index: 120; box-shadow: var(--shadow-lg); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b7c3d4; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 30px; padding: 48px 20px 30px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: #9fb0c6; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-about { font-size: 13.5px; margin: 14px 0 10px; max-width: 340px; }
.footer-note { font-size: 12px; color: #7688a1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #7688a1; flex-wrap: wrap; }
.footer-bottom__links { display: flex; gap: 18px; }
.footer-bottom__links a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .brandgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header-search, .header-phone { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; top: calc(var(--header-h) + 33px); background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-140%); transition: .25s; z-index: 40; }
  .main-nav--open { transform: translateY(0); }
  .main-nav a { padding: 12px; font-size: 16px; border-bottom: 1px solid var(--line-2); }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards { display: none; }
  .cat-tiles { grid-template-columns: 1fr; }
  .catalog__layout { grid-template-columns: 1fr; }
  .product__top { grid-template-columns: 1fr; gap: 24px; }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .filter-mobile-btn { display: inline-flex; }
  /* filter as drawer */
  .filter { position: fixed; inset: 0; z-index: 90; border-radius: 0; margin: 0; overflow: auto; transform: translateX(-100%); transition: .25s; padding-top: 56px; }
  .filter--open { transform: translateX(0); }
  .filter__mclose { display: block; position: absolute; top: 12px; right: 14px; border: 0; background: #f1f5f9; width: 38px; height: 38px; border-radius: 9px; font-size: 16px; cursor: pointer; }
  .filter__applybar { display: block; position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 10px; }
}
@media (max-width: 720px) {
  .pgrid, .pgrid--catalog { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero__stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdocs__list { grid-template-columns: 1fr; }
  .psum__key { grid-template-columns: 1fr; }
  .cat-tile { flex-direction: column; align-items: flex-start; }
  .cat-tile__ico { width: 100%; height: 150px; flex-basis: auto; }
}
@media (max-width: 460px) {
  .pgrid, .pgrid--catalog { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .brandgrid { grid-template-columns: repeat(2, 1fr); }
}
