/* Шрифт Inter — со своего сервера (раньше с Google Fonts: два чужих сервера и цепочка запросов перед отрисовкой).
   Вариативный: один файл на набор символов, начертания 400–800. Браузер качает только нужные наборы (unicode-range);
   кириллица и латиница предзагружаются в <head> страниц. Файлы не меняются — кэш на год (vercel.json). Лицензия: assets/fonts/OFL.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   VARTA — дизайн-система
   ========================================================================== */
:root {
  --primary: #0066ff;
  --primary-hover: #0057db;
  --primary-2: #0b6bff;
  --primary-soft: #e8f1ff;
  --accent: #c8f53c;
  --accent-strong: #7cfc00;
  --text: #0b1f36;
  /* серые для текста — с контрастом ≥ 4,5 на белом и светло-сером (доступность, Lighthouse); было #667c93 и #9aabbd */
  --text-2: #4f6278;
  --text-3: #5f7389;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e3eaf0;
  --border-2: #edf2f7;
  --danger: #ff3b3b;
  --danger-soft: #ffe9e9;
  --danger-ink: #d11a1a;   /* красный ТЕКСТ (на белом и розовом) — яркий --danger для фонов и значков */
  --success: #1fb35b;
  --success-soft: #e5f8ec;
  --success-ink: #127a43;  /* зелёный ТЕКСТ («В наличии», цена при обмене) — яркий --success для фонов и точек */
  --primary-ink: #0057db;  /* синий ТЕКСТ на голубом фоне (--primary-soft) */
  --warning: #f5a524;
  --navy: #0b2a6b;
  --yellow: #ffd200;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 84, .04);
  --shadow: 0 6px 24px rgba(16, 42, 84, .06);
  --shadow-lg: 0 16px 48px rgba(16, 42, 84, .10);
  --shadow-btn: 0 6px 16px rgba(0, 102, 255, .28);

  --container: 1240px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* clip, а не hidden: hidden у body в мобильных Safari и Chrome ломает прилипание шапки (position: sticky) */
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.page { padding-bottom: 64px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .24em; color: #00439a; font-weight: 800; font-size: 25px; letter-spacing: -.01em; line-height: 1; }
.logo svg { width: .74em; height: .74em; flex: none; }
.logo span { transform: translateY(1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .1s, border-color .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #c9d6e3; }
.btn-ghost { color: var(--primary); height: auto; padding: 0; box-shadow: none; }
.btn-ghost:hover { color: var(--primary-hover); }
.btn-pill { border-radius: 999px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { background: #dbe6f3; color: #8fa3b8; box-shadow: none; cursor: not-allowed; }
.btn.is-notified, .btn.is-notified:disabled { background: var(--success-soft); color: var(--success-ink); border-color: transparent; cursor: default; }
.p-card .actions .btn[data-action="notify"] { flex: 1 1 auto; font-size: 12px; padding: 0 8px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--text); position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--primary); }
.icon-btn .i { width: 21px; height: 21px; }
.icon-btn .dot {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
.icon-btn .dot:empty { display: none; }

.fav-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text); transition: color .2s, background .2s; }
.fav-btn:hover { background: var(--surface-2); }
.fav-btn.is-active { color: var(--danger-ink); }
.fav-btn.is-active .i { fill: currentColor; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.badge-hit { background: var(--accent); color: #2c3b00; }
.badge-new { background: var(--primary); color: #fff; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-soft-sale { background: var(--danger-soft); color: var(--danger-ink); }
.badge-gray { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-stock { background: var(--success-soft); color: var(--success-ink); }
.badge-order { background: #fff6e0; color: #b7791f; }
.badge-none { background: var(--surface-2); color: var(--text-2); }
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Forms ---------- */
.field { position: relative; display: block; }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 102, 255, .12); }
.input.has-icon { padding-left: 42px; }
.field > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.field > .i-right { left: auto; right: 14px; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667C93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.input.is-success { border-color: #8fdcab; background: #f4fcf7; }
.input.is-error { border-color: #ff9d9d; background: #fff6f6; }
.float { position: relative; }
.float .input { height: 52px; padding-top: 16px; }
.float label { position: absolute; left: 15px; top: 8px; font-size: 11px; color: var(--text-3); pointer-events: none; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--danger-ink); }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); padding: 4px 0; user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid #c5d2df; border-radius: 5px; margin: 0; background: #fff; display: grid; place-items: center; transition: .15s; cursor: pointer; flex-shrink: 0; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check .count { margin-left: auto; font-size: 12px; color: var(--text-3); }

.radio-card { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: .2s; background: #fff; }
.radio-card + .radio-card { margin-top: 10px; }
.radio-card:hover { border-color: #c9d6e3; }
.radio-card input { appearance: none; width: 18px; height: 18px; border: 1.5px solid #c5d2df; border-radius: 50%; margin: 0; flex-shrink: 0; transition: .15s; }
.radio-card input:checked { border: 5px solid var(--primary); }
.radio-card:has(input:checked) { border-color: #b3cfff; background: #f7faff; }
.radio-card .rc-title { font-size: 14px; font-weight: 500; }
.radio-card .rc-sub { font-size: 12px; color: var(--text-2); }
.radio-card .rc-price { margin-left: auto; font-size: 14px; font-weight: 500; }
.pickup-points { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border-2); }
.pickup-points .pp-label { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }

.switch { appearance: none; width: 46px; height: 26px; border-radius: 13px; background: #d7e2ee; position: relative; cursor: pointer; transition: .2s; margin: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch:checked { background: #bcd6ff; }
.switch:checked::after { left: 23px; background: var(--primary); }

/* range */
.range { position: relative; height: 22px; margin: 6px 4px 10px; }
.range-track { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 2px; background: #dfe7f0; }
.range-fill { position: absolute; top: 10px; height: 3px; background: var(--primary); border-radius: 2px; }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; background: none; pointer-events: none; height: 22px; }
.range input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; box-shadow: 0 1px 4px rgba(0, 60, 160, .25); }
.range input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-inputs .field .input { height: 38px; font-size: 13px; padding-left: 34px; }
.range-inputs .field span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border-2); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.nav { display: flex; gap: 15px; font-size: 14px; font-weight: 500; flex-shrink: 0; white-space: nowrap; }
.nav a { color: var(--text); padding: 6px 0; position: relative; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--primary); }
.header-search { flex: 1; max-width: 520px; }
.header-search .input { height: 42px; background: var(--surface-2); border-color: var(--border-2); border-radius: 10px; font-size: 13px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-city { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); margin-left: 8px; }
.header-city .i { width: 14px; height: 14px; transition: transform .2s; }
.header-city[aria-expanded="true"] { color: var(--primary); }
.header-city[aria-expanded="true"] .i { transform: rotate(180deg); }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-left: 0; white-space: nowrap; }
.header-phone .i { width: 17px; height: 17px; color: var(--text-2); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 14px); right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 35, 80, .14); padding: 8px; }
.dd-menu[hidden] { display: none; }
.city-menu { width: 340px; }
.header-phone .op { font-size: 11px; font-weight: 500; color: var(--text-2); }
.header-phone .chev { width: 14px; height: 14px; margin-left: -4px; transition: transform .2s; }
.header-phone[aria-expanded="true"] { color: var(--primary); }
.header-phone[aria-expanded="true"] .chev { transform: rotate(180deg); }
.phone-menu { width: 290px; top: calc(100% + 30px); }
.phone-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.phone-item:hover { background: var(--surface-2); }
.phone-item b { display: block; font-size: 15px; font-weight: 600; }
.phone-item:hover b { color: var(--primary); }
.phone-item small { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.op-a1, .op-mts { flex: none; min-width: 42px; height: 26px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.op-a1 { background: #e3001b; }
.op-mts { background: #e30611; }
.phone-row { display: flex; align-items: center; gap: 4px; }
.phone-row .phone-item { flex: 1; min-width: 0; }
.phone-vb { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f0e9fb; color: #7360f2; transition: background .15s, color .15s; }
.phone-vb:hover { background: #7360f2; color: #fff; }
.phone-vb svg { width: 20px; height: 20px; }
.city-menu-title { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px 6px; }
.city-store { display: grid; gap: 6px; padding: 12px; border-radius: 12px; font-size: 13px; color: var(--text-2); }
.city-store + .city-store { border-top: 1px solid var(--border-2); border-radius: 0 0 12px 12px; }
.city-store b { font-size: 15px; color: var(--text); }
.city-store small { font-size: 12px; margin-top: -4px; padding-left: 20px; }
.city-addr, .city-hours { display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.city-store .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.city-phones { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-left: 20px; }
.city-phones a { color: var(--text); font-weight: 600; }
.city-phones a:hover { color: var(--primary); }
.city-phones small { font-weight: 400; color: var(--text-2); margin-left: 4px; font-size: 11px; }
.city-menu-all { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 12px; border-top: 1px solid var(--border-2); font-size: 13px; font-weight: 600; color: var(--primary); }
.city-menu-all .i { width: 14px; height: 14px; }
.m-only { display: none !important; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-2); padding: 22px 0 14px; }
.crumbs a { color: var(--primary); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--text-3); }

/* ---------- Sections ---------- */
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.h2 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.h1 { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-weight: 600; font-size: 14px; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero-wrap { padding-top: 20px; }
.hero {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 580px;
  background: linear-gradient(100deg, #f5f8fc 0%, #edf2f8 36%, #dfe7f0 60%, #8f9fb2 100%);
  display: flex; align-items: center; isolation: isolate;
  box-shadow: var(--shadow);
}
.hero-media { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 58%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(245,248,252,.0) 40%, rgba(20,40,70,.15) 70%, rgba(20,40,70,.35) 100%); }
.hero-battery { position: absolute; right: 16%; top: 50%; width: 33%; max-width: 440px; height: auto; transform: translateY(-44%);
  filter: drop-shadow(0 28px 36px rgba(0, 10, 30, .55)) drop-shadow(0 4px 8px rgba(0, 10, 30, .3)); pointer-events: none; }
.hero-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-content { position: relative; padding: 64px 70px; max-width: 700px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #7a8ea5; margin-bottom: 26px; }
.hero-title { font-size: 54px; line-height: 1.04; font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; color: var(--text); }
.hero-text { margin-top: 30px; font-size: 18px; line-height: 1.55; color: #33475e; max-width: 430px; }
.hero .btn { margin-top: 44px; }
.hero-alt { display: none; }  /* дополнительные слайды — только в мобильном слайдере */
.hero-stats { z-index: 1; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); display: grid; gap: 16px; width: 236px; }
.stat-card {
  padding: 18px 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, rgba(60, 90, 125, .55), rgba(25, 45, 70, .45));
  border: 1px solid rgba(140, 195, 255, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 30px rgba(0, 20, 50, .25);
}
.stat-card .top { display: flex; align-items: center; gap: 12px; }
.stat-card .ic { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(150, 205, 255, .8); display: grid; place-items: center; color: #9fd0ff; }
.stat-card .ic .i { width: 16px; height: 16px; }
.stat-card b { font-size: 25px; font-weight: 600; letter-spacing: -.01em; }
.stat-card small { display: block; margin: 6px 0 0 44px; font-size: 12px; line-height: 1.35; color: rgba(225, 238, 252, .85); }

.features { margin-top: 20px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: var(--shadow-sm); }
.feature { display: flex; align-items: center; gap: 16px; padding: 24px 28px; position: relative; }
.feature + .feature::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--border-2); }
.feature .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text); flex-shrink: 0; }
.feature .ic .i { width: 22px; height: 22px; }
.feature b { display: block; font-size: 14px; font-weight: 600; }
.feature span { font-size: 13px; color: var(--text-2); }

/* ---------- Category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; overflow: hidden; border-radius: 18px; height: 250px; padding: 22px 24px;
  background: linear-gradient(160deg, #fafcfe 0%, #eef2f7 60%, #e6ecf3 100%);
  border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column; isolation: isolate;
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cat-card p { font-size: 13px; color: var(--text-2); }
.cat-card img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 74%; object-fit: cover; object-position: center 60%; z-index: -1; transition: transform .5s;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%); mask-image: linear-gradient(180deg, transparent 0, #000 38%); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .arrow { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.cat-card .arrow { margin-top: auto; color: var(--primary); position: relative; }
.cat-card .arrow .i { width: 20px; height: 20px; transition: transform .2s; }
.cat-card:hover .arrow .i { transform: translateX(4px); }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card {
  position: relative; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 16px 18px 18px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.p-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.p-card .badges { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; z-index: 2; }
.p-card .compare { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #a7b6c6; z-index: 2; transition: .2s; }
.p-card .compare .i { width: 16px; height: 16px; }
.p-card .compare:hover, .p-card .compare.is-active { color: var(--primary); background: var(--primary-soft); }
.p-card .media { display: block; aspect-ratio: 1.3 / 1; margin: 18px 0 14px; display: grid; place-items: center; }
.p-card .media img { width: 86%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.p-card:hover .media img { transform: scale(1.04); }
.p-card .name { font-size: 14px; line-height: 1.4; color: var(--text); min-height: 40px; }
.p-card .name:hover { color: var(--primary); }
.p-card .name .sub { color: var(--text-2); display: block; }
/* характеристики в карточке: ёмкость · ток · полярность · габариты */
.p-card .p-specs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.p-card .p-specs li { font-size: 12px; line-height: 1.3; color: var(--text-2); background: var(--surface-2); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
@media (max-width: 640px) { .p-card .p-specs li { font-size: 11px; padding: 1px 5px; } .p-card .p-specs li:nth-child(4) { display: none; } }
.p-card .rating { margin-top: 8px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-top: 12px; }
.price b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.price s { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.p-card .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.p-card .actions .btn { height: 40px; flex: 0 1 150px; border-radius: 7px; font-size: 13px; }
.p-card .actions .btn.in-cart { background: var(--success); box-shadow: 0 6px 16px rgba(31, 179, 91, .25); }

.stars { display: inline-flex; gap: 2px; color: #ffc328; }
.stars .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .i.off { color: #dde5ee; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rating b { font-weight: 600; }
.rating .muted { font-size: 13px; }

/* ---------- Podbor banner ---------- */
.podbor {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 230px; padding: 40px 48px;
  background: #dfe7f0; display: flex; flex-direction: column; justify-content: center; isolation: isolate; box-shadow: var(--shadow);
}
.podbor img { position: absolute; inset: 0 0 0 auto; width: 72%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.podbor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #eef2f7 0%, #eef2f7 30%, rgba(238,242,247,.7) 45%, rgba(238,242,247,0) 70%); }
.podbor h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.podbor p { margin-top: 10px; font-size: 16px; color: #3b4f66; max-width: 460px; }
.podbor .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow-sm); }
.brand { height: 96px; display: grid; place-items: center; position: relative; filter: grayscale(0); transition: opacity .2s; }
.brand + .brand::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: var(--border-2); }
.brand:hover { opacity: .75; }
.brand .bl { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 24px; letter-spacing: -.01em; color: #1a2a3f; }
.bl-varta svg { width: 20px; height: 22px; }
.bl-bosch { color: #e20015 !important; font-size: 25px !important; }
.bl-bosch svg { width: 24px; height: 24px; }
.bl-exide { font-style: italic; font-size: 27px !important; letter-spacing: -.03em !important; color: #1f2d44 !important; }
.bl-yuasa { font-weight: 600 !important; font-size: 23px !important; }
.bl-yuasa svg { width: 22px; height: 22px; }
.bl-acdelco { font-style: italic; font-size: 21px !important; color: #1b3a6b !important; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.bl-tab { font-size: 27px !important; }
.bl-tab svg { width: 14px; height: 20px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; margin-top: 72px; background: linear-gradient(180deg, #fbfcfe, #f1f5fa); border-top: 1px solid var(--border-2); }
.footer-lines { position: absolute; right: -40px; bottom: -20px; width: 560px; height: 300px; pointer-events: none; opacity: .9; }
.footer .container { position: relative; }
.footer-social { margin-left: auto; display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--text); transition: .2s; box-shadow: var(--shadow-sm); }
.footer-social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.footer-social .i { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 36px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--primary); }
.footer-legal { flex: 1; min-width: 0; line-height: 1.5; }
.footer-legal p { margin: 0; }
.footer-legal p + p { margin-top: 4px; }
.ft-grid { display: grid; grid-template-columns: 1.3fr .9fr 1fr 1.2fr; gap: 40px; padding: 48px 0 36px; }
.ft-brand .logo { font-size: 30px; }
.ft-about { margin: 14px 0 22px; max-width: 300px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.ft-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ft-msg { max-width: 300px; margin-bottom: 18px; }
.ft-brand .footer-social { margin-left: 0; }
.ft-title { margin-bottom: 16px; font-size: 15px; font-weight: 700; color: var(--text); }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 14px; }
.ft-col > a:not(.ft-phone):not(.ft-line):not(.fi-more) { color: var(--text-2); transition: color .2s; }
.ft-col > a:not(.ft-phone):not(.ft-line):not(.fi-more):hover { color: var(--primary); }
.ft-contacts { gap: 14px; }
.ft-phone, .ft-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.ft-phone .i, .ft-line .i { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; color: var(--primary); }
.ft-phone b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.ft-phone small { font-size: 12px; color: var(--text-3); }
.ft-phone:hover b, a.ft-line:hover span { color: var(--primary); }
.ft-line b { display: block; font-weight: 600; color: var(--text); }
.ft-contacts .fi-more { margin-top: 2px; }
.ft-pay { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.ft-pay .ft-label { margin: 0; }
@media (max-width: 1024px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 767px) {
  .ft-grid { gap: 26px 20px; padding: 30px 0 24px; }
  .ft-brand, .ft-contacts { grid-column: 1 / -1; }
  .ft-brand .logo { font-size: 26px; }
  .ft-about, .ft-msg { max-width: none; }
  .ft-msg { grid-template-columns: 1fr 1fr; }
  .ft-col { gap: 10px; font-size: 13px; }
  .ft-title { margin-bottom: 8px; font-size: 14px; }
  .ft-pay { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 0; }
}

/* ---------- Catalog ---------- */
.catalog-layout > * { min-width: 0; }
.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
.sidebar { background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; padding: 24px 20px; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; scrollbar-width: thin; }
.sidebar h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cat-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: .2s; }
.cat-nav a .i { width: 19px; height: 19px; color: var(--text); }
.cat-nav a:hover { background: var(--surface-2); color: var(--text); }
.cat-nav a.is-active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
.cat-nav a.is-active .i { color: var(--primary); }
.filter-group { padding: 18px 0; border-top: 1px solid var(--border-2); }
.filter-group:first-of-type { margin-top: 14px; }
.filter-title { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.filter-title .i { width: 16px; height: 16px; color: var(--text-2); transition: transform .2s; }
.filter-reset { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--primary); }
.filter-reset .i { width: 16px; height: 16px; }

.catalog-main .h1 { margin-top: 2px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 22px; }
.catalog-toolbar .found { font-size: 14px; color: var(--text-2); }
.catalog-toolbar .select { width: 220px; height: 42px; font-size: 13px; }
.catalog-grid { grid-template-columns: repeat(3, 1fr); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px dashed var(--border); color: var(--text-2); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button { min-width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--border-2); font-size: 14px; font-weight: 500; transition: .2s; display: grid; place-items: center; }
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.pagination .i { width: 16px; height: 16px; }
.m-filter-bar { display: none; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-sm); }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-self: start; }
.thumbs { display: grid; gap: 12px; align-content: start; }
.thumb { overflow: hidden; width: 76px; height: 76px; border-radius: 12px; border: 1.5px solid var(--border-2); background: var(--surface-2); padding: 6px; transition: .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb:hover { border-color: #b3cfff; }
.thumb.is-active { border-color: var(--primary); }
.stage { border-radius: 18px; background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f5f9 70%); border: 1px solid var(--border-2); aspect-ratio: 1 / .92; display: grid; place-items: center; overflow: hidden; position: relative; }
.stage img { width: 88%; mix-blend-mode: multiply; transition: opacity .25s, transform .3s; }
.stage:hover img { transform: scale(1.05); }
.stage-tools { grid-column: 2; display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.stage-tools button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; display: grid; place-items: center; color: var(--text-2); transition: .2s; }
.stage-tools button:hover { color: var(--primary); border-color: #b3cfff; }
.stage-tools button.is-active { color: var(--primary); border-color: var(--primary); }
.stage-tools .i { width: 17px; height: 17px; }
.stage { cursor: zoom-in; }
.gallery.is-single { grid-template-columns: 1fr; }
.gallery.is-single .thumbs { display: none; }
.gallery.is-single .stage-tools { grid-column: 1; }
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 56px 16px; background: rgba(11, 31, 54, .92); }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.lb-close { position: absolute; top: 12px; right: 12px; color: #fff; background: rgba(255, 255, 255, .12); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }
@media (max-width: 640px) { .lb-nav { display: none; } }

.pinfo .badges { display: flex; gap: 8px; }
.pinfo h1 { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin-top: 16px; }
.pinfo .rating { margin-top: 14px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.spec { display: flex; align-items: center; gap: 14px; }
.variants { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border-2); }
.v-row { min-width: 0; }
.v-label { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.v-label span { font-weight: 400; color: var(--text-3); }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 64px; min-height: 40px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.v-chip b { font-size: 14px; font-weight: 600; color: var(--text); }
.v-chip small { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.v-chip:hover { border-color: #b3cfff; }
.v-chip.is-active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: #f7faff; cursor: default; }
.v-chip.is-active b { color: var(--primary); }
.v-chip .v-order { color: #a86400; }
.v-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.variants[hidden] { display: none; }
.variants + .price { margin-top: 22px; }
@media (max-width: 767px) {
  .variants { gap: 14px; padding: 16px 0; }
  .v-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .v-chips::-webkit-scrollbar { display: none; }
  .v-chip { flex-shrink: 0; }
}
.spec .ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); flex-shrink: 0; }
.spec .ic .i { width: 20px; height: 20px; }
.spec small { display: block; font-size: 12px; color: var(--text-2); }
.spec b { font-size: 15px; font-weight: 500; }
.pinfo .price { margin-top: 26px; align-items: baseline; row-gap: 6px; }
.pinfo .price b { font-size: 34px; }
.pinfo .price s { font-size: 15px; }
.buy-row { display: flex; gap: 12px; margin-top: 20px; }
.buy-row .btn { flex: 1; max-width: 360px; height: 54px; font-size: 15px; }
.buy-row .fav-btn { width: 54px; height: 54px; border: 1px solid var(--border); border-radius: 12px; }
.stock { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--success-ink); font-weight: 500; }
.stock .i { width: 16px; height: 16px; }
.delivery { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.delivery .i { width: 16px; height: 16px; }

.tabs-card { margin-top: 24px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 22px; padding: 8px 32px 32px; box-shadow: var(--shadow-sm); }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 18px 20px; font-size: 14px; font-weight: 500; color: var(--text-2); position: relative; white-space: nowrap; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); font-weight: 600; }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.tab-panel { display: none; padding-top: 26px; }
.tab-panel.is-active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tab-panel p { font-size: 16px; line-height: 1.7; color: #3b4f66; max-width: 820px; }
.tab-panel p b { color: var(--text); font-weight: 600; }
.benefits { display: flex; gap: 56px; margin-top: 28px; flex-wrap: wrap; }
.benefit { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text); line-height: 1.35; }
.benefit .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; }
.benefit .ic .i { width: 22px; height: 22px; }
.spec-table { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.spec-table td:first-child { color: var(--text-2); width: 50%; }
.apply-list { display: flex; flex-wrap: wrap; gap: 10px; }
.apply-list span { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 13px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--border-2); max-width: 820px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #cdd9e6, #a9bacb); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.review-head b { font-size: 14px; }
.review-head small { display: block; color: var(--text-3); font-size: 12px; }
.review p { font-size: 14px; }

/* ---------- Cart ---------- */
.page-title-row { display: flex; align-items: center; gap: 12px; padding: 28px 0 22px; }
.page-title-row .back { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border-2); }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 24px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border-2); align-items: center; position: relative; }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item .ci-img { width: 96px; height: 96px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; padding: 8px; }
.cart-item .ci-img img { mix-blend-mode: multiply; max-height: 100%; object-fit: contain; }
.cart-item .ci-name { font-size: 14px; line-height: 1.4; }
.cart-item .ci-name span { display: block; color: var(--text-2); }
.cart-item .ci-price { font-size: 18px; font-weight: 700; margin-top: 8px; }
.cart-item .ci-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 12px; }
.remove { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); transition: .2s; }
.remove:hover { color: var(--danger-ink); background: var(--danger-soft); }
.remove .i { width: 17px; height: 17px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; height: 38px; background: #fff; }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--text-2); }
.qty button:last-child { color: var(--primary); }
.qty button:hover { color: var(--primary); }
.qty .i { width: 15px; height: 15px; }
.qty input { width: 32px; border: 0; text-align: center; font-size: 14px; font-weight: 500; outline: none; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--text-2); }
.sum-row b { color: var(--text); font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 20px; padding-top: 16px; border-top: 1px solid var(--border-2); }
.sum-total span { font-size: 18px; font-weight: 600; color: var(--primary); }
.sum-total b { font-size: 24px; font-weight: 700; }
.summary .btn-primary { height: 52px; }
.summary .btn-ghost { display: flex; margin: 18px auto 0; font-size: 14px; }
.promo { display: flex; gap: 8px; margin-bottom: 18px; }
.promo .input { height: 42px; }
.promo .btn { height: 42px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty .ic { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.cart-empty .ic .i { width: 36px; height: 36px; }
.cart-empty h2 { font-size: 22px; }
.cart-empty p { color: var(--text-2); margin: 8px 0 22px; }

/* ---------- Checkout ---------- */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); transition: .2s; }
.step.is-active { color: var(--primary); font-weight: 500; }
.step.is-active .n { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.step.is-done { color: var(--text); }
.step.is-done .n { background: var(--success-soft); border-color: var(--success-soft); color: var(--success-ink); }
.step-sep { width: 32px; height: 1px; background: var(--border); }
.co-section + .co-section { margin-top: 26px; }
.co-section h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.co-step { display: none; }
.co-step.is-active { display: block; animation: fade .3s; }
.co-actions { margin-top: 26px; }
.co-actions .btn-primary { height: 52px; }
.co-actions .btn-ghost { display: flex; margin: 18px auto 0; font-size: 14px; color: var(--text-2); }
.co-actions .btn-ghost:hover { color: var(--primary); }
.success-box { text-align: center; padding: 30px 10px; }
.success-box .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--success-soft); color: var(--success-ink); display: grid; place-items: center; margin: 0 auto 18px; }
.success-box .ic .i { width: 38px; height: 38px; stroke-width: 2.2; }
.success-box h2 { font-size: 24px; }
.success-box p { color: var(--text-2); margin-top: 8px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.mini-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--surface-2); padding: 4px; mix-blend-mode: multiply; }
.mini-item .t { font-size: 13px; line-height: 1.35; flex: 1; }
.mini-item .t small { color: var(--text-2); }
.mini-item b { font-size: 14px; white-space: nowrap; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 260px 1fr; background: var(--surface); border: 1px solid var(--border-2); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; min-height: 560px; }
.acc-nav { padding: 20px 0; border-right: 1px solid var(--border-2); }
.acc-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 24px; font-size: 14px; color: var(--text-2); position: relative; text-align: left; transition: .2s; }
.acc-nav button .i { color: var(--text); width: 19px; height: 19px; }
.acc-nav button:hover { background: var(--surface-2); color: var(--text); }
.acc-nav button.is-active { background: #f2f7ff; color: var(--primary); font-weight: 500; }
.acc-nav button.is-active .i { color: var(--primary); }
.acc-nav button.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.acc-body { padding: 32px 40px; }
.acc-body h2 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.acc-panel { display: none; }
.acc-panel.is-active { display: block; animation: fade .3s; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 20px; background: linear-gradient(135deg, #b8c6d6, #8c9eb2); }
.profile-head b { font-size: 17px; font-weight: 600; display: block; }
.profile-head small { color: var(--text-2); font-size: 13px; }
.acc-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.acc-form { max-width: 560px; }
.acc-form .btn { margin-top: 20px; min-width: 240px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--border-2); border-radius: 14px; }
.order-row + .order-row { margin-top: 10px; }
.orders-note { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }
.order { border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); }
.order + .order { margin-top: 10px; }
.order > .order-row { border: 0; cursor: pointer; list-style: none; grid-template-columns: 1fr auto auto auto; }
.order > .order-row::-webkit-details-marker { display: none; }
.order-chev { width: 18px; height: 18px; color: var(--text-2); transition: transform .2s; }
.order[open] .order-chev { transform: rotate(180deg); }
.order-body { padding: 0 18px 18px; display: grid; gap: 14px; border-top: 1px solid var(--border-2); padding-top: 14px; }
.order-lines { display: grid; gap: 10px; }
.order-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.order-line img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--surface-2); mix-blend-mode: multiply; }
.order-line small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
.order-line:hover .t { color: var(--primary); }
.order-meta { display: grid; gap: 6px; }
.order-body .btn { justify-self: start; gap: 8px; }
.order-missing { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.order-row b { font-size: 14px; }
.order-row small { display: block; color: var(--text-2); font-size: 12px; }
.addr { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border-2); border-radius: 14px; max-width: 560px; }
.addr + .addr { margin-top: 10px; }
.addr .i { color: var(--primary); margin-top: 2px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-2); max-width: 560px; font-size: 14px; }
.setting-row small { display: block; color: var(--text-2); font-size: 12px; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.post-featured { background: var(--surface); border: 1px solid var(--border-2); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.post-featured:hover { box-shadow: var(--shadow-lg); }
.post-featured .img { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.post-featured .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-featured:hover .img img { transform: scale(1.04); }
.post-featured .img .badge { position: absolute; left: 18px; bottom: 18px; height: 26px; background: rgba(210, 228, 255, .9); color: var(--primary-ink); backdrop-filter: blur(6px); }
.post-featured .body { padding: 24px 28px 28px; }
.post-featured h2 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.post-featured p { margin-top: 10px; color: var(--text-2); }
.post-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.post-list { display: grid; gap: 14px; }
.post-item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.post-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-item .th { width: 110px; height: 90px; border-radius: 12px; overflow: hidden; background: #dfe6ee; position: relative; }
.post-item .th img { width: 100%; height: 100%; object-fit: cover; }
.post-item h3 { font-size: 15px; line-height: 1.4; font-weight: 500; }
.post-item small { display: block; margin-top: 8px; color: var(--text-3); font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border-2); font-size: 13px; font-weight: 500; color: var(--text-2); transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--border); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- Contacts ---------- */
.contacts-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.contact-hero { border-radius: 22px; overflow: hidden; position: relative; min-height: 260px; }
.contact-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.help h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 26px; }
.help > p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.contact-line { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border-2); }
.contact-line .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-line b { font-size: 17px; font-weight: 600; display: block; }
.contact-line small { color: var(--text-2); font-size: 13px; }
.contact-line a:hover b { color: var(--primary); }
.help .btn { margin-top: 22px; height: 52px; }
.map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); min-height: 260px; background: #eef2ee; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: var(--primary); filter: drop-shadow(0 6px 8px rgba(0, 80, 200, .35)); }
.map .pin svg { position: static; width: 42px; height: 42px; }
.addr-title { font-size: 17px; font-weight: 600; margin-top: 26px; }
.addr-text { color: var(--text-2); font-size: 14px; margin: 4px 0 14px; }
.contacts-layout { margin-top: 20px; }
.store-list { display: grid; gap: 24px; align-content: start; }
.store-card { display: grid; gap: 14px; }
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.store-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.store-card .addr-text { display: flex; gap: 8px; margin: 0; font-size: 15px; color: var(--text); }
.store-card .addr-text small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.store-card .i { width: 18px; height: 18px; flex: none; color: var(--primary); }
.store-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2); height: 240px; background: #eef2ee; }
.store-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.store-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 3px 0; }
.store-phone small { font-weight: 400; color: var(--text-2); font-size: 12px; }
.store-phone:hover { color: var(--primary); }
.store-hours { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.store-card .btn { margin-top: 2px; }
@media (max-width: 480px) { .store-info { grid-template-columns: 1fr; } }
.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.hours div { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); }
.hours small { display: block; color: var(--text-2); font-size: 12px; }
.hours b { font-size: 14px; font-weight: 600; }

/* ---------- UI kit ---------- */
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; }
.kit .panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.kit-intro { display: flex; flex-direction: column; justify-content: flex-start; }
.kit-intro .logo { font-size: 30px; }
.kit-intro h1 { font-size: 46px; font-weight: 700; margin-top: 30px; line-height: 1; }
.kit-intro p { color: var(--text-2); margin-top: 8px; font-size: 16px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
.swatch i { display: block; width: 52px; height: 52px; border-radius: 12px; border: 1px solid rgba(0,0,0,.04); box-shadow: var(--shadow-sm); }
.swatch b { display: block; font-size: 12px; font-weight: 500; margin-top: 8px; }
.swatch small { font-size: 11px; color: var(--text-2); }
.type-row { display: grid; grid-template-columns: 60px 60px 1fr; align-items: baseline; padding: 6px 0; font-size: 13px; color: var(--text-2); }
.type-row b { color: var(--text); }
.kit-stack { display: grid; gap: 12px; }
.states { display: grid; gap: 10px; }
.states div { height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; border: 1px solid var(--border-2); }
.icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; color: var(--text); }
.icons-grid .i { width: 24px; height: 24px; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 31, 54, .45); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; animation: fade .2s; }
.modal-box { width: 100%; max-width: 460px; background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); position: relative; }
.modal-box h3 { font-size: 22px; font-weight: 700; }
.modal-box > p { color: var(--text-2); margin: 6px 0 20px; font-size: 14px; }
.modal-close { position: absolute; right: 16px; top: 16px; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); transition: .3s; white-space: nowrap; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--accent); width: 18px; height: 18px; }

