:root {
    --bg: #0e1219;
    --bg-soft: #151b26;
    --text: #e8edf5;
    --muted: #93a0b4;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #3fd0c9;
    --accent-dim: #1fa8a2;
    --shell: min(1120px, calc(100% - 2rem));
    --radius: 14px;
    font-family: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 500px at 10% -10%, #1c2940 0%, var(--bg) 45%);
    line-height: 1.55;
}

h1, h2, h3, .logo { font-family: "Unbounded", sans-serif; font-weight: 500; }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(14, 18, 25, 0.82);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.9rem 0;
}

.logo {
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
    font-size: 1rem;
    flex-shrink: 0;
    display: block;
    line-height: 0;
}
.logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(220px, 52vw);
    max-height: 48px;
    border-radius: 8px;
    background: #fff;
}

.nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-right: auto; }
.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}
.nav a:hover { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border-color: transparent;
    color: #041615;
    font-weight: 600;
}

.hero {
    min-height: clamp(420px, 60vh, 620px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(14, 18, 25, 0.94) 40%, rgba(14, 18, 25, 0.35)),
        var(--hero-image) center / cover no-repeat;
}
.hero-grid { position: relative; padding: 4.5rem 0 3rem; }
.hero-kicker { color: var(--accent); margin: 0 0 0.5rem; font-size: 0.9rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; max-width: 18ch; }
.hero-lead { color: var(--muted); max-width: 48ch; margin: 0.75rem 0 0; }
.hero-stats {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.hero-stats strong {
    display: block;
    color: var(--text);
    font-family: "Unbounded", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}
.hero-search {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.hero-search input {
    flex: 1 1 220px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.section { padding: 3rem 0; }
.section-muted { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head h2 { margin: 0 0 1.2rem; }
.section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}
.section-head--row h2 { margin: 0; }
.section-intro {
    color: var(--muted);
    max-width: 52ch;
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.brand-card {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s, transform 0.2s;
}
.brand-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.vehicle-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #111723;
}
.vehicle-card-media {
    display: block;
    height: 160px;
    background: #0a0e14 center / cover no-repeat;
    overflow: hidden;
}
.vehicle-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vehicle-grid--home { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vehicle-card--tall .vehicle-card-media { height: 190px; }
.vehicle-card-body { padding: 1rem; }
.vehicle-card-body h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.vehicle-card-body h3 a { color: inherit; text-decoration: none; }
.price { color: var(--accent); font-weight: 600; }

.vehicle-page { padding: 2rem 0 4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--muted); }
.vehicle-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}
.vehicle-meta { list-style: none; display: flex; gap: 0.8rem; padding: 0; color: var(--muted); }
.vehicle-price { font-size: 1.4rem; font-family: "Unbounded", sans-serif; }
.vehicle-hero-visual img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.vehicle-specs { margin-top: 2.5rem; }
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.spec-grid dt { color: var(--muted); font-size: 0.85rem; }
.spec-grid dd { margin: 0.2rem 0 0; font-weight: 600; }
.vehicle-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(63, 208, 201, 0.06);
}

.cta-panel {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: 2rem;
    background: linear-gradient(120deg, rgba(63, 208, 201, 0.08), transparent);
}

.page-default, .catalog-page, .error-page { padding: 2.5rem 0 4rem; }
.placeholder { color: var(--muted); }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 2rem;
    color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }

.showcase-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.85rem;
}
.showcase-tile {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    min-height: 200px;
}
.showcase-tile--lead {
    grid-row: span 2;
    min-height: 420px;
}
.showcase-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}
.showcase-tile--lead img { min-height: 420px; }
.showcase-tile figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1rem 1.1rem 1.15rem;
    background: linear-gradient(180deg, transparent, rgba(14, 18, 25, 0.92));
}
.showcase-tile h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
}
.showcase-tile p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 36ch;
}

