:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e7eaf0;
    --paper: #ffffff;
    --soft: #f6f7f9;
    --charcoal: #171a21;
    --gold: #c99a3e;
    --green: #1f8a70;
    --red: #df4b3f;
    --shadow: 0 22px 70px rgba(17, 24, 39, .14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 64px);
    color: #fff;
    transition: background .2s ease, box-shadow .2s ease, padding .2s ease;
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(17, 24, 39, .08);
    backdrop-filter: blur(18px);
    padding-block: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold), #f5d58b);
    color: #111;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.1;
}

.brand small {
    margin-top: 3px;
    color: currentColor;
    opacity: .72;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 34px);
    font-weight: 700;
    font-size: 14px;
}

.nav-links a {
    opacity: .84;
}

.nav-links a:hover {
    opacity: 1;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.header-cta {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
}

.is-scrolled .header-cta {
    color: #fff;
    background: var(--charcoal);
    border-color: var(--charcoal);
}

.btn svg,
.header-cta svg,
.floating-wa svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.btn.primary {
    color: #16130d;
    background: linear-gradient(135deg, #f0c66d, #c48c2c);
    box-shadow: 0 16px 30px rgba(201, 154, 62, .28);
}

.btn.secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .12);
}

.btn.dark {
    color: #fff;
    background: var(--charcoal);
}

.btn.ghost {
    color: var(--charcoal);
    background: #eef1f5;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 140px clamp(18px, 5vw, 76px) 56px;
    overflow: hidden;
    color: #fff;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(12, 14, 18, .9), rgba(12, 14, 18, .56) 48%, rgba(12, 14, 18, .24)),
        linear-gradient(0deg, rgba(12, 14, 18, .68), rgba(12, 14, 18, .08) 58%);
}

