/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a84ff;
    --primary-hover: #409cff;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --background: #000000;
    --background-secondary: #1d1d1f;
    --background-tertiary: #2c2c2e;
    --border: #424245;
    --border-light: #333336;
    
    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Animation */
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;
    --transition-slower: 500ms;
    
    /* Z-index layers */
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal: 40;
    --z-popover: 50;
    --z-tooltip: 60;
}

/* ===== BASE STYLES ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
    /* УБРАЛ padding-top: 80px; - header сам добавит padding */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER FIX ===== */
/* Добавим эти стили здесь, они переопределят header.css если нужно */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: var(--border-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo::before {
    content: '🚘';
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lang-switcher {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 60px;
}

.lang-switcher:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Mobile menu button - ОБЯЗАТЕЛЬНО показывать */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle .burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Fluid container for very small screens */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(var(--text-5xl), 8vw, var(--text-6xl));
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

h3 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
}

h4 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Text utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), #5ac8fa, var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.25;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Better touch target */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slower) ease, height var(--transition-slower) ease;
}

.cta-button:hover::before,
.cta-button:focus::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: scale(0.98);
}

/* Button variants */
.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.cta-button.primary:hover,
.cta-button.primary:focus {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: var(--glass-bg);
    border-color: var(--border-light);
    backdrop-filter: blur(20px);
    transform: translateY(-2px);
}

/* Button sizes */
.cta-button.small {
    padding: 0.5rem 1.5rem;
    font-size: var(--text-sm);
    min-height: 40px;
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: var(--text-lg);
    min-height: 56px;
}

/* Button with icon */
.btn-icon {
    transition: transform var(--transition-base) ease;
}

.cta-button:hover .btn-icon {
    transform: translateX(4px);
}

.cta-button.secondary:hover .btn-icon {
    transform: translate(3px, 3px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
    text-align: center;
    isolation: isolate;
    /* Добавляем отступ сверху для header */
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(10, 132, 255, 0.1) 0%,
        transparent 50%
    );
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-sm);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(10, 132, 255, 0);
    }
}

.hero-title {
    font-size: clamp(var(--text-4xl), 10vw, var(--text-6xl));
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 4vw, var(--text-xl));
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.stat {
    padding: var(--spacing-sm);
}

.stat-number {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #5ac8fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: opacity var(--transition-base) ease;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mouse .wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateY(-5px);
    }
    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--background-secondary);
}

/* ===== UTILITY CLASSES ===== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Mobile - Показываем мобильное меню */
@media (max-width: 768px) {
    /* Скрываем десктопную навигацию */
    .desktop-nav {
        display: none !important;
    }
    
    /* Показываем кнопку бургер-меню */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Скрываем десктопные кнопки в header */
    .nav-actions .desktop-book-btn,
    .nav-actions .lang-switcher {
        display: none !important;
    }
    
    /* Уменьшаем отступы для мобильных */
    .hero {
        padding-top: 80px;
        min-height: 90vh;
    }
    
    h1 {
        font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
    }
    
    h2 {
        font-size: clamp(var(--text-2xl), 6vw, var(--text-3xl));
    }
    
    .hero-title {
        font-size: clamp(var(--text-3xl), 10vw, var(--text-4xl));
    }
    
    .hero-subtitle {
        font-size: clamp(var(--text-base), 4vw, var(--text-lg));
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-actions .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat {
        padding: var(--spacing-sm) 0;
    }
    
    .scroll-indicator {
        bottom: var(--spacing-md);
    }
}

/* Desktop - Показываем десктопную навигацию */
@media (min-width: 769px) {
    /* Скрываем мобильное меню */
    .mobile-nav,
    .mobile-menu-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Показываем десктопную навигацию */
    .desktop-nav {
        display: flex !important;
    }
    
    .nav-actions {
        display: flex !important;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--background-secondary);
}

/* ===== SELECTION ===== */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* ===== FOCUS STYLES ===== */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--transition-base) ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Lazy loading images */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.notification-error {
    border-left: 4px solid #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
    background: rgba(10, 132, 255, 0.1);
}

.notification-icon {
    font-size: 20px;
}

.notification-text {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ===== UPDATED CAR CARDS ===== */

/* Fleet Section */
.fleet {
    padding: var(--spacing-2xl) 0;
    background: var(--background-secondary);
}

.fleet .container {
    max-width: 1400px;
}

.fleet h2 {
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), #5ac8fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Fleet Filters */
.fleet-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Modern Car Card */
.car-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    height: 100%;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
}

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

/* Car Image Container */
.car-image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

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

/* Car Badges */
.car-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.car-category-badge {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Colors */
.car-category-badge.economy {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.4));
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.car-category-badge.comfort {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.4));
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.car-category-badge.business {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.4));
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.car-category-badge.premium {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.4));
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
}

.car-category-badge.suv {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(211, 84, 0, 0.4));
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.3);
}

.car-status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.car-status-badge.available {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.4));
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.car-status-badge.rented {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.4));
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.car-status-badge.maintenance {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.4));
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.3);
}

/* Car Overlay */
.car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%, transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.car-card:hover .car-overlay {
    opacity: 1;
}

.car-quick-view {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) ease;
}