/* ---------- Bottom sheet (filters) ---------- */
.sheet { position: fixed; inset: 0; z-index: 150; background: var(--surface); display: none; flex-direction: column; }
.sheet.is-open { display: flex; animation: slideUp .28s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-bottom: 1px solid var(--border-2); }
.sheet-head h3 { font-size: 17px; font-weight: 600; flex: 1; }
.sheet-body { flex: 1; overflow: auto; padding: 8px 20px 20px; }
.sheet-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-2); }
.acc-item { border-bottom: 1px solid var(--border-2); }
/* описание товара (поле about): абзацы и списки из админки */
.p-about { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.p-about p { margin: 0 0 10px; }
.p-about ul, .p-about ol { margin: 0 0 12px; padding-left: 20px; }
.p-about li { margin-bottom: 4px; font-size: inherit; color: inherit; list-style: disc; }
.p-about:empty { display: none; }
.acc-item > button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; font-size: 15px; font-weight: 600; }
.acc-item > button .i { width: 18px; height: 18px; color: var(--text-2); transition: transform .2s; }
.acc-item.is-open > button .i { transform: rotate(180deg); }
.acc-item .acc-content { display: none; padding-bottom: 16px; }
.acc-item.is-open .acc-content { display: block; }

/* ---------- Tab bar (mobile) ---------- */
.tabbar { display: none; }


