/* ═══ Premium light theme tokens (dark theme unchanged via html.dark) ═══ */
:root {
    --color-accent: #C8102E;
    --color-accent-light: #D4213A;
    --color-accent-dark: #A00D23;
    --color-gold: #D4A843;
    --premium-bg: #FBF7F2;
    --premium-section: #F5EFE7;
    --premium-section-alt: #FEFAF5;
    --premium-text: #1C1A17;
    --premium-text-muted: #6B5E53;
    --premium-heading: #14110E;
    --premium-border: #E8E0D5;
    --premium-card: rgba(255, 252, 247, 0.75);
    --premium-shadow: 0 8px 40px rgba(28, 26, 23, 0.08);
    --premium-shadow-hover: 0 12px 48px rgba(28, 26, 23, 0.12), 0 0 30px rgba(200, 16, 46, 0.25);
}
html.dark {
    --color-accent: #E30613;
    --color-accent-light: #FF1A1A;
    --color-accent-dark: #B8050F;
    --color-gold: #d4af37;
    /* Hero CTA → About continuous midnight wash */
    --midnight-deep: #050508;
    --midnight-mid: #0a0812;
    --midnight-soft: #0e0a16;
    /* Subtle lattice — match #about ideal (barely-there, not loud) */
    --midnight-grid: rgba(168, 110, 200, 0.055);
    --midnight-grid-accent: rgba(220, 80, 160, 0.035);
    /* Shared soft section wash (same family as .cta-about-band / #about) */
    --midnight-wash-a: rgba(56, 36, 88, 0.18);
    --midnight-wash-b: rgba(12, 10, 20, 0.72);
    --midnight-wash-c: rgba(10, 8, 18, 0.66);
    --midnight-wash-d: rgba(9, 8, 16, 0.70);
}

/*
 * Body must stay transparent so fixed .page-pattern (z-index: -1) can show through
 * translucent patterned sections. Soft gradient + diamond lattice live on .page-pattern.
 */
html:not(.dark) {
    background-color: var(--premium-bg);
}
html.dark {
    background-color: #050505;
}
html:not(.dark) body.site-body,
html.dark body.site-body {
    background-color: transparent !important;
}
html.dark body.site-body {
    color: #f3f4f6;
}
html:not(.dark) .text-premium { color: var(--premium-text); }
html:not(.dark) .text-muted { color: var(--premium-text-muted); }
html:not(.dark) h1, html:not(.dark) h2, html:not(.dark) h3,
html:not(.dark) .font-display { color: var(--premium-heading); }

/* Page-wide soft gradient + continuous diamond lattice (viewport-fixed) */
.page-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
/* Light: cream / warm premium wash under pink diamond */
html:not(.dark) .page-pattern {
    background-color: var(--premium-bg);
    background-image:
        radial-gradient(ellipse 110% 75% at 15% -10%, rgba(255, 252, 247, 0.98) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 90% 20%, rgba(245, 232, 214, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 220, 200, 0.35) 0%, transparent 55%),
        linear-gradient(165deg, #FEFAF5 0%, #FBF7F2 32%, #F5EFE7 68%, #F8F3EC 100%);
}
/*
 * Sharp pink diamond — one viewport-fixed layer shared by all light patterned sections.
 * Sections use translucent cream so this lattice shows through without per-section restarts.
 */
html:not(.dark) body.site-body > .page-pattern::before,
html:not(.dark) .page-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 59px,
            rgba(200, 16, 46, 0.22) 59px,
            rgba(200, 16, 46, 0.22) 60px
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 89px,
            rgba(200, 16, 46, 0.16) 89px,
            rgba(200, 16, 46, 0.16) 90px
        );
}
/* Dark: midnight soft wash under violet/magenta diamond */
html.dark .page-pattern {
    background-color: #050505;
    background-image:
        radial-gradient(ellipse 100% 70% at 20% 0%, rgba(56, 36, 88, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 80% 55% at 85% 65%, rgba(36, 24, 52, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(20, 16, 32, 0.28) 0%, transparent 55%),
        linear-gradient(165deg, #050508 0%, #0a0812 38%, #0e0a16 72%, #050505 100%);
}
html.dark body.site-body > .page-pattern::before,
html.dark .page-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 59px,
            var(--midnight-grid) 59px,
            var(--midnight-grid) 60px
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 89px,
            var(--midnight-grid-accent) 89px,
            var(--midnight-grid-accent) 90px
        );
}

/* Soft static sheen on backgrounds (no continuous animation, no ruled lines) */
html:not(.dark) .page-pattern::after {
    content: '';
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(200, 16, 46, 0.05) 40%,
        rgba(212, 168, 67, 0.08) 50%,
        rgba(200, 16, 46, 0.05) 60%,
        transparent 75%
    );
    background-size: 200% 200%;
    background-position: 40% 50%;
    opacity: 0.6;
}
html.dark body.site-body::after {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        transparent 22%,
        rgba(88, 56, 120, 0.05) 42%,
        rgba(227, 6, 19, 0.025) 52%,
        rgba(56, 36, 88, 0.045) 65%,
        transparent 80%
    );
    background-size: 200% 200%;
    background-position: 45% 50%;
    opacity: 0.4;
}

.bg-shimmer-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-shimmer-layer::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: linear-gradient(
        120deg,
        transparent 28%,
        rgba(200, 16, 46, 0.06) 42%,
        rgba(212, 168, 67, 0.09) 50%,
        rgba(200, 16, 46, 0.06) 58%,
        transparent 72%
    );
    background-size: 200% 200%;
    background-position: 45% 50%;
    opacity: 0.65;
}
/* Dark: hide competing diagonal shimmer — shared soft lattice + washes only */
html.dark .bg-shimmer-layer {
    display: none;
}
html.dark .bg-shimmer-layer::before {
    content: none;
    display: none;
}

.section-warm,
.section-warm-alt,
.section-cream {
    position: relative;
    overflow: hidden;
}
.section-warm > .bg-shimmer-layer,
.section-warm-alt > .bg-shimmer-layer,
.section-cream > .bg-shimmer-layer,
.video-bg-section > .bg-shimmer-layer,
.catalog-section--showroom > .bg-shimmer-layer {
    z-index: 0;
}

.video-bg-section > .video-bg-scrim::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(200, 16, 46, 0.07) 45%,
        rgba(255, 252, 247, 0.12) 50%,
        rgba(200, 16, 46, 0.07) 55%,
        transparent 70%
    );
    background-size: 200% 200%;
    background-position: 50% 50%;
    opacity: 0.7;
}
/* Dark: no diagonal stripe-sheen over video — soft violet wash only via scrim */
html.dark .video-bg-section > .video-bg-scrim::after {
    content: none;
    display: none;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}
