:root {
    --bg: #ffffff;
    --bg-soft: #f6f6f7;
    --line: #e7e7ea;
    --line-strong: #d6d6db;
    --text: #141416;
    --muted: #6d6d75;
    --red: #e3261c;
    --red-hover: #c71f16;
    --red-soft: #fdeceb;
    --dark: #141416;
    --dark-2: #1d1d21;
    --wa: #1fbf5b;
    --wa-hover: #19a94f;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 8px 24px rgba(20, 20, 22, .06);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ico { flex-shrink: 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 700 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--outline { background: var(--bg); border-color: var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }

/* Header */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 36px; height: 68px; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; opacity: .75; transition: opacity .15s; }
.nav a:hover { opacity: 1; }
.topbar__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; }

/* Search bar */
.search-wrap { padding: 28px 0 0; }
.search {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end;
    padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow);
}
.search__field { display: grid; gap: 6px; min-width: 0; }
.search__field > span { padding-left: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.search input, .search select, .select-pill {
    width: 100%; height: 44px; padding: 0 14px;
    background: var(--bg-soft); color: var(--text);
    border: 1px solid transparent; border-radius: 10px;
    font: 600 14px var(--font); appearance: none; -webkit-appearance: none;
}
.search select, .select-pill {
    padding-right: 34px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236d6d75' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.search input::placeholder { color: #9a9aa2; font-weight: 500; }
.search input:focus, .search select:focus, .select-pill:focus { outline: none; border-color: var(--text); background-color: var(--bg); }
.search__btn { height: 44px; border-radius: 10px; padding: 0 24px; }

/* Sections */
.section { padding: 64px 0; }
.section--tight { padding-top: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head__tools { display: flex; align-items: center; gap: 14px; }
.count { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.select-pill { width: auto; height: 40px; border-radius: 999px; background-color: var(--bg); border-color: var(--line-strong); }

/* Horizontal listing */
.list { display: grid; gap: 14px; }
.item {
    position: relative;
    display: grid; grid-template-columns: 300px minmax(0, 1fr) 220px; align-items: stretch;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.item--featured { border-color: rgba(227, 38, 28, .35); }
.item__media { position: relative; display: block; min-height: 200px; background: var(--bg-soft); overflow: hidden; }
.item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item:hover .item__media img { transform: scale(1.04); }
.badge {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: #15803d;
    font-size: 11px; font-weight: 700;
}
.badge--hot { background: var(--red); color: #fff; }
.badge--inline { position: static; display: inline-block; background: #e9f7ef; margin-bottom: 14px; }
.badge--inline.badge--hot { background: var(--red); }

.item__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 22px 28px; min-width: 0; }
.item__title { font-size: 20px; font-weight: 800; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.item__title a { text-decoration: none; }
.item__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.item__version { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.item__sub { color: var(--muted); font-size: 13px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 32px; margin: 10px 0 0; padding: 0; list-style: none; }
.specs li { display: flex; align-items: center; gap: 8px; color: #3c3c43; font-size: 13.5px; font-weight: 500; }
.specs .ico { color: var(--muted); }

.item__side { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px 24px; border-left: 1px solid var(--line); }
.item__price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.item__actions { position: relative; z-index: 1; display: grid; gap: 8px; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* Body type band */
.band { padding: 40px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--bg); color: var(--text); font: 600 14px var(--font); cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip small { color: var(--muted); font-size: 12px; font-weight: 700; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.chip.is-active small { color: rgba(255, 255, 255, .6); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.feature h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 14px; }

/* Dark CTA */
.cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: clamp(32px, 5vw, 56px); border-radius: 22px; color: #fff;
    background: radial-gradient(600px 300px at 85% 30%, rgba(227, 38, 28, .35), transparent 70%), var(--dark);
}
.cta__text { max-width: 560px; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .7); }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, .62); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer h3 { margin-bottom: 16px; color: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #ff8a83; }
.footer p + .btn, .footer__brand p { margin-bottom: 16px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; color: #fff; }
.footer__contact .ico { color: var(--red); margin-top: 3px; }
.footer__social { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .4); }

/* WhatsApp float */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(20, 20, 22, .25);
    transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Vehicle page ---------- */
.vp { padding: 24px 0 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; font-weight: 500; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.vp-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 28px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--bg-soft); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow);
}
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 20, 22, .7); color: #fff; font-size: 12px; font-weight: 600; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: none; opacity: .65; transition: opacity .15s; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.vp-panel { position: sticky; top: 88px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow); }
.vp-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.vp-title span { color: var(--muted); font-size: .6em; font-weight: 600; letter-spacing: 0; }
.vp-sub { margin-top: 6px; color: var(--muted); }
.vp-price { margin-top: 22px; font-size: clamp(32px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.vp-price-note { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.vp-cta { display: grid; gap: 8px; }
.vp-cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.vp-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vp-cta__row .btn { padding: 0 10px; font-size: 13px; }
.vp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; }
.vp-specs div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.vp-specs .ico { grid-row: span 2; color: var(--muted); }
.vp-specs dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.vp-specs dd { margin: 0; font-weight: 700; font-size: 14px; }
.vp-sold { padding: 12px 14px; margin-bottom: 16px; border-radius: 10px; background: var(--red-soft); color: var(--red-hover); font-weight: 600; font-size: 14px; }
.vp-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
.vp-desc h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.vp-desc p { color: #3c3c43; font-size: 16px; margin-bottom: 12px; }
.vp-trust { display: grid; gap: 10px; grid-column: 2; }
.vp-trust div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 13px; }
.vp-trust .feature__icon { grid-row: span 2; width: 38px; height: 38px; }
.vp-trust strong { color: var(--text); font-size: 14px; }
.related { background: var(--bg-soft); border-top: 1px solid var(--line); }
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1080px) {
    .nav { display: none; }
    .search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search__btn { grid-column: span 1; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .item { grid-template-columns: 240px minmax(0, 1fr); }
    .item__side { grid-column: 2; border-left: 0; padding-top: 0; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .item__body { padding-bottom: 12px; }
    .item__actions { grid-auto-flow: column; }
    .vp-layout, .vp-bottom { grid-template-columns: minmax(0, 1fr); }
    .vp-trust { grid-column: auto; }
    .vp-panel { position: static; }
}
@media (max-width: 640px) {
    .topbar__inner { gap: 12px; height: 60px; }
    .logo img { height: 38px; }
    .topbar__phone { display: none; }
    .topbar .btn--primary span { display: none; }
    .topbar .btn--primary { width: 38px; padding: 0; }
    .search-wrap { padding-top: 16px; }
    .search { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
    .search__field:nth-child(2) { grid-column: 1 / -1; order: -1; }
    .search__btn { grid-column: 1 / -1; }
    .section { padding: 44px 0; }
    .section--tight { padding-top: 0; }
    .section-head__tools { width: 100%; justify-content: space-between; }

    .item { grid-template-columns: 124px minmax(0, 1fr); }
    .item__media { min-height: 0; }
    .item__body { padding: 12px 14px 6px; gap: 2px; }
    .item__title { font-size: 15.5px; }
    .item__version { font-size: 12px; }
    .item__sub { font-size: 12px; }
    .specs { gap: 4px 14px; margin-top: 6px; }
    .specs li { font-size: 12px; gap: 5px; }
    .specs li:nth-child(n+3) { display: none; }
    .item__side { padding: 0 14px 12px; }
    .item__price { font-size: 18px; }
    .item__actions { display: none; }
    .badge { top: 8px; left: 8px; padding: 3px 7px; font-size: 9.5px; }

    .features { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .vp-cta__row { grid-template-columns: 1fr; }
    .vp-page .wa-float { display: none; }
    .vp-page { padding-bottom: 80px; }
    .mobile-cta {
        display: block; position: fixed; inset: auto 0 0 0; z-index: 60;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .mobile-cta .btn { width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
