/* ==========================================================================
   АвтоДеталь 2108 — storefront & admin styles (plain CSS, no build step)
   Light theme · design tokens on :root · mobile-first
   ========================================================================== */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: #e6e8ec;
    --line-strong: #d5d9e0;
    --text: #1b2230;
    --text-2: #4b5565;
    --muted: #8a93a3;

    /* Brand green from the 2108 logo. #42de28 is too light for white text or text on white,
       so buttons use dark text on green and links use the deeper --accent-600. */
    --accent: #42de28;
    --accent-hover: #37cc1e;
    --accent-600: #1c8a0e;      /* green text on white: links, active states (contrast ≥ 4.5:1) */
    --accent-700: #146a09;
    --accent-50: #effcea;
    --accent-100: #d6f7cb;
    --on-accent: #0b1f07;       /* text/icons on #42de28 */
    --accent-glow: rgba(66, 222, 40, .45);
    --ink: #0f1a12;             /* headings and dark surfaces, slightly green-tinted */
    --ink-2: #1d2b20;

    --ok: #12a150;
    --ok-50: #eafaf1;
    --warn: #c27a06;
    --warn-50: #fff8e6;
    --err: #dc2626;
    --err-50: #fef1f1;
    --info: #2563eb;
    --info-50: #eef4ff;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 7px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
    --shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 6px 16px -6px rgba(17, 24, 39, .08);
    --shadow-lg: 0 20px 48px -12px rgba(17, 24, 39, .22);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
    --container: 1240px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