/* Dark footer: same soft midnight family as #about (no loud gray slab / stripe sheen) */
html.dark .site-footer {
    background-color: transparent;
    background-image:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(56, 36, 88, 0.16) 0%, transparent 55%),
        linear-gradient(
            180deg,
            rgba(10, 8, 18, 0.82) 0%,
            rgba(8, 8, 14, 0.88) 55%,
            rgba(6, 6, 10, 0.92) 100%
        );
    color: #d1d5db;
}
html.dark .site-footer::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(168, 110, 200, 0.04),
        rgba(227, 6, 19, 0.03),
        rgba(168, 110, 200, 0.04),
        transparent
    );
    opacity: 0.45;
}
.site-footer .footer-brand,
.site-footer .footer-brand > span:not(.bg-accent),
.site-footer .footer-heading {
    color: #ffffff !important;
}
.site-footer .footer-muted,
.site-footer .footer-copy {
    color: #9ca3af !important;
}
.site-footer .footer-link {
    color: #d1d5db !important;
    transition: color 0.2s;
}
.site-footer .footer-link:hover {
    color: var(--color-accent) !important;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(227, 6, 19, 0.08),
        rgba(212, 168, 67, 0.06),
        rgba(227, 6, 19, 0.08),
        transparent
    );
    background-size: 200% 100%;
    background-position: 50% 0;
    opacity: 0.85;
}

.section-warm { background-color: var(--premium-section); }
.section-warm-alt { background-color: var(--premium-section-alt); }
.section-cream { background-color: var(--premium-bg); }
/*
 * Dark sections: translucent midnight washes so ONE fixed .page-pattern lattice
 * shows continuously (#about ideal). No opaque slate slabs / stripe jumps.
 */
html.dark .section-warm,
html.dark .section-warm-alt,
html.dark .section-cream {
    background-color: transparent !important;
}
html.dark .section-warm:not(.cta-about-band) {
    background-image:
        radial-gradient(ellipse 90% 55% at 50% 0%, var(--midnight-wash-a) 0%, transparent 58%),
        linear-gradient(180deg, var(--midnight-wash-b) 0%, var(--midnight-wash-c) 48%, var(--midnight-wash-d) 100%);
}
html.dark .section-warm-alt {
    background-image:
        radial-gradient(ellipse 85% 50% at 42% 8%, rgba(48, 32, 72, 0.15) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8, 8, 14, 0.70) 0%, rgba(10, 8, 16, 0.66) 50%, rgba(8, 8, 12, 0.70) 100%);
}
html.dark .section-cream {
    background-image:
        radial-gradient(ellipse 80% 48% at 58% 0%, rgba(40, 28, 64, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, rgba(6, 6, 10, 0.70) 0%, rgba(8, 8, 14, 0.66) 50%, rgba(6, 6, 10, 0.70) 100%);
}
/* Beat Tailwind dark:bg-[#…] utilities on homepage sections */
html.dark #catalog,
html.dark #calculator,
html.dark #news,
html.dark #reviews,
html.dark #contacts {
    background-color: transparent !important;
}

.section-pattern-red {
    position: relative;
}
/*
 * No per-section lattice — diamond lives once on .page-pattern::before (fixed).
 * Patterned sections stay translucent so the shared lattice shows through continuously.
 */
html:not(.dark) .section-pattern-red::before,
html.dark .section-pattern-red::before {
    content: none;
    display: none;
}
html:not(.dark) .section-pattern-red.section-warm {
    background-color: rgba(245, 239, 231, 0.72);
}
html:not(.dark) .section-pattern-red.section-warm-alt {
    background-color: rgba(254, 250, 245, 0.72);
}
html:not(.dark) .section-pattern-red.section-cream {
    background-color: rgba(251, 247, 242, 0.72);
}
/* Dark patterned: transparent — wash comes from section-warm* / cta-about-band */
html.dark .section-pattern-red.section-warm,
html.dark .section-pattern-red.section-warm-alt,
html.dark .section-pattern-red.section-cream {
    background-color: transparent !important;
}
/* Square grid patterns stay off — diamond lattice is the shared pattern */
.section-grid-pattern {
    background-image: none !important;
    display: none;
}
html.dark .section-grid-pattern {
    background-image: none !important;
    display: none;
}

.section-divider {
    height: 2px;
    width: 60%;
    margin: 0 auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 16, 46, 0.3) 20%,
        rgba(200, 16, 46, 0.6) 50%,
        rgba(200, 16, 46, 0.3) 80%,
        transparent 100%
    );
}
html.dark .section-divider {
    background: linear-gradient(90deg, transparent, rgba(168, 110, 200, 0.18), rgba(227, 6, 19, 0.16), rgba(168, 110, 200, 0.18), transparent);
    opacity: 0.7;
}

.gold-text,
.gold-badge {
    background: linear-gradient(135deg, #BF953F, #FCF6B5, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.gold-badge {
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.25), rgba(252, 246, 181, 0.4));
    color: #8B6914;
    -webkit-text-fill-color: #8B6914;
    border: 1px solid rgba(212, 168, 67, 0.5);
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.2);
}
html.dark .gold-badge {
    color: #F5E6A8;
    -webkit-text-fill-color: #F5E6A8;
}

