/*
Theme Name: Diverzity Cars
Theme URI: https://diverzitycars.sk
Description: Moderná dark téma pre DiverzityCars — predaj, kúpa a import áut na mieru. Inšpirovaná Diverzity Studios s automotive akcentom.
Version: 1.0.0
Author: Diverzity Studios
Text Domain: diverzitycars
*/

/* ===================================================================
 * 1. DESIGN TOKENS
 * =================================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-elevated: #1c1c1c;
    --bg-surface: #232323;

    /* Brand */
    --red: #E63946;
    --red-bright: #ff4d5e;
    --red-dark: #b8202e;
    --silver: #c8ccd4;
    --silver-dark: #8a8f99;
    --steel: #3a3f47;

    /* Text */
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #b6bac3;
    --text-muted: #7a7e88;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(230, 57, 70, 0.35);

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.7);
    --shadow-red: 0 8px 32px rgba(230, 57, 70, 0.25);

    /* Glass */
    --glass-bg: rgba(20, 20, 20, 0.55);
    --glass-blur: blur(14px) saturate(140%);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Easing */
    --ease-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Layout */
    --container: 1180px;
    --container-narrow: 880px;
}

/* ===================================================================
 * 2. RESET / BASE
 * =================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

::selection { background: var(--red); color: #fff; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--red-bright); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

/* ===================================================================
 * 3. BACKGROUND ATMOSPHERE
 * =================================================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(230, 57, 70, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 88% 78%, rgba(230, 57, 70, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: -3;
    animation: ambientFloat 22s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 70% 12%, rgba(200, 204, 212, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: -2;
    animation: ambientFloat 28s ease-in-out infinite reverse;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate3d(-15px, -8px, 0) scale(1); opacity: 1; }
    50%      { transform: translate3d(15px, 12px, 0) scale(1.08); opacity: 0.85; }
}

/* Speed lines (cars accent) */
.bg-streaks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.45;
}
.bg-streaks .streak {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.5), transparent);
    filter: blur(0.5px);
    animation: streak linear infinite;
}
.bg-streaks .streak:nth-child(1) { top: 18%; left: -20%; width: 30vw; animation-duration: 9s; animation-delay: 0s; }
.bg-streaks .streak:nth-child(2) { top: 38%; left: -25%; width: 22vw; animation-duration: 12s; animation-delay: 2s; opacity: 0.6; }
.bg-streaks .streak:nth-child(3) { top: 64%; left: -30%; width: 28vw; animation-duration: 11s; animation-delay: 4s; }
.bg-streaks .streak:nth-child(4) { top: 82%; left: -22%; width: 20vw; animation-duration: 14s; animation-delay: 1s; opacity: 0.5; }

@keyframes streak {
    0%   { transform: translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(140vw); opacity: 0; }
}

/* ===================================================================
 * 4. LAYOUT PRIMITIVES
 * =================================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 60px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 120px 0;
    position: relative;
}

.section--tight { padding: 80px 0; }
.section--hero  { padding: 160px 0 100px; }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    padding: 8px 16px;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    background: rgba(230, 57, 70, 0.06);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ===================================================================
 * 5. BUTTONS
 * =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(230, 57, 70, 0.4);
    color: #fff;
}
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s;
}
.btn--primary:hover::after { left: 130%; }

.btn--ghost {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-color: var(--border-strong);
    backdrop-filter: var(--glass-blur);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

.btn--outline-red {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn--outline-red:hover {
    background: var(--red);
    color: #fff;
}

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===================================================================
 * 6. HEADER / NAV
 * =================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid transparent;
    transition: all var(--ease);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.85);
    border-bottom-color: var(--border-subtle);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.site-branding img {
    height: 64px;
    width: auto;
    transition: height var(--ease);
}
.site-header.scrolled .site-branding img { height: 52px; }

.site-logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.site-logo-text span { color: var(--red); }

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu, .main-navigation ul {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
}

.menu a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.97rem;
    border-radius: var(--radius-sm);
    transition: all var(--ease-fast);
    position: relative;
}
.menu a:hover, .menu .current-menu-item > a, .menu .current_page_item > a {
    color: #fff;
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 0; height: 2px;
    background: var(--red);
    transform: translateX(-50%);
    transition: width var(--ease);
}
.menu a:hover::after, .menu .current-menu-item > a::after { width: calc(100% - 32px); }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--ease);
}
.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
    color: #fff;
}

/* Hamburger */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}
.hamburger-line {
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--ease);
}
.menu-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
 * 7. HERO
 * =================================================================== */