.car-quick-view:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Car Info */
.car-info {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-header {
    margin-bottom: var(--spacing-md);
}

.car-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.car-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #5ac8fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.price-period {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.car-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex: 1;
}

/* Car Specs */
.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.car-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
}

.spec-icon {
    font-size: 16px;
    opacity: 0.8;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Car Features */
.car-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-lg);
}

.car-feature-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    transition: all var(--transition-fast) ease;
}

.car-feature-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Car Actions */
.car-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.car-details-btn,
.car-book-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.car-details-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.car-details-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-light);
}

.car-book-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.car-book-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
    transform: translateY(-2px);
}

.car-book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 14px;
}

/* Loading State */
.loading-cars {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
}

.loading-cars .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    margin: 0 auto var(--spacing-md);
    animation: spin 1s linear infinite;
}

/* Error State */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: #ff6b6b;
}

.error-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.retry-btn {
    margin-top: var(--spacing-md);
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) ease;
}

.retry-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* No Cars Message */
.no-cars-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
}

.no-cars-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.no-cars-message h3 {
    margin-bottom: var(--spacing-xs);
}

.no-cars-message .subtext {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ===== RESPONSIVE CARDS ===== */

/* Tablet */
@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--spacing-md);
    }
    
    .car-image-container {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fleet-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: var(--text-xs);
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .car-image-container {
        height: 200px;
    }
    
    .car-actions {
        flex-direction: column;
    }
    
    .car-details-btn,
    .car-book-btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .car-image-container {
        height: 180px;
    }
    
    .car-info {
        padding: var(--spacing-md);
    }
    
    .car-title {
        font-size: var(--text-lg);
    }
    
    .price-amount {
        font-size: var(--text-xl);
    }
    
    .car-specs {
        grid-template-columns: 1fr;
    }
}

/* ===== CAR MODAL ===== */

.car-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-sm);
    animation: fadeIn 0.3s ease;
}

.car-modal {
    background: var(--background-secondary);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2xl);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--background-secondary);
    z-index: 1;
}

.car-modal-header h2 {
    margin: 0;
    font-size: var(--text-2xl);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-base) ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.car-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
}

@media (max-width: 768px) {
    .car-modal-content {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
    }
}

.car-modal-images {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.car-modal-images .main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.car-modal-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.car-modal-price .price {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #5ac8fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.car-modal-price .period {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.car-modal-specs {
    margin-bottom: var(--spacing-lg);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: var(--text-sm);
    font-weight: 500;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.features-list .feature {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

.car-modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.btn-secondary,
.btn-primary {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) ease;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.lang-btn.active {
    color: var(--primary-color);
    background: var(--glass-bg);
    font-weight: 600;
}

.lang-separator {
    color: var(--text-secondary);
    opacity: 0.5;
    user-select: none;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 1rem;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .mobile-nav .language-switcher {
        margin: 1rem 0;
        justify-content: center;
    }
}

/* =====================================================
   Fleet modal (new markup) + Reviews
   ===================================================== */

/* Overlay */
#carModal.car-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
#carModal.car-modal.is-open { display: flex; }
body.modal-open { overflow: hidden; }

.car-modal__dialog {
  width: min(980px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: rgba(14, 16, 20, .92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  position: relative;
}

.car-modal__content { padding: 18px; }

.car-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text-primary);
  cursor: pointer;
}
.car-modal__close:hover { background: rgba(255,255,255,.10); }

.car-modal__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .car-modal__grid { grid-template-columns: 1fr; }
}

.car-modal__media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.car-modal__img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .car-modal__img { height: 260px; }
}

.car-modal__thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
}

.car-modal__thumb {
  flex: 0 0 auto;
  width: 86px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  overflow: hidden;
}

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

.car-modal__info {
  padding: 6px 2px;
}

.car-modal__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.car-modal__desc {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

/* Skeleton */
.car-modal__skeleton { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sk-img { height: 260px; border-radius: 16px; background: rgba(255,255,255,.06); }
.sk-lines { display: grid; gap: 10px; }
.sk-line { height: 14px; border-radius: 10px; background: rgba(255,255,255,.06); }
.sk-line.short { width: 60%; }

/* Reviews */
.reviews { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.10); }
.reviews__title { margin: 0 0 10px; font-size: 1.05rem; }
.reviews__list { display: grid; gap: 10px; margin-bottom: 14px; }

.review {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px;
}
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review__name { font-weight: 600; }
.review__stars { letter-spacing: 1px; opacity: .9; }
.review__text { margin-top: 8px; color: var(--text-secondary); white-space: pre-wrap; }

.reviews__empty { color: var(--text-secondary); opacity: .9; padding: 10px 0; }

.reviews__form {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 12px;
}

.reviews__form-title { margin: 0 0 10px; font-size: 1rem; }
.reviews__row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
@media (max-width: 520px) { .reviews__row { grid-template-columns: 1fr; } }

.reviews__label { display: grid; gap: 6px; font-size: .95rem; }
.reviews__input,
.reviews__select,
.reviews__textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--text-primary);
  padding: 10px 12px;
  outline: none;
}
.reviews__textarea { min-height: 110px; resize: vertical; }

.reviews__actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.reviews__message { color: var(--text-secondary); font-size: .95rem; }