/* Navigation */
.nav-link {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--premium-text-muted);
    transition: color 0.2s ease;
}
.dark .nav-link { color: rgba(229, 231, 235, 0.72); }
.nav-link:hover { color: var(--color-accent); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #D4213A 0%, #B01028 100%);
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
html.dark .btn-primary {
    background: #E30613;
    box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.25);
}
html.dark .btn-primary:hover {
    background: #B8050F;
    box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.4);
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--premium-border);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: rgba(255, 252, 247, 0.5);
}
.dark .btn-secondary { border-color: rgb(55 65 81); background: transparent; }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--premium-border);
    background: rgba(255, 252, 247, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dark .form-input {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

/* Native select: opaque colors so option labels stay readable (esp. dark mode / Windows) */
.catalog-sort {
    color: #111827;
    background-color: #fff;
    min-width: 12.5rem;
    color-scheme: light;
}
.catalog-sort option {
    color: #111827;
    background-color: #fff;
}
.dark .catalog-sort {
    color: #f3f4f6;
    background-color: #111827;
    border-color: rgb(55 65 81);
    color-scheme: dark;
}
.dark .catalog-sort option {
    color: #f3f4f6;
    background-color: #111827;
}

.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 28rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: rgba(12, 12, 14, 0.94);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.cookie-notice.hidden { display: none; }
.cookie-notice-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    opacity: 0.92;
}
.cookie-notice-text a {
    color: #ff6b6b;
    text-decoration: underline;
}
@media (min-width: 640px) {
    .cookie-notice {
        left: 1.25rem;
        right: auto;
    }
}

/* Glass cards */
.glass-card {
    border-radius: 1rem;
    border: 1px solid rgba(200, 16, 46, 0.08);
    background: var(--premium-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--premium-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.dark .glass-card {
    border-color: rgba(31, 41, 55, 0.6);
    background: rgba(17, 24, 39, 0.7);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.glass-card:hover {
    box-shadow: var(--premium-shadow-hover);
    border-color: rgba(200, 16, 46, 0.22);
    transform: translateY(-2px);
}
html.dark .glass-card:hover {
    box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.05);
    transform: none;
}

/* ─── Site header (premium sticky) ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header-inner {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}
.site-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 4.25rem;
}
@media (min-width: 1024px) {
    .site-header-bar { min-height: 4.75rem; }
}
/* Fade under header removed — it drew a hard gray/black stripe under the nav */
.site-header-fade {
    display: none;
}
.site-header.is-scrolled .site-header-inner {
    background: linear-gradient(180deg, rgba(251, 247, 242, 0.92) 0%, rgba(245, 239, 231, 0.88) 100%);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: none;
    /* Soft depth only — no 1px edge / hard shadow line */
    box-shadow: 0 18px 36px -20px rgba(28, 26, 23, 0.22);
}
.dark .site-header.is-scrolled .site-header-inner {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.92) 0%, rgba(5, 5, 5, 0.86) 100%);
    border-bottom: none;
    box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.55);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 0.5rem)); }

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.header-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}
@media (min-width: 1024px) {
    .header-nav { display: flex; }
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.header-phone {
    display: none;
    align-items: center;
    gap: 0.45rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.header-phone:hover { color: var(--color-accent); }
.header-phone-icon { width: 1rem; height: 1rem; flex-shrink: 0; opacity: 0.85; }
@media (min-width: 768px) {
    .header-phone { display: inline-flex; }
}
.header-cta {
    display: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 9999px;
}
@media (min-width: 640px) {
    .header-cta { display: inline-flex; }
}
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(200, 16, 46, 0.18);
    background: rgba(255, 255, 255, 0.35);
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.header-icon-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}
.dark .header-icon-btn {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

/* Home header over starry sky — solid glass, no car bleed-through */
body.page-home .site-header:not(.is-scrolled) .nav-link,
body.page-home .site-header:not(.is-scrolled) .header-phone {
    color: rgba(255, 255, 255, 0.9);
}
body.page-home .site-header:not(.is-scrolled) .nav-link:hover,
body.page-home .site-header:not(.is-scrolled) .header-phone:hover {
    color: #fff;
}
body.page-home .site-header:not(.is-scrolled) .header-icon-btn {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    backdrop-filter: blur(10px);
}
body.page-home .site-header:not(.is-scrolled) .site-header-inner {
    background: linear-gradient(180deg, rgba(6, 8, 14, 0.72) 0%, rgba(6, 8, 14, 0.45) 100%);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: none;
    box-shadow: none;
}
/* Light theme scrolled: readable warm glass, no cream/white clash */
html:not(.dark) .site-header.is-scrolled .site-header-inner {
    background: linear-gradient(180deg, rgba(251, 247, 242, 0.96) 0%, rgba(245, 239, 231, 0.94) 100%);
    border-bottom: none;
    box-shadow: 0 18px 36px -20px rgba(28, 26, 23, 0.18);
}
html:not(.dark) .site-header.is-scrolled .nav-link,
html:not(.dark) .site-header.is-scrolled .header-phone {
    color: var(--premium-text);
}
html:not(.dark) .site-header.is-scrolled .nav-link:hover,
html:not(.dark) .site-header.is-scrolled .header-phone:hover {
    color: var(--color-accent);
}

.site-header .header-logo-img {
    height: 40px;
    width: auto;
    max-width: min(128px, 34vw);
    display: block;
    object-fit: contain;
    transition: filter 0.35s ease, opacity 0.35s ease, height 0.35s ease, mix-blend-mode 0.35s ease;
}
body.page-home .site-header:not(.is-scrolled) .header-logo-img {
    display: none;
}
body.page-home .site-header:not(.is-scrolled) .header-logo-mark {
    display: inline-flex;
}
.site-header.is-scrolled .header-logo-img,
body:not(.page-home) .site-header .header-logo-img {
    height: 40px;
    mix-blend-mode: normal;
    filter: none;
    opacity: 1;
}
.header-logo-mark {
    display: none;
    align-items: baseline;
    gap: 0.35rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
    line-height: 1;
}
.header-logo-mark .mark-asia {
    color: #fff;
    background: #C8102E;
    padding: 0.12em 0.45em 0.18em;
    border-radius: 999px;
    font-style: italic;
    font-weight: 700;
    font-size: 0.88em;
}

/* Mobile drawer */
.header-mobile-menu {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(200, 16, 46, 0.1);
    background: rgba(251, 247, 242, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px rgba(28, 26, 23, 0.12);
}
.dark .header-mobile-menu {
    border-top-color: rgba(227, 6, 19, 0.16);
    background: rgba(8, 8, 10, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.header-mobile-link {
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
}
.header-mobile-phone {
    display: inline-flex;
    margin-top: 0.75rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-accent);
}
.site-header.is-menu-open .header-burger-open { display: none; }
.site-header.is-menu-open .header-burger-close { display: block; }

/* ============================================= */
/*  HERO — starry gap → cars → CTA on site bg    */
/* ============================================= */
.hero-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    background-color: transparent;
    color: inherit;
    isolation: isolate;
}

/* Starry strip ONLY behind/under sticky header — cars start immediately below */
.hero-sky {
    position: relative;
    z-index: 0;
    /* Match header bar height so stars live only in the header zone */
    height: 4.25rem;
    min-height: 4.25rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #07090f;
    border: none;
    box-shadow: none;
}
@media (min-width: 1024px) {
    .hero-sky {
        height: 4.75rem;
        min-height: 4.75rem;
    }
}
/* Soft sky → cars edge (no hard stripe) */
.hero-sky::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.75rem;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(5, 5, 8, 0.35) 45%,
        rgba(5, 5, 8, 0.85) 100%
    );
}

/* Stars: only inside .hero-sky (never About / CTA / page body) */
.hero-sky .starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: #07090f;
    background-image:
        radial-gradient(ellipse 120% 70% at 50% -10%, rgba(48, 62, 110, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(200, 16, 46, 0.06) 0%, transparent 70%),
        radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 14% 72%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 22% 34%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 28% 12%, rgba(220, 230, 255, 0.55), transparent),
        radial-gradient(1px 1px at 35% 58%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 42% 22%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 48% 80%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 55% 28%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 62% 66%, rgba(220, 230, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 70% 14%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 76% 48%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 84% 76%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 96% 62%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 18% 48%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 52% 44%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 66% 88%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 4% 90%, rgba(255, 255, 255, 0.3), transparent);
}

.hero-stage {
    position: relative;
    z-index: 1;
    height: clamp(420px, 62vh, 720px);
    min-height: 400px;
    overflow: hidden;
    /* Stage only — not the CTA row; always night under cars (both themes) */
    background: #050508;
}
/* Soft top blend from sky into car stage */
.hero-stage::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2.25rem;
    z-index: 18;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(7, 9, 15, 0.92) 0%,
        rgba(5, 5, 8, 0.45) 55%,
        transparent 100%
    );
}
/* CTA only — compact row on site bg (no title/slogan, no black band) */
.hero-content .hero-cta-row,
.hero-cta-row {
    margin: 0;
    padding: 0;
    background: transparent;
    background-color: transparent;
    background-image: none;
    line-height: 1;
}
.hero-content .hero-cta,
.hero-cta {
    background: linear-gradient(135deg, #E30613, #A00D23);
    color: #FFFFFF;
    box-shadow: 0 4px 28px rgba(227, 6, 19, 0.55);
    border-radius: 4px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* Hero panels — aura ignition (CSS-driven, visible after preloader) */
.hero-panel {
    cursor: none;
}
.hero-panel-media {
    transform-origin: center center;
    filter: brightness(0.38) saturate(0.85);
    transition: filter 0.55s ease, transform 0.2s ease-out;
}
.hero-panel.is-igniting .hero-panel-media,
.hero-panel.is-hovered .hero-panel-media {
    will-change: transform, filter;
}
.hero-panel.is-lit .hero-panel-media {
    filter: brightness(1) saturate(1);
}
.hero-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 60%,
            rgba(255, 250, 230, 0.35) 0%,
            rgba(200, 230, 255, 0.12) 42%,
            transparent 70%);
    mix-blend-mode: screen;
}
.hero-panel.is-igniting .hero-flash {
    animation: hero-flash-burst 0.85s ease-out forwards;
}
@keyframes hero-flash-burst {
    0% { opacity: 0; }
    25% { opacity: 0.85; }
    100% { opacity: 0; }
}