.hero {
    position: relative;
    padding: 200px 0 120px;
    overflow: hidden;
    isolation: isolate;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero__title {
    margin-bottom: 24px;
}
.hero__title .accent {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}
.hero__stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    display: block;
}
.hero__stat-num span { color: var(--red); }
.hero__stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Hero visual */
.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    justify-self: end;
    width: 100%;
}
.hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 50%, rgba(230, 57, 70, 0.35) 0%, transparent 65%);
    filter: blur(40px);
    z-index: -1;
}

.hero__gauge {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    background: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.04), transparent 60%);
    overflow: hidden;
}
.hero__gauge::before, .hero__gauge::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}
.hero__gauge::before { inset: 30px; }
.hero__gauge::after  { inset: 70px; border-color: var(--border-accent); }

.hero__needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red-bright) 100%);
    transform-origin: left center;
    transform: translate(0, -50%) rotate(-130deg);
    border-radius: 4px;
    box-shadow: 0 0 12px var(--red);
    animation: needleSwing 7s ease-in-out infinite;
}
.hero__needle-pivot {
    position: absolute;
    top: 50%; left: 50%;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--silver) 0%, var(--steel) 70%);
    transform: translate(-50%, -50%);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.3);
}

.hero__logo-mark {
    position: absolute;
    inset: 12%;
    background-image: url('assets/logo-transparent.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
    filter: drop-shadow(0 6px 30px rgba(230, 57, 70, 0.35));
    z-index: 2;
    pointer-events: none;
}

@keyframes needleSwing {
    0%, 100% { transform: translate(0, -50%) rotate(-130deg); }
    50%      { transform: translate(0, -50%) rotate(50deg); }
}

/* Tick marks */
.hero__ticks {
    position: absolute;
    inset: 0;
}
.hero__ticks span {
    position: absolute;
    top: 50%; left: 50%;
    width: 2px; height: 14px;
    background: var(--silver-dark);
    transform-origin: 50% 130px;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(-46%);
    opacity: 0.6;
}
.hero__ticks span.is-hot { background: var(--red); opacity: 1; box-shadow: 0 0 6px var(--red); }

/* ===================================================================
 * 8. CARDS
 * =================================================================== */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all var(--ease);
    overflow: hidden;
}
.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    transition: opacity var(--ease);
}
.card:hover::before { opacity: 1; }

.card__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(230, 57, 70, 0.05));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--red);
    font-size: 1.4rem;
}

.card__title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card__desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Grid */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================================================================
 * 9. CAR CARD
 * =================================================================== */
.car-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
}
.car-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.car-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-secondary);
    overflow: hidden;
}
.car-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-slow);
}
.car-card:hover .car-card__media img { transform: scale(1.06); }

.car-card__badge {
    position: absolute;
    top: 16px; left: 16px;
    padding: 6px 12px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.car-card__badge--hot { background: var(--red); border-color: var(--red); }
.car-card__badge--reserved { background: #d97706; border-color: #d97706; }
.car-card__badge--sold { background: #555; border-color: #555; }

.car-card__price {
    position: absolute;
    bottom: 16px; right: 16px;
    padding: 10px 16px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.car-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-card__brand {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.car-card__title {
    font-size: 1.3rem;
    margin-bottom: 14px;
    line-height: 1.3;
}
.car-card__title a { color: #fff; }
.car-card__title a:hover { color: var(--red); }

.car-card__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 14px;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}
.car-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.car-spec__icon {
    color: var(--red);
    width: 16px;
    text-align: center;
}

.car-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ===================================================================
 * 10. FILTERS (inventory)
 * =================================================================== */
.filters {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
}

.filters__row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: end;
}

.field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color var(--ease-fast), background var(--ease-fast);
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--red);
    background: var(--bg-surface);
}
.field-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.field-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--silver-dark) 50%),
                      linear-gradient(135deg, var(--silver-dark) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1em + 4px),
                         calc(100% - 13px) calc(1em + 4px);
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

