/* Seguro Comp — светлая технологичная витрина по референсу заказчика (06.10.2026):
   ярко-синий акцент фирменной кристальной «S», белые карточки с фото на белом, мягкие голубые
   градиенты, тёмно-синие блоки для B2B и подвала. Заголовки и цены — Montserrat ExtraBold, текст — Onest. */

:root {
  --blue: #1D5BFF;
  --blue-600: #1549E6;
  --blue-700: #0F3AC0;
  --blue-50: #EEF3FF;
  --blue-100: #DFE8FF;
  --navy: #081433;
  --navy-800: #0E1F4A;
  --white: #FFFFFF;
  --bg: #F5F8FE;
  --bg-2: #EDF2FC;
  --line: #E1E8F5;
  --line-2: #CDD7EC;
  --ink: #0D1A3A;
  --ink-2: #4A5878;
  --ink-3: #5A6990;
  --on-navy-2: #A9B6D6;
  --green: #0E7A36;
  --green-bg: #E7F7EC;
  --amber: #95500A;
  --amber-bg: #FEF3E2;
  --danger: #C62828;
  --danger-bg: #FDECEC;

  --f-display: "Montserrat", "Onest", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --wrap: 1560px;
  --gut: 24px;
  --hdr: 80px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 2px 8px -2px rgba(15, 40, 110, .10);
  --shadow: 0 12px 30px -14px rgba(15, 40, 110, .22), 0 2px 6px -2px rgba(15, 40, 110, .06);
  --shadow-lg: 0 28px 60px -24px rgba(15, 40, 110, .32), 0 4px 12px -4px rgba(15, 40, 110, .08);
  --glow: 0 12px 26px -10px rgba(29, 91, 255, .65);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 60px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(29, 91, 255, .35); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
input, textarea { caret-color: var(--blue); }
html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--white); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.nobr { white-space: nowrap; }