/* Soft aura on headlights — not hard circles */
.hero-flare {
    position: absolute;
    width: 90px;
    height: 70px;
    margin: 0;
    pointer-events: none;
    z-index: 6;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    mix-blend-mode: screen;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 245, 220, 0.55) 22%,
        rgba(180, 220, 255, 0.28) 48%,
        rgba(140, 190, 255, 0.08) 70%,
        transparent 85%);
    filter: blur(6px);
    box-shadow:
        0 0 28px 12px rgba(255, 255, 255, 0.35),
        0 0 60px 28px rgba(180, 220, 255, 0.22);
}
.hero-panel[data-car="center"] .hero-flare {
    width: 110px;
    height: 80px;
}
.hero-panel.is-igniting .hero-flare {
    animation: hero-aura-ignite 0.9s ease-out forwards;
}
.hero-panel.is-igniting .hero-flare-b {
    animation-delay: 0.08s;
}
.hero-panel.is-lit:not(.is-igniting) .hero-flare {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(1);
    animation: none;
}
@keyframes hero-aura-ignite {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); filter: blur(4px); }
    35% { opacity: 1; transform: translate(-50%, -50%) scale(1.35); filter: blur(5px); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); filter: blur(7px); }
}

/* CTA + About share one continuous surface */
.cta-about-band {
    position: relative;
}
.cta-about-band > .hero-content,
.cta-about-band > #about {
    position: relative;
    z-index: 1;
}
/*
 * Dark: translucent midnight wash so shared .page-pattern violet diamond shows through
 * continuously across CTA → About (no local square-grid, no opaque fill hiding lattice).
 */
html.dark .cta-about-band.section-warm {
    background-color: transparent !important;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% 0%, var(--midnight-wash-a) 0%, transparent 58%),
        linear-gradient(
            180deg,
            rgba(12, 10, 20, 0.78) 0%,
            rgba(10, 8, 18, 0.68) 28%,
            rgba(14, 10, 22, 0.64) 62%,
            rgba(9, 8, 16, 0.68) 100%
        );
    overflow: hidden;
}
/* Lattice comes from fixed .page-pattern — no duplicate local grid (avoids seams) */
html.dark .cta-about-band.section-warm::before {
    content: none;
    display: none;
}
/* Light: soft warm band — opaque night top hides lattice; translucent cream reveals shared diamond */
html:not(.dark) .cta-about-band.section-warm {
    background-color: transparent;
    background-image:
        linear-gradient(
            180deg,
            #1a1816 0%,
            #3d3832 4%,
            #8a8074 10%,
            #cfc5b8 18%,
            rgba(235, 228, 218, 0.82) 28%,
            rgba(245, 239, 231, 0.72) 45%,
            rgba(245, 239, 231, 0.72) 100%
        );
}

/* CTA strip: dark midnight; light = transparent over shared band */
.hero-banner > .hero-content,
.cta-about-band > .hero-content,
.hero-content {
    position: relative;
    z-index: 5;
    opacity: 0;
    transform: translateY(12px);
    margin: 0;
    padding: 0.65rem 0 1.1rem;
    overflow: hidden;
    /* Dark: same midnight top as #about (seamless into section below) */
    background-color: transparent;
    background-image: none;
    box-shadow: none;
}
/* Local CTA lattice disabled — shared .page-pattern paints one continuous diamond */
.hero-banner > .hero-content::after,
.cta-about-band > .hero-content::after,
.hero-content::after {
    display: none;
}
html:not(.dark) .hero-banner > .hero-content,
html:not(.dark) .cta-about-band > .hero-content,
html:not(.dark) .hero-content {
    background-color: transparent;
    background-image: none;
    overflow: visible;
}
html:not(.dark) .hero-banner > .hero-content::after,
html:not(.dark) .cta-about-band > .hero-content::after,
html:not(.dark) .hero-content::after {
    display: none;
}
.hero-content.is-visible {
    opacity: 1;
    transform: none;
}
.hero-banner .hero-copy,
.hero-content .hero-copy,
.hero-copy {
    position: relative;
    z-index: 1;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}
@media (min-width: 768px) {
    .hero-banner > .hero-content,
    .cta-about-band > .hero-content,
    .hero-content {
        padding: 0.75rem 0 1.35rem;
    }
}

/* #about — continue midnight wash (no cream seam / no grid in dark) */
html.dark #about {
    background-color: transparent;
    background-image: none;
}
html.dark #about::before {
    display: none;
}
html.dark #about .section-grid-pattern {
    display: none;
}
/* Hide warm shimmer inside midnight About (avoids cream sheen flash) */
html.dark #about > .bg-shimmer-layer {
    display: none;
}
html.dark #about > .container {
    position: relative;
    z-index: 2;
}
/* Light: transparent — cream comes from band + shared page soft gradient */
html:not(.dark) #about {
    background-color: transparent;
    background-image: none;
}
html:not(.dark) #about .section-grid-pattern {
    display: none;
}

