/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

/* === TOKENS === */
:root {
    --bg-void:        #080808;
    --bg-surface:     #0C0C0C;
    --bg-card:        #111111;
    --bg-elevated:    #171717;
    --border-subtle:  #1A1A1A;
    --border-mid:     #252525;
    --border-strong:  #333333;

    --gold:           #C9A84C;
    --gold-light:     #E2C879;
    --gold-dark:      #8B6F32;
    --gold-rgb:       201, 168, 76;

    --text-primary:   #F0EDE8;
    --text-secondary: #8A8580;
    --text-muted:     #4A4845;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-ui:      'Montserrat', sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --ease:    cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --t-fast:  0.18s;
    --t-mid:   0.32s;
    --t-slow:  0.52s;

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 18px;

    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 40px rgba(var(--gold-rgb), 0.14);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.90);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--border-mid);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    line-height: 1;
    user-select: none;
}

.header-divider {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    flex-shrink: 0;
}

.logo-wrapper .central-logo {
    width: 72px;
    height: auto;
}

/* Nav */
.sub-nav { width: 100%; display: flex; justify-content: center; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 44px;
    padding: 0;
}

.nav-item {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color var(--t-fast) var(--ease);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--t-mid) var(--ease);
}

.nav-item:hover { color: var(--text-primary); }
.nav-item:hover::after,
.nav-item.active::after { width: 100%; }
.nav-item.active { color: var(--gold); }

.nav-user {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    list-style: none;
}

.nav-btn-logout {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 3px;
    position: relative;
    transition: color var(--t-fast) var(--ease);
}
.nav-btn-logout::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--t-mid) var(--ease);
}
.nav-btn-logout:hover { color: var(--text-primary); }
.nav-btn-logout:hover::after { width: 100%; }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: #080808;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: var(--r-sm);
    transition: background var(--t-mid) var(--ease),
                transform var(--t-mid) var(--ease),
                box-shadow var(--t-mid) var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s var(--ease-out);
}

.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--gold-rgb), 0.32);
}

/* Outline button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 34px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    transition: border-color var(--t-mid) var(--ease),
                color var(--t-mid) var(--ease);
}

.btn-outline:hover {
    border-color: var(--gold-dark);
    color: var(--gold);
}

/* Section header component */
.section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 52px;
}

.section-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.section-label-line {
    flex: 1;
    height: 1px;
    background: var(--border-mid);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.15;
}

.section-title .accent {
    color: var(--gold);
    font-style: italic;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    min-height: 86vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 10%, rgba(var(--gold-rgb), 0.07) 0%, transparent 65%),
        linear-gradient(180deg, var(--bg-void) 0%, var(--bg-surface) 60%, var(--bg-void) 100%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    animation: fadeInDown 0.7s var(--ease) both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark));
}

.hero-eyebrow::after {
    background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 9vw, 100px);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 28px;
    animation: fadeInUp 0.7s var(--ease) 0.1s both;
}

.hero-title .accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 52px;
    line-height: 1.75;
    font-weight: 300;
    animation: fadeInUp 0.7s var(--ease) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease) 0.3s both;
}

/* Decorative grid line */
.hero-grid-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 64px;
    background: linear-gradient(180deg, transparent, var(--gold-dark));
    z-index: 1;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    max-width: 1200px;
    margin: 96px auto;
    padding: 0 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    overflow: hidden;
}

.feature-card {
    background: var(--bg-card);
    padding: 44px 40px;
    position: relative;
    transition: background var(--t-mid) var(--ease);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 0;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    transition: height var(--t-slow) var(--ease);
}

.feature-card:hover::before { height: 100%; }
.feature-card:hover { background: var(--bg-elevated); }

.feature-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    color: var(--border-mid);
    line-height: 1;
    margin-bottom: 20px;
    transition: color var(--t-mid) var(--ease);
    user-select: none;
}

.feature-card:hover .feature-number {
    color: rgba(var(--gold-rgb), 0.18);
}

.feature-card h3 {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 300;
}

/* ============================================================
   LATEST SECTION (HOME)
   ============================================================ */
