/* ====================================
   RESET & VARIABLES
==================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:       #d42b2b;
    --red2:      #ff4d4d;
    --gold:      #e8a020;
    --dark:      #111827;
    --bg:        #ffffff;
    --bg2:       #f8f9fc;
    --bg3:       #f0f2f7;
    --text:      #111827;
    --sub:       #374151;
    --muted:     #6b7280;
    --border:    #e5e7eb;
    --shadow:    0 4px 24px rgba(0,0,0,.07);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
    --header-h:  72px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ====================================
   CONTAINER — fluid, scales to 4K
==================================== */
.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 1.8vw, 40px);
}

/* Grid overflow guard */
.about-inner > *,
.car-grid > *,
.trust-grid > *,
.sellers-grid > *,
.services-grid > *,
.reviews-grid > *,
.steps-grid > *,
.footer-grid > * { min-width: 0; }

/* ====================================
   LOADER
==================================== */
#loader {
    position: fixed; inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
    transition: opacity .5s, visibility .5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-brand {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 900; color: var(--dark); letter-spacing: -1px;
}
.loader-brand span { color: var(--red); }
.loader-line {
    width: clamp(160px, 12vw, 260px); height: 3px;
    background: var(--bg3); border-radius: 4px; overflow: hidden;
}
.loader-line::after {
    content: ''; display: block; height: 100%;
    background: var(--red); border-radius: 4px;
    animation: loadAnim 1.2s ease forwards;
}
@keyframes loadAnim { from { width: 0; } to { width: 100%; } }