.hero-desktop .hero-panel.is-hovered {
    z-index: 12;
}
.hero-desktop .hero-panel.is-hovered::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 8;
}

/* Soft vertical seams between panels (dealer-grade: black vignette, not hard cuts) */
.hero-panel-shade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(2.5rem, 7vw, 5.5rem);
    pointer-events: none;
    z-index: 4;
}
.hero-panel-shade--left {
    left: 0;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 42%,
        transparent 100%);
}
.hero-panel-shade--right {
    right: 0;
    background: linear-gradient(to left,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 42%,
        transparent 100%);
}

/* Gentle light bleed on seams — slow, low-contrast */
.hero-seam-glow {
    position: absolute;
    top: 12%;
    bottom: 38%;
    width: 1px;
    pointer-events: none;
    z-index: 7;
    opacity: 0.22;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 248, 240, 0.35) 28%,
        rgba(227, 6, 19, 0.12) 50%,
        rgba(255, 248, 240, 0.28) 72%,
        transparent 100%);
    box-shadow:
        0 0 18px 6px rgba(255, 250, 240, 0.06),
        0 0 40px 14px rgba(227, 6, 19, 0.04);
}
.hero-seam-glow--left { left: 0; }
.hero-seam-glow--right { right: 0; }
.hero-banner.hero-ready .hero-seam-glow {
    animation: hero-seam-breathe 7.5s ease-in-out infinite;
}
.hero-banner.hero-ready .hero-panel[data-car="center"] .hero-seam-glow--left {
    animation-delay: 1.1s;
}
.hero-banner.hero-ready .hero-panel[data-car="center"] .hero-seam-glow--right {
    animation-delay: 2.4s;
}
.hero-banner.hero-ready .hero-panel[data-car="right"] .hero-seam-glow--left {
    animation-delay: 0.6s;
}
@keyframes hero-seam-breathe {
    0%, 100% { opacity: 0.14; }
    50% { opacity: 0.32; }
}

/* Soft fade of car strip into midnight / warm band (no hard cream cut) */
.hero-strip-fade {
    position: absolute;
    inset: 0;
    z-index: 16;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            rgba(5, 5, 8, 0.28) 0%,
            transparent 14%,
            transparent 58%,
            rgba(12, 10, 20, 0.35) 78%,
            rgba(12, 10, 20, 0.72) 90%,
            #0c0a14 100%);
}
html:not(.dark) .hero-strip-fade {
    background:
        linear-gradient(to bottom,
            rgba(5, 5, 8, 0.28) 0%,
            transparent 14%,
            transparent 52%,
            rgba(26, 24, 22, 0.45) 72%,
            rgba(61, 56, 50, 0.75) 86%,
            #1a1816 100%);
}
/* Global darken over cars — mask out bottom so stage site-bg shows through */
.hero-global-overlay {
    -webkit-mask-image: linear-gradient(to bottom,
        #000 0%,
        #000 62%,
        rgba(0, 0, 0, 0.45) 82%,
        transparent 100%);
    mask-image: linear-gradient(to bottom,
        #000 0%,
        #000 62%,
        rgba(0, 0, 0, 0.45) 82%,
        transparent 100%);
}
@media (max-width: 767px) {
    .hero-stage {
        height: clamp(480px, 68vh, 680px);
    }
}

/* Desktop: cars fill the stage — large, clear, soft bottom mask into page */
.hero-desktop .hero-panel[data-car="left"] .hero-panel-media,
.hero-desktop .hero-panel[data-car="center"] .hero-panel-media,
.hero-desktop .hero-panel[data-car="right"] .hero-panel-media {
    background-size: auto 115%;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom,
        #000 0%,
        #000 68%,
        rgba(0, 0, 0, 0.75) 88%,
        transparent 100%);
    mask-image: linear-gradient(to bottom,
        #000 0%,
        #000 68%,
        rgba(0, 0, 0, 0.75) 88%,
        transparent 100%);
}
/* BMW angled: bias right so both headlights stay in the tall crop */
.hero-desktop .hero-panel[data-car="left"] .hero-panel-media {
    background-position: 70% 48%;
}
.hero-desktop .hero-panel[data-car="center"] .hero-panel-media {
    background-position: center 48%;
}
.hero-desktop .hero-panel[data-car="right"] .hero-panel-media {
    background-position: center 48%;
}

/* Mobile stacked panels — cars fill each row */
.hero-mobile-stack .hero-panel-media {
    background-size: cover !important;
    background-position: center 48% !important;
    background-repeat: no-repeat;
}
.hero-mobile-stack .hero-panel[data-car="left"] .hero-panel-media {
    background-position: 65% 48% !important;
}

.hero-cta-pulse {
    box-shadow: 0 4px 28px rgba(227, 6, 19, 0.55);
}
/* One short attention pulse after content appears, then static */
.hero-content.is-visible .hero-cta-pulse {
    animation: hero-cta-pulse 1.6s ease-out 1;
}
@keyframes hero-cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 4px 28px rgba(227, 6, 19, 0.55); }
}

/* Theme transition */
.theme-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
    background: #E30613;
    opacity: 0;
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
.theme-transition-overlay.is-active { opacity: 0.15; }

/* Social fan */
.social-fan-items {
    position: absolute;
    bottom: 4rem;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-fan.is-open .social-fan-items {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.social-fan-item {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #fff;
    color: rgb(55 65 81);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
}
.dark .social-fan-item { background: rgb(31 41 55); color: rgb(229 231 235); }
.social-fan-item:hover { background: #E30613; color: #fff; }
.social-fan.is-open .social-fan-item { transform: scale(1); }
.social-fan.is-open .social-fan-item:nth-child(1) { transition-delay: 0.05s; }
.social-fan.is-open .social-fan-item:nth-child(2) { transition-delay: 0.1s; }
.social-fan.is-open .social-fan-item:nth-child(3) { transition-delay: 0.15s; }
.social-fan.is-open .social-fan-item:nth-child(4) { transition-delay: 0.2s; }
.social-fan.is-open .social-fan-item:nth-child(5) { transition-delay: 0.25s; }
.social-fan.is-open .social-fan-item:nth-child(6) { transition-delay: 0.3s; }
.social-fan.is-open .social-fan-item:nth-child(7) { transition-delay: 0.35s; }
.social-fan.is-open #social-fan-icon { transform: rotate(45deg); }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section title with red underline */
.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
}

/* Night test-drive (neon dark) */
html.dark body {
    background: #050505;
    color: #f5f5f5;
}
html.dark .glass-card {
    border-color: rgba(227, 6, 19, 0.35);
    background: rgba(12, 12, 14, 0.75);
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.12);
}
html.dark .glass-card:hover {
    box-shadow: 0 0 28px rgba(227, 6, 19, 0.4);
    border-color: rgba(255, 26, 26, 0.55);
}
html.dark .neon-heading {
    text-shadow: 0 0 12px rgba(227, 6, 19, 0.55), 0 0 28px rgba(255, 26, 26, 0.25);
}

/* Deal of the day — gold frame */
.car-card.is-deal {
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.35), 0 8px 24px rgba(212, 168, 67, 0.18);
}
.car-card.is-deal:hover {
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.5), 0 12px 32px rgba(212, 168, 67, 0.28), 0 0 30px rgba(200, 16, 46, 0.2);
}