main { flex: 1; }
.section { margin-top: 48px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page { padding-block: 24px 8px; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--top { align-items: flex-start; }
.ml-auto { margin-left: auto; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid--6 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.split { display: grid; gap: 24px; }
@media (min-width: 1024px) {
    .split { grid-template-columns: 280px minmax(0, 1fr); }
    .split--right { grid-template-columns: minmax(0, 1fr) 380px; }
    .split--half { grid-template-columns: 1fr 1fr; }
}
.text-muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.upper { text-transform: uppercase; letter-spacing: .04em; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
    background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -8px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] { background: #e4e9e3; color: #7c867c; box-shadow: none; opacity: 1; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--line-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--soft { background: var(--accent-50); color: var(--accent-600); }
.btn--soft:hover { background: var(--accent-100); }
.btn--danger { background: var(--err); color: #fff; }
.btn--link { min-height: auto; padding: 0; background: none; color: var(--accent-600); font-weight: 600; }
.btn--link:hover { text-decoration: underline; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-xs); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 44px; }
.btn--icon.btn--sm { width: 34px; }
.link { color: var(--accent-600); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.label small { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; min-height: 44px; padding: 10px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
    font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; padding-right: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a93a3' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--muted); }
.input--sm, .select--sm { min-height: 36px; padding-block: 6px; font-size: 13px; }
.input--lg { min-height: 54px; font-size: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.field-error { color: var(--err); font-size: 12px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) {
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .span-all { grid-column: 1 / -1; }
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .6; }
.option-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.option-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.option-card strong { color: var(--ink); }
.option-card span { color: var(--muted); font-size: 13px; }

/* ---------- Cards, badges, alerts ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 20px; }
.card--hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card--hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.card__title { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge--accent { background: var(--accent); color: var(--on-accent); }
.badge--dark { background: var(--ink); color: #fff; }
.badge--ok { background: var(--ok-50); color: var(--ok); }
.badge--warn { background: var(--warn-50); color: var(--warn); }
.badge--err { background: var(--err-50); color: var(--err); }
.badge--info { background: var(--info-50); color: var(--info); }
.badge--sale { background: #ff2d55; color: #fff; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid transparent; }
.alert--ok { background: var(--ok-50); color: #0b6b36; border-color: #c4eed6; }
.alert--err { background: var(--err-50); color: #9b1c1c; border-color: #f8cdcd; }
.alert--warn { background: var(--warn-50); color: #8a5300; border-color: #f6e0a7; }
.alert--info { background: var(--info-50); color: #1d4ed8; border-color: #d4e2ff; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s; }
.chip:hover, .chip.is-active { border-color: var(--accent); color: var(--accent-600); }
.chip small { color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table th { padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfd; }
.table--compact td, .table--compact th { padding: 8px 10px; font-size: 13px; }
.table .num { text-align: right; white-space: nowrap; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #b9c6bb; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 20px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 18px -8px var(--accent-glow); }
.logo__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.logo__name b { margin-left: 4px; padding: 1px 7px 2px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.logo__tag { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.catalog-btn { display: none; }
@media (min-width: 900px) { .catalog-btn { display: inline-flex; } }
.search { position: relative; flex: 1; min-width: 0; }
.search__input { width: 100%; min-height: 46px; padding: 0 52px 0 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 14px; transition: border-color .15s, background .15s; }
.search__input:focus { outline: none; border-color: var(--accent); background: #fff; }
.search__btn { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.suggest__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--surface-2); }
.suggest__item small { display: block; color: var(--muted); font-size: 12px; }
.suggest__all { display: block; width: 100%; padding: 10px 14px; border: 0; background: var(--surface-2); text-align: left; font-size: 13px; font-weight: 700; color: var(--accent-600); }
.header__nav { display: flex; align-items: center; gap: 2px; flex: none; }
.header__link { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-2); }
.header__link:hover { background: var(--surface-2); color: var(--ink); }
.header__link .counter { position: absolute; top: 3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.header__link span.lbl { display: none; }
@media (min-width: 1100px) { .header__link span.lbl { display: inline; } }
.burger { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-sm); }
@media (min-width: 900px) { .burger { display: none; } }
@media (max-width: 767px) {
    .header__inner { flex-wrap: wrap; padding-block: 10px; gap: 8px; }
    .header .search { order: 5; flex-basis: 100%; }
    .logo__tag { display: none; }
}
.megamenu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.megamenu__grid { display: grid; gap: 22px 28px; padding-block: 26px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.megamenu__title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.megamenu__title .icon { color: var(--accent); }
.megamenu ul { list-style: none; margin-top: 8px; padding-left: 30px; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.megamenu a:hover { color: var(--accent-600); }

.vehicle-bar { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.vehicle-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 50px; padding-block: 8px; }
.vehicle-bar__car { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.dot-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); flex: none; }
.dot-icon--ok { background: var(--ok-50); color: var(--ok); }

.flash { margin-top: 16px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--accent-600); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f1fbee 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; right: -180px; top: -200px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(66, 222, 40, .22), transparent 65%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; padding-block: 44px 40px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--accent-600); }
.hero h1 { margin-top: 16px; max-width: 760px; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }
.hero__lead { margin-top: 12px; max-width: 640px; font-size: 17px; color: var(--text-2); }
.finder { margin-top: 28px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.tabs__list { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; }
.tabs__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs__btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs--line .tabs__list { background: none; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 0; }
.tabs--line .tabs__btn { flex: none; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs--line .tabs__btn[aria-selected="true"] { box-shadow: none; border-color: var(--accent); color: var(--accent-600); background: none; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .inline-form { flex-direction: row; } }
.picker { display: grid; gap: 10px; }
@media (min-width: 640px) { .picker { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .picker:not(.picker--compact) { grid-template-columns: 1fr 1.3fr .75fr 1.4fr auto; } }
.picker--compact { grid-template-columns: 1fr !important; }
.picker__extra { grid-column: 1 / -1; }
.popular-makes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; }

/* ---------- Feature tiles ---------- */
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); flex: none; }
.feature h3 { font-size: 15px; }
.feature p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Category tiles ---------- */
.cat-tile { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.cat-tile__head { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.cat-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--ink); transition: background .2s, color .2s; flex: none; }
.cat-tile:hover .cat-tile__icon { background: var(--accent); color: var(--on-accent); }
.cat-tile ul { list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.cat-tile ul a:hover { color: var(--accent-600); }
.cat-tile small { color: var(--muted); font-size: 12px; }

/* ---------- Product card ---------- */
.products { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.p-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.p-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.p-card__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.p-card__fav { position: absolute; right: 10px; top: 10px; }
.p-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px; }
.p-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.p-card__brand { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.p-card__sku { color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card__title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.p-card__title:hover { color: var(--accent-600); }
.p-card__info { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.p-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b3bac6; background: linear-gradient(135deg, #fafbfc, #f0f2f5); }
.placeholder .icon { width: 42px; height: 42px; }
.placeholder span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fav-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #b3bac6; box-shadow: var(--shadow-sm); transition: color .15s, transform .15s; }
.fav-btn:hover { color: #ff2d55; transform: scale(1.06); }
.fav-btn[aria-pressed="true"] { color: #ff2d55; }

.price { font-weight: 800; color: var(--ink); font-size: 18px; white-space: nowrap; letter-spacing: -.01em; }
.price--lg { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.price--old { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); } .stock--low { color: var(--warn); } .stock--out { color: var(--muted); }

/* ---------- Catalog ---------- */
.filters .card + .card { margin-top: 14px; }
.filter-group + .filter-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-group__title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.filter-list { display: grid; gap: 8px; max-height: 230px; overflow-y: auto; padding-right: 4px; }
.filter-list .check { font-size: 14px; }
.filter-list small { color: var(--muted); }
.range { display: flex; align-items: center; gap: 8px; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.sortbar a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); }
.sortbar a:hover { color: var(--accent-600); }
.sortbar a.is-active { background: var(--ink); color: #fff; }
@media (max-width: 1023px) { .filters:not(.is-open) { display: none; } }
.empty { padding: 48px 24px; text-align: center; }
.empty .icon { margin: 0 auto 12px; width: 44px; height: 44px; color: var(--line-strong); }
.seo-text { margin-top: 32px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.seo-text h2 { font-size: 1.15rem; margin-bottom: 10px; }
.seo-text h3 { margin: 16px 0 6px; }
.seo-text p + p { margin-top: 10px; }
.seo-text ul { padding-left: 20px; margin-top: 8px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; list-style: none; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-600); }
.pagination [aria-current] span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-disabled span { color: var(--line-strong); }

/* ---------- Product page ---------- */
.product { display: grid; gap: 24px; }
@media (min-width: 1024px) { .product { grid-template-columns: 1fr 1fr; } }
.gallery__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumb { width: 68px; height: 68px; flex: none; padding: 4px; border: 2px solid var(--line); border-radius: var(--radius-xs); background: #fff; }
.gallery__thumb[aria-current="true"] { border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.buybox { padding: 22px; }
.buybox__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 14px; font-size: 14px; }
.buybox__facts dt { color: var(--muted); }
.buybox__facts dd { margin: 0; font-weight: 600; }
.buybox__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.qty button { width: 40px; height: 42px; border: 0; background: none; font-size: 18px; color: var(--text-2); }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fit { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.fit--ok { background: var(--ok-50); color: #0b6b36; border: 1px solid #c4eed6; }
.fit--warn { background: var(--warn-50); color: #8a5300; border: 1px solid #f6e0a7; }
.fit--neutral { background: #fff; border: 1px dashed var(--line-strong); color: var(--text-2); font-weight: 500; }
.specs { display: grid; font-size: 14px; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.disclosure + .disclosure { margin-top: 8px; }
.disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.disclosure[open] > summary::after { content: "−"; }
.disclosure__body { padding: 0 16px 14px; font-size: 14px; color: var(--text-2); }
.disclosure__list { list-style: none; border-top: 1px solid var(--line); }
.disclosure__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 9px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.disclosure__list li:last-child { border-bottom: 0; }
.prose { font-size: 15px; line-height: 1.75; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose h2 { margin: 26px 0 10px; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.prose a { color: var(--accent-600); font-weight: 600; }
.trust { display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.trust li { display: flex; gap: 10px; align-items: center; list-style: none; }
.trust .icon { color: var(--accent); }

/* ---------- Steps / checkout ---------- */
.step__title { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; margin-bottom: 16px; }
.step__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; flex: none; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary__lines { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary__total { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.autocomplete { position: relative; }
.autocomplete__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.autocomplete__list button { display: block; width: 100%; padding: 10px 14px; border: 0; background: none; text-align: left; font-size: 14px; }
.autocomplete__list button:hover { background: var(--surface-2); }
.autocomplete__list small { color: var(--muted); }

/* ---------- Cart lines ---------- */
.lines > * + * { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 16px; }
@media (min-width: 768px) { .line { grid-template-columns: 84px 1fr auto auto auto; } }
.line__img { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__actions { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; justify-content: space-between; }
@media (min-width: 768px) { .line__actions { display: contents; } }
.progress { height: 6px; border-radius: 999px; background: var(--accent-100); overflow: hidden; margin-top: 8px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Make / brand tiles ---------- */
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; text-align: center; }
.tile__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--surface-2); font-weight: 800; font-size: 18px; color: var(--ink); }
.tile strong { color: var(--ink); }
.tile small { color: var(--muted); font-size: 12px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-xs); background: #fff; border: 1px solid var(--line); font-weight: 800; }
.letters a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Account ---------- */
.timeline { list-style: none; display: grid; gap: 12px; border-left: 2px solid var(--line); padding-left: 16px; font-size: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.auth { max-width: 460px; margin: 40px auto; }

/* ---------- Footer ---------- */
.footer { margin-top: 64px; background: #fff; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.footer__grid { display: grid; gap: 28px; padding-block: 44px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h2 { font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--accent-600); }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.paylogos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paylogos span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin { display: flex; min-height: 100vh; }
.admin__side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 250px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .2s; }
.admin__side.is-open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .admin__side { transform: none; } .admin__main { padding-left: 250px; } }
.admin__brand { padding: 18px 20px; }
.admin__nav { flex: 1; overflow-y: auto; padding: 0 12px; display: grid; align-content: start; gap: 2px; }
.admin__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-2); }
.admin__nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin__nav a.is-active { background: var(--accent-50); color: var(--accent-600); }
.admin__nav .counter { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; }
.admin__foot { padding: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.admin__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin__top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .admin__top { padding: 0 28px; } }
.admin__top h1 { font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin__content { padding: 20px 16px 48px; }
@media (min-width: 768px) { .admin__content { padding: 28px; } }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.stat { padding: 16px 18px; }
.stat__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat__value { margin-top: 4px; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.toolbar { display: grid; gap: 10px; padding: 14px; margin-bottom: 16px; }
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr repeat(var(--cols, 3), minmax(0, 200px)) auto; } }
.thumb { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .placeholder .icon { width: 22px; height: 22px; }
.thumb .placeholder span { display: none; }
.indent-1 { padding-left: 34px !important; } .indent-2 { padding-left: 58px !important; }
.tabs--line [role="tabpanel"] { margin-top: 20px; }
.filter-group > legend { float: left; width: 100%; padding: 0; }
.filter-group > legend + * { clear: both; }
.stock { white-space: nowrap; }
.header__nav { margin-left: auto; }
@media (max-width: 767px) {
    .p-card__info { flex-direction: column; gap: 2px; }
    .p-card__body { padding: 12px; }
    .price { font-size: 16px; }
    .header__link { padding: 8px; }
    .header__link .counter { left: 20px; }
    .tabs__btn { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 480px) {
    .logo__mark { display: none; }
    .logo__name { font-size: 18px; }
}

/* ==========================================================================
   Design refresh: brand green accents
   ========================================================================== */
.section__head h2, h2.section__head { position: relative; padding-left: 14px; }
.section__head h2::before, h2.section__head::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--accent); }

.hero h1 { max-width: 880px; }
.hero__eyebrow { color: var(--accent-600); border-color: var(--accent-100); background: var(--accent-50); }
.hero__eyebrow .icon { color: var(--accent-600); }
.finder { border-color: var(--accent-100); }
.tabs__btn[aria-selected="true"] .icon { color: var(--accent-600); }

.topbar a:hover { color: var(--accent); }
.vehicle-bar:has(.dot-icon--ok) { background: var(--accent-50); border-bottom-color: var(--accent-100); }
.dot-icon--ok { background: var(--accent); color: var(--on-accent); }

.sortbar a.is-active { background: var(--accent); color: var(--on-accent); }
.pagination [aria-current] span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step__num { background: var(--accent); color: var(--on-accent); }
.chip.is-active { background: var(--accent-50); }

.p-card:hover { border-color: var(--accent); }
.p-card .btn--primary.btn--icon { border-radius: 12px; }
.cat-tile:hover { border-color: var(--accent); }
.feature__icon, .dot-icon { background: var(--accent-50); color: var(--accent-600); }
.price--lg { color: var(--ink); }

.summary__total .price { color: var(--accent-700); }
.option-card:has(input:checked) strong { color: var(--accent-700); }

/* Dark footer for contrast with the green accent */
.footer { background: var(--ink); border-top: 0; color: #b9c6bb; }
.footer h2 { color: #fff; }
.footer a:hover { color: var(--accent); }
.footer .logo__name { color: #fff; }
.footer__bottom { border-top-color: rgba(255, 255, 255, .1); color: #8fa093; }
.paylogos span { border-color: rgba(255, 255, 255, .18); color: #d6e0d8; }

/* Admin */
.admin__nav a.is-active .icon { color: var(--accent-600); }
.admin__nav a.is-active { box-shadow: inset 3px 0 0 var(--accent); }

h1, h2 { text-wrap: balance; }
.hero__top { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1100px) { .hero__top { grid-template-columns: minmax(0, 1fr) 360px; } }
.hero__facts { list-style: none; display: grid; gap: 10px; }
.hero__facts li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--accent-100); border-radius: 16px; box-shadow: var(--shadow-sm); font-size: 13px; color: var(--text-2); }
.hero__facts b { display: block; font-size: 15px; color: var(--ink); }
.hero__fact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--on-accent); flex: none; }
@media (max-width: 1099px) { .hero__facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@media (max-width: 640px) { .hero__facts { display: none; } }

/* Admin: price & margin breakdown on the product form */
.pricing-box { padding: 12px 14px; border-radius: var(--radius-sm, 10px); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.pricing-box li > :last-child { text-align: right; }

/* Language switch UA / RU in the header */
.lang-switch { display: inline-flex; align-items: center; margin-right: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch__item { min-width: 30px; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-align: center; color: var(--text-2); }
.lang-switch__item:hover { color: var(--ink); background: var(--surface-2); }
.lang-switch__item.is-active { background: var(--accent); color: var(--on-accent); }
@media (max-width: 767px) { .lang-switch { margin-right: 2px; } .lang-switch__item { min-width: 26px; padding: 3px 6px; } }
