﻿:root {
    --container: 1200px;
    --bg: #0b1220;
    --surface: rgba(255,255,255,.06);
    --surface-2: rgba(255,255,255,.08);
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15,23,42,.10);
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(2,8,23,.12);
    --shadow-soft: 0 10px 22px rgba(2,8,23,.10);
    --radius: 14px;
    --radius-lg: 20px;
    --primary: #2563eb;
    --primary-2: #60a5fa;
    --chip: rgba(15,23,42,.05);
    --chip-border: rgba(15,23,42,.10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --card: rgba(255,255,255,.06);
        --text: rgba(255,255,255,.92);
        --muted: rgba(148,163,184,.92);
        --border: rgba(255,255,255,.10);
        --chip: rgba(255,255,255,.06);
        --chip-border: rgba(255,255,255,.12);
        --shadow: 0 18px 44px rgba(0,0,0,.35);
        --shadow-soft: 0 12px 26px rgba(0,0,0,.25);
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #f5f7fb;
    line-height: 1.6;
    overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #070b13;
    }
}

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

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 44px;
    color: #fff;
    background: radial-gradient(900px 400px at 20% 10%, rgba(96,165,250,.25), transparent 60%), radial-gradient(900px 420px at 80% 30%, rgba(37,99,235,.30), transparent 60%), linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #101a33 100%);
}

    .hero:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='white' stroke-opacity='.09'%3E%3Cpath d='M0 120h900M0 240h900M0 360h900M0 480h900'/%3E%3Cpath d='M150 0v600M300 0v600M450 0v600M600 0v600M750 0v600'/%3E%3C/g%3E%3C/svg%3E");
        mix-blend-mode: overlay;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(226,232,240,.95);
    margin-bottom: 14px;
}

    .kicker .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--primary), var(--primary-2));
        box-shadow: 0 0 0 6px rgba(37,99,235,.18);
    }

.hero h1 {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.06;
    margin: 0 0 10px;
}

.grad {
    background: linear-gradient(90deg, var(--primary-2), #93c5fd, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    margin: 0 0 22px;
    font-size: 1.05rem;
    color: rgba(203,213,225,.95);
    max-width: 58ch;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 140px;
}

.stat-label {
    font-size: .78rem;
    color: rgba(203,213,225,.90);
    margin-bottom: 4px;
}

.stat-value {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .01em;
}

.hero-media .media-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 26px 70px rgba(0,0,0,.35);
    transform: translateY(6px);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    box-shadow: var(--shadow-soft);
    user-select: none;
}

    .btn:active {
        transform: translateY(0px) scale(.99);
    }

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #1d4ed8);
    color: #fff;
}

    .btn-primary:hover {
        box-shadow: var(--shadow);
    }

