:root {
    --navy: #0b174f;
    --navy-light: #17296d;
    --blue: #2f66e8;
    --page: #edf2f8;
    --white: #ffffff;
    --text: #07184f;
    --muted: #66728d;
    --border: #dce4ef;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    min-height: 72px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--navy);
}

.brand {
    color: var(--white);
    text-decoration: none;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.topbar nav a:hover {
    text-decoration: underline;
}

.page {
    width: min(1400px, calc(100% - 32px));
    margin: 28px auto 50px;
}

.hero {
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    padding: 54px;
    color: var(--white);
    background-color: var(--navy);
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 79, .94) 0%,
            rgba(7, 24, 79, .83) 42%,
            rgba(7, 24, 79, .28) 100%
        )
        ,
        url('/images/index-hero.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 42px rgba(7, 24, 79, .22);
}

.hero-content {
    width: min(720px, 100%);
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: #a9c9ff;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 82px);
    line-height: .98;
    letter-spacing: -2px;
}

.hero-lead {
    margin: 20px 0 28px;
    max-width: 650px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 9px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
}

.search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    color: #18213f;
    font-size: 17px;
    border-radius: 10px;
}

.search-form button {
    border: 0;
    padding: 0 27px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--white);
    background: var(--blue);
    font-size: 16px;
    font-weight: 800;
}

.search-form button:hover {
    background: #2456ca;
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-top: 22px;
}

.stat-card {
    min-width: 0;
    padding: 22px 18px;
    border: 1px solid rgba(7, 24, 79, .08);
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(7, 24, 79, .08);
    text-align: center;
}

.stat-number {
    display: block;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 900;
    letter-spacing: -.7px;
}

.stat-label {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 22px;
    margin-top: 22px;
}

.panel {
    padding: 26px;
    border-radius: 19px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(7, 24, 79, .08);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.panel h2 {
    margin: 0;
    font-size: 25px;
}

.panel-head a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
}

.vehicle-list {
    display: grid;
    gap: 4px;
}

.vehicle-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 15px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.vehicle-row:hover {
    background: #f7f9fc;
}

.vehicle-row:last-child {
    border-bottom: 0;
}

.vehicle-title {
    font-weight: 900;
}

.vehicle-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.year {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--navy);
    background: #edf3ff;
    font-size: 13px;
    font-weight: 800;
}

.empty {
    padding: 20px 0;
    color: var(--muted);
}

.quick-links {
    display: grid;
    gap: 12px;
}

.quick-link {
    display: block;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    text-decoration: none;
    background: #f8fafe;
}

.quick-link:hover {
    border-color: #afc6f7;
    transform: translateY(-1px);
}

.quick-link strong {
    display: block;
    margin-bottom: 4px;
}

.quick-link span {
    color: var(--muted);
    font-size: 14px;
}

.footer {
    padding: 28px 16px 45px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}


.history-panel {
    margin-top: 22px;
    overflow: hidden;
    padding: 0;
    border-radius: 21px;
    color: var(--white);
    background:
        linear-gradient(135deg, #0b174f 0%, #18377f 100%);
    box-shadow: 0 14px 36px rgba(7, 24, 79, .18);
}

.history-head {
    padding: 25px 27px 19px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.history-kicker {
    margin: 0 0 7px;
    color: #a9c9ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.history-head h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 35px);
}

.history-all-link {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.history-all-link:hover {
    background: rgba(255, 255, 255, .1);
}

.history-list {
    display: grid;
}

.history-event {
    padding: 18px 27px;
    display: grid;
    grid-template-columns: 62px 34px 1fr auto;
    gap: 13px;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.history-event:last-child {
    border-bottom: 0;
}

.history-event:hover {
    background: rgba(255, 255, 255, .07);
}

.history-year {
    color: #a9c9ff;
    font-size: 18px;
    font-weight: 900;
}

.history-icon {
    font-size: 21px;
    text-align: center;
}

.history-copy strong {
    display: block;
    margin-bottom: 3px;
    color: #a9c9ff;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.history-copy span {
    line-height: 1.45;
}

.history-arrow {
    color: #a9c9ff;
    font-size: 20px;
    font-weight: 900;
}

.history-empty {
    padding: 28px 27px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.history-empty a {
    color: #b9d4ff;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero {
        min-height: 430px;
        padding: 34px 24px;
        background-image:
            linear-gradient(
                90deg,
                rgba(7, 24, 79, .94),
                rgba(7, 24, 79, .68)
            )
            ,
            url('/images/index-hero.png');
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        min-height: 48px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-head {
        flex-direction: column;
    }

    .history-event {
        grid-template-columns: 52px 30px 1fr;
        padding: 17px 19px;
    }

    .history-arrow {
        display: none;
    }
}


@media (max-width: 430px) {
    .page {
        width: min(100% - 18px, 1400px);
        margin-top: 10px;
    }

    .hero {
        padding: 28px 19px;
        border-radius: 18px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 20px;
    }
}