* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --secondary: #0F1419;
    --text: #1A1A1A;
    --text-secondary: #536471;
    --text-muted: #8899A6;
    --bg: #FFFFFF;
    --bg-secondary: #F7F9FA;
    --border: #E1E8ED;
    --success: #00BA7C;
    --warning: #FFAD1F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.logo-dot {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.nav-link.active {
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 16px;
}

.lang-quick {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    padding: 4px;
}

.lang-flag svg,
.lang-flag img {
    width: 24px !important;
    height: 18px !important;
    min-width: 24px;
    min-height: 18px;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lang-flag:hover {
    background: var(--bg);
}

.lang-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.lang-more:hover {
    background: var(--bg);
}

.lang-more svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s;
    z-index: 1000;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.lang-menu button:hover {
    background: var(--bg-secondary);
}

.lang-menu button img,
.lang-menu button svg.menu-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(15,20,25,0.4) 0%, rgba(26,38,52,0.5) 100%),
                url('https://images.unsplash.com/photo-1476610182048-b716b8518aae?w=1920&q=80') center/cover no-repeat;
    color: white;
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Search Box */
.search-box {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 860px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: end;
}

.search-row:last-child {
    margin-bottom: 0;
}

.flex-2 {
    flex: 2;
}

.search-field {
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.search-field select:hover,
.search-field input:hover {
    border-color: var(--text-muted);
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
    height: 50px;
    flex: 1;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Stats */
.stats {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Results */
.results {
    padding: 64px 0 96px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.results-filters select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--bg);
    cursor: pointer;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* Car Card */
.car-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.car-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.car-image {
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.car-badge.deal {
    background: var(--success);
}

.car-info {
    padding: 20px;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.car-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.car-category {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.car-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.car-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--warning);
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.car-spec {
    text-align: center;
}

.car-spec svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.car-spec span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-company {
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-company-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.car-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-company-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.car-company-reviews {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.car-price {
    text-align: right;
}

.car-price .price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
}

.car-price .per-day {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.book-btn {
    width: 100%;
    margin-top: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.book-btn:hover {
    background: var(--primary-dark);
}

/* Partners */
.partners {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.partners-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.partner {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 48px;
}

.partner img {
    height: 24px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s;
}

.partner:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 12px;
}

.footer-brand .logo-icon {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.875rem;
}

.footer-links h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 960px) {
    .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .lang-switcher {
        margin-left: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