.latest-section {
    max-width: 1400px;
    margin: 96px auto;
    padding: 0 40px;
}

/* ============================================================
   CAR GRID & CARDS
   ============================================================ */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
}

.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--t-mid) var(--ease),
                transform var(--t-mid) var(--ease),
                box-shadow var(--t-mid) var(--ease);
}

.car-card:hover {
    border-color: rgba(var(--gold-rgb), 0.38);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}

.car-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.car-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-slow) var(--ease);
}

.car-card:hover .car-image { transform: scale(1.05); }

.car-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-mid);
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.car-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

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

.car-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.car-price {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
    margin-bottom: 20px;
    flex: 1;
}

.car-spec-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-family: var(--font-ui);
    font-weight: 400;
    color: var(--text-secondary);
}

.car-spec-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.btn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 11px;
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--border-mid);
    transition: background var(--t-mid) var(--ease),
                color var(--t-mid) var(--ease),
                border-color var(--t-mid) var(--ease);
}

.btn-more:hover {
    background: var(--gold);
    color: #080808;
    border-color: var(--gold);
}

.no-cars {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-cars p {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.catalog-container {
    max-width: 1400px;
    margin: 44px auto;
    padding: 0 40px;
}

.filters-top {
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-md);
    padding: 22px 28px;
    margin-bottom: 40px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(8, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.filter-group { min-width: 0; }

.filter-btn-wrap { min-width: 110px; }

.filter-group.btn-container {
    flex: 0 0 auto;
    min-width: 136px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-void);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23C9A84C' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: rgba(var(--gold-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.1);
    outline: none;
}

.filter-group input::placeholder { color: var(--text-muted); }

.price-inputs { display: flex; gap: 10px; }

.btn-show {
    width: 100%;
    background: var(--gold);
    color: #080808;
    padding: 12px 20px;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background var(--t-mid) var(--ease),
                transform var(--t-fast) var(--ease);
}

.btn-show:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-show:active { transform: scale(0.98); }

.catalog-main { width: 100%; }

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.catalog-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--text-primary);
}

.catalog-title .accent {
    color: var(--gold);
    font-style: italic;
}

.sorting {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.08em;
}

.sorting select {
    background: transparent;
    color: var(--gold);
    border: none;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.35);
    padding: 3px 6px;
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-ui);
    -webkit-appearance: none;
    appearance: none;
}

/* ============================================================
   CAR DETAIL PAGE
   ============================================================ */
.detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 96px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 44px;
    transition: color var(--t-fast) var(--ease);
}

.back-link:hover { color: var(--gold); }

.detail-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.detail-gallery {
    position: sticky;
    top: 120px;
}

/* ---- Gallery ---- */
.g-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-elevated);
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: zoom-in;
}

.g-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.g-main-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.g-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-fast);
    pointer-events: none;
}
.g-main:hover .g-zoom-hint { opacity: 1; }

/* Thumbnail grid */
.g-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.g-thumb {
    width: 90px;
    height: 68px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--t-fast), opacity var(--t-fast);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb.active { border-color: var(--gold); }
.g-thumb:not(.active) { opacity: 0.65; }
.g-thumb:hover { opacity: 1; border-color: rgba(var(--gold-rgb),.5); }

.g-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: var(--bg-elevated);
}

.g-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.g-thumb-play svg {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
    color: #fff;
    opacity: 0.9;
}
.g-thumb--video { position: relative; }

.detail-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 1px solid var(--border-subtle);
    display: block;
}

.detail-no-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-elevated);
    border-radius: var(--r-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.detail-info {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-mid);
}

.detail-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.badge {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    border: 1px solid var(--border-mid);
    color: var(--text-secondary);
}

.badge-origin {
    border-color: rgba(var(--gold-rgb), 0.28);
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.05);
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.detail-price {
    font-family: var(--font-ui);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: 0.02em;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.specs-table tr { border-bottom: 1px solid var(--border-subtle); }
.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
    padding: 14px 0;
    font-size: 14px;
    vertical-align: middle;
}

.spec-label {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 42%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 28px;
    padding-top: 4px;
}