/* ===================================================================
 * 11. SINGLE CAR DETAIL
 * =================================================================== */
.car-detail {
    padding: 140px 0 100px;
}

.car-detail__layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.car-gallery__main {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}
.car-gallery__main img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.car-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.car-gallery__thumb {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--ease-fast);
    background: var(--bg-secondary);
}
.car-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-gallery__thumb.is-active { border-color: var(--red); }
.car-gallery__thumb:hover { border-color: var(--red-bright); }

.car-detail__sidebar {
    position: sticky;
    top: 120px;
}

.car-detail__brand {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}
.car-detail__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}
.car-detail__price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 18px 0 28px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.02));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: inline-block;
}

.spec-grid {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin: 24px 0 28px;
}
.spec-grid__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}
.spec-grid__row:last-child { border-bottom: none; }
.spec-grid__row .label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.spec-grid__row .val { color: #fff; font-weight: 500; text-align: right; }

.car-detail__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===================================================================
 * 12. IMPORT / CONFIGURATOR PAGE
 * =================================================================== */
.import-hero {
    padding: 180px 0 80px;
    text-align: center;
}
.import-hero__title { margin-bottom: 16px; }
.import-hero__lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 28px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0 100px;
}
.step {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: left;
    position: relative;
    transition: all var(--ease);
}
.step:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}
.step__num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step__desc { color: var(--text-secondary); font-size: 0.95rem; }

.config-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.config-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.config-form__field { margin-bottom: 22px; }
.config-form__field--full { grid-column: 1 / -1; }
.config-form__submit { margin-top: 12px; text-align: center; }

.form-feedback {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
}
.form-feedback.is-success {
    display: block;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #6ee7a7;
}
.form-feedback.is-error {
    display: block;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
    border: 1px solid var(--border-accent);
    color: var(--red-bright);
}

/* ===================================================================
 * 13. SERVICES SECTION
 * =================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--ease);
}
.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, transparent 60%, rgba(230, 57, 70, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--ease);
    z-index: -1;
}
.service-card:hover::after { opacity: 0.5; }

.service-card__icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(230, 57, 70, 0.05));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.6rem;
    margin-bottom: 22px;
    transition: transform var(--ease);
}
.service-card:hover .service-card__icon {
    transform: rotate(-5deg) scale(1.05);
}

.service-card__title {
    margin-bottom: 14px;
    font-size: 1.4rem;
}
.service-card__desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-card__price {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================================================================
 * 14. PROCESS / TIMELINE
 * =================================================================== */
.timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding-left: 48px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 16px;
    width: 2px;
    background: var(--border-subtle);
}
.timeline__step {
    position: relative;
    padding: 0 0 56px 0;
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__dot {
    position: absolute;
    left: -42px;
    top: 4px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-primary);
}
.timeline__title { font-size: 1.3rem; margin-bottom: 8px; }
.timeline__desc { color: var(--text-secondary); }

/* ===================================================================
 * 15. TESTIMONIALS
 * =================================================================== */