/* ====================================
   SCROLL REVEAL
==================================== */
.reveal        { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
.reveal.on     { opacity: 1; transform: none; }
.from-left     { opacity: 0; transform: translateX(-50px); transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
.from-right    { opacity: 0; transform: translateX(50px);  transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
.from-left.on, .from-right.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }

/* ====================================
   BUTTONS
==================================== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: clamp(12px, 1vw, 16px) clamp(22px, 2vw, 36px);
    border-radius: 8px;
    font-size: clamp(.88rem, .9vw, 1rem);
    font-weight: 700; cursor: pointer; border: none;
    transition: all .25s; position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,.15); opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }

.btn-red         { background: var(--red); color: #fff; box-shadow: 0 6px 24px rgba(212,43,43,.3); }
.btn-red:hover   { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212,43,43,.4); }
.btn-dark        { background: var(--dark); color: #fff; }
.btn-dark:hover  { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.btn-outline     { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-white       { background: #fff; color: var(--red); font-weight: 800; }
.btn-white:hover { background: #f8f8f8; transform: translateY(-2px); }
.btn-ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); font-weight: 700; }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { padding: clamp(7px,.7vw,10px) clamp(12px,1.2vw,18px) !important; font-size: clamp(.75rem,.78vw,.88rem) !important; }

/* ====================================
   HEADER
==================================== */
header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: all .35s;
}
header.scrolled {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
    width: clamp(36px, 2.8vw, 48px);
    height: clamp(36px, 2.8vw, 48px);
    background: var(--red); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(1rem, 1.2vw, 1.4rem); font-weight: 900; color: #fff; letter-spacing: -1px;
    flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-name { font-size: clamp(.95rem, 1vw, 1.2rem); font-weight: 800; color: #fff; letter-spacing: -.3px; }
.logo-sub  { font-size: clamp(.55rem, .6vw, .7rem); color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1px; }
header.scrolled .logo-name { color: var(--dark); }
header.scrolled .logo-sub  { color: var(--muted); }

nav ul { display: flex; gap: clamp(18px, 2.2vw, 40px); }
nav a { font-size: clamp(.8rem, .85vw, .95rem); font-weight: 500; color: rgba(255,255,255,.8); transition: color .2s; }
nav a:hover { color: #fff; }
header.scrolled nav a { color: var(--muted); }
header.scrolled nav a:hover { color: var(--red); }

.header-right { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); }

.btn-cabinet {
    font-size: 13px; font-weight: 600; color: #fff;
    background: var(--red); border: 1px solid var(--red);
    padding: 6px 16px; border-radius: 7px;
    white-space: nowrap; transition: .2s;
}
.btn-cabinet:hover { background: #c0152a; border-color: #c0152a; color: #fff; }
header.scrolled .btn-cabinet { background: var(--red); border-color: var(--red); color: #fff; }
header.scrolled .btn-cabinet:hover { background: #c0152a; }

.btn-header-login {
    font-size: 13px; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.6);
    padding: 6px 14px; border-radius: 7px;
    white-space: nowrap; transition: .2s;
}
.btn-header-login:hover { background: rgba(255,255,255,.28); border-color: #fff; }
header.scrolled .btn-header-login { color: var(--dark); background: #f1f5f9; border-color: #cbd5e1; }
header.scrolled .btn-header-login:hover { background: #e2e8f0; border-color: #94a3b8; }

.btn-outline {
    display: inline-flex; align-items: center;
    font-size: 14px; font-weight: 600; color: var(--dark);
    border: 1.5px solid #cbd5e1; padding: 10px 20px;
    border-radius: 8px; transition: .2s; text-decoration: none;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.header-phone { font-size: clamp(.8rem, .85vw, .95rem); font-weight: 700; color: #fff; transition: color .2s; white-space: nowrap; }
.header-phone:hover { color: var(--red2); }
header.scrolled .header-phone { color: var(--dark); }

.lang-switch {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 3px; gap: 2px;
    flex-shrink: 0;
}
header.scrolled .lang-switch { background: rgba(0,0,0,.04); border-color: var(--border); }

.lang-btn {
    display: inline-flex; align-items: center;
    font-size: clamp(.7rem, .72vw, .82rem); font-weight: 700; letter-spacing: .5px;
    color: rgba(255,255,255,.6);
    border-radius: 5px; padding: clamp(3px, .3vw, 6px) clamp(8px, .7vw, 12px);
    text-decoration: none; transition: all .2s; white-space: nowrap;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang-btn--active { color: #fff !important; background: var(--red) !important; }
header.scrolled .lang-btn { color: var(--muted); }
header.scrolled .lang-btn:hover { color: var(--red); background: rgba(212,43,43,.08); }
header.scrolled .lang-btn--active { color: #fff !important; background: var(--red) !important; }

.mobile-lang { margin-bottom: 16px; }
.mobile-lang .lang-switch { background: rgba(0,0,0,.04); border-color: var(--border); }
.mobile-lang .lang-btn { color: var(--muted); font-size: .85rem; padding: 6px 14px; }
.mobile-lang .lang-btn--active { color: #fff !important; background: var(--red) !important; }

/* ====================================
   BURGER & MOBILE NAV
==================================== */
.burger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 6px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px; cursor: pointer; flex-shrink: 0;
    transition: background .2s;
}
.burger span {
    display: block; height: 2px; border-radius: 2px;
    background: #fff; transition: all .3s;
}
header.scrolled .burger { background: var(--bg2); border-color: var(--border); }
header.scrolled .burger span { background: var(--text); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 20px 24px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    transform: translateY(-10px); opacity: 0;
    transition: all .3s cubic-bezier(.23,1,.32,1);
    pointer-events: none;
}
.mobile-nav.open { transform: none; opacity: 1; pointer-events: all; }
.mobile-nav ul { margin-bottom: 20px; }
.mobile-nav ul li { border-bottom: 1px solid var(--border); }
.mobile-nav ul a {
    display: block; padding: 14px 0;
    font-size: 1rem; font-weight: 600; color: var(--text);
    transition: color .2s;
}
.mobile-nav ul a:hover { color: var(--red); }
.mobile-phone {
    display: block; font-size: 1.1rem; font-weight: 800;
    color: var(--text); margin-bottom: 12px;
}
.mobile-phone:hover { color: var(--red); }

/* ====================================
   HERO
==================================== */
.hero {
    background: #0d1117;
    min-height: clamp(600px, 100vh, 1000px);
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: clamp(40px, 4vw, 80px) clamp(40px, 4vw, 80px);
}

.hero::after {
    content: '';
    position: absolute; pointer-events: none;
    width: clamp(400px, 45vw, 900px);
    height: clamp(400px, 45vw, 900px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,43,43,.18) 0%, transparent 65%);
    top: -15%; right: -8%;
}

.hero-wrap {
    display: flex;
    align-items: center;
    min-height: clamp(540px, calc(100vh - var(--header-h)), calc(1000px - var(--header-h)));
    position: relative;
    z-index: 1;
    gap: clamp(30px, 4vw, 80px);
}

/* ── ЛЕВАЯ КОЛОНКА ── */
.hero-left {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 6vw, 100px) 0;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: clamp(.62rem, .65vw, .78rem); font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--red2); margin-bottom: clamp(18px, 2vw, 32px);
}
.hero-tag-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red2);
    animation: tagBlink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes tagBlink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.8)} }

.hero-h1 {
    font-size: clamp(2.4rem, 4.8vw, 8rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: clamp(18px, 2vw, 32px);
}
.hero-red { color: var(--red2); }

.hero-sub {
    font-size: clamp(.9rem, 1.1vw, 1.2rem);
    color: rgba(255,255,255,.55);
    line-height: 1.75;
    margin-bottom: clamp(28px, 3vw, 48px);
    max-width: 560px;
}

/* Цифры */
.hero-nums { display: flex; align-items: center; }
.hero-num  { padding-right: clamp(20px, 2.5vw, 40px); }
.hero-num strong {
    display: block;
    font-size: clamp(1.5rem, 2.2vw, 3rem);
    font-weight: 900; color: #fff; line-height: 1;
    margin-bottom: 4px;
}
.hero-num span {
    font-size: clamp(.62rem, .65vw, .78rem);
    color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: 1.5px;
}
.hero-num-sep {
    width: 1px; height: clamp(32px, 3vw, 50px);
    background: rgba(255,255,255,.12);
    margin-right: clamp(20px, 2.5vw, 40px); flex-shrink: 0;
}

/* ── ПРАВАЯ КОЛОНКА — ПОИСК ── */
.hero-right {
    flex: 0 0 clamp(280px, 36%, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 4vw, 60px) 0;
}

.hero-search-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(22px, 2.5vw, 36px);
    width: 100%;
    animation: cardIn .6s .4s cubic-bezier(.23,1,.32,1) both;
}
@keyframes cardIn { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }

.hsc-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: clamp(16px, 1.8vw, 24px);
}
.hsc-icon  { font-size: clamp(1.1rem, 1.3vw, 1.5rem); }
.hsc-title { font-size: clamp(.95rem, 1.1vw, 1.25rem); font-weight: 700; color: #fff; }

.hsc-fields {
    display: flex; flex-direction: column;
    gap: clamp(10px, 1vw, 14px);
    margin-bottom: clamp(14px, 1.6vw, 20px);
}
.hsc-field label {
    display: block;
    font-size: .72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,.45); margin-bottom: 5px;
}
.hsc-field select {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: clamp(10px,1vw,13px) 36px clamp(10px,1vw,13px) clamp(12px,1.2vw,16px);
    color: #fff;
    font-size: clamp(.85rem, .9vw, .95rem);
    outline: none; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.4)' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color .2s, box-shadow .2s;
}
.hsc-field select option { background: #1a2332; color: #fff; }
.hsc-field select:focus  { border-color: rgba(212,43,43,.6); box-shadow: 0 0 0 3px rgba(212,43,43,.15); }

.hsc-count {
    text-align: center;
    margin-top: clamp(12px, 1.3vw, 18px);
    font-size: clamp(.78rem, .82vw, .9rem);
    color: rgba(255,255,255,.4);
}
.hsc-count-n { font-weight: 800; color: var(--red2); margin-right: 4px; font-size: 1.1em; }

/* ====================================
   TICKER
==================================== */
.ticker { background: var(--red); padding: clamp(10px, 1.1vw, 18px) 0; overflow: hidden; }
.ticker-inner { display: flex; white-space: nowrap; animation: tick 22s linear infinite; }
.ticker-inner span {
    font-size: clamp(.7rem, .78vw, .9rem); font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,.9); padding: 0 clamp(16px, 2vw, 30px);
}
.ticker-inner span::after { content: '◆'; margin-left: clamp(16px, 2vw, 30px); opacity: .4; font-size: .5rem; vertical-align: middle; }
@keyframes tick { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ====================================
   SECTION HEADER
==================================== */
.sec-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: clamp(.65rem, .7vw, .8rem); font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--red); margin-bottom: clamp(10px, 1.2vw, 18px);
}
.sec-label::before { content: ''; width: 20px; height: 2px; background: var(--red); border-radius: 2px; }
.sec-title {
    font-size: clamp(1.6rem, 2.8vw, 4rem);
    font-weight: 800; line-height: 1.1; color: var(--text);
    margin-bottom: clamp(10px, 1vw, 16px);
}
.sec-title .acc { color: var(--red); }
.sec-desc { color: var(--muted); font-size: clamp(.88rem, .95vw, 1.05rem); max-width: 600px; line-height: 1.7; }
.center-header { text-align: center; }
.center-header .sec-desc { margin: 0 auto; }
.center-header .sec-label { display: flex; justify-content: center; }
.center-header .sec-label::before { display: none; }

/* ====================================
   CATALOG
==================================== */
.catalog { padding: clamp(60px, 8vw, 120px) 0; background: var(--bg); overflow: hidden; }
.catalog-header { margin-bottom: clamp(16px, 2vw, 28px); }

/* Exchange rate banner */
.rate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: clamp(16px, 2vw, 28px);
    font-size: 13px;
}
.rate-banner-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: #166534;
}
.rate-banner-icon { font-size: 16px; line-height: 1; }
.rate-banner-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #374151;
}
.rate-banner-rate { font-size: 13px; }
.rate-banner-rate strong { color: #111; font-size: 14px; }
.rate-banner-time { color: #6b7280; font-size: 12px; }
.rate-banner-approx { color: #9ca3af; font-size: 11.5px; font-style: italic; }
@media (max-width: 600px) {
    .rate-banner { flex-direction: column; align-items: flex-start; }
    .rate-banner-approx { display: none; }
}

/* Mobile bar (filter btn + count) */
.cat-mobile-bar {
    display: none;
    align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.cat-filter-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; background: #fff;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    color: var(--text); font-family: inherit; transition: .2s;
    position: relative;
}
.cat-filter-btn:hover { border-color: var(--red); color: var(--red); }
.cat-filter-badge {
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px; display: inline-flex;
    align-items: center; justify-content: center;
    padding: 0 4px;
}
.cat-mobile-count { font-size: 13px; color: var(--muted); }
.cat-mobile-count strong { color: var(--text); font-weight: 700; }

/* Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 28px;
    align-items: start;
}

/* ——— SIDEBAR ——— */
.cat-sidebar {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.cat-sidebar::-webkit-scrollbar { width: 4px; }
.cat-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cat-sidebar-head {
    display: none;
    align-items: center; justify-content: space-between;
    font-size: 16px; font-weight: 700;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cat-sidebar-close {
    background: none; border: none; cursor: pointer;
    color: var(--muted); display: flex; padding: 2px;
}

/* Filter groups */
.fgroup { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.fgroup:last-of-type { margin-bottom: 12px; padding-bottom: 0; border-bottom: none; }
.fgroup-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted); margin-bottom: 10px;
}

/* Search */
.fsearch-wrap { position: relative; }
.fsearch-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--muted); pointer-events: none;
}
.fsearch {
    width: 100%; padding: 9px 12px 9px 34px;
    border: 1.5px solid var(--border); border-radius: 9px;
    font-size: 13.5px; font-family: inherit; color: var(--text);
    transition: border-color .2s;
}
.fsearch:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,43,43,.08); }