/* Card tilt */
.car-card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}
.car-card-tilt.is-tilting {
    will-change: transform;
}

/* Filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid var(--premium-border);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 252, 247, 0.6);
}
.dark .filter-chip { border-color: rgb(55 65 81); background: rgba(17, 24, 39, 0.6); }
.filter-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-chip.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Country accordion */
.country-card {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(200, 16, 46, 0.1);
    background: var(--premium-card);
    backdrop-filter: blur(16px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.dark .country-card {
    border-color: rgba(227, 6, 19, 0.3);
    background: rgba(12, 12, 14, 0.8);
}
.country-card:hover {
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: var(--premium-shadow-hover);
    transform: translateY(-2px);
}
.country-card.is-open {
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(200, 16, 46, 0.12);
}
.country-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 1.75rem;
    text-align: left;
    cursor: pointer;
}
.country-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.country-card.is-open .country-card-body { max-height: 2400px; }
.country-card-chevron { transition: transform 0.3s; }
.country-card.is-open .country-card-chevron { transform: rotate(180deg); }

/* Compare bar */
.compare-bar {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(120%);
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 2rem);
}
.compare-bar.is-visible { transform: translateX(-50%) translateY(0); }

/* Favorite heart — flat layer so card 3D tilt does not skew the icon */
.fav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transform: translateZ(32px);
    transform-style: flat;
    transition: color 0.2s, background 0.2s;
}
.fav-btn-icon {
    width: 1rem;
    height: 1rem;
    display: block;
    flex-shrink: 0;
    transform-origin: center center;
}
.fav-btn.is-active { color: #FF1A1A; }
.fav-btn.is-pop .fav-btn-icon { animation: heart-pop 0.45s ease; }
@keyframes heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

/* Preloader — glowing brand wordmark (ref video) */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s;
}
.site-preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.preloader-word {
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 6vw, 3.2rem);
    letter-spacing: 0.08em;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35))
            drop-shadow(0 0 40px rgba(227, 6, 19, 0.25));
}
.preloader-part {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    animation: preloader-part-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.preloader-part.is-white { color: #fff; }
.preloader-part.is-accent {
    color: #E30613;
    text-shadow: 0 0 22px rgba(227, 6, 19, 0.75);
}
.preloader-part:nth-child(1) { animation-delay: 0.15s; }
.preloader-part:nth-child(2) { animation-delay: 0.35s; }
.preloader-part:nth-child(3) { animation-delay: 0.55s; }
@keyframes preloader-part-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.preloader-line {
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #E30613 20%, #ff4d4d 50%, #E30613 80%, transparent);
    box-shadow: 0 0 12px 2px rgba(227, 6, 19, 0.85), 0 0 28px rgba(255, 80, 80, 0.45);
    animation: preloader-line-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}
@keyframes preloader-line-in {
    to { width: min(280px, 62vw); }
}

/* Custom cursor — red circle, always on (desktop) */
html.has-custom-cursor,
html.has-custom-cursor * {
    cursor: none !important;
}
.site-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 2147483647;
    pointer-events: none !important;
    transform: translate3d(-100px, -100px, 0);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.site-cursor.is-ready.is-on {
    opacity: 1;
}
.site-cursor-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid #E30613;
    background: #E30613;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.35),
        0 0 12px 3px rgba(227, 6, 19, 0.7);
    transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                margin 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.2s,
                box-shadow 0.2s;
}
.site-cursor.is-hover .site-cursor-circle {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    background: rgba(227, 6, 19, 0.35);
    border-width: 2px;
    animation: site-cursor-pulse 1s ease-in-out infinite;
}
@keyframes site-cursor-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.45), 0 0 14px 3px rgba(227, 6, 19, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(227, 6, 19, 0), 0 0 18px 5px rgba(227, 6, 19, 0.35); }
}
@media (max-width: 767px) {
    html.has-custom-cursor,
    html.has-custom-cursor * { cursor: auto !important; }
    .site-cursor { display: none !important; }
}