/* ---------- каталог из выгрузки varta.by ---------- */
.price .exch { width: 100%; font-size: 12px; color: var(--success-ink); font-weight: 500; white-space: nowrap; }
a.exch { text-decoration: underline; text-decoration-color: rgba(31, 179, 91, .35); text-underline-offset: 2px; }
a.exch:hover { text-decoration-color: currentColor; }
/* «Узнать цену» у товара без цены — кнопка-ссылка, открывает обратный звонок */
.price .req-price { padding: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--primary); text-decoration: underline dashed; text-underline-offset: 4px; cursor: pointer; }
.price .req-price:hover { color: var(--primary-hover); text-decoration-style: solid; }
/* страница товара под заказ: вместо цены — «под заказ» тем же цветом, что у ёмкостей серии (.v-chip .v-order) */
.price .on-order { font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #a86400; }
@media (max-width: 760px) { .price .on-order { font-size: 22px; } }
.p-card { min-width: 0; }
.p-card .badges { flex-wrap: wrap; max-width: calc(100% - 46px); gap: 5px; }
.p-card .actions .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 40px; text-align: center; }
.p-card .badge { font-weight: 600; }
.p-card.is-order .media img { opacity: .82; }
.p-card .name .sub { font-size: 13px; }
.lbl-short { display: none; }
.pg-gap { display: grid; place-items: center; min-width: 26px; color: var(--text-3); }
.cat-nav a .count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.cat-nav a.is-active .count { color: var(--primary); }
.stock.is-order { color: var(--warning); }
.pinfo .rating { gap: 6px; flex-wrap: wrap; }
.pinfo .price .exch { font-size: 14px; }
.pinfo .price .req-price { font-size: 26px; }
.sidebar .filter-group:first-of-type { margin-top: 10px; border-top: 0; }
@media (max-width: 767px) {
  .price .exch { font-size: 11px; width: 100%; }
  .p-card .badges { left: 8px; top: 8px; }
  .p-card .badge-soft-sale { display: none; }
  .p-card .lbl-full { display: none; }
  .p-card .lbl-short { display: inline; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .header-row { gap: 16px; }
  .nav { gap: 13px; }
  .header-city { display: none; }
  .hero-title { font-size: 48px; }
  .hero-content { padding: 56px 48px; }
  .feature { padding: 20px; }
  .kit { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .hero { min-height: 500px; }
  .hero-media { width: 60%; }
  .hero-battery { right: 3%; width: 44%; }
  .hero-stats { display: none; }
  .hero-content { max-width: 56%; padding: 48px 40px; }
  .hero-title { font-size: 38px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3)::before { display: none; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--border-2); }
  .cats, .products { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .brand:nth-child(4)::before { display: none; }
  .brand:nth-child(n+4) { border-top: 1px solid var(--border-2); }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .m-filter-bar { display: flex; gap: 10px; margin: 16px 0 0; min-width: 0; }
.m-filter-bar > div { display: flex; gap: 8px; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .blog-layout, .contacts-layout { grid-template-columns: 1fr; }
  .kit { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: 14px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); background: #f6f8fb; }
  .container { padding: 0 16px; }
  .d-only { display: none !important; }
  .m-only { display: flex !important; }

  /* header */
  /* На телефонах шапка закреплена (fixed), а не «липкая»: Safari на iPhone прокручивает страницу под своей прозрачной
     верхней панелью и продлевает под неё цвет только закреплённой шапки со сплошным фоном — иначе над шапкой просвечивает текст.
     Место под шапку — отступ body сверху на её высоту (--hdr считает app.js, пока не посчитал — 115px). */
  .header { position: fixed; top: 0; left: 0; right: 0; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: env(safe-area-inset-top); }
  .header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: #fff; pointer-events: none; }
  body { padding-top: var(--hdr, calc(115px + env(safe-area-inset-top))); }
  html { scroll-padding-top: var(--hdr, 115px); } /* переход к якорю — не под шапку */
  .header-row { gap: 10px; height: var(--header-h); }
  .header .logo { font-size: 22px; }
  .header-search.d-search { display: none; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .m-search { padding: 0 16px 12px; background: rgba(255,255,255,.96); display: block !important; }
  .m-search .input { height: 42px; border-radius: 12px; background: #fff; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-2); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(16, 42, 84, .06);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); padding: 4px 0; position: relative; }
  .tabbar a .i { width: 24px; height: 24px; }
  .tabbar a.is-active { color: var(--text); font-weight: 600; }
  .tabbar a.is-active .i { fill: var(--text); stroke: var(--text); }
  .tabbar a.is-active .i .no-fill { fill: none; stroke: #fff; }
  .tabbar .dot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
  .tabbar .dot:empty { display: none; }
  .tabbar a[href^="tel:"] { color: var(--primary); font-weight: 600; }
  .header .m-call { color: var(--primary); }

  /* home */
  .hero-wrap { padding-top: 4px; }
  .hero { min-height: 0; border-radius: 18px; padding: 0; background: linear-gradient(135deg, #1a2d45 0%, #2a4262 50%, #3b5578 100%); align-items: stretch; }
  .hero::before { background: linear-gradient(90deg, rgba(10,20,36,.95) 0%, rgba(12,24,42,.78) 50%, rgba(12,24,42,.15) 100%); }
  .hero-media { width: 75%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
  .hero-media img { object-position: 60% center; }
  .hero-battery, .hero-lines, .hero-stats, .eyebrow, .hero-title .d-text, .hero-text .d-text { display: none; }
  .hero-content { padding: 26px 20px 30px; max-width: 100%; }
  .hero-title { font-size: 28px; line-height: 1.12; text-transform: none; font-weight: 700; color: #fff; letter-spacing: -.01em; }
  .hero-title .m-text, .hero-text .m-text { display: inline !important; }
  .hero-text { margin-top: 12px; font-size: 14px; color: rgba(235, 243, 252, .9); max-width: 210px; }
  .hero .btn { margin-top: 22px; height: 44px; padding: 0 20px; font-size: 13px; }
  .hero-slider {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 18px; box-shadow: var(--shadow);
  }
  .hero-slider::-webkit-scrollbar { display: none; }
  .hero-slider > .hero { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; box-shadow: none; }
  .hero-alt { display: flex; }
  .hero-alt .hero-media img { object-position: 70% center; }
  .hero-alt--trade { background: linear-gradient(135deg, #0a1f44 0%, #0d3a86 60%, #1560d8 100%); }
  .hero-alt--trade::before { background: linear-gradient(90deg, rgba(8,18,40,.7) 0%, rgba(8,18,40,.25) 55%, rgba(8,18,40,0) 100%); }
  .hero-alt-battery { position: absolute; right: -34px; bottom: -8px; width: 56%; max-width: 240px; height: auto; z-index: -2; pointer-events: none;
    filter: drop-shadow(0 16px 24px rgba(0, 10, 30, .5)); }
  .hero-dots { display: flex !important; justify-content: center; gap: 2px; margin-top: 6px; }
  .hero-dots button { width: 22px; height: 18px; display: grid; place-items: center; }
  .hero-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: #cfdae6; transition: width .25s, background-color .25s; }
  .hero-dots button.on::before { width: 18px; background: var(--primary); }

  .features { grid-template-columns: 1fr 1fr; margin-top: 16px; border-radius: 16px; }
  .feature { padding: 14px 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .feature .ic { width: 38px; height: 38px; }
  .feature .ic .i { width: 18px; height: 18px; }
  .feature b { font-size: 13px; }
  .feature span { font-size: 12px; }
  .feature:nth-child(2n+1)::before { display: none; }
  .feature:nth-child(2)::before, .feature:nth-child(4)::before { display: block; top: 14px; bottom: 14px; }

  .section { margin-top: 34px; }
  .section-head { margin-bottom: 14px; }
  .h2 { font-size: 20px; }
  .h1 { font-size: 24px; }
  .cats { gap: 12px; }
  .cat-card { height: 160px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%); }
  .cat-card h3 { font-size: 14px; font-weight: 500; }
  .cat-card h3 .d-text, .cat-card p { display: none; }
  .cat-card img { height: 70%; }
  .cat-card .arrow { width: 28px; height: 28px; }
  .cat-card .arrow .i { width: 16px; height: 16px; }
  .cat-all { display: inline-flex !important; margin-top: 16px; }

  .products { gap: 12px; }
  .p-card { padding: 10px 12px 12px; border-radius: 14px; }
  .p-card .badges { left: 10px; top: 10px; }
  .p-card .badge { height: 20px; font-size: 10px; padding: 0 8px; }
  .p-card .compare { right: 6px; top: 6px; }
  .p-card .media { margin: 22px 0 8px; }
  .p-card .name { font-size: 12.5px; min-height: 52px; }
  .price { flex-wrap: wrap; gap: 2px 8px; margin-top: 8px; }
  .price b { font-size: 16px; }
  .price s { font-size: 11px; }
  .p-card .actions { margin-top: 10px; gap: 6px; }
  .p-card .actions .btn { height: 36px; padding: 0 10px; font-size: 12px; flex: 1; }
  .p-card .fav-btn { width: 34px; height: 34px; }
  .p-card .rating { display: none; }

  .podbor { min-height: 0; padding: 24px 20px 180px; border-radius: 18px; }
  .podbor img { width: 100%; height: 190px; top: auto; bottom: 0; object-position: 80% center; }
  .podbor::before { background: linear-gradient(180deg, #eef2f7 0%, #eef2f7 48%, rgba(238,242,247,0) 70%); }
  .podbor h2 { font-size: 20px; }
  .podbor p { font-size: 13px; }
  .podbor .btn { margin-top: 16px; }

  .brands { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
  .brands::-webkit-scrollbar { display: none; }
  .brand { flex: 0 0 38%; height: 72px; scroll-snap-align: start; border-top: 0 !important; }
  .brand::before { display: block !important; top: 20px !important; bottom: 20px !important; }
  .brand:first-child::before { display: none !important; }
  .brand .bl { font-size: 18px !important; }

  .footer { margin-top: 40px; }
  .footer-lines { width: 320px; height: 200px; opacity: .6; }
  .footer-social { margin-left: 0; margin-top: 4px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 18px 0 24px; font-size: 12px; }

  /* catalog */
  .crumbs { padding: 12px 0 8px; font-size: 12px; }
  .catalog-layout { padding-top: 6px; }
  .catalog-toolbar { margin: 12px 0 14px; }
  .catalog-toolbar .select { width: auto; flex: 1; max-width: 190px; height: 38px; font-size: 12px; }
  .m-filter-bar { margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
  .m-filter-bar::-webkit-scrollbar { display: none; }
  .m-filter-bar .btn, .m-filter-bar .chip { height: 38px; flex-shrink: 0; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .pagination { gap: 6px; margin-top: 24px; }
  .pagination button { min-width: 36px; height: 36px; }

  /* product */
  .product { padding: 0; border: 0; background: none; box-shadow: none; gap: 20px; }
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow-x: auto; }
  .thumb { width: 64px; height: 64px; }
  .stage { border-radius: 18px; background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef3f8 75%); }
  .stage-tools { grid-column: 1; order: 3; }
  .pinfo h1 { font-size: 22px; margin-top: 12px; }
  .specs { gap: 14px; margin-top: 18px; padding: 16px 0; }
  .spec .ic { width: 38px; height: 38px; border-radius: 10px; }
  .spec b { font-size: 13px; }
  .pinfo .price b { font-size: 28px; }
  .buy-row { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 90; margin: 0; padding: 10px 16px; background: rgba(255,255,255,.97); border-top: 1px solid var(--border-2); backdrop-filter: blur(12px); }
  .buy-row .btn { max-width: none; height: 48px; }
  .buy-row .fav-btn { width: 48px; height: 48px; }
  body.has-buybar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .tabs-card { padding: 0 16px 20px; border-radius: 18px; margin-top: 20px; }
  .tab { padding: 15px 12px; font-size: 13px; }
  .tab-panel p { font-size: 14px; }
  .benefits { gap: 14px; flex-direction: column; margin-top: 20px; }
  .benefit .ic { width: 44px; height: 44px; }

  /* cart / checkout */
  .page-title-row { padding: 14px 0 12px; }
  .page-title-row .h1 { font-size: 20px; }
  .page-title-row .back { background: none; border: 0; width: 32px; margin-left: -6px; }
  .panel { padding: 16px; border-radius: 18px; }
  .cart-item { grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; }
  .cart-item .ci-img { width: 72px; height: 72px; border-radius: 12px; }
  .cart-item .ci-name { font-size: 13px; padding-right: 30px; }
  .cart-item .ci-price { font-size: 16px; }
  .cart-item .ci-side { position: absolute; inset: 14px 0 14px auto; }
  .cart-item:first-child .ci-side { top: 0; }
  .cart-item:last-child .ci-side { bottom: 0; }
  .qty { height: 34px; }
  .qty button { width: 30px; }
  .summary { position: static; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .steps { gap: 6px; margin-bottom: 20px; flex-wrap: nowrap; }
  .step { font-size: 12px; gap: 6px; }
  .step .n { width: 24px; height: 24px; font-size: 12px; }
  .step-sep { width: 10px; }
  .co-layout-aside { display: none; }
  .summary .sum-total { border-top: 0; padding-top: 0; margin-top: 0; }

  /* account */
  .account { grid-template-columns: 1fr; border-radius: 18px; min-height: 0; }
  .acc-nav { display: flex; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--border-2); scrollbar-width: none; gap: 4px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav button { width: auto; flex-shrink: 0; padding: 9px 14px; border-radius: 10px; font-size: 13px; gap: 8px; }
  .acc-nav button .i { width: 17px; height: 17px; }
  .acc-nav button.is-active::before { display: none; }
  .acc-body { padding: 20px 16px; }
  .acc-body h2 { font-size: 18px; margin-bottom: 16px; }
  .acc-form .btn { width: 100%; }
  .order-row, .order > .order-row { grid-template-columns: 1fr auto; }
  .order-row .badge { grid-column: 1 / -1; justify-self: start; }

  /* blog */
  .blog-layout { gap: 14px; }
  .post-featured { border-radius: 18px; }
  .post-featured .body { padding: 16px 16px 18px; }
  .post-featured h2 { font-size: 19px; }
  .post-featured p { display: none; }
  .post-item { grid-template-columns: 72px 1fr; gap: 14px; padding: 10px; border-radius: 14px; }
  .post-item .th { width: 72px; height: 64px; border-radius: 10px; }
  .post-item h3 { font-size: 13.5px; }
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-bottom: 14px; }
  .chip { flex-shrink: 0; }

  /* contacts */
  .contact-hero { min-height: 190px; border-radius: 18px; }
  .help h2 { font-size: 22px; margin-top: 18px; }
  .contact-line b { font-size: 15px; }
  .contact-line .ic { width: 40px; height: 40px; }
  .hours { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hours div { padding: 10px 8px; }
  .hours b { font-size: 13px; white-space: nowrap; }
  .map { min-height: 200px; }

  .kit { grid-template-columns: 1fr; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: 22px 22px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .p-card .actions .btn { font-size: 11px; }
  .hero-title { font-size: 25px; }
  .step .label-t { display: none; }
  .step.is-active .label-t { display: inline; }
}

@media (min-width: 768px) {
  .m-search, .hero-dots, .cat-all { display: none !important; }
  .hero-title .m-text, .hero-text .m-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- приём б/у аккумуляторов ---------- */
.lead-text { max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.recycle-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.panel-h { font-size: 22px; margin-bottom: 8px; }
.panel-note { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 20px; }
.panel-sub { font-size: 15px; font-weight: 600; margin: 24px 0 12px; }
.section-panel { margin-top: 20px; }
.calc { display: flex; align-items: flex-end; gap: 14px; }
.calc-field { position: relative; flex: 1; display: block; }
.calc-lbl { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.calc-field .input { padding-right: 52px; }
.calc-unit { position: absolute; right: 14px; bottom: 13px; font-size: 13px; color: var(--text-3); pointer-events: none; }
.calc-out { flex-shrink: 0; min-width: 132px; padding: 10px 16px; border-radius: 12px; background: var(--success-soft); }
.calc-out small { display: block; font-size: 12px; color: var(--text-2); }
.calc-out b { font-size: 20px; font-weight: 700; color: var(--success-ink); white-space: nowrap; }
.calc-table { margin-top: 22px; }
.how-list { list-style: none; display: grid; gap: 16px; }
.how-list li { display: flex; gap: 14px; align-items: flex-start; }
.how-list .n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.how-list b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.how-list span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 11px; }
.tick-list li.ok::before { background-color: var(--success-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fb35b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tick-list li.no::before { background-color: #fdeaea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d94b4b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.pickup-submit { grid-column: 1 / -1; max-width: 280px; }
#recycleFaq .acc-item:last-child { border-bottom: 0; }
#recycleFaq .acc-content p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

@media (max-width: 1024px) {
  .recycle-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .lead-text { font-size: 14px; }
  .panel-h { font-size: 18px; }
  .calc { flex-direction: column; align-items: stretch; gap: 12px; }
  .calc-out { min-width: 0; }
  .pickup-submit { max-width: none; }
}


/* ---------- мессенджеры, статус работы, чат ---------- */
.work-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.work-dot.is-online { background: var(--success); box-shadow: 0 0 0 3px rgba(31, 179, 91, .18); }

.msg-links { display: grid; gap: 8px; }
.msg-links-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.msg-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); transition: border-color .2s, transform .2s; }
.msg-link:hover { border-color: #c9d6e3; transform: translateY(-1px); }
.msg-link .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.msg-link .ic .i { width: 18px; height: 18px; }
.msg-link b { display: block; font-size: 14px; font-weight: 600; }
.msg-link small { font-size: 12px; color: var(--text-2); }
.msg-link[data-msg="viber"] .ic { background: #f0e9fb; color: #7360f2; }
.msg-link[data-msg="telegram"] .ic { background: #e4f2fd; color: #2aabee; }
.msg-link[data-msg="whatsapp"] .ic { background: #e6f6ec; color: #25d366; }

.header-call { display: flex; align-items: center; gap: 10px; }
.hc-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.header-work { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
@media (max-width: 1100px) { .header-row:has(.nav) { gap: 10px; } .nav { gap: 11px; font-size: 13px; } }
.header-work::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.header-work.is-online::before { background: var(--success); }
.header-callback { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.header-callback .i { width: 17px; height: 17px; }
.header-callback:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.header-callback:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* На страницах с меню места меньше — там кнопка без иконки, но с текстом */
.header-row:has(.nav) .header-callback .i { display: none; }
@media (max-width: 1280px) { .header-row:has(.nav) .header-callback .i { display: block; } .header-callback { width: 38px; padding: 0; justify-content: center; } .header-callback span { display: none; } }

.footer-hours { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.footer-hours b { font-size: 13px; color: var(--text); }
.fi-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--primary); }
.fi-more .i { width: 14px; height: 14px; transition: transform .2s; }
.fi-more:hover .i { transform: translateX(3px); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-logo { display: grid; place-items: center; height: 40px; padding: 0 8px; background: #fff; border: 1px solid var(--border-2); border-radius: 10px; box-shadow: var(--shadow-sm); }
.pay-logo img { display: block; height: 26px; width: auto; }

.contact-work { display: flex; align-items: center; gap: 8px; margin: 16px 0 20px; font-size: 13px; color: var(--text-2); }
.contact-msg-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.contact-cb { margin-top: 16px; }

.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 180; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 102, 255, .32); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .i { width: 24px; height: 24px; }
.chat-fab-dot { position: absolute; right: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #98a3ad; border: 2px solid var(--primary); }
.chat-fab-dot.is-online { background: #3ddc84; }
.chat-widget.is-open .chat-fab { transform: scale(.92); }

.chat-panel { order: -1; width: 340px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100vh - 140px)); overflow: auto; background: #fff; border: 1px solid var(--border-2); border-radius: 20px; box-shadow: var(--shadow-lg); animation: fade .2s; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--border-2); }
.chat-head b { display: block; font-size: 15px; font-weight: 600; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chat-status.is-online::before { background: var(--success); }
.chat-body { padding: 16px; display: grid; gap: 14px; }
.chat-hint { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.chat-sep { position: relative; text-align: center; }
.chat-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-2); }
.chat-sep span { position: relative; background: #fff; padding: 0 10px; font-size: 12px; color: var(--text-3); }
.chat-text { height: auto; padding: 10px 14px; resize: vertical; font-family: inherit; line-height: 1.5; }
.chat-sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--success-soft); }
.chat-sent .i { width: 22px; height: 22px; color: var(--success-ink); flex-shrink: 0; }
.chat-sent b { display: block; font-size: 14px; font-weight: 600; }
.chat-sent span { font-size: 13px; color: var(--text-2); }
.chat-callback { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--primary); padding: 6px; }
.chat-callback .i { width: 18px; height: 18px; }
/* помощник подбора в чате */
.chat-panel { width: 380px; }
.chat-ai { display: grid; gap: 8px; }
.chat-log { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; padding-right: 2px; }
.chat-msg { display: grid; gap: 6px; justify-items: start; }
.chat-msg.is-user { justify-items: end; }
.chat-bubble { max-width: 88%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: 13.5px; line-height: 1.5; color: var(--text); white-space: normal; }
.chat-bubble a { color: var(--primary); text-decoration: underline; }
.chat-msg.is-user .chat-bubble { border-radius: 14px 14px 4px 14px; background: var(--primary); color: #fff; }
.chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: chatDot 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-prods { display: grid; gap: 6px; width: 100%; }
.chat-prod { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 9px; border: 1px solid var(--border-2); border-radius: 12px; background: #fff; transition: border-color .2s; }
.chat-prod:hover { border-color: var(--primary); }
.chat-prod img { width: 44px; height: 44px; object-fit: contain; }
.chat-prod b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.chat-prod small { font-size: 12px; color: var(--text-2); }
.chat-prod em { font-style: normal; color: var(--text-3); }
.chat-prod em.is-in { color: var(--success-ink); }
.chat-fit { font-size: 12.5px; font-weight: 500; color: var(--primary); }
.chat-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.chat-ask .input { height: 42px; padding: 10px 12px; resize: none; overflow: hidden; font-family: inherit; line-height: 1.4; }
.chat-ask .btn { width: 42px; height: 42px; padding: 0; }
.chat-ai-note { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.chat-manager { border-top: 1px solid var(--border-2); padding-top: 10px; display: grid; gap: 12px; }
.chat-manager > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); list-style: none; }
.chat-manager > summary::-webkit-details-marker { display: none; }
.chat-manager[open] > summary { margin-bottom: 10px; }

.cb-when { margin-top: 6px; }
.cb-slot[hidden] { display: none; }
.cb-submit { margin-top: 8px; }

/* ---------- отзывы и оценки площадок ---------- */
.rv-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rv-item { padding: 20px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start; }
.rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rv-head b { font-size: 14px; font-weight: 600; }
.rv-head small { font-size: 12px; color: var(--text-3); }
.rv-item p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.stars { display: inline-flex; gap: 2px; }
.stars .i { width: 15px; height: 15px; color: #d7dee6; fill: #d7dee6; }
.stars .is-on .i { color: #ffb020; fill: #ffb020; }

@media (max-width: 1024px) {
  .rv-list { grid-template-columns: 1fr; }
  .msg-links-row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .chat-widget { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .chat-fab { width: 50px; height: 50px; }
  .chat-panel { width: calc(100vw - 32px); max-height: calc(100vh - 200px); }
}

body.has-buybar .chat-widget { bottom: calc(140px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  body.has-buybar .chat-widget { bottom: 24px; }
}


/* ---------- акции ---------- */
.sale-hero { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: center; padding: 28px 32px; border-radius: 20px; background: linear-gradient(135deg, #eef4ff 0%, #f7fafd 60%, #ffffff 100%); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.sale-hero-text h2 { font-size: 26px; font-weight: 700; margin: 6px 0 10px; letter-spacing: -.01em; }
.sale-hero-text p { font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 620px; }
.sale-hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.sale-hero-calc { background: #fff; border: 1px solid var(--border-2); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.sale-hero-calc .calc-out { min-width: 0; }
.catalog-toolbar .chips { flex: 1; }
.chip .count { margin-left: 6px; font-size: 11px; color: var(--text-3); }
.chip.is-active .count { color: inherit; opacity: .7; }
.sum-minus { color: var(--success-ink); }
.tradein-sum { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--success-ink); }

/* ---------- оплата ---------- */
.pay-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); line-height: 1.55; }
.pay-erip { margin: 20px auto 0; max-width: 460px; text-align: left; padding: 18px 20px; border: 1px solid var(--border-2); border-radius: 16px; background: var(--surface); }
.pay-erip b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pay-erip ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.pay-erip p { font-size: 14px; line-height: 1.55; }
.pay-erip small { display: block; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.pay-erip .btn { margin-top: 14px; }
.erip-code { display: inline; font-size: 15px; color: var(--primary); }

/* ---------- отзывы на товар ---------- */
.rv-inline { display: inline-flex; align-items: center; gap: 6px; }
.rv-inline b { font-size: 14px; }
.rv-inline.is-empty .stars .i { opacity: .7; }
.tab-count { margin-left: 5px; font-size: 11px; color: var(--text-3); }
.rv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.rv-bar b { font-size: 24px; font-weight: 700; }
.rv-list-product { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.rv-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-2); display: grid; gap: 12px; max-width: 560px; }
.rv-form h4 { font-size: 15px; font-weight: 600; }
.rv-rate { display: flex; gap: 4px; }
.rv-star { width: 32px; height: 32px; display: grid; place-items: center; color: #d7dee6; }
.rv-star .i { width: 24px; height: 24px; fill: currentColor; }
.rv-star.is-on { color: #ffb020; }
.rv-text { height: auto; padding: 10px 14px; resize: vertical; font-family: inherit; line-height: 1.5; }
.rv-submit { justify-self: start; }

/* ---------- услуги ---------- */
.srv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.srv-card { padding: 24px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start; }
.srv-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); }
.srv-card .ic .i { width: 22px; height: 22px; }
.srv-card h3 { font-size: 16px; font-weight: 600; }
.srv-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.srv-price b { font-size: 20px; font-weight: 700; }
.srv-price small { font-size: 12px; color: var(--text-3); }
.srv-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.srv-card .link-arrow { justify-self: start; margin-top: 4px; }
.srv-signs { margin-top: 4px; }

/* ---------- статья ---------- */
.post-page { max-width: 760px; margin: 0 auto; }
.post-hero-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); margin-bottom: 14px; flex-wrap: wrap; }
.post-page .h1 { margin-bottom: 14px; }
.post-cover { margin: 24px 0 28px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body h2 { font-size: 22px; font-weight: 700; margin: 30px 0 12px; letter-spacing: -.01em; }
.post-body p { font-size: 16px; line-height: 1.7; color: var(--text-2); margin-bottom: 14px; }
.post-body h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.post-body a { color: var(--primary); }
.post-list-ol { margin: 0 0 14px; padding-left: 22px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.post-quote { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--surface-2); font-size: 16px; line-height: 1.6; }
.post-table { margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post-table th, .post-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); }
.post-table th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.post-table tr:last-child td { border-bottom: 0; }
.post-table td:first-child { color: var(--text); font-weight: 600; }
.post-figure { margin: 6px 0 18px; }
.post-figure img { width: 100%; border-radius: 14px; }
.post-figure figcaption { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.post-list-ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 9px; }
.post-list-ul li { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.post-list-ul li::marker { color: var(--primary); }
.post-foot { display: flex; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border-2); flex-wrap: wrap; }
.post-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card .th { aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-card .th img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.post-card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.post-card-body small { font-size: 12px; color: var(--text-3); }
.post-card .badge { justify-self: start; }
.post-featured .post-meta span + span::before { content: "·"; margin-right: 8px; color: var(--text-3); }

@media (max-width: 1024px) {
  .sale-hero { grid-template-columns: 1fr; padding: 22px; }
  .srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-more { grid-template-columns: 1fr; }
  .rv-list-product { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .sale-hero-text h2 { font-size: 20px; }
  .sale-hero-actions .btn { flex: 1; }
  .srv-grid { grid-template-columns: 1fr; }
  .post-body h2 { font-size: 19px; }
  .post-body p, .post-list-ul li { font-size: 15px; }
  .post-foot .btn { flex: 1; }
  .catalog-toolbar .chips { overflow-x: auto; }
}


/* ---------- подбор по автомобилю ---------- */
.podbor-panel { margin-top: 20px; }
.podbor-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
@media (max-width: 1100px) and (min-width: 768px) { .podbor-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .podbor-go { grid-column: 1 / -1; } }
.podbor-field { display: block; }
.podbor-field .calc-lbl { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.podbor-go { white-space: nowrap; }
/* подбор: вкладки, быстрый поиск, VIN и маркировка старого АКБ */
.podbor-tabs { margin: -8px 0 18px; }
.podbor-tabs .tab { padding: 14px 16px; }
.podbor-quick { margin-bottom: 14px; }
.podbor-quick .input { width: 100%; }
.podbor-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 35, 80, .14); padding: 6px; max-height: 380px; overflow-y: auto; }
.podbor-sugg-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.podbor-sugg-item:hover, .podbor-sugg-item:focus { background: var(--surface-2); }
.podbor-sugg-item span { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.podbor-sugg-empty { padding: 10px 12px; font-size: 13px; color: var(--text-3); }
.podbor-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.podbor-line .input { width: 100%; text-transform: none; }
.podbor-hint { margin-top: 10px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.podbor-hint a, .podbor-note a { color: var(--primary); }
.podbor-found { margin-top: 18px; font-size: 15px; line-height: 1.6; }
.podbor-found + .btn { margin-top: 12px; }
.podbor-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.podbor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.podbor-grid { margin-top: 16px; }
@media (max-width: 767px) { .podbor-line { grid-template-columns: 1fr; } .podbor-sugg-item { flex-direction: column; gap: 2px; } .podbor-tabs .tab { padding: 12px 10px; font-size: 13px; } }
.fit-engines { margin: 20px 0 8px; padding: 18px 20px; display: grid; gap: 12px; }
.fit-engines[hidden] { display: none; }
.fit-eng-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.fit-eng-head span { font-size: 13px; color: var(--text-3); }
.fit-eng-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: start; }
.fit-eng-fuel { padding-top: 9px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.fit-eng-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-eng { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: var(--text); transition: border-color .2s; }
.fit-eng small { font-size: 11px; font-weight: 400; color: var(--text-3); }
.fit-eng:hover { border-color: #b3cfff; }
.fit-eng.is-active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: #f7faff; color: var(--primary); }
.fit-eng-note { margin: 0; font-size: 12px; color: var(--text-3); }
@media (max-width: 767px) { .fit-eng-row { grid-template-columns: 1fr; gap: 6px; } .fit-eng-fuel { padding-top: 0; } }
.brand-index { columns: 4; column-gap: 24px; }
.brand-col { break-inside: avoid; margin-bottom: 22px; }
.brand-col h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.brand-col ul { list-style: none; display: grid; gap: 4px; }
.brand-col a { font-size: 13px; color: var(--text-2); }
.brand-col a:hover { color: var(--primary); }
.brand-col small { color: var(--text-3); font-size: 12px; }

.fit-specs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.fit-spec { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-sm); }
.fit-spec .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.fit-spec .ic .i { width: 19px; height: 19px; }
.fit-spec small { display: block; font-size: 12px; color: var(--text-3); }
.fit-spec b { font-size: 14px; font-weight: 600; }
.fit-note { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.fit-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fit-link { padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 500; transition: border-color .2s; }
.fit-link:hover { border-color: #c9d6e3; }
.fit-link small { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; }
#fitFaq .acc-item:last-child { border-bottom: 0; }
#fitFaq .acc-content p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- доставка сегодня ---------- */
.badge-today { background: #e8f1ff; color: var(--primary-ink); }

/* ---------- направления под заказ ---------- */
.soon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.soon-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 14px; background: var(--surface); font-size: 13px; font-weight: 500; transition: border-color .2s, background .2s; }
.soon-chip:hover { border-color: var(--primary); background: #f7faff; }
.soon-chip .i { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.soon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.soon-ask { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.soon-ask .i { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); }
.soon-text { height: auto; padding: 10px 14px; resize: vertical; font-family: inherit; line-height: 1.5; grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .fit-specs { grid-template-columns: repeat(3, 1fr); }
  .brand-index { columns: 3; }
  .fit-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .podbor-row { grid-template-columns: 1fr; }
  .podbor-go { width: 100%; }
  .brand-index { columns: 2; }
  .soon-row { grid-template-columns: repeat(2, 1fr); }
  .soon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .fit-specs { grid-template-columns: 1fr 1fr; }
  .brand-index { columns: 1; }
  .fit-links { grid-template-columns: 1fr; }
  .soon-row { grid-template-columns: 1fr; }
}


/* ---------- фокус с клавиатуры ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible { outline-offset: 3px; }
.check input:focus-visible, .radio-card input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- применимость в карточке товара ---------- */
.apply-intro { margin-bottom: 18px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.apply-list a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 10px; font-size: 13px; background: var(--surface); transition: border-color .2s; }
.apply-list a:hover { border-color: var(--primary); }
.apply-list a small { color: var(--text-3); font-size: 12px; }
.apply-note { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.search-empty b { display: block; }
.brands .bl small { margin-left: 6px; font-size: 11px; color: var(--text-3); font-weight: 500; }

/* ---- отзывы: сканы писем ---- */
.review-scans { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.review-scan { display: block; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.review-scan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, var(--shadow-sm)); }
.review-scan img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---- таблица кодов даты выпуска ---- */
.code-table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.code-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.code-table th, .code-table td { padding: 9px 6px; text-align: center; border-bottom: 1px dashed var(--border); }
.code-table thead th { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; }
.code-table tbody th { font-weight: 600; text-align: left; }
.code-table tbody tr:hover { background: var(--surface-2); }

@media (max-width: 1024px) { .review-scans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .review-scans { grid-template-columns: 1fr; } }
.page > .panel, .recycle-layout > * { min-width: 0; }

/* Подгруппы по бренду в разделе каталога */
.brand-links { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 4px; }
.brand-links[hidden] { display: none; }
.brand-links a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--text-2); transition: border-color .2s, color .2s; }
.brand-links a span { font-size: 11px; color: var(--text-3); }
.brand-links a:hover { color: var(--text); border-color: var(--border); }
.brand-links a.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.brand-links a.is-active span { color: rgba(255, 255, 255, .7); }
@media (max-width: 767px) { .brand-links { flex-wrap: nowrap; overflow-x: auto; margin: 10px -16px 2px; padding: 0 16px; scrollbar-width: none; } .brand-links a { flex-shrink: 0; } }

/* SEO-текст раздела каталога (из админки) */
.seo-text { margin-top: 36px; padding: 24px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2); font-size: 14px; line-height: 1.65; }
.seo-text[hidden] { display: none; }
.seo-text h2 { font-size: 20px; color: var(--text); margin: 0 0 10px; }
.seo-text h3 { font-size: 16px; color: var(--text); margin: 18px 0 8px; }
.seo-text p { margin: 0 0 10px; }
@media (max-width: 767px) { .seo-text { margin-top: 24px; padding: 18px 16px; } }

/* акции, баннер, промокод */
.old-price { margin-right: 8px; color: var(--text-3); font-size: .8em; font-weight: 500; }
.promo-banner { background: #0b1f36; color: #fff; font-size: 14px; }
.promo-banner .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.promo-banner a { color: #fc0; font-weight: 600; text-decoration: none; }
.promo-banner a:hover { text-decoration: underline; }
.promo-banner button { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #fff; opacity: .7; cursor: pointer; }
.promo-banner button:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.promo-banner .i { width: 16px; height: 16px; }
.promo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.promo-row .input { flex: 1; min-width: 160px; text-transform: uppercase; }
.promo-msg { flex-basis: 100%; font-size: 13px; }
.promo-msg.ok { color: #12803f; }
.promo-msg.err { color: var(--danger-ink); }

/* блоки, вставленные через админку */
.cms-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.cms-media img { width: 100%; border-radius: 14px; object-fit: cover; }
.cms-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 20px; background: linear-gradient(120deg, #00439a, #0066ff); color: #fff; }
.cms-cta .h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.cms-cta p { color: rgba(255, 255, 255, .85); font-size: 15px; }
.cms-cta .btn-primary { flex: none; background: #fc0; color: #0b1f36; box-shadow: none; }
.cms-figure { margin-left: 0; margin-right: 0; }
.cms-figure img, .cms-img { display: block; width: 100%; max-width: 100%; border-radius: 14px; }
.cms-figure img { max-height: 520px; object-fit: cover; }
.cms-img { margin: 0 0 16px; }
.cms-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.cms-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.cms-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.cms-code iframe { max-width: 100%; }
@media (max-width: 760px) {
  .cms-media { grid-template-columns: 1fr; }
  .cms-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* дополнительные блоки из админки */
.cms-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cms-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 8px; }
.cms-step .n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.cms-step b { display: block; margin-bottom: 4px; font-size: 16px; }
.cms-step p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cms-stat { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-2); }
.cms-stat b { display: block; font-size: 30px; letter-spacing: -.02em; color: var(--primary); }
.cms-stat span { font-size: 14px; color: var(--text-2); }
.cms-table-wrap { overflow-x: auto; margin: 4px 0 16px; }
.cms-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cms-table th, .cms-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-2); text-align: left; }
.cms-table th { background: var(--surface-2); font-weight: 600; }
.cms-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cms-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.cms-note { margin: 0 0 16px; padding: 16px 18px; border-left: 4px solid #f5a524; border-radius: 0 14px 14px 0; background: #fff8e8; }
.cms-note b { display: block; margin-bottom: 4px; }
.cms-note p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.cms-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; font-size: 14px; }
.cms-contacts a { color: var(--text); text-decoration: none; font-weight: 600; }
.cms-contacts small { display: block; color: var(--text-3); font-weight: 400; }
.cms-docs { list-style: none; display: grid; gap: 8px; }
.cms-docs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.cms-docs a::before { content: "📄 "; }
.cms-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cms-hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border-2); }
.cms-form-text { grid-column: 1 / -1; }
.cms-form .btn { justify-self: start; }
@media (max-width: 900px) { .cms-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cms-cols3 { grid-template-columns: 1fr; } }
.cms-note.section-panel { margin-top: 20px; }

/* зачёт старого аккумулятора: блок с калькулятором (главная, вставка через админку) */
.ti { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px; border-radius: 24px; background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 60%, #fff 100%); border: 1px solid var(--border-2); }
.ti-kicker { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 99px; background: #e5f8ec; color: #127a43; font-size: 12px; font-weight: 600; }
.ti .h2 { max-width: 520px; }
.ti-lead { margin: 12px 0 18px; max-width: 540px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.ti-list { margin-bottom: 22px; }
.ti-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ti-calc { padding: 26px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgba(11, 31, 54, .08); border: 1px solid var(--border-2); }
.ti-calc-h { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.ti-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.ti-cap { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.ti-cap b { font-size: 40px; letter-spacing: -.02em; }
.ti-cap span { color: var(--text-2); font-weight: 600; }
.ti-range { width: 100%; accent-color: var(--primary); }
.ti-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.ti-chips button { height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.ti-chips button.on { border-color: var(--primary); background: #e8f1ff; color: var(--primary-ink); }
.ti-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #0b1f36; color: #fff; }
.ti-result span { font-size: 14px; opacity: .85; }
.ti-result b { font-size: 28px; color: #fc0; letter-spacing: -.01em; white-space: nowrap; }
.ti-example { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.ti-example a { color: var(--text); text-decoration: none; }
.ti-example a:hover { color: var(--primary); }
.ti-example s { color: var(--text-3); }
@media (max-width: 900px) { .ti { grid-template-columns: 1fr; padding: 22px; gap: 20px; } .ti-calc { padding: 20px; } }

/* товары по акции */
.badge-promo { background: #ff3b3b; color: #fff; font-weight: 700; }
.sale-block .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sale-kicker { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 99px; background: #ffecec; color: #c62828; font-size: 12px; font-weight: 700; }
.sale-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.sale-pct { padding: 3px 10px; border-radius: 8px; background: #ff3b3b; color: #fff; font-weight: 800; font-size: 15px; }
.sale-left { font-weight: 600; color: var(--text); }
.sale-block[hidden] { display: none; }

/* быстрый подбор по авто под главным баннером */
.fitbar { position: relative; z-index: 2; margin-top: -28px; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--border-2); box-shadow: 0 18px 44px rgba(11, 31, 54, .12); }
.fitbar-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr); gap: 24px; align-items: center; }
.fitbar-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.fitbar-sub { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.fitbar-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.fitbar-fields .select { width: 100%; height: 48px; }
.fitbar-fields .btn { height: 48px; padding: 0 26px; }
.fitbar-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.fitbar-foot button { height: 28px; padding: 0 11px; border: 1px solid var(--border); border-radius: 99px; background: #fff; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; }
.fitbar-foot button:hover, .fitbar-foot button.on { border-color: var(--primary); color: var(--primary-ink); background: #e8f1ff; }
.fitbar-foot a { margin-left: auto; color: var(--primary); font-weight: 600; text-decoration: none; }
@media (max-width: 1000px) { .fitbar-row { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 640px) { .fitbar { margin-top: 12px; padding: 18px; } .fitbar-fields { grid-template-columns: 1fr; } .fitbar-foot a { margin-left: 0; flex-basis: 100%; } }

/* доставка и магазины */
.dlv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dlv-tile { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-2); }
.dlv-tile .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e8f1ff; color: var(--primary); }
.dlv-tile .ic .i { width: 20px; height: 20px; }
.dlv-tile b { display: block; font-size: 15px; line-height: 1.3; }
.dlv-tile span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.dlv-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.dlv-store { display: grid; gap: 10px; align-content: start; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-2); }
.dlv-store-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dlv-store-h b { font-size: 17px; }
.dlv-now { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; }
.dlv-now.is-open { background: #e5f8ec; color: #16804a; }
.dlv-line { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.dlv-line .i { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--text-3); }
.dlv-line a { color: var(--text); font-weight: 600; text-decoration: none; }
.dlv-line small { display: block; color: var(--text-3); }
.dlv-ph { display: flex; align-items: baseline; gap: 8px; }
.dlv-ph em { font-style: normal; font-size: 12px; color: var(--text-3); }
.dlv-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dlv-ics { flex: none; display: grid; grid-auto-rows: 1.45em; }
.dlv-line .dlv-vb { display: block; }
.dlv-line .dlv-vb .i { color: #7360f2; }
.dlv-line .dlv-vb:hover .i { color: #5f4be0; }
@media (max-width: 1000px) { .dlv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dlv-tiles, .dlv-stores { grid-template-columns: 1fr; } }

/* текст для поисковиков внизу главной */
.seo-text .h2 { font-size: 22px; margin-bottom: 12px; }
.seo-body { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.seo-text.is-open .seo-body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.seo-body p { margin-bottom: 12px; font-size: 14px; line-height: 1.7; color: var(--text-2); max-width: 920px; }
.seo-more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; }

/* баннер «Не знаете, какой нужен?» — мессенджеры и обратный звонок */
.consult img { object-position: center 40%; }
.consult p { max-width: 520px; }
.consult-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.consult-msg { display: contents; }
.consult .btn { margin-top: 0; }
.consult-btn { gap: 8px; color: #fff; }
.consult-btn .i { width: 18px; height: 18px; }
.consult-viber { background: #6750e6; }
.consult-viber:hover { background: #5f4be0; }
.consult-telegram { background: #1b7db0; }
.consult-telegram:hover { background: #166a96; }
.consult-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #3b4f66; }
.consult-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aabbd; }
.consult-dot.is-online { background: #1fb35b; box-shadow: 0 0 0 4px rgba(31, 179, 91, .18); }
@media (max-width: 760px) { .consult .consult-status { margin-bottom: 18px; } }

/* подсказка сотрудникам на странице товара: поставщики (видна только после входа в админку) */
.staff-hint { margin: 10px 0 4px; padding: 10px 12px; border: 1px dashed #f5a524; border-radius: 10px; background: #fff8eb; font-size: 13px; color: #6b4a00; }
.staff-hint b { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

/* поле-ловушка для ботов в формах: человеку не видно, бот заполняет */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* капча в форме отзыва (Яндекс SmartCaptcha) */
.rv-captcha { min-height: 100px; }
.rv-captcha.rv-math { min-height: 0; display: flex; align-items: flex-end; gap: 8px; }
.rv-math-q { display: grid; gap: 6px; flex: 1; font-size: 14px; color: var(--text-2); }
.rv-math-q b { color: var(--text); white-space: nowrap; }
.rv-math-q .input { max-width: 120px; }
.rv-math-new { flex: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); font-size: 18px; cursor: pointer; }
.rv-math-new:hover { color: var(--primary); border-color: var(--primary); }

/* согласие на обработку персональных данных в формах */
.check.consent { align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-2); grid-column: 1 / -1; }
.check.consent input { margin-top: 1px; }
.check.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.check.consent.is-error { color: var(--danger, #e5484d); }
.check.consent.is-error input { border-color: var(--danger, #e5484d); }

/* счётчик посетителей на странице товара: сегодня и за месяц */
.p-views { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.p-views .i { width: 16px; height: 16px; color: var(--text-3); }
.p-views b { color: var(--text); font-weight: 600; }
/* где товар есть на нашем складе: «ул. Лобанка, 107» под характеристиками карточки */
.p-card .p-where { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--success, #16804a); }
.p-card .p-where .i { width: 14px; height: 14px; flex: none; }
/* сравнение в кабинете: крестик «убрать» над товаром и «Очистить сравнение» */
.cmp-head { position: relative; padding-top: 34px !important; }
.cmp-head a { color: inherit; text-decoration: none; display: block; }
.cmp-head a:hover b { color: var(--primary); }
.cmp-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border, #dfe5ec); border-radius: 50%; background: #fff; color: var(--text-2, #5a6b7d); cursor: pointer; }
.cmp-del:hover, .cmp-del:focus-visible { background: #fdecec; border-color: #f5b5b5; color: #c62828; outline: none; }
.cmp-del .i { width: 14px; height: 14px; }
.cmp-clear { border: 0; background: none; padding: 0; color: var(--text-2, #5a6b7d); font-size: 13px; text-decoration: underline; cursor: pointer; }
.cmp-clear:hover { color: #c62828; }
/* подсказка у кнопок карточки товара (data-tip → .ui-tip, app.js) */
.ui-tip { position: fixed; z-index: 1000; top: 0; left: 0; max-width: 240px; padding: 7px 10px; border-radius: 8px; background: #0b1f36; color: #fff; font-size: 12px; line-height: 1.4; box-shadow: 0 6px 20px rgba(11, 31, 54, .25); pointer-events: none; opacity: 0; transition: opacity .15s; }
.ui-tip.is-on { opacity: 1; }

/* Область нажатия не меньше 24 px по высоте (доступность, Lighthouse «Места для касания»): мелкие ссылки и кнопки
   получают невидимые поля сверху и снизу, а отрицательный отступ той же величины возвращает вёрстку как была */
.link-arrow, a.exch, .header-city { padding-block: 4px; margin-block: -4px; }
.srv-card .link-arrow { margin-top: 0; }                                      /* было 4px — теперь это поле сверху */
.link-arrow.cat-all { margin-top: 12px; }                                     /* было 16px (только на телефоне) */
.dlv-vb { padding: 4px; margin: -4px; }
.city-phones a, .contact-line > a[href^="tel:"], .dlv-ph a { padding-block: 3px; margin-block: -3px; }   /* телефоны текстом */

/* Шапку рисует app.js, а его подключает boot.js после первого экрана — место под неё заранее, иначе страница съедет
   (на телефоне шапка закреплена, место уже есть: отступ body сверху) */
@media (min-width: 768px) { #header { min-height: var(--header-h); } }