/* Brand logo chips */
.fbrand-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fbrand-chip {
    width: 80px; height: 52px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 5px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    transition: border-color .15s, box-shadow .15s, transform .12s;
    flex-shrink: 0;
    overflow: hidden;
}
.fbrand-chip:hover { border-color: var(--red); box-shadow: 0 3px 10px rgba(212,43,43,.18); transform: translateY(-2px); }
.fbrand-chip.active { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,43,43,.18); background: #fff; }
.fbrand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Range inputs */
.frange { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.frange-input {
    width: 100%; padding: 8px 10px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 13px; font-family: inherit; color: var(--text);
    transition: border-color .2s;
}
.frange-input:focus { outline: none; border-color: var(--red); }
.frange-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.frange-sep { font-size: 14px; color: var(--muted); text-align: center; }

/* Fuel checkboxes */
.fchecks { display: flex; flex-direction: column; gap: 9px; }
.fcheck {
    display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; cursor: pointer; color: var(--text);
}
.fcheck input { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; flex-shrink: 0; }

/* Trans radio */
.fradios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fradio input { display: none; }
.fradio label {
    display: block; text-align: center; padding: 7px 4px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 12.5px; font-weight: 500; cursor: pointer;
    transition: .15s; white-space: nowrap;
}
.fradio input:checked + label { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.fradio label:hover { border-color: var(--red); color: var(--red); }
.fradio input:checked + label:hover { color: #fff; }

/* Sort */
.fsort {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid var(--border); border-radius: 9px;
    font-size: 13.5px; font-family: inherit; color: var(--text);
    cursor: pointer; background: #fff;
    transition: border-color .2s;
}
.fsort:focus { outline: none; border-color: var(--red); }

/* Reset */
.freset {
    width: 100%; padding: 9px;
    border: 1.5px solid var(--border); border-radius: 9px;
    background: #fff; color: var(--muted);
    font-size: 13px; font-family: inherit; cursor: pointer;
    transition: .2s;
}
.freset:hover { border-color: var(--red); color: var(--red); }

/* Preset chips (price / km) */
.fpreset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fpreset-chip {
    padding: 5px 11px; border: 1.5px solid var(--border);
    border-radius: 20px; font-size: 12px; font-weight: 500;
    cursor: pointer; background: #fff; color: var(--text);
    font-family: inherit; transition: .15s; white-space: nowrap; line-height: 1.4;
}
.fpreset-chip:hover { border-color: var(--red); color: var(--red); }
.fpreset-chip.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* Fuel chips */
.ffuel-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ffuel-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 10px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 12.5px; font-weight: 500;
    cursor: pointer; background: #fff; color: var(--text);
    font-family: inherit; transition: .15s; white-space: nowrap;
}
.ffuel-chip:hover { border-color: var(--red); color: var(--red); background: rgba(212,43,43,.04); }
.ffuel-chip.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.ffuel-ico { font-size: 14px; line-height: 1; flex-shrink: 0; }

/* Year selects */
.frange-select { cursor: pointer; background: #fff; }

/* Active filter tags */
.ftags-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ftag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px 4px 12px; background: var(--bg2);
    border: 1.5px solid var(--border); border-radius: 20px;
    font-size: 12.5px; font-weight: 500; color: var(--text);
    cursor: pointer; font-family: inherit; transition: .15s;
}
.ftag:hover { border-color: var(--red); background: rgba(212,43,43,.05); }
.ftag-x {
    font-size: 9px; color: var(--muted); font-weight: 800;
    margin-left: 3px; opacity: .7;
}
.ftag:hover .ftag-x { color: var(--red); opacity: 1; }

/* ——— RESULTS ——— */
.cat-results { min-width: 0; }
.cat-results-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.cat-count { font-size: 14px; color: var(--muted); }
.cat-count strong { color: var(--text); font-weight: 700; }

/* Car grid */
.car-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.5vw, 20px);
}