h1, h2, h3, .display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); }
h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.accent { color: var(--blue); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em; border: 0; border-radius: var(--r);
  background: var(--blue); color: var(--white); font-weight: 600; font-size: .98rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: var(--glow);
  transition: background .2s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease), color .2s;
}
.btn:hover { background: var(--blue-600); color: var(--white); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(29, 91, 255, .75); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; }
.btn-outline, .btn-ghost { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-outline:hover, .btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--blue-600); }
.btn-light { background: var(--white); color: var(--blue); box-shadow: 0 10px 24px -12px rgba(8, 20, 51, .45); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-soft { background: var(--blue-50); color: var(--blue); box-shadow: none; }
.btn-soft:hover { background: var(--blue-100); color: var(--blue-700); box-shadow: none; }
.btn-accent { background: var(--blue); }
.btn-sm { min-height: 38px; padding: 0 1em; font-size: .88rem; border-radius: var(--r); }
.btn-lg { min-height: 56px; padding: 0 1.8em; font-size: 1.04rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.icon-btn.is-on { color: var(--blue); }
.icon-btn.is-on svg { fill: currentColor; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.arrow-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: var(--shadow-sm); transition: background .25s var(--ease), color .25s, transform .3s var(--ease); }
.arrow-btn .icon { width: 18px; height: 18px; }

/* ---------- поля ---------- */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--white); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--ink-3); }
.input:hover, .select:hover { border-color: var(--line-2); }
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 255, .14); }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; font-style: normal; }
.select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9.5 6 6 6-6' fill='none' stroke='%231D5BFF' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--white); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--white); transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-main { display: flex; align-items: center; gap: 18px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 48px; height: 48px; }
.logo-text { display: grid; gap: 4px; }
.logo-word { font: 800 1.32rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.logo-sub { font: 600 .58rem/1 var(--f-display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.catalog-btn { min-height: 46px; padding: 0 1.2em; }
.search { position: relative; flex: 1; min-width: 0; }
.search form { display: flex; align-items: center; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; transition: box-shadow .2s, border-color .2s, background .2s; }
.search form:focus-within { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(29, 91, 255, .12); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 16px; background: transparent; font-size: .95rem; }
.search input::placeholder { color: var(--ink-3); }
.search button { border: 0; background: transparent; color: var(--blue); width: 48px; height: 100%; display: grid; place-items: center; cursor: pointer; }
.search button:hover { color: var(--blue-700); }
.search kbd { font: 500 .78rem var(--f-mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; background: var(--white); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--bg); color: var(--ink); }
.suggest img { width: 44px; height: 44px; object-fit: contain; }
.suggest .s-title { font-size: .92rem; line-height: 1.3; }
.suggest .s-pn { font: 500 .78rem var(--f-mono); color: var(--ink-3); }
.suggest .s-price { font: 800 .95rem var(--f-display); white-space: nowrap; }
.suggest .s-cat { grid-template-columns: 1fr; padding: 10px 14px; color: var(--blue); font-weight: 600; border-bottom: 1px solid var(--line); }
.suggest .s-all { display: block; padding: 11px 14px; background: var(--bg); color: var(--blue); font-weight: 600; font-size: .9rem; }
.hdr-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.hdr-phone .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.hdr-phone .ic .icon { width: 19px; height: 19px; }
.hdr-phone b { display: block; font: 700 .98rem var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.hdr-phone small { display: block; color: var(--ink-3); font-size: .78rem; }
.hdr-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.hdr-act { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 66px; padding: 6px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 500; }
.hdr-act:hover { color: var(--blue); background: var(--bg); }
.hdr-act .icon { width: 24px; height: 24px; }
.hdr-act .count { position: absolute; top: 0; right: 14px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: var(--white); font: 700 .7rem/19px var(--f-text); text-align: center; box-shadow: 0 0 0 2px var(--white); }
.hdr-act .count:empty, .hdr-act .count[data-n="0"] { display: none; }
.hdr-nav { border-top: 1px solid var(--line); }
.hdr-nav .wrap { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav .wrap::-webkit-scrollbar { display: none; }
.hdr-nav a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.hdr-nav a:hover, .hdr-nav a.is-on { background: var(--blue-50); color: var(--blue); }
.hdr-nav .sp { flex: 1; }
.hdr-nav .pn-link { color: var(--blue); font-weight: 600; }
.hdr-nav .pn-link .icon { width: 18px; height: 18px; }

/* мегаменю каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mega .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.mega-tops { list-style: none; margin: 0; padding: 14px 0; border-right: 1px solid var(--line); }
.mega-tops a { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 0; text-decoration: none; font-weight: 500; color: var(--ink); }
.mega-tops a .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); color: var(--blue); transition: background .2s, color .2s; }
.mega-tops a .ic svg { width: 20px; height: 20px; }
.mega-tops a .n { margin-left: auto; color: var(--ink-3); font-size: .82rem; }
.mega-tops li.is-active a, .mega-tops a:hover { color: var(--blue); }
.mega-tops li.is-active a .ic, .mega-tops a:hover .ic { background: var(--blue); color: var(--white); }
.mega-panel { padding: 22px 0 26px 32px; }
.mega-panel h3 { margin-bottom: 14px; font-size: 1.2rem; }
.mega-panel h3 a { text-decoration: none; }
.mega-subs { columns: 3 200px; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.mega-subs li { break-inside: avoid; margin-bottom: 4px; }
.mega-subs a { display: inline-flex; gap: 8px; padding: 5px 0; text-decoration: none; color: var(--ink-2); }
.mega-subs a:hover { color: var(--blue); }
.mega-subs .n { color: var(--ink-3); font-size: .82rem; }

/* ---------- герой ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 520px at 78% 45%, rgba(77, 134, 255, .30), transparent 70%),
  radial-gradient(600px 400px at 100% 0%, rgba(29, 91, 255, .18), transparent 70%),
  linear-gradient(180deg, #F8FAFF 0%, #EAF1FF 100%); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 38%; background: url("../img/facets.svg") no-repeat right center / cover; opacity: .9; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 24px; align-items: center; min-height: 560px; }
.hero-copy { position: relative; z-index: 2; padding: 56px 0 52px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2rem, 1.1rem + 2.7vw, 3.25rem); line-height: 1.06; letter-spacing: -.03em; color: var(--ink); }
.hero h1 .accent { display: block; }
.hero .lead { margin: 0; font-size: 1.06rem; max-width: 50ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.hero-feats div { display: flex; gap: 10px; align-items: center; font-size: .78rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.hero-feats .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--white); color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.hero-feats .ic .icon { width: 20px; height: 20px; }
.hero-art { position: relative; z-index: 1; align-self: end; margin: 30px -40px 0 -20px; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(15, 40, 110, .18)); animation: rise 1.1s var(--ease) both .05s; }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.glass { position: absolute; z-index: 3; top: 40px; right: 0; display: flex; gap: 12px; align-items: center; padding: 14px 16px; max-width: 260px; border-radius: 14px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.glass:hover { color: var(--ink); background: rgba(255, 255, 255, .85); }
.glass .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--blue); color: var(--white); display: grid; place-items: center; box-shadow: var(--glow); }
.glass b { display: block; font-size: .88rem; line-height: 1.25; }
.glass small { color: var(--ink-2); font-size: .78rem; }

/* проверка по серийному или парт-номеру */
.pncheck { padding: 52px 0 18px; text-align: center; }
.pncheck h2 { margin-bottom: 22px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); }
.pn-form { display: flex; align-items: center; gap: 8px; max-width: 680px; margin: 0 auto; padding: 6px; height: 62px; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.pn-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 255, .12), var(--shadow); }
.pn-form .icon { margin-left: 12px; color: var(--ink-3); }
.pn-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; padding: 0 8px; background: transparent; font-size: 1rem; }
.pn-form input::placeholder { color: var(--ink-3); }
.pn-form .btn { min-height: 100%; padding: 0 2em; border-radius: 10px; box-shadow: none; }
.pn-hint { margin: 12px 0 0; font-size: .86rem; color: var(--ink-3); }
.pn-hint button { background: none; border: 0; padding: 0; color: var(--blue); font: 500 .84rem var(--f-mono); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(29, 91, 255, .35); text-underline-offset: 3px; }

/* ---------- секции ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-mist { background: var(--bg); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.sec-head .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--blue); text-decoration: none; white-space: nowrap; }
.sec-head .more:hover { color: var(--blue-700); }
.sec-head .more .icon-sm { transition: transform .3s var(--ease); }
.sec-head .more:hover .icon-sm { transform: translateX(3px); }

/* категории */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-card { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, #F7F9FF 0%, #E9F0FE 100%); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s; }
.cat-card:hover { color: var(--ink); border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card h3 { font-size: .98rem; position: relative; z-index: 1; }
.cat-card p { margin: 4px 0 0; font-size: .78rem; color: var(--ink-2); line-height: 1.35; max-width: 16ch; position: relative; z-index: 1; }
.cat-card .arrow-btn { position: relative; z-index: 1; margin-top: 14px; }
.cat-card:hover .arrow-btn { background: var(--blue); color: var(--white); transform: translateX(3px); }
.cat-card img { position: absolute; right: -6px; bottom: 10px; width: 64%; max-height: 56%; object-fit: contain; object-position: right bottom; transition: transform .6s var(--ease); filter: drop-shadow(0 14px 16px rgba(15, 40, 110, .2)); }
.cat-card:hover img { transform: scale(1.05) translateY(-2px); }
.cat-card .n { position: absolute; left: 16px; bottom: 14px; font-size: .78rem; color: var(--ink-3); }

/* вкладки */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.tabs button:hover { color: var(--blue); }
.tabs button.is-on { background: var(--blue); color: var(--white); box-shadow: var(--glow); }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px 14px; transition: box-shadow .35s var(--ease), border-color .3s var(--ease), transform .35s var(--ease); }
.card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { position: relative; display: block; aspect-ratio: 1.12; margin: 0 0 10px; border-radius: 10px; overflow: hidden; background: var(--white); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.card-img img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img img.alt { opacity: 1; }
.card:hover .card-img.has-alt img:not(.alt) { opacity: 0; }
.badge-stock { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--green-bg); color: var(--green); }
.badge-stock.low { background: var(--amber-bg); color: var(--amber); }
.badge-stock.none { background: var(--bg-2); color: var(--ink-3); }
.card-fav { position: absolute; top: 6px; right: 6px; z-index: 2; }
.card-fav .icon-btn { width: 36px; height: 36px; color: var(--ink-3); }
.card-fav .icon-btn svg { width: 20px; height: 20px; }
.card-brand { font-size: .78rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.card-title { margin: 3px 0 6px; font-size: .93rem; font-weight: 600; line-height: 1.32; min-height: 2.64em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; color: var(--ink); }
.card-title:hover { color: var(--blue); }
.card-specs { font-size: .78rem; color: var(--ink-2); line-height: 1.4; min-height: 2.2em; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-specs .is-match { color: var(--blue); font-weight: 700; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 800 1.22rem/1.05 var(--f-display); letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.price-sub { margin-top: 4px; font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.card-actions { display: flex; align-items: center; gap: 4px; }
.card-actions .icon-btn { width: 40px; height: 40px; }
.card-actions .icon-btn svg { width: 20px; height: 20px; }
.card .add { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 10px; }
.card .add .icon { width: 21px; height: 21px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--green); }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block; }
.stock.low { color: var(--amber); }
.stock.low i { background: var(--amber); }
.stock.none { color: var(--ink-3); }
.stock.none i { background: transparent; border: 1.5px solid var(--ink-3); }
.code { font: 500 .78rem var(--f-mono); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-size: .78rem; font-weight: 500; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
.rail > * { scroll-snap-align: start; }

/* почему мы */
.why { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 28px; align-items: center; padding: 30px 32px; border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); }
.why h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); }
.why-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-list div { display: flex; gap: 12px; align-items: flex-start; }
.why-list .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--white); color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.why-list b { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 2px; }
.why-list span { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.4; }

/* B2B */
.b2b { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; }
.b2b-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 300px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(110deg, #F7F9FF 0%, #E6EEFF 46%, #16306E 64%, #0A1A44 100%); border: 1px solid var(--line); }
.b2b-copy { padding: 34px 32px; display: grid; gap: 14px; align-content: center; position: relative; z-index: 2; }
.b2b-copy h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); }
.b2b-copy p { margin: 0; color: var(--ink-2); font-size: .93rem; max-width: 46ch; }
.b2b-copy .btn { justify-self: start; }
.b2b-art { position: relative; }
.b2b-art img { position: absolute; left: -10%; bottom: 0; width: 96%; height: auto; }
.b2b-checks { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: .84rem; font-weight: 500; }
.b2b-checks div { display: flex; gap: 8px; align-items: center; }
.b2b-checks .icon { width: 18px; height: 18px; color: var(--white); background: var(--blue); border-radius: 50%; padding: 3px; }
.b2b-cta { position: relative; overflow: hidden; display: grid; align-content: center; gap: 14px; padding: 30px; border-radius: var(--r-xl); color: var(--white); background: radial-gradient(420px 260px at 90% 0%, rgba(77, 134, 255, .55), transparent 70%), linear-gradient(150deg, #1D5BFF 0%, #0F37B4 55%, #0A2470 100%); }
.b2b-cta::before, .ftr::before { content: ""; position: absolute; inset: 0; background: url("../img/facets.svg") no-repeat right center / cover; opacity: .12; pointer-events: none; }
.b2b-cta > * { position: relative; }
.b2b-cta .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.b2b-cta h3 { font-size: 1.35rem; color: var(--white); }
.b2b-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.b2b-cta .btn { justify-self: start; }

/* бренды */
.brands { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.brands a { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 12px; border-radius: 12px; font: 800 1.02rem var(--f-display); letter-spacing: -.02em; color: #56648A; text-decoration: none; transition: background .25s, color .25s; }
.brands a:hover { background: var(--blue-50); color: var(--blue); }

/* ---------- подвал ---------- */
.ftr { position: relative; overflow: hidden; background: radial-gradient(800px 300px at 85% 0%, rgba(29, 91, 255, .22), transparent 70%), var(--navy); color: var(--on-navy-2); margin-top: 56px; }
.ftr > .wrap { position: relative; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1.4fr; gap: 32px; padding: 52px 0 36px; }
.ftr h4 { margin: 0 0 14px; color: var(--white); font: 700 .95rem var(--f-display); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.ftr a { color: var(--on-navy-2); text-decoration: none; }
.ftr a:hover { color: var(--white); }
.ftr .logo { color: var(--white); margin-bottom: 14px; }
.ftr .logo:hover { color: var(--white); }
.ftr .logo-sub { color: var(--on-navy-2); }
.ftr-contacts { display: grid; gap: 10px; font-size: .9rem; }
.ftr-contacts a, .ftr-contacts div { display: flex; gap: 10px; align-items: flex-start; }
.ftr-contacts .icon-sm { color: #6E9BFF; margin-top: 2px; }
.ftr-phone { font: 700 1.05rem var(--f-display); color: var(--white) !important; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); }
.socials a:hover { background: var(--blue); color: var(--white); }
.ftr-cb { display: flex; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; margin-top: 4px; }
.ftr-cb input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0 14px; color: var(--white); }
.ftr-cb input::placeholder { color: var(--on-navy-2); }
.ftr-cb button { width: 48px; border: 0; background: var(--blue); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.ftr-cb button:hover { background: var(--blue-600); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pay span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: .78rem; font-weight: 700; }
.ftr-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font-size: .78rem; color: var(--on-navy-2); }
.ftr-legal a { color: var(--on-navy-2); }

/* ---------- хлебные крошки, листинг ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 18px 0 0; font-size: .84rem; color: var(--ink-3); list-style: none; margin: 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.cat-head { padding: 12px 0 20px; display: grid; gap: 10px; }
.cat-head h1 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cat-head h1 small { font: 500 1rem var(--f-text); color: var(--ink-3); letter-spacing: 0; }
.subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sub-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.sub-chip .n { color: var(--ink-3); font-size: .78rem; }
.sub-chip:hover { border-color: var(--blue-100); color: var(--blue); }
.sub-chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: var(--glow); }
.sub-chip.is-active .n { color: rgba(255, 255, 255, .85); }
.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
/* Без собственной прокрутки: раньше колонка и каждая группа внутри скроллились отдельно,
   и колесо мыши застревало во вложенном списке. Длинные списки сворачиваются кнопкой «Ещё». */
.filters { position: sticky; top: calc(var(--hdr) + 62px); align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.filters-head { display: none; }
.facet { border-bottom: 1px solid var(--line); padding: 14px 0; }
.facet:first-child { padding-top: 0; }
.facet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: .93rem; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary .icon-sm { transition: transform .25s var(--ease); color: var(--ink-3); }
.facet[open] summary .icon-sm { transform: rotate(180deg); }
.facet-body { display: grid; gap: 8px; padding-top: 12px; }
.facet-body.is-cut .check.is-extra { display: none; }
.facet-body.is-open .check.is-extra { display: flex; }
.facet-more { justify-self: start; margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--blue); }
.facet-more:hover { text-decoration: underline; }
.facet-body .check { font-size: .9rem; }
.facet-body .check .n { color: var(--ink-3); font-size: .78rem; margin-left: auto; padding-left: 8px; }
.facet-body .check span:first-of-type { flex: 1; display: flex; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
.price-range .input { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.filters-actions { display: grid; gap: 8px; padding-top: 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .found { color: var(--ink-2); font-size: .92rem; }
.toolbar .sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.toolbar .select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.af { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: .85rem; font-weight: 600; text-decoration: none; }
.af:hover { background: var(--blue-100); }
.af .icon-sm { width: 16px; height: 16px; }
.mobile-filter-btn { display: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--white); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .is-current { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: var(--glow); }
.pager .gap { border: 0; background: transparent; }
.empty { padding: 52px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-xl); background: var(--bg); }
.empty h2 { margin-bottom: 10px; }
.empty .btn { margin-top: 12px; }

/* ---------- страница товара ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 18px 0 48px; align-items: start; }
.gallery { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; position: sticky; top: calc(var(--hdr) + 66px); }
.thumbs { display: grid; gap: 8px; align-content: start; }
.thumbs button { width: 80px; height: 80px; padding: 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.thumbs button.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 91, 255, .12); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.stage { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.stage img { width: 84%; height: 84%; object-fit: contain; transition: transform .4s var(--ease); }
.stage.is-zoom { cursor: zoom-out; }
.stage.is-zoom img { transform: scale(1.8); }
.noimg { width: 30%; opacity: .25; }
.noimg-wrap { display: grid; place-items: center; width: 100%; height: 100%; background: var(--bg); }
.pp-head h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); line-height: 1.22; }
.pp-ids { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); align-items: center; }
.pp-ids b { color: var(--ink); font-weight: 600; }
.pn-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: var(--r); font: 500 .85rem var(--f-mono); color: var(--ink); background: var(--bg); }
.pn-pill button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; border-radius: 6px; }
.pn-pill button:hover { background: var(--white); color: var(--blue); }
.buybox { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.buy-top { padding: 22px; }
.buy-price { font: 800 clamp(1.9rem, 1.5rem + 1.3vw, 2.5rem)/1 var(--f-display); letter-spacing: -.03em; margin-top: 10px; }
.buy-vat { font-size: .84rem; color: var(--ink-2); margin-top: 8px; }
.buy-inst { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); font-size: .92rem; }
.buy-inst b { font-weight: 700; color: var(--blue-700); }
.buy-inst span:last-child { white-space: nowrap; }
.buy-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 18px; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; color: var(--blue); display: grid; place-items: center; border-radius: var(--r); }
.qty button:hover { background: var(--blue-50); }
.qty input { width: 44px; text-align: center; border: 0; outline: none; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-bottom { border-top: 1px solid var(--line); background: var(--bg); padding: 14px 22px; display: grid; gap: 10px; font-size: .9rem; }
.buy-bottom div { display: flex; gap: 10px; align-items: flex-start; }
.buy-bottom .icon-sm { color: var(--blue); margin-top: 2px; }
.quick { margin-top: 12px; }
.quick summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .95rem; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.quick summary::-webkit-details-marker { display: none; }
.quick form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.quick .input { min-height: 44px; }
.quick .btn { min-height: 44px; }
.quick .note { grid-column: 1 / -1; font-size: .78rem; color: var(--ink-3); }
.pp-extra { display: flex; gap: 8px; margin-top: 10px; }
.pp-extra .btn { flex: 1; }
.pp-sum { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.pp-sum li { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 12px; }
.pp-sum li span:first-child { color: var(--ink-2); }
.pp-tabs { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-bottom: 48px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs th { width: 42%; font-weight: 500; color: var(--ink-2); padding-right: 18px; }
.specs tr:hover td, .specs tr:hover th { background: var(--bg); }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--blue); }
.side-card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; display: grid; gap: 12px; background: var(--bg); }
.side-card h3 { font-size: 1rem; }
.side-card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.side-card .btn { justify-self: start; }

/* ---------- страница проверки ---------- */
.check-hero { background: radial-gradient(700px 300px at 50% 0%, rgba(77, 134, 255, .18), transparent 70%), linear-gradient(180deg, #F8FAFF, #EEF3FF); border-bottom: 1px solid var(--line); }
.check-hero .wrap { padding-top: 48px; padding-bottom: 44px; display: grid; justify-items: center; text-align: center; gap: 16px; }
.check-hero h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.check-hero .lead { margin: 0 auto; }
.check-hero .pn-check { width: 100%; max-width: 680px; }
.check-hero .pn-form { width: 100%; }
.result { margin: 32px auto 0; max-width: 960px; }
.result-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.result-mark { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.result-mark .icon { width: 26px; height: 26px; }
.result-mark.is-miss { background: var(--bg-2); color: var(--ink-3); }
.warranty-card { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); align-items: center; }
.warranty-card .state { padding: 16px 20px; border-radius: 14px; background: var(--green-bg); color: var(--green); text-align: center; min-width: 170px; }
.warranty-card .state.off { background: var(--bg-2); color: var(--ink-2); }
.warranty-card .state b { display: block; font: 800 1.35rem var(--f-display); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; font-size: .93rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 500; }
.hit { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-xl); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.hit img { width: 120px; height: 120px; object-fit: contain; }
.hit h3 { font-family: var(--f-text); font-weight: 600; font-size: 1.04rem; }
.hit .price { font-size: 1.35rem; }
.vendors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vendors a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); font-size: .9rem; background: var(--white); }
.vendors a:hover { border-color: var(--blue); color: var(--blue); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.info-grid > div { padding: 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.info-grid h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.info-grid h3 .icon { color: var(--blue); }
.info-grid p { margin: 0; font-size: .93rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.step-n { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: var(--white); font: 800 1.05rem var(--f-display); box-shadow: var(--glow); }
.step-n .icon { width: 22px; height: 22px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.steps-wide .step-n { font-size: .78rem; }

/* ---------- корзина, оформление ---------- */
.page-head { padding: 12px 0 22px; }
.cart-grid, .co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 48px; }
.cart-list { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 0 20px; background: var(--white); }
.ci { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto 40px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci img { width: 92px; height: 92px; object-fit: contain; }
.ci-title { font-weight: 600; line-height: 1.35; text-decoration: none; }
.ci-meta { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.ci-sum { font: 800 1.08rem var(--f-display); white-space: nowrap; text-align: right; min-width: 120px; }
.ci-unit { font-size: .78rem; color: var(--ink-3); font-family: var(--f-text); font-weight: 400; }
.ci.is-gone { opacity: .55; }
.summary { position: sticky; top: calc(var(--hdr) + 66px); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.summary-body { padding: 22px; display: grid; gap: 12px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summary .row span:first-child { color: var(--ink-2); }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.summary .total span:last-child { font: 800 1.65rem var(--f-display); letter-spacing: -.02em; }
.summary .alt { font-size: .85rem; color: var(--ink-2); }
.summary-foot { padding: 16px 22px; background: var(--bg); display: grid; gap: 8px; font-size: .88rem; border-top: 1px solid var(--line); }
.co-block { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.co-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: var(--white); font: 800 1rem var(--f-display); }
.co-block h2 { font-size: 1.06rem; margin: 8px 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 18px; border-radius: var(--r); font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--white); color: var(--blue); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--line-2); }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.opt input { appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; background: var(--white); }
.opt input:checked { border-color: var(--blue); background: var(--blue); }
.opt input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.opt b { display: block; font-weight: 600; }
.opt small { display: block; color: var(--ink-2); font-size: .84rem; margin-top: 2px; }
.opt .opt-price { font: 800 .98rem var(--f-display); white-space: nowrap; }
.alert { padding: 14px 16px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: .93rem; margin-bottom: 16px; }
.note-box { padding: 14px 16px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: .92rem; }
.ok-box { padding: 14px 16px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-size: .93rem; font-weight: 500; }

.done-hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 30px 0 24px; }
.done-mark { width: 64px; height: 64px; border-radius: var(--r-xl); display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.done-mark .icon { width: 32px; height: 32px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-bottom: 48px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-top: 6px; }
.timeline li:last-child::before { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.timeline small { color: var(--ink-3); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .78rem; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .r { text-align: right; }
.table tbody tr:hover td { background: var(--bg); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.new { background: var(--blue-50); color: var(--blue); }
.badge.done, .badge.paid, .badge.won { background: var(--green-bg); color: var(--green); }
.badge.cancelled { background: var(--bg-2); color: var(--ink-3); text-decoration: line-through; }

.auth { max-width: 460px; margin: 0 auto; padding: 36px 0 56px; }
.auth form { display: grid; gap: 14px; margin-top: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.auth .switch { margin-top: 18px; font-size: .93rem; color: var(--ink-2); }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-bottom: 48px; align-items: start; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-row:hover { color: var(--ink); }
.order-row:hover .num { color: var(--blue); }
.order-row .num { font-weight: 700; }
.order-row .sum { font: 800 1.02rem var(--f-display); text-align: right; }
.order-row .meta { color: var(--ink-2); font-size: .86rem; }

.prose { max-width: 780px; padding: 6px 0 48px; }
.prose h2 { margin: 34px 0 12px; font-size: 1.35rem; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--blue); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.contacts-grid > div { padding: 30px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.contacts-grid > div:first-child { background: linear-gradient(150deg, #1D5BFF 0%, #0F37B4 60%, #0A2470 100%); color: rgba(255, 255, 255, .85); border: 0; }
.contacts-grid > div:first-child h2 { color: var(--white); margin-bottom: 16px; }
.contacts-grid .big { font: 800 1.6rem var(--f-display); color: var(--white); text-decoration: none; }
.contacts-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 22px 0 0; }
.contacts-grid dt { color: rgba(255, 255, 255, .72); }
.contacts-grid dd { margin: 0; color: var(--white); font-weight: 500; }
.cb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cb-form .full { grid-column: 1 / -1; }

.cmp-wrap { overflow-x: auto; padding-bottom: 48px; }
.cmp { border-collapse: collapse; min-width: 100%; font-size: .92rem; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; min-width: 220px; }
.cmp thead td { vertical-align: bottom; }
.cmp th { position: sticky; left: 0; background: var(--white); color: var(--ink-2); font-weight: 500; min-width: 180px; z-index: 1; }
.cmp tr.diff td { background: var(--blue-50); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100; display: flex; gap: 12px; align-items: center; padding: 12px 18px; background: var(--navy); color: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); transition: opacity .3s var(--ease), transform .4s var(--ease); font-size: .95rem; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: #6E9BFF; }
.toast a { color: #6E9BFF; font-weight: 600; white-space: nowrap; }
.err { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.err-code { font: 800 clamp(4rem, 2rem + 8vw, 7rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--blue); }

/* ---------- адаптив ---------- */
/* Широкие мониторы: на 2К при узком контейнере по бокам оставалось больше 600 px пустоты.
   Контейнер шире, а сетки получают лишнюю колонку — иначе карточки просто растягиваются. */
@media (min-width: 1800px) {
  :root { --wrap: 1760px; --gut: 32px; }
  .grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 2200px) {
  :root { --wrap: 2040px; }
  .cats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .brands { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .brands a { flex: none; scroll-snap-align: start; }
  .hdr-phone { display: none; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .hdr-act span.lbl { display: none; }
  .hdr-act { min-width: 46px; }
  .logo-sub { display: none; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1020px) {
  :root { --hdr: 66px; --gut: 20px; }
  .hdr-nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero::before { inset: 30% 0 0 0; }
  .hero-copy { padding: 40px 0 0; }
  .hero-art { margin: 0 -20px; }
  .glass { top: auto; bottom: 18px; right: 10px; }
  .layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(380px, 92vw); max-height: none; z-index: 80; border-radius: 0; padding: 0 20px 20px; transform: translateX(-102%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white); padding: 14px 0; z-index: 2; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
  .mobile-filter-btn { display: inline-flex; }
  .pp, .pp-tabs { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .cart-grid, .co-grid, .order-grid, .acc-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps, .info-grid { grid-template-columns: 1fr; }
  .mega .wrap { grid-template-columns: 1fr; }
  .mega-panel { display: none; }
  .b2b-main { grid-template-columns: 1fr; background: linear-gradient(180deg, #F7F9FF 0%, #E6EEFF 52%, #16306E 74%, #0A1A44 100%); }
  .b2b-art { min-height: 280px; }
  .b2b-art img { left: 4%; width: 78%; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .hdr-main { gap: 8px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .hdr-main .search { order: 9; flex: 1 1 100%; }
  .hdr-main .hdr-actions { margin-left: auto; }
  .logo-text { display: none; }
  .logo-mark { width: 40px; height: 40px; }
  .catalog-btn .lbl { display: none; }
  .catalog-btn { padding: 0 12px; }
  .search kbd { display: none; }
  .hdr-act.hide-sm { display: none; }
  .hdr-act { min-width: 40px; padding: 6px 4px; }
  .hdr-act .count { right: 0; }
  .hero h1 { font-size: 1.95rem; }
  .hero-feats { grid-template-columns: 1fr 1fr; }
  .glass { display: none; }
  .pn-form { flex-wrap: wrap; height: auto; gap: 6px; }
  .pn-form input { flex: 1 1 100%; height: 48px; }
  .pn-form .btn { flex: 1 1 100%; min-height: 48px; }
  .pn-form .icon { display: none; }
  .pn-form input { padding: 0 8px 0 10px; }
  .pn-form input::placeholder { font-size: .85rem; }
  .pn-form .btn { padding: 0 1.2em; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { min-height: 172px; padding: 14px; }
  .cat-card h3 { font-size: .9rem; hyphens: manual; }
  .cat-card img { width: 56%; max-height: 46%; bottom: 8px; }
  .cat-card p { max-width: 13ch; }
  .section { padding: 40px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .grid, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .badge-stock { top: 8px; left: 8px; }
  .price { font-size: 1.02rem; }
  .price-sub { display: none; }
  .card-actions .icon-btn { display: none; }
  .card .add { width: 40px; height: 40px; min-height: 40px; }
  .why { padding: 22px 18px; }
  .why-list { grid-template-columns: 1fr; }
  .b2b-copy { padding: 26px 20px; }
  .b2b-checks { position: static; transform: none; margin: 0 20px 20px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-auto-flow: column; justify-content: start; order: 2; }
  .thumbs button { width: 64px; height: 64px; }
  .quick form { grid-template-columns: 1fr; }
  .cart-list { padding: 0 14px; }
  .ci { grid-template-columns: 72px minmax(0, 1fr) 36px; grid-template-areas: "img title del" "img qty sum"; gap: 8px 12px; }
  .ci img { grid-area: img; width: 72px; height: 72px; }
  .ci > div:nth-child(2) { grid-area: title; }
  .ci .qty { grid-area: qty; justify-self: start; }
  .ci .ci-sum { grid-area: sum; min-width: 0; }
  .ci .ci-del { grid-area: del; }
  .form-grid, .cb-form { grid-template-columns: 1fr; }
  .co-block { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .hit { grid-template-columns: 80px 1fr; }
  .hit img { width: 80px; height: 80px; }
  .hit .hit-buy { grid-column: 1 / -1; text-align: left !important; }
  .warranty-card { grid-template-columns: 1fr; }
  .done-hero { grid-template-columns: 1fr; }
  .table-scroll { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .no-print, .hdr, .ftr, .toast { display: none !important; }
  body { font-size: .78rem; }
}

/* Текст о разделе внизу категории: отбит линией, не спорит с сеткой товаров. */
.cat-about { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.cat-about h2 { margin-top: 0; }
.cat-about p { font-size: .95rem; }