/* Scroll to top — left */
.scroll-top-btn {
    position: fixed;
    left: 1.25rem;
    right: auto;
    bottom: 1.5rem;
    z-index: 60;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(227, 6, 19, 0.35);
    background: rgba(20, 16, 16, 0.72);
    color: #fff;
    display: grid;
    place-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s, border-color 0.2s;
}
.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
    background: #E30613;
    border-color: #E30613;
}
.scroll-top-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}
.dark .scroll-top-btn {
    background: rgba(12, 12, 12, 0.8);
}
@media (max-width: 640px) {
    .scroll-top-btn {
        left: 1rem;
        right: auto;
        bottom: 5.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Parallax decorative blobs (3 layers) */
.parallax-blob {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
}
.parallax-blob-a {
    width: 280px;
    height: 280px;
    top: 8%;
    left: -4%;
    background: rgba(227, 6, 19, 0.16);
}
.parallax-blob-b {
    width: 360px;
    height: 360px;
    top: 40%;
    right: -8%;
    background: rgba(255, 26, 26, 0.1);
}
.parallax-blob-c {
    width: 220px;
    height: 220px;
    bottom: 6%;
    left: 35%;
    background: rgba(227, 6, 19, 0.08);
}
.parallax-layer {
    transition: transform 0.08s linear;
}
.video-bg-section > .parallax-blob { z-index: 1; }
.video-bg-section > .video-bg-scrim { z-index: 1; }
.video-bg-section > .container { z-index: 2; }

.twogis-map-frame {
    height: 360px;
    min-height: 280px;
}
@media (min-width: 1024px) {
    .twogis-map-frame { height: 420px; }
}
.twogis-rating-badge {
    min-width: 220px;
}

/* Calculator */
.calc-range {
    width: 100%;
    accent-color: #E30613;
}

/* Compare modal */
.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.compare-modal.is-open { display: flex; }
.compare-modal-panel {
    width: min(960px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.5rem;
}
.dark .compare-modal-panel { background: #0c0c0e; border: 1px solid rgba(227, 6, 19, 0.35); }

/* 3D viewer */
.viewer-3d {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    overflow: hidden;
    background: #111;
    perspective: 900px;
}
.viewer-3d-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.05s linear;
}
.viewer-3d-stage img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}

/* Hero radial burst */
.hero-radial {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    background: radial-gradient(circle at 50% 55%, rgba(255, 240, 200, 0.12) 0%, transparent 42%);
    opacity: 0;
}

/* Mobile hero stacked */
@media (max-width: 767px) {
    .hero-mobile-stack {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .hero-mobile-stack > div {
        flex: 1;
        background-size: cover;
        background-position: center;
        position: relative;
    }
}

/* Animated car video backgrounds */
.video-bg-section {
    position: relative;
    overflow: hidden;
}
.video-bg-section > .video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: saturate(1.05) contrast(1.05);
    transition: transform 0.6s ease;
}
/* Country drill-in uses virtual showroom (.catalog-section--showroom), not video */
.video-bg-section > .video-bg-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5,5,5,0.72) 0%, rgba(5,5,5,0.55) 45%, rgba(5,5,5,0.78) 100%);
}
/* Dark home catalog: soft midnight scrim (no harsh black stripe bands) */
html.dark .video-bg-section:not(.catalog-section--video) > .video-bg-scrim {
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(56, 36, 88, 0.2) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8, 6, 14, 0.78) 0%, rgba(10, 8, 16, 0.68) 45%, rgba(8, 6, 12, 0.82) 100%);
}
/* Catalog video (банер.docx): always dark overlay ~70–80%, even in light theme */
.catalog-section--video.video-bg-section > .video-bg-scrim,
.catalog-section--video .catalog-video-overlay {
    background:
        linear-gradient(180deg, rgba(20, 16, 12, 0.78) 0%, rgba(20, 16, 12, 0.72) 50%, rgba(20, 16, 12, 0.82) 100%);
}
html.dark .catalog-section--video.video-bg-section > .video-bg-scrim,
html.dark .catalog-section--video .catalog-video-overlay {
    background:
        radial-gradient(ellipse 90% 50% at 50% 20%, rgba(56, 36, 88, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(6, 6, 10, 0.78) 0%, rgba(8, 6, 14, 0.72) 50%, rgba(6, 6, 10, 0.84) 100%);
}
/* Light theme catalog video: lighter cream wash so footage stays visible */
html:not(.dark) .video-bg-section:not(.catalog-section--video) > .video-bg-scrim {
    background:
        linear-gradient(180deg, rgba(251,247,242,0.48) 0%, rgba(245,239,231,0.32) 45%, rgba(251,247,242,0.55) 100%);
}
/* Don't paint solid cream under the video */
html:not(.dark) #catalog.video-bg-section.section-warm-alt {
    background-color: transparent;
}
/* Soften the red/cream shimmer sweep over the video */
html:not(.dark) #catalog > .video-bg-scrim::after {
    opacity: 0.35;
}
/* Headings stay readable over brighter video */
html:not(.dark) #catalog .section-title,
html:not(.dark) #catalog .neon-heading {
    color: var(--premium-heading);
    text-shadow:
        0 1px 2px rgba(251, 247, 242, 1),
        0 1px 16px rgba(251, 247, 242, 0.98),
        0 0 32px rgba(251, 247, 242, 0.75);
}
/* Subtitle / muted copy: darker ink + cream halo so it reads on video */
html:not(.dark) #catalog .text-muted {
    color: #2A241F;
    text-shadow:
        0 1px 2px rgba(251, 247, 242, 1),
        0 1px 14px rgba(251, 247, 242, 1),
        0 0 26px rgba(251, 247, 242, 0.9);
}
/* «Весь каталог» stays crisp over footage */
html:not(.dark) #catalog .btn-secondary {
    color: var(--premium-heading);
    background: rgba(255, 252, 247, 0.94);
    border-color: rgba(28, 26, 23, 0.2);
    box-shadow: 0 2px 14px rgba(251, 247, 242, 0.85);
}
/* Country cards: slightly more opaque so type stays crisp */
html:not(.dark) #catalog .country-card {
    background: rgba(255, 252, 247, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
html:not(.dark) #catalog .country-card .text-muted {
    color: #4A4038;
    text-shadow: none;
}
.catalog-video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.catalog-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.catalog-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.catalog-section--video .catalog-heading h1,
.catalog-section--video .neon-heading,
.catalog-section--video .section-title {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.catalog-section--video .text-muted {
    color: rgba(255, 255, 255, 0.7);
}
.video-bg-section > .container,
.video-bg-section > .relative {
    position: relative;
    z-index: 2;
}

/* Sharper catalog photos */
.car-card img,
#main-photo,
.viewer-3d-stage img {
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* ═══ Virtual showroom floor (country drill-in) — from ФОН.docx ═══ */
.section-divider--to-showroom {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 16, 46, 0.15) 15%,
        rgba(200, 16, 46, 0.4) 40%,
        rgba(200, 16, 46, 0.6) 50%,
        rgba(200, 16, 46, 0.4) 60%,
        rgba(200, 16, 46, 0.15) 85%,
        transparent 100%
    );
}
html.dark .section-divider--to-showroom {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(168, 110, 200, 0.12) 20%,
        rgba(227, 6, 19, 0.18) 50%,
        rgba(168, 110, 200, 0.12) 80%,
        transparent 100%
    );
    box-shadow: none;
    opacity: 0.75;
}

.catalog-section--showroom {
    --spotlight-shift-x: 0px;
    --spotlight-shift-y: 0px;
    position: relative;
    overflow: hidden;
}

/* Light showroom — larger soft cream wash (no ruled lines / stripe bands) */
html:not(.dark) .catalog-section--showroom {
    background-color: #F0E9DF;
    background-image:
        radial-gradient(ellipse 140% 90% at calc(20% + var(--spotlight-shift-x)) calc(18% + var(--spotlight-shift-y)), rgba(255, 252, 247, 0.95) 0%, transparent 62%),
        radial-gradient(ellipse 120% 85% at calc(82% - var(--spotlight-shift-x)) calc(22% + var(--spotlight-shift-y)), rgba(255, 244, 228, 0.72) 0%, transparent 58%),
        radial-gradient(ellipse 130% 95% at calc(50% + var(--spotlight-shift-x)) calc(55% + var(--spotlight-shift-y)), rgba(245, 230, 210, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(220, 200, 175, 0.45) 0%, transparent 55%),
        linear-gradient(165deg, #FFFCFA 0%, #FBF7F2 22%, #F3EBE0 55%, #E8DFD0 100%);
}
html:not(.dark) .catalog-section--showroom::before {
    content: none;
    display: none;
}
html:not(.dark) .catalog-section--showroom::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 120% at 0% 50%, rgba(210, 195, 170, 0.35) 0%, transparent 58%),
        radial-gradient(ellipse 70% 120% at 100% 50%, rgba(210, 195, 170, 0.35) 0%, transparent 58%);
}