/* Car card */
.car-card-new {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .28s cubic-bezier(.23,1,.32,1);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.car-card-new:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.1); border-color: rgba(212,43,43,.28); }

.ccn-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg);
}
.ccn-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.car-card-new:hover .ccn-img img { transform: scale(1.05); }

.ccn-emoji-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.car-emoji {
    font-size: clamp(3rem, 4vw, 5rem);
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.5));
    transition: transform .3s; user-select: none;
}
.car-card-new:hover .car-emoji { transform: scale(1.1) rotate(-4deg); }

.car-img--verified { background: linear-gradient(135deg, #0d1117 0%, #1a2535 100%); }
.car-img--checking { background: linear-gradient(135deg, #0d1724 0%, #0e2040 100%); }
.car-img--new      { background: linear-gradient(135deg, #1a100a 0%, #2a1a0e 100%); }

.ccn-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; white-space: nowrap;
}
.badge-v { background: rgba(34,197,94,.15);  color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.badge-c { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.badge-n { background: rgba(249,115,22,.15); color: #fb923c; border: 1px solid rgba(249,115,22,.3); }

.ccn-body { padding: 14px 16px 16px; }
.ccn-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.ccn-year { font-size: 12px; font-weight: 700; color: var(--red); background: rgba(212,43,43,.08); padding: 2px 8px; border-radius: 4px; }
.ccn-city { font-size: 12px; color: var(--muted); }
.ccn-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 9px; line-height: 1.3; }
.ccn-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ccn-spec { background: var(--bg); padding: 3px 9px; border-radius: 6px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ccn-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.ccn-price-block { display: flex; flex-direction: column; gap: 2px; }
.ccn-price { font-size: clamp(1rem, 1.15vw, 1.2rem); font-weight: 900; color: var(--text); line-height: 1.2; }
.ccn-price-rub { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.ccn-price-rub::before { content: '≈ '; }

/* Empty state */
.cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}
.cat-empty-icon { font-size: 52px; margin-bottom: 14px; }
.cat-empty h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cat-empty p  { font-size: 14px; color: var(--muted); }

/* Mobile overlay */
.cat-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 199;
    opacity: 0;
    transition: opacity .3s;
}
.cat-overlay.open { opacity: 1; }

.catalog-cta { text-align: center; margin-top: clamp(32px, 4vw, 52px); }

/* ====================================
   HOW IT WORKS
==================================== */
.how { padding: clamp(60px, 8vw, 130px) 0; background: var(--bg2); overflow: hidden; }
.how-header { margin-bottom: clamp(36px, 5vw, 80px); }

.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; position: relative;
}
/* 5-step variant */
.steps-grid.steps-5 { grid-template-columns: repeat(5, 1fr); }

.steps-grid::before {
    content: ''; position: absolute;
    top: clamp(28px, 2.75vw, 42px); left: calc(10% + 18px); right: calc(10% + 18px);
    height: 2px; background: linear-gradient(90deg, var(--red), rgba(212,43,43,.2));
    z-index: 0;
}
/* Adjust line for 4-step (keep original) */
.steps-grid:not(.steps-5)::before {
    left: calc(12.5% + 18px); right: calc(12.5% + 18px);
}

.step-item { padding: 0 clamp(8px, 1vw, 18px); position: relative; z-index: 1; }
.step-dot {
    width: clamp(52px, 5vw, 78px); height: clamp(52px, 5vw, 78px);
    border-radius: 50%;
    background: #fff; border: 2px solid var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(1rem, 1.4vw, 1.7rem); margin: 0 auto clamp(14px, 1.6vw, 22px);
    box-shadow: 0 4px 20px rgba(212,43,43,.15);
    transition: all .3s; position: relative;
}
.step-dot::after {
    content: attr(data-n);
    position: absolute; top: -8px; right: -8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--red); color: #fff;
    font-size: .65rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.step-item:hover .step-dot { transform: scale(1.08); box-shadow: 0 8px 30px rgba(212,43,43,.25); }
.step-item h3 { font-size: clamp(.82rem, .88vw, 1rem); font-weight: 700; color: var(--text); margin-bottom: 6px; text-align: center; }
.step-item p  { font-size: clamp(.74rem, .78vw, .88rem); color: var(--muted); line-height: 1.6; text-align: center; }

/* ====================================
   TRUST SECTION
==================================== */
.trust-section { padding: clamp(60px, 8vw, 120px) 0; background: var(--bg); overflow: hidden; }
.trust-header { margin-bottom: clamp(32px, 4.5vw, 60px); }

.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.6vw, 24px);
}
.trust-item {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: clamp(22px, 2.5vw, 36px) clamp(18px, 2vw, 28px);
    text-align: center;
    transition: all .3s cubic-bezier(.23,1,.32,1);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.trust-item:hover { transform: translateY(-4px); border-color: rgba(212,43,43,.2); box-shadow: 0 14px 40px rgba(0,0,0,.09); }
.trust-icon { font-size: clamp(2rem, 2.5vw, 3rem); display: block; margin-bottom: clamp(12px, 1.3vw, 20px); }
.trust-item h3 { font-size: clamp(.88rem, .95vw, 1.05rem); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.trust-item p  { font-size: clamp(.78rem, .82vw, .92rem); color: var(--muted); line-height: 1.65; }

/* ====================================
   SELLERS SECTION
==================================== */
.sellers-section {
    padding: clamp(60px, 8vw, 120px) 0;
    background: #0d1117;
    position: relative; overflow: hidden;
}
.sellers-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: clamp(40px, 4vw, 80px) clamp(40px, 4vw, 80px);
}
.sellers-section::after {
    content: '';
    position: absolute; pointer-events: none;
    width: clamp(300px, 40vw, 700px);
    height: clamp(300px, 40vw, 700px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,43,43,.12) 0%, transparent 65%);
    top: -10%; right: -8%;
}
.sellers-section .sec-label { color: var(--red2); }
.sellers-section .sec-title { color: #fff; }
.sellers-section .sec-desc  { color: rgba(255,255,255,.5); }

.sellers-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    position: relative; z-index: 1;
}

.sellers-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 1.4vw, 18px);
    margin-top: clamp(22px, 2.8vw, 36px);
}
.sellers-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: clamp(14px, 1.6vw, 22px);
    transition: all .25s;
}
.sellers-item:hover { background: rgba(255,255,255,.09); border-color: rgba(212,43,43,.3); }
.sellers-item-icon { font-size: clamp(1.2rem, 1.5vw, 1.8rem); margin-bottom: 8px; }
.sellers-item h4 { font-size: clamp(.82rem, .86vw, .96rem); font-weight: 700; color: #fff; margin-bottom: 4px; }
.sellers-item p  { font-size: clamp(.74rem, .78vw, .86rem); color: rgba(255,255,255,.45); line-height: 1.55; }

.sellers-cta {
    margin-top: clamp(22px, 2.8vw, 36px);
    display: flex; align-items: center; gap: clamp(12px, 1.5vw, 20px); flex-wrap: wrap;
}
.sellers-wechat {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 11px 18px;
    color: rgba(255,255,255,.6);
    font-size: clamp(.8rem, .84vw, .92rem);
}
.sellers-wechat strong { color: #fff; }

.sellers-right {
    display: flex; align-items: center; justify-content: center;
}
.sellers-stats-block {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: clamp(28px, 3.5vw, 52px) clamp(24px, 3vw, 44px);
    text-align: center;
    width: 100%; max-width: 360px;
}
.sellers-stat { }
.sellers-stat-n {
    font-size: clamp(2.5rem, 3.5vw, 5rem);
    font-weight: 900; color: #fff; line-height: 1;
}
.sellers-stat-n span { color: var(--red2); }
.sellers-stat-t {
    font-size: clamp(.72rem, .76vw, .86rem);
    color: rgba(255,255,255,.35);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: 6px;
}
.sellers-sep { height: 1px; background: rgba(255,255,255,.07); margin: clamp(16px, 2vw, 26px) 0; }

/* ====================================
   REVIEWS
==================================== */
.reviews { padding: clamp(60px, 8vw, 130px) 0; background: var(--bg2); overflow: hidden; }
.reviews-header { margin-bottom: clamp(32px, 4.5vw, 70px); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 28px); }

.review-card {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 18px; padding: clamp(20px, 2.2vw, 34px);
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transition: all .3s cubic-bezier(.23,1,.32,1);
}
.review-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.1); border-color: rgba(212,43,43,.2); }
.review-stars { color: #f59e0b; font-size: clamp(.82rem, .9vw, 1rem); letter-spacing: 2px; margin-bottom: clamp(10px, 1.2vw, 16px); }
.review-text { font-size: clamp(.84rem, .88vw, .98rem); color: var(--sub); line-height: 1.75; margin-bottom: clamp(14px, 1.8vw, 24px); font-style: italic; }
.review-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: clamp(12px, 1.5vw, 20px); border-top: 1px solid var(--border);
}
.review-name { font-weight: 700; font-size: clamp(.82rem, .86vw, .96rem); color: var(--text); }
.review-city { font-size: clamp(.68rem, .72vw, .8rem); color: var(--muted); margin-top: 2px; }
.review-car {
    font-size: clamp(.68rem, .72vw, .8rem); font-weight: 700; color: var(--red);
    background: rgba(212,43,43,.07); border: 1px solid rgba(212,43,43,.15);
    padding: 5px 12px; border-radius: 20px; white-space: nowrap;
}