.btn-secondary {
    background: rgba(255,255,255,.10);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

    .btn-secondary:hover {
        background: rgba(255,255,255,.14);
    }

.btn-ghost {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

    .btn-ghost:hover {
        box-shadow: var(--shadow-soft);
    }

@media (prefers-color-scheme: dark) {
    .btn-ghost {
        background: rgba(255,255,255,.06);
    }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 28px 0 44px;
}

.section-head {
    margin-bottom: 14px;
}

.section-title {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 900;
    letter-spacing: .01em;
}

.section-sub {
    margin: 6px 0 0;
    color: var(--muted);
}

/* ---------- GRID ---------- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.brands-grid--results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .brands-grid--results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .brands-grid, .brands-grid--results {
        grid-template-columns: 1fr;
    }
}

/* ---------- CARD ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-header {
    padding: 16px 16px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

    .card .brand img {
        height: 34px;
        width: auto;
        object-fit: contain;
        display: block;
    }

.card .brand-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: none;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 18px rgba(37,99,235,.22);
}

    .card .brand-avatar.is-visible {
        display: grid;
    }

.card .brand-name {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anchor {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

    .anchor:hover {
        color: var(--text);
    }

/* ---------- MODULE LIST ---------- */
.modules {
    margin: 0;
    padding: 12px;
    display: grid;
    gap: 10px;
    position: relative;
}

.module {
    list-style: none;
    padding: 12px 12px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    background: color-mix(in oklab, var(--card), #000 0%);
}

.module-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.module-title {
    font-weight: 900;
    letter-spacing: .01em;
}

.module-note {
    color: var(--muted);
    font-size: .95rem;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    font-size: .75rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--text);
    font-weight: 900;
    letter-spacing: .04em;
}


    .tag.engine {
        background: color-mix(in oklab, var(--primary), transparent 88%);
        border-color: color-mix(in oklab, var(--primary), transparent 60%);
    }

    .tag.tcu {
        background: color-mix(in oklab, #f59e0b, transparent 86%);
        border-color: color-mix(in oklab, #f59e0b, transparent 55%);
    }

    .tag.immo {
        background: color-mix(in oklab, #7c3aed, transparent 86%);
        border-color: color-mix(in oklab, #7c3aed, transparent 55%);
    }

    .tag.airbag {
        background: color-mix(in oklab, #ef4444, transparent 88%);
        border-color: color-mix(in oklab, #ef4444, transparent 55%);
    }

    .tag.odo {
        background: color-mix(in oklab, #10b981, transparent 86%);
        border-color: color-mix(in oklab, #10b981, transparent 55%);
    }

    .tag.misc {
        background: color-mix(in oklab, #64748b, transparent 86%);
        border-color: color-mix(in oklab, #64748b, transparent 55%);
    }

.module.is-hidden {
    display: none;
}

.modules.collapsed::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 46px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--card));
    border-radius: 0 0 14px 14px;
    pointer-events: none;
}

.card-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.more-toggle {
    cursor: pointer;
    color: color-mix(in oklab, var(--text), var(--primary) 35%);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .more-toggle:hover {
        color: var(--text);
    }

/* ---------- FILTERS ---------- */
.filters-wrap {
    position: relative;
    z-index: 20;
    background: rgba(245,247,251,.72);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15,23,42,.06);
    border-bottom: 1px solid rgba(15,23,42,.08);
}

@media (prefers-color-scheme: dark) {
    .filters-wrap {
        background: rgba(7,11,19,.72);
        border-top: 1px solid rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
    .search {
        box-shadow: none;
    }
}

.search i {
    color: var(--muted);
}

.search input {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    width: 100%;
    color: var(--text);
}

    .search input::placeholder {
        color: color-mix(in oklab, var(--muted), transparent 35%);
    }

.icon-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
}

    .icon-btn:hover {
        background: var(--chip);
        color: var(--text);
    }

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.seg {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    cursor: pointer;
    user-select: none;
    font-weight: 800;
    color: var(--muted);
}

    .seg input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

    .seg span {
        display: inline-flex;
        gap: 8px;
        align-items: center;
    }

    .seg:has(input:checked) {
        background: color-mix(in oklab, var(--primary), transparent 88%);
        border-color: color-mix(in oklab, var(--primary), transparent 60%);
        color: color-mix(in oklab, var(--text), var(--primary) 20%);
    }

@media (prefers-color-scheme: dark) {
    .seg:has(input:checked) {
        color: rgba(255,255,255,.92);
    }
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ---------- BRAND BAR ---------- */
.brand-bar {
    padding: 0 0 14px;
}

.brand-bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 10px;
}

.brand-bar-title {
    font-weight: 900;
    letter-spacing: .01em;
    color: var(--text);
}

.brand-bar-hint {
    font-size: .9rem;
    color: var(--muted);
}

.brand-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-chip {
    border: 1px solid var(--chip-border);
    background: var(--card);
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

    .brand-chip:hover {
        transform: translateY(-1px);
    }

    .brand-chip.active {
        background: linear-gradient(90deg, var(--primary), #1d4ed8);
        border-color: transparent;
        color: #fff;
    }

/* ---------- PANEL (RESULTS WRAP) ---------- */
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.panel-head {
    padding: 18px 18px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .01em;
}

.panel-sub {
    color: var(--muted);
    font-size: .95rem;
}

.grid-controls {
    text-align: center;
    padding: 10px 18px 0;
}

.cta-center {
    text-align: center;
    padding: 18px 18px 22px;
}

.legal-note {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .lead {
        margin-inline: auto;
    }

    .cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}