/* Dark showroom — soft midnight like #about; shared .page-pattern lattice shows through */
html.dark .catalog-section--showroom {
    background-color: transparent;
    background-image:
        radial-gradient(ellipse 100% 70% at calc(15% + var(--spotlight-shift-x)) calc(12% + var(--spotlight-shift-y)), rgba(56, 36, 88, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 90% 65% at calc(88% - var(--spotlight-shift-x)) calc(18% + var(--spotlight-shift-y)), rgba(48, 32, 72, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 110% 80% at calc(50% + var(--spotlight-shift-x)) calc(40% + var(--spotlight-shift-y)), rgba(227, 6, 19, 0.05) 0%, transparent 55%),
        linear-gradient(165deg, rgba(8, 6, 14, 0.72) 0%, rgba(10, 8, 18, 0.66) 35%, rgba(12, 10, 20, 0.68) 65%, rgba(6, 6, 10, 0.72) 100%);
}
html.dark .catalog-section--showroom::before {
    content: none;
    display: none;
}
html.dark .catalog-section--showroom::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 65% 120% at 0% 50%, rgba(0, 0, 0, 0.28) 0%, transparent 58%),
        radial-gradient(ellipse 65% 120% at 100% 50%, rgba(0, 0, 0, 0.28) 0%, transparent 58%);
}

.catalog-section--showroom > .container { position: relative; z-index: 2; }

/* Showroom car cards */
html:not(.dark) .catalog-section--showroom .car-card {
    background: rgba(255, 252, 247, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 170, 155, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
html:not(.dark) .catalog-section--showroom .car-card:hover {
    background: rgba(255, 252, 247, 0.85);
    backdrop-filter: blur(20px);
    border-color: rgba(200, 16, 46, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(200, 16, 46, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transform: translateY(-6px);
}
html.dark .catalog-section--showroom .car-card {
    background: rgba(20, 18, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
html.dark .catalog-section--showroom .car-card:hover {
    background: rgba(25, 22, 20, 0.85);
    backdrop-filter: blur(28px);
    border-color: rgba(227, 6, 19, 0.5);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(227, 6, 19, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transform: translateY(-6px);
}

/* Pedestal reflection under cards */
.catalog-section--showroom .car-card::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 10%;
    width: 80%;
    height: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.03) 40%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    transition: all 0.4s ease;
}
.catalog-section--showroom .car-card:hover::after {
    bottom: -20px;
    width: 70%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.04) 40%, transparent 100%);
}
html.dark .catalog-section--showroom .car-card::after {
    background: linear-gradient(180deg, rgba(227, 6, 19, 0.08) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
}

/* Catalog heading in showroom */
.catalog-heading { position: relative; z-index: 2; text-align: center; }
.catalog-heading h1 { letter-spacing: 0.06em; }
html:not(.dark) .catalog-section--showroom .catalog-heading h1 {
    color: #14110E;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
html.dark .catalog-section--showroom .catalog-heading h1 {
    color: #F0F0F0;
    text-shadow: 0 0 40px rgba(227, 6, 19, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
}
.catalog-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 16px auto 0;
}
html:not(.dark) .catalog-section--showroom .catalog-heading::after {
    background: linear-gradient(90deg, #C8102E, #A00D23);
}
html.dark .catalog-section--showroom .catalog-heading::after {
    background: linear-gradient(90deg, #E30613, #FF3333, #E30613);
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.5);
}

/* Showroom filter chips */
html:not(.dark) .catalog-section--showroom .filter-chip {
    background: rgba(255, 252, 247, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(180, 170, 155, 0.4);
    color: #1C1A17;
}
html:not(.dark) .catalog-section--showroom .filter-chip:hover {
    background: rgba(255, 252, 247, 0.85);
    border-color: rgba(180, 170, 155, 0.6);
}
html:not(.dark) .catalog-section--showroom .filter-chip.is-active {
    background: #C8102E;
    border-color: #C8102E;
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}
html.dark .catalog-section--showroom .filter-chip {
    background: rgba(20, 18, 16, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #999;
}
html.dark .catalog-section--showroom .filter-chip:hover {
    background: rgba(30, 28, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ccc;
}
html.dark .catalog-section--showroom .filter-chip.is-active {
    background: rgba(227, 6, 19, 0.25);
    border-color: rgba(227, 6, 19, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.2);
}

/* Dark theme floating particles */
.showroom-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    display: none;
}
html.dark .catalog-section--showroom .showroom-particles { display: block; }
.showroom-particles .particle {
    position: absolute;
    left: var(--x);
    bottom: -10px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--particle-color, rgba(212, 168, 67, 0.45));
    opacity: 0.35;
    filter: blur(0.5px);
}
.showroom-particles .particle:nth-child(even) { --particle-color: rgba(255, 255, 255, 0.3); }
.showroom-particles .particle:nth-child(3n) { --particle-color: rgba(200, 16, 46, 0.3); }
/* Only a few particles drift — avoids N infinite animations */
.showroom-particles .particle:nth-child(-n+4) {
    animation: particle-float 14s var(--delay) ease-in-out infinite;
}
@keyframes particle-float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    15% { opacity: 0.45; }
    85% { opacity: 0.15; }
    100% { transform: translateY(-55vh) translateX(18px); opacity: 0; }
}

@media (max-width: 767px) {
    html:not(.dark) .catalog-section--showroom {
        background-image:
            radial-gradient(ellipse 120% 80% at 50% 20%, rgba(255, 252, 247, 0.9) 0%, transparent 58%),
            radial-gradient(ellipse 100% 70% at 50% 85%, rgba(232, 216, 192, 0.55) 0%, transparent 55%),
            linear-gradient(165deg, #FFFCFA 0%, #F5EFE7 50%, #E8DFD0 100%);
    }
    html.dark .catalog-section--showroom {
        background-image:
            radial-gradient(ellipse 100% 70% at 50% 15%, rgba(56, 36, 88, 0.2) 0%, transparent 55%),
            radial-gradient(ellipse 90% 60% at 50% 80%, rgba(227, 6, 19, 0.04) 0%, transparent 50%),
            linear-gradient(165deg, rgba(8, 6, 14, 0.72) 0%, rgba(10, 8, 18, 0.66) 45%, rgba(12, 10, 20, 0.7) 100%);
    }
    .catalog-section--showroom .car-card,
    html.dark .catalog-section--showroom .car-card {
        backdrop-filter: blur(8px);
    }
    .catalog-section--showroom .car-card::after { display: none; }
    .showroom-particles .particle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-particles .particle { animation: none; display: none; }
    .hero-content.is-visible .hero-cta-pulse { animation: none; }
    .hero-banner.hero-ready .hero-seam-glow { animation: none; opacity: 0.2; }
}

/* Mobile sticky CTA on car detail */
.car-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}
.car-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.car-sticky-btn--call {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.car-sticky-btn--lead {
    background: var(--color-accent, #E30613);
    color: #fff;
}
body:has(.car-sticky-bar) {
    padding-bottom: 4.5rem;
}
@media (min-width: 768px) {
    body:has(.car-sticky-bar) {
        padding-bottom: 0;
    }
}