/* ====================================
   CTA
==================================== */
.cta-band {
    padding: clamp(60px, 8vw, 110px) 0;
    background: linear-gradient(135deg, var(--red) 0%, #a01e1e 100%);
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner {
    position: relative; display: flex;
    align-items: center; justify-content: space-between;
    gap: clamp(28px, 4vw, 60px); flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.5rem, 2.8vw, 3rem); font-weight: 900; color: #fff; margin-bottom: 8px; }
.cta-inner p  { color: rgba(255,255,255,.75); font-size: clamp(.88rem, .95vw, 1.05rem); }
.cta-btns { display: flex; gap: clamp(10px, 1.2vw, 16px); flex-wrap: wrap; }

/* ====================================
   FOOTER
==================================== */
footer { background: #0d1117; color: rgba(255,255,255,.7); padding: clamp(48px, 7vw, 90px) 0 clamp(22px, 3vw, 36px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: clamp(30px, 4.5vw, 70px); margin-bottom: clamp(36px, 5vw, 60px); }
.footer-about p { font-size: clamp(.8rem, .84vw, .92rem); color: rgba(255,255,255,.45); margin-top: 14px; max-width: 280px; line-height: 1.7; }
.footer-title { font-size: clamp(.65rem, .68vw, .76rem); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: clamp(12px, 1.5vw, 20px); }
.footer-links li { margin-bottom: clamp(7px, .9vw, 12px); }
.footer-links a { font-size: clamp(.8rem, .84vw, .92rem); color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links a:hover { color: var(--red2); }
.fcontact-item { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(.8rem, .84vw, .92rem); color: rgba(255,255,255,.55); margin-bottom: clamp(8px, 1vw, 14px); }
.fcontact-item a:hover { color: var(--red2); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07); padding-top: clamp(18px, 2.2vw, 28px);
    display: flex; justify-content: space-between;
    font-size: clamp(.7rem, .74vw, .82rem); color: rgba(255,255,255,.25);
    flex-wrap: wrap; gap: 10px;
}

/* ====================================
   MODAL
==================================== */
.modal-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.65); backdrop-filter: blur(10px);
    z-index: 5000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .3s;
}
.modal-bg.open { opacity: 1; visibility: visible; }
.modal {
    background: #fff; border-radius: 20px;
    padding: clamp(28px, 3.5vw, 52px);
    max-width: clamp(400px, 38vw, 560px); width: 90%; position: relative;
    transform: scale(.92) translateY(20px);
    transition: transform .35s cubic-bezier(.23,1,.32,1);
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
.modal-bg.open .modal { transform: none; }
.modal-x {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg2); border: 1.5px solid var(--border);
    color: var(--muted); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.modal-x:hover { background: rgba(212,43,43,.1); color: var(--red); border-color: var(--red); }
.modal h3 { font-size: clamp(1.25rem, 1.6vw, 1.8rem); font-weight: 800; color: var(--text); margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: clamp(.82rem, .86vw, .94rem); margin-bottom: clamp(20px, 2.5vw, 32px); }
.mfield { margin-bottom: 14px; }
.mfield label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mfield input, .mfield select {
    width: 100%; background: var(--bg2); border: 1.5px solid var(--border);
    border-radius: 10px; padding: clamp(10px, 1vw, 14px) clamp(12px, 1.2vw, 16px);
    color: var(--text); font-size: clamp(.88rem, .9vw, .97rem); outline: none;
    transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.mfield input:focus, .mfield select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,43,43,.1); background: #fff; }
.mfield input::placeholder { color: #c0c5ce; }
.mfield select option { color: var(--text); }
.modal-btn { width: 100%; justify-content: center; margin-top: 6px; }
.modal-note { text-align: center; font-size: .72rem; color: var(--muted); margin-top: 10px; }
.modal-ok { text-align: center; padding: 16px 0; display: none; }
.modal-ok .ok-icon { font-size: 3.5rem; display: block; margin-bottom: 14px; }
.modal-ok h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-ok p { color: var(--muted); font-size: .9rem; }

/* ============================================================
   АДАПТИВ — БОЛЬШИЕ ЭКРАНЫ (min-width)
   Ступени: 1600 → 1920 → 2560 → 3840 (4K)
============================================================ */

@media (min-width: 1600px) {
    .container { max-width: 1540px; }
}

@media (min-width: 1920px) {
    :root { --header-h: 80px; }
    .container { max-width: 1780px; }
    nav ul { gap: 44px; }
    .car-grid-new  { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .trust-grid    { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .reviews-grid  { gap: 28px; }
    .footer-grid   { gap: 64px; }
}

@media (min-width: 2560px) {
    :root { --header-h: 90px; }
    .container { max-width: 2240px; }
    nav ul { gap: 56px; }

    .car-grid-new {
        grid-template-columns: repeat(3, minmax(0, 480px));
        gap: 28px; justify-content: center;
    }
    .trust-grid {
        grid-template-columns: repeat(4, minmax(0, 540px));
        gap: 28px; justify-content: center;
    }
    .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 600px));
        gap: 32px; justify-content: center;
    }
    .steps-grid.steps-5 { grid-template-columns: repeat(5, 1fr); }
    .sellers-inner { gap: 120px; }
    .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 80px; }
}

@media (min-width: 3840px) {
    :root { --header-h: 100px; }
    html { font-size: 20px; }
    .container { max-width: 3100px; }

    .car-grid-new {
        grid-template-columns: repeat(3, minmax(0, 600px));
        gap: 36px; justify-content: center;
    }
    .trust-grid {
        grid-template-columns: repeat(4, minmax(0, 680px));
        gap: 36px; justify-content: center;
    }
    .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 720px));
        gap: 40px; justify-content: center;
    }
    .footer-grid { gap: 100px; }
    .step-dot { width: 96px; height: 96px; }
}