.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold);
    color: #080808;
    text-decoration: none;
    padding: 17px;
    border-radius: var(--r-sm);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background var(--t-mid) var(--ease),
                transform var(--t-mid) var(--ease),
                box-shadow var(--t-mid) var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-order::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s var(--ease-out);
}

.btn-order:hover::after { transform: translateX(120%); }
.btn-order:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--gold-rgb), 0.32);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: 80px;
    padding: 28px 40px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
}

.footer p {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
    .detail-gallery { position: static; }
}

@media (max-width: 768px) {
    .header-inner { padding: 14px 20px; }
    .brand-name { font-size: 34px; }
    .header-divider { width: 32px; }
    .logo-wrapper .central-logo { width: 52px; }
    .nav-list { gap: 22px; }

    .hero-section { padding: 80px 24px 60px; min-height: 75vh; }
    .hero-eyebrow { display: none; }

    .features-section,
    .latest-section,
    .catalog-container { padding: 0 20px; }

    .features-section,
    .latest-section { margin: 60px auto; }

    .car-grid { grid-template-columns: 1fr; }

    .filter-form { grid-template-columns: 1fr 1fr; }

    .filter-btn-wrap { grid-column: span 2; }

    .catalog-header { flex-direction: column; gap: 12px; align-items: flex-start; }

    .detail-page { padding: 24px 20px 60px; }
    .detail-info { padding: 24px; }
    .detail-price { font-size: 26px; }
    .detail-container { gap: 28px; }
}

/* ============================================================
   HAMBURGER / MOBILE NAV
   ============================================================ */
.header-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.nav-toggle {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--border-mid);
    border-radius: var(--r-sm);
    padding: 9px 11px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 0;
    transition: border-color var(--t-fast), color var(--t-fast);
}
.nav-toggle:hover { border-color: var(--gold-dark); color: var(--gold); }
.nav-toggle .icon-menu  { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu  { display: none; }
.nav-toggle.open .icon-close { display: block; }

@media (max-width: 700px) {
    body { overflow-x: hidden; }

    .nav-toggle { display: flex; align-items: center; justify-content: center; }

    .sub-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1),
                    padding    0.32s cubic-bezier(0.4,0,0.2,1);
        width: 100%;
        padding: 0;
    }
    .sub-nav.open {
        max-height: 600px;
        border-top: 1px solid var(--border-subtle);
        padding: 6px 0 12px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: flex-start;
    }
    .nav-list li { width: 100%; }

    .nav-item,
    .nav-btn-logout {
        display: block;
        width: 100%;
        padding: 11px 4px;
        font-size: 11px;
    }
    .nav-item::after,
    .nav-btn-logout::after { display: none; }

    .nav-user {
        display: block;
        padding: 11px 4px;
        font-size: 11px;
    }

    .brand-name { font-size: 28px; letter-spacing: 0.14em; }
    .header-divider { width: 20px; }
    .logo-wrapper .central-logo { width: 44px; }
    .header-brand { gap: 10px; }
}

@media (max-width: 400px) {
    .brand-name { font-size: 20px; letter-spacing: 0.1em; }
    .header-divider { width: 12px; }
    .logo-wrapper .central-logo { width: 36px; }
    .header-brand { gap: 6px; }
}

/* ============================================================
   MOBILE GENERAL IMPROVEMENTS
   ============================================================ */
@media (max-width: 480px) {
    .filter-form { grid-template-columns: 1fr; }
    .filter-btn-wrap { grid-column: 1 / -1; }
    .price-inputs { flex-direction: column; }

    .g-thumb { width: 70px; height: 54px; }

    .hero-section { padding: 52px 16px 40px; min-height: 60vh; }
    .hero-title { font-size: clamp(38px, 12vw, 60px); }
    .hero-text { font-size: 15px; margin-bottom: 36px; }

    .detail-page { padding: 16px 14px 48px; }
    .detail-info { padding: 18px 16px; }
    .back-link { margin-bottom: 20px; }

    .features-section,
    .latest-section { margin: 40px auto; padding: 0 16px; }
    .catalog-container { padding: 0 14px; }
    .footer { padding: 20px 16px; }
}
