:root {
    --bg-1: #090006;
    --bg-2: #2b0a12;
    --bg-3: #4b0a18;
    --card: rgba(25, 20, 24, 0.8);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f7f5f7;
    --muted: #c7bcc6;
    --accent: #d11e3a;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 0%, #5c0d1d 0%, transparent 40%),
    radial-gradient(circle at 80% 10%, #350a12 0%, transparent 45%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
    min-height: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 40px;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: space-between;
}

header h1 {
    font-size: 32px;
    letter-spacing: 1px;
    margin: 0;
}

header p {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
}

.scroll-panel {
    background: rgba(8, 5, 8, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px;
    height: calc(100vh - 180px);
    height: calc(100svh - 180px);
    height: calc(100dvh - 180px);
    overflow-y: auto;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.alpha-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(8, 5, 8, 0.8);
    padding: 10px 6px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    border-radius: 10px;
}

.alpha-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.2s ease;
}

.alpha-nav a:hover,
.alpha-nav a:focus {
    color: var(--text);
    background: rgba(209, 30, 58, 0.3);
}

.brand-section {
    padding: 18px 6px 10px;
}

.brand-section h2 {
    margin: 12px 0 14px;
    font-size: 18px;
    letter-spacing: 6px;
    color: var(--accent);
}

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

.brand-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-logo img {
    width: 180%;
    height: 180%;
    object-fit: contain;
}

.brand-card[data-brand="Aston Martin"] .brand-logo,
.brand-card[data-brand="Audi"] .brand-logo {
    width: 84px;
    height: 84px;
}

.brand-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    letter-spacing: 1px;
}

.brand-info p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 13px;
}

.brand-info span {
    color: var(--text);
    font-weight: 600;
}

.scroll-panel::-webkit-scrollbar {
    width: 10px;
}

.scroll-panel::-webkit-scrollbar-thumb {
    background: rgba(209, 30, 58, 0.6);
    border-radius: 8px;
}

.scroll-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.filter-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    position: relative;
}

.filter-control label {
    font-size: 13px;
    color: var(--muted);
}

.filter-control select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 8px 36px 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-control select:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.filter-control select:focus {
    outline: none;
    border-color: rgba(209, 30, 58, 0.7);
    box-shadow: 0 0 0 2px rgba(209, 30, 58, 0.25);
}

.filter-control select option {
    background: #1a0b12;
    color: var(--text);
}

.filter-control::after {
    content: "";
    position: absolute;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

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

@media (max-width: 680px) {
    .brand-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-control {
        width: 100%;
    }

    .filter-control select {
        width: 100%;
    }

    .scroll-panel {
        height: calc(100vh - 220px);
    }
}