/* ============================================================
   АДАПТИВ — СРЕДНИЕ ЭКРАНЫ (max-width)
   1280 → 1024 → 900 → 768 → 480 → 360
============================================================ */

@media (max-width: 1280px) {
    .container { width: 94%; }
    .catalog-layout { grid-template-columns: 240px 1fr; gap: 20px; }
    .car-grid-new { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 1024px) {
    .hero-left  { flex: 1 1 55%; }
    .hero-right { flex: 0 0 clamp(240px, 38%, 360px); }
    .catalog-layout { grid-template-columns: 220px 1fr; gap: 16px; }
    .car-grid-new { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid.steps-5 { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .steps-grid.steps-5::before { display: none; }
}

@media (max-width: 900px) {
    .hero-wrap  { flex-direction: column; min-height: unset; align-items: stretch; }
    .hero-left  { flex: none; max-width: 100%; padding: 52px 0 24px; }
    .hero-right { flex: none; width: 100%; padding: 0 0 48px; }
    .hero-search-card { max-width: 100%; }

    /* Catalog: sidebar goes off-canvas */
    .cat-mobile-bar { display: flex; }
    .catalog-layout { grid-template-columns: 1fr; }
    .cat-sidebar {
        position: fixed; top: 0; left: 0; height: 100vh;
        width: 300px; max-height: 100vh;
        z-index: 200; border-radius: 0;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.23,1,.32,1);
        padding-top: 0;
    }
    .cat-sidebar.open { transform: translateX(0); }
    .cat-sidebar-head { display: flex; }
    .cat-overlay { display: block; pointer-events: none; }
    .cat-overlay.open { pointer-events: auto; }
    .car-grid-new { grid-template-columns: repeat(2, 1fr); }
    .trust-grid   { grid-template-columns: repeat(2, 1fr); }
    .steps-grid   { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .steps-grid::before { display: none; }
    .steps-grid.steps-5 { grid-template-columns: repeat(2, 1fr); }
    .sellers-inner { grid-template-columns: 1fr; }
    .sellers-right { display: none; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .container { width: 100%; padding: 0 20px; }

    /* Header */
    nav { display: none; }
    .header-phone { display: none; }
    .header-right { gap: 10px; }
    .burger { display: flex; }
    .mobile-nav { display: block; }

    /* Hero */
    .hero-h1 { letter-spacing: -.5px; }
    .hero-sub { display: none; }
    .hero-nums { flex-wrap: wrap; gap: 16px; }
    .hero-num-sep { display: none; }
    .hero-num { padding-right: 0; min-width: 30%; }

    /* Catalog */
    .car-grid-new { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* How */
    .steps-grid     { grid-template-columns: 1fr; gap: 24px; }
    .steps-grid.steps-5 { grid-template-columns: 1fr; }

    /* Trust */
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Sellers */
    .sellers-grid { grid-template-columns: 1fr; }

    /* Reviews */
    .reviews-grid { grid-template-columns: 1fr; }
    .review-footer { flex-wrap: wrap; gap: 10px; }

    /* CTA */
    .cta-inner { flex-direction: column; text-align: center; gap: 22px; }
    .cta-btns  { flex-direction: column; width: 100%; }
    .cta-btns .btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    /* Modal */
    .modal { padding: 28px 18px; width: calc(100% - 24px); max-width: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-left { padding: 40px 0 20px; }
    .hero-nums { gap: 12px; }
    .hero-num  { min-width: 40%; }

    .car-grid-new { grid-template-columns: 1fr; }
    .trust-grid   { grid-template-columns: 1fr; }
    .cat-sidebar  { width: 100%; }

    .modal { padding: 22px 14px; }
}

@media (max-width: 360px) {
    .container { padding: 0 12px; }

    .hero-h1 { font-size: 2rem; letter-spacing: -.5px; }
    .hero-nums { flex-direction: column; gap: 10px; }
    .hero-num  { min-width: unset; width: 100%; }

    .btn { padding: 11px 18px; font-size: .84rem; }
    .car-card .car-body { padding: 12px 12px 14px; }
    .review-card { padding: 18px 14px; }
    .footer-grid { gap: 20px; }
}

/* ============================================================
   ДОСТУПНОСТЬ — уменьшенное движение
============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
}

/* ====================================
   PER-PAGE SELECTOR
==================================== */
.cat-results-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.perpage-bar { display:flex; align-items:center; gap:6px; }
.perpage-label { font-size:12px; color:var(--c-muted,#9ca3af); }
.perpage-btn {
    background:none; border:1.5px solid #e5e7eb; border-radius:7px;
    padding:4px 11px; font-size:13px; font-weight:600; color:#6b7280;
    cursor:pointer; transition:.2s;
}
.perpage-btn:hover { border-color:var(--red,#e11d48); color:var(--red,#e11d48); }
.perpage-btn.active { background:var(--red,#e11d48); border-color:var(--red,#e11d48); color:#fff; }

/* ====================================
   PAGINATION
==================================== */
#cat-pagination {
    display:flex; justify-content:center; align-items:center;
    gap:6px; margin:28px 0 8px; flex-wrap:wrap;
}
.pag-btn {
    min-width:36px; height:36px; padding:0 10px;
    border:1.5px solid #e5e7eb; border-radius:8px;
    background:#fff; font-size:14px; font-weight:600; color:#374151;
    cursor:pointer; transition:.2s; line-height:1;
}
.pag-btn:hover:not(:disabled) { border-color:var(--red,#e11d48); color:var(--red,#e11d48); }
.pag-btn--active { background:var(--red,#e11d48); border-color:var(--red,#e11d48); color:#fff; }
.pag-btn:disabled { opacity:.35; cursor:default; }
.pag-ellipsis { font-size:14px; color:#9ca3af; padding:0 4px; line-height:36px; }