.testimonial {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--ease);
    position: relative;
}
.testimonial::before {
    content: '"';
    position: absolute;
    top: 0; left: 32px;
    font-size: 6rem;
    color: var(--red);
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial__quote {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 24px 0 24px;
    font-style: italic;
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.testimonial__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    overflow: hidden;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 600; color: #fff; }
.testimonial__pos { color: var(--text-muted); font-size: 0.88rem; }

/* ===================================================================
 * 16. CTA SECTIONS
 * =================================================================== */
.cta-band {
    padding: 80px 0;
}
.cta-band__inner {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12) 0%, rgba(20, 20, 20, 0.6) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-band__inner::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.18), transparent 60%);
    pointer-events: none;
}
.cta-band__title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-band__lead { color: var(--text-secondary); }
.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* ===================================================================
 * 17. FOOTER
 * =================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 60px;
}
.footer-col h4 {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-col a:hover { color: var(--red); }

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--ease);
}
.footer-social a:hover {
    color: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ===================================================================
 * 18. PAGE / GENERIC CONTENT
 * =================================================================== */
.page-hero {
    padding: 180px 0 60px;
    text-align: center;
}
.page-hero__title { margin-bottom: 16px; }
.page-hero__lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
}

.entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 80px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #fff;
    margin: 36px 0 16px;
}
.entry-content p { margin-bottom: 18px; }
.entry-content a { color: var(--red); }
.entry-content a:hover { color: var(--red-bright); }
.entry-content ul, .entry-content ol { margin: 0 0 18px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius-md); margin: 24px 0; }
.entry-content blockquote {
    border-left: 3px solid var(--red);
    padding: 12px 24px;
    margin: 24px 0;
    background: var(--bg-elevated);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

/* ===================================================================
 * 19. CONTACT PAGE
 * =================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.contact-item:last-child { border-bottom: none; }
.contact-item__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(230, 57, 70, 0.1);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-item__label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-item__value { color: #fff; font-weight: 500; }
.contact-item__value a { color: #fff; }
.contact-item__value a:hover { color: var(--red); }

/* ===================================================================
 * 20. ANIMATIONS / SCROLL
 * =================================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--red-bright));
    z-index: 1100;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--red);
}

.scroll-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-slow), transform 0.7s var(--ease-slow);
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.7s var(--ease-slow), transform 0.7s var(--ease-slow);
}
.scroll-animate-scale.is-visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ===================================================================
 * 21. UTILITIES
 * =================================================================== */
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 36px; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important;
    word-wrap: normal !important;
}

/* ===================================================================
 * 22. RESPONSIVE
 * =================================================================== */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .hero__inner { grid-template-columns: 1fr; gap: 60px; }
    .hero__visual { justify-self: center; max-width: 420px; }
    .hero { padding: 160px 0 80px; }
    .grid-3, .grid-4, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .car-detail__layout { grid-template-columns: 1fr; gap: 40px; }
    .car-detail__sidebar { position: static; }
    .filters__row { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .cta-band__inner { grid-template-columns: 1fr; padding: 40px; text-align: center; }
    .cta-band__actions { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .section { padding: 90px 0; }
}

@media (max-width: 768px) {
    .container { padding: 0 22px; }
    .section { padding: 70px 0; }
    .hero { padding: 130px 0 60px; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Mobile menu */
    .menu-toggle { display: inline-flex; }
    .main-navigation > ul {
        position: fixed;
        top: 0; right: 0;
        width: 86vw; max-width: 360px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 28px 40px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--ease);
        z-index: 1050;
    }
    .main-navigation.is-open > ul { transform: translateX(0); }
    .main-navigation > ul a { padding: 14px 16px; font-size: 1.05rem; }
    .header-cta { display: none; }

    .grid-2, .grid-3, .grid-4, .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .filters__row { grid-template-columns: 1fr 1fr; }
    .config-form { padding: 28px; }
    .config-form__row { grid-template-columns: 1fr; gap: 0; }
    .steps { grid-template-columns: 1fr; }
    .car-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .testimonial { padding: 28px; }
    .car-detail { padding: 110px 0 60px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .filters__row { grid-template-columns: 1fr; }
    .hero__stats { grid-template-columns: 1fr; }
    .car-card__specs { grid-template-columns: 1fr; }
}

/* Body scroll lock when mobile menu open */
body.menu-open { overflow: hidden; }