.home-seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 2rem;
    align-items: start;
}
.home-prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin-top: 0; }
.home-prose h3 { font-size: 1.1rem; margin: 1.75rem 0 0.65rem; font-family: "Unbounded", sans-serif; font-weight: 500; }
.home-seo-aside { display: flex; flex-direction: column; gap: 0.75rem; }
.info-card--link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s, transform 0.2s;
}
.info-card--link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.info-card--link h3 { margin: 0 0 0.35rem; font-size: 1rem; font-family: "Unbounded", sans-serif; }
.info-card--link p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.prose {
    line-height: 1.65;
    color: var(--muted);
    max-width: 68ch;
}
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }

.lead-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
}
.lead-section-visual {
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    max-height: 420px;
}
.lead-section-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lead-form-wrap { max-width: 520px; }
.lead-form-head h2 { margin: 0 0 0.35rem; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lead-form-head p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; max-width: 42ch; }
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}
.lead-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); }
.lead-field--full { margin-top: 0.85rem; }
.lead-field input,
.lead-field textarea {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
    width: 100%;
}
.lead-field textarea { resize: vertical; min-height: 5.5rem; }
.lead-field input:focus,
.lead-field textarea:focus {
    outline: 2px solid rgba(63, 208, 201, 0.45);
    outline-offset: 1px;
    border-color: rgba(63, 208, 201, 0.35);
}
.lead-consents { margin: 1.15rem 0 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
.lead-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}
.lead-check input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--accent); }
.lead-check a { color: var(--accent); }
.lead-submit { width: 100%; padding: 0.75rem 1.25rem; }
.lead-form-feedback {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
}
.lead-form-feedback.is-visible { display: block; }
.lead-form-feedback[hidden]:not(.is-visible) { display: none; }
.lead-form-feedback--success {
    background: rgba(63, 208, 201, 0.1);
    border-color: rgba(63, 208, 201, 0.35);
    color: var(--text);
}
.lead-form-feedback--error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
    background: rgba(14, 18, 25, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}
.cookie-banner-text p { margin: 0; font-size: 0.9rem; }
.cookie-banner-sub { color: var(--muted); font-size: 0.82rem !important; margin-top: 0.35rem !important; }
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 840px) {
    .header-inner { flex-wrap: wrap; }
    .vehicle-hero { grid-template-columns: 1fr; }
    .showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .showcase-tile--lead { grid-row: auto; min-height: 280px; }
    .showcase-tile--lead img { min-height: 280px; }
    .home-seo-layout { grid-template-columns: 1fr; }
    .lead-section { grid-template-columns: 1fr; }
    .lead-section-visual { max-height: 240px; }
    .lead-form-grid { grid-template-columns: 1fr; }
}

.section-page { padding: 2.5rem 0 4rem; }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }
.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.blog-page { padding: 2.5rem 0 4rem; }
.blog-intro { color: var(--muted); max-width: 50ch; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 2rem; }
.blog-filters a {
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
}
.blog-filters a.is-active,
.blog-filters a:hover { color: var(--text); border-color: var(--accent); }
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.article-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #111723;
}
.article-card-media {
    display: block;
    height: 170px;
    background: center / cover no-repeat;
}
.article-card-body { padding: 1rem 1.1rem 1.2rem; }
.article-card-cat { font-size: 0.8rem; color: var(--accent); margin: 0 0 0.35rem; }
.article-card-body h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.article-card-body h2 a { color: inherit; text-decoration: none; }
.article-card-excerpt { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.6rem; }
.article-card time { color: var(--muted); font-size: 0.85rem; }

.article-single { padding: 2rem 0 4rem; max-width: 780px; }
.article-single-head time { color: var(--muted); font-size: 0.9rem; }
.article-single-lead { font-size: 1.1rem; color: var(--muted); }
.article-single-cover img {
    width: 100%;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--line);
}
.article-single-body { line-height: 1.65; }
.article-single-back { margin-top: 2rem; }
.article-single-back a { color: var(--accent); }

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