.hero-content {
    position: relative;
    max-width: 850px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 12px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 720px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 680px;
    gap: 1px;
    margin-top: 34px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.hero-stats div {
    padding: 18px;
    background: rgba(255, 255, 255, .08);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 25px;
}

.hero-stats span {
    margin-top: 5px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.quick-search {
    position: relative;
    z-index: 3;
    margin: -36px auto 0;
    width: min(1180px, calc(100% - 36px));
}

.search-panel {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

input,
select {
    min-width: 0;
    width: 100%;
    height: 46px;
    border: 1px solid #d9dee8;
    border-radius: var(--radius);
    padding: 0 13px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 62, .16);
}

.trust-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(1180px, calc(100% - 36px));
    margin: 52px auto 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-band article {
    padding: 26px 26px 22px;
    border-right: 1px solid var(--line);
}

.trust-band article:last-child {
    border-right: 0;
}

.trust-band svg {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.trust-band h2 {
    margin: 16px 0 8px;
    font-size: 18px;
}

.trust-band p,
.section-heading p,
.sell-copy p,
.process-grid p,
.faq-list p,
.footer p {
    color: var(--muted);
    line-height: 1.7;
}

.section,
.sell-section,
.calculator-section {
    width: min(1180px, calc(100% - 36px));
    margin: 86px auto 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section-heading h2,
.sell-copy h2,
.calculator-section h2 {
    margin-bottom: 0;
    max-width: 680px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading > p {
    max-width: 350px;
    margin-bottom: 4px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.car-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .06);
}

.favorite {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
}

.favorite.is-active svg {
    fill: var(--red);
    color: var(--red);
}

.card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9edf3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.car-card:hover .card-image img {
    transform: scale(1.045);
}

.card-image span,
.modal-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #111;
    background: #f4c765;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.card-title-row h3 {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.35;
}

.card-title-row small {
    height: max-content;
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--green);
    background: rgba(31, 138, 112, .1);
    font-weight: 900;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 54px;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 6px 8px;
    color: #475467;
    background: #f2f4f7;
    font-size: 12px;
    font-weight: 700;
}

.meta-row svg {
    width: 14px;
    height: 14px;
}

.installment {
    margin: 16px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.installment strong {
    color: var(--ink);
}

.price-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f7f8fa;
}

.price-box span {
    color: var(--muted);
    font-size: 12px;
}

.price-box strong {
    margin-bottom: 5px;
    font-size: 16px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.sell-section {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 38px;
    align-items: center;
    padding: clamp(26px, 5vw, 50px);
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(105deg, rgba(23, 26, 33, .96), rgba(23, 26, 33, .78)),
        url("https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.sell-copy p {
    color: rgba(255, 255, 255, .76);
}

.sell-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.sell-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 800;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
}

.lead-form label {
    color: rgba(255, 255, 255, .82);
}

.lead-form button {
    grid-column: 1 / -1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.process-grid article {
    padding: 24px;
    min-height: 214px;
    border-right: 1px solid var(--line);
}

.process-grid article:last-child {
    border-right: 0;
}

.process-grid span {
    color: var(--gold);
    font-weight: 900;
}

.process-grid h3 {
    margin: 42px 0 10px;
}

.calculator-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.calculator {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.calculator output {
    grid-column: 1 / -1;
    display: grid;
    min-height: 72px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--charcoal);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
}

.faq-list {
    display: grid;
    gap: 10px;
}

details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    background: #fff;
}

summary {
    cursor: pointer;
    font-weight: 900;
}

details p {
    margin: 14px 0 0;
}

.empty-state {
    display: grid;
    min-height: 320px;
    place-items: center;
    text-align: center;
    border: 1px dashed #ccd3df;
    border-radius: var(--radius);
    background: #fafbfc;
    padding: 30px;
}

.empty-state svg {
    width: 44px;
    height: 44px;
    color: var(--gold);
}

.footer {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr;
    gap: 40px;
    margin-top: 90px;
    padding: 42px clamp(18px, 5vw, 76px);
    color: #fff;
    background: #111318;
}

.footer > div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer p,
.footer span,
.footer a {
    color: rgba(255, 255, 255, .72);
}

.footer strong {
    color: #fff;
}

.modal {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 10, 14, .74);
}

.modal.is-open {
    display: flex;
}

.modal-dialog {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    width: min(1050px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    cursor: pointer;
}

.modal-gallery {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #111318;
}

.modal-gallery > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumbs button {
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.thumbs button.is-active {
    border-color: var(--gold);
}

.thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.modal-copy {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 34px;
}

.modal-copy .modal-badge {
    position: static;
    width: max-content;
}

.modal-copy h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
}

.modal-copy p {
    margin: 0;
    color: var(--muted);
}

.modal-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-prices div {
    padding: 14px;
    border-radius: var(--radius);
    background: #f5f6f8;
}

.modal-prices span,
.modal-prices strong {
    display: block;
}

.modal-prices span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.modal-prices strong {
    margin-top: 5px;
    font-size: 18px;
}

#modalFeatures {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#modalFeatures li {
    border-radius: 999px;
    padding: 8px 10px;
    background: #eef1f5;
    font-size: 13px;
    font-weight: 800;
}

.floating-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #20b15a;
    box-shadow: 0 18px 44px rgba(32, 177, 90, .38);
}

@media (max-width: 1100px) {
    .car-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-panel button {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .site-header {
        position: sticky;
        color: var(--ink);
        background: #fff;
        box-shadow: 0 12px 34px rgba(17, 24, 39, .08);
    }

    .nav-links {
        display: none;
    }

    .header-cta {
        color: #fff;
        background: var(--charcoal);
        border-color: var(--charcoal);
    }

    .hero {
        min-height: 760px;
        padding-top: 78px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(12, 14, 18, .88), rgba(12, 14, 18, .34));
    }

    .hero-stats,
    .trust-band,
    .sell-section,
    .calculator-section,
    .footer,
    .modal-dialog {
        grid-template-columns: 1fr;
    }

    .trust-band article,
    .process-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-band article:last-child,
    .process-grid article:last-child {
        border-bottom: 0;
    }

    .car-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading {
        display: block;
    }

    .calculator {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header {
        gap: 10px;
        padding-inline: 14px;
    }

    .brand small {
        display: none;
    }

    .header-cta {
        width: 44px;
        padding: 0;
        overflow: hidden;
        color: transparent;
    }

    .header-cta svg {
        color: #fff;
        flex: 0 0 auto;
    }

    .hero {
        min-height: 720px;
        padding-inline: 18px;
    }

    .hero-actions,
    .card-actions,
    .lead-form,
    .modal-prices {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .hero-stats,
    .search-panel,
    .car-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .search-panel button {
        grid-column: auto;
    }

    .quick-search {
        margin-top: -20px;
    }

    .section,
    .sell-section,
    .calculator-section {
        margin-top: 62px;
    }

    .modal {
        padding: 10px;
    }

    .modal-copy {
        padding: 22px;
    }
}

