* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fef9e8; color: #1a2a3a; }
header { background: white; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.container { max-width: 1600px; margin: 0 auto; padding: 0 30px; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, #f59e0b, #f97316); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; }
.logo-text .logo-title { font-size: 28px; font-weight: 800; color: #f59e0b; line-height: 1; }
.logo-text p { font-size: 10px; color: #f97316; letter-spacing: 0.5px; }
.favorites-btn { background: linear-gradient(135deg, #f59e0b, #f97316); border: none; padding: 8px 20px; border-radius: 40px; color: white; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s; }

.hero {
    position: relative;
    padding: 70px 0 80px;
    border-radius: 30px;
    margin-bottom: 40px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
    border-radius: 30px;
}
.hero .container {
    margin: 0;
    padding-left: 30px;
    width: 100%;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 0;
    text-align: left;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: #fef9e8;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-title span {
    color: #f59e0b;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hero-stats { display: flex; gap: 40px; }
.stat-item h3 { font-size: 32px; font-weight: 800; color: #f59e0b; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.stat-item p { font-size: 12px; color: rgba(255,255,255,0.85); margin-bottom: 0; text-transform: uppercase; letter-spacing: 1px; }

.categories-section { padding: 30px 0; margin-bottom: 20px; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 28px; font-weight: 800; color: #1a2a3a; margin-bottom: 8px; }
.section-title p { font-size: 14px; color: #718096; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.category-card { background: white; border-radius: 20px; padding: 20px 15px; text-align: center; transition: all 0.3s; cursor: pointer; border: 1px solid #f0e6d8; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(245,158,11,0.15); border-color: #f59e0b; }
.category-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #fef9e8, #fff0e0); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 26px; transition: all 0.3s; }
.category-card:hover .category-icon { background: linear-gradient(135deg, #f59e0b, #f97316); color: white; }
.category-name { font-size: 14px; font-weight: 700; color: #1a2a3a; margin-bottom: 5px; }
.category-count { font-size: 22px; font-weight: 800; color: #f59e0b; }
.category-label { font-size: 10px; color: #a0aec0; }

.filters-section { margin-bottom: 30px; }
.filters-card { background: white; border-radius: 20px; padding: 20px 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.04); border: 1px solid #f0e6d8; }
.filters-title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.filters-title i { font-size: 18px; color: #f59e0b; }
.filters-title h3 { font-size: 16px; font-weight: 700; color: #1a2a3a; }
.filters-grid { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; margin-bottom: 15px; }
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { display: block; font-size: 11px; font-weight: 600; color: #718096; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group select, .filter-group input { width: 100%; padding: 10px 12px; background: #f8f5f0; border: 1px solid #e8e0d5; border-radius: 12px; font-size: 13px; color: #1a2a3a; transition: all 0.3s; }
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: #f59e0b; }
.price-range { display: flex; gap: 8px; }
.sort-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0e6d8; }
.sort-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.sort-btn { padding: 10px 18px; background: #f8f5f0; border: 1px solid #e8e0d5; border-radius: 12px; color: #4a5568; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.sort-btn.active { background: #f59e0b; border-color: #f59e0b; color: white; }
.reset-btn { background: #f8f5f0; border: 1px solid #e8e0d5; padding: 10px 24px; border-radius: 12px; color: #718096; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s; }
.reset-btn:hover { background: #e8e0d5; }
.stats-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.stats-count { font-size: 13px; font-weight: 500; color: #718096; }
.stats-count span { color: #f59e0b; font-size: 20px; font-weight: 800; }
.view-toggle { display: flex; gap: 8px; }
.view-btn { background: white; border: 1px solid #e8e0d5; padding: 6px 16px; border-radius: 30px; color: #4a5568; cursor: pointer; font-size: 12px; font-weight: 500; transition: all 0.3s; }
.view-btn.active { background: #f59e0b; border-color: #f59e0b; color: white; }

.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 30px; margin-bottom: 40px; }
.cars-list-view { display: flex; flex-direction: column; gap: 20px; }
.car-card { background: white; border-radius: 24px; overflow: hidden; transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #f0e6d8; }
.car-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.car-image-container { position: relative; height: 200px; overflow: hidden; background: #f8f5f0; border-radius: 20px 20px 0 0; display: flex; align-items: center; justify-content: center; }
.car-image { width: 100%; height: 100%; object-fit: contain; background: #f8f5f0; transition: transform 0.4s; }
.car-card:hover .car-image { transform: scale(1.03); }
.car-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; color: white; z-index: 2; }
.favorite-star { position: absolute; top: 12px; right: 12px; background: white; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 2; }
.favorite-star i { color: #f59e0b; font-size: 15px; }
.favorite-star.inactive i { color: #cbd5e0; }
.car-info { padding: 18px; }
.car-title { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: #1a2a3a; }
.car-city { font-size: 13px; color: #f59e0b; font-weight: 600; margin-bottom: 12px; }
.car-specs { display: flex; gap: 15px; flex-wrap: wrap; margin: 12px 0; padding: 12px 0; border-top: 1px solid #f0e6d8; border-bottom: 1px solid #f0e6d8; }
.spec { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #718096; }
.car-price { font-size: 26px; font-weight: 800; color: #f59e0b; margin: 12px 0; }
.car-price small { font-size: 12px; font-weight: normal; color: #a0aec0; }
.car-actions { display: flex; gap: 12px; }
.quick-view-btn { flex: 1; background: #f8f5f0; border: 1px solid #e8e0d5; padding: 10px; border-radius: 14px; color: #4a5568; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.3s; }
.quick-view-btn:hover { background: #e8e0d5; }
.book-btn { flex: 2; background: linear-gradient(135deg, #f59e0b, #f97316); text-align: center; padding: 10px; border-radius: 14px; color: white; text-decoration: none; font-weight: 700; font-size: 13px; transition: all 0.3s; }
.book-btn:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

.cars-list-view .car-card { display: flex; }
.cars-list-view .car-image-container { width: 260px; height: 170px; border-radius: 20px 0 0 20px; }
.cars-list-view .car-info { flex: 1; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); z-index: 2000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 24px; max-width: 650px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #4a5568; z-index: 10; background: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.modal-image { width: 100%; height: 250px; object-fit: contain; background: #f8f5f0; padding: 20px; }
.modal-body { padding: 20px; }
.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.modal-city { color: #f59e0b; font-weight: 600; font-size: 13px; margin-bottom: 15px; }
.modal-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin: 15px 0; padding: 15px; background: #f8f5f0; border-radius: 16px; }
.modal-spec { text-align: center; font-size: 12px; }
.modal-spec i { font-size: 18px; color: #f59e0b; display: block; margin-bottom: 5px; }
.modal-price { font-size: 28px; color: #f59e0b; font-weight: 800; margin: 15px 0; }

.seo-text-block {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #f0e6d8;
}
.seo-text-block h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a2a3a;
}
.seo-text-block h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a2a3a;
}
.seo-text-block h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #f59e0b;
}
.seo-text-block p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}
.seo-text-block ul {
    padding-left: 20px;
    margin: 15px 0;
}
.seo-text-block li {
    color: #4a5568;
    margin-bottom: 8px;
}

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 30px 0 50px; }
.page-btn { background: white; border: 1px solid #e8e0d5; padding: 8px 16px; border-radius: 10px; color: #4a5568; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s; }
.page-btn.active, .page-btn:hover { background: #f59e0b; border-color: #f59e0b; color: white; }
.page-nav-btn { background: white; border: 1px solid #e8e0d5; padding: 8px 20px; border-radius: 10px; color: #4a5568; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s; }
.page-nav-btn:hover { background: #f59e0b; border-color: #f59e0b; color: white; }
.pagination-info { width: 100%; text-align: center; margin-bottom: 15px; color: #718096; font-size: 13px; }

.cities-section {
    background: white;
    border-radius: 30px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #f0e6d8;
    text-align: center;
}
.cities-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a2a3a;
}
.cities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.city-link {
    background: linear-gradient(135deg, #fef9e8, #fff0e0);
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #f59e0b;
    transition: all 0.3s;
    border: 1px solid #f0e6d8;
    display: inline-block;
}
.city-link:hover {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    transform: translateY(-2px);
}

footer { background: #1a2a3a; padding: 40px 0 20px; margin-top: 30px; border-radius: 30px 30px 0 0; color: white; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-logo h3 { font-size: 18px; margin-bottom: 10px; color: #f59e0b; }
.footer-logo p { color: #a0aec0; font-size: 12px; line-height: 1.5; }
.footer-column h4 { font-size: 14px; margin-bottom: 15px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: #a0aec0; text-decoration: none; font-size: 12px; transition: color 0.3s; }
.footer-column a:hover { color: #f59e0b; }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a { width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: #f59e0b; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #718096; font-size: 11px; }

.toast { position: fixed; bottom: 20px; right: 20px; background: #1a2a3a; padding: 10px 20px; border-radius: 30px; color: white; font-size: 12px; z-index: 1100; border-left: 3px solid #f59e0b; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ========== */
@media (max-width: 768px) { 
    /* Общие контейнеры */
    .container { padding: 0 15px; }
    
    /* Хедер */
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .favorites-btn {
        width: 100%;
        max-width: 200px;
    }
    .logo-text .logo-title { font-size: 22px; }
    
    /* Hero блок */
    .hero {
        padding: 40px 0 50px;
        min-height: auto;
    }
    .hero-title { font-size: 28px; }
    .hero-stats {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .stat-item h3 { font-size: 20px; }
    .stat-item p { font-size: 10px; }
    .hero .container { padding-left: 15px; }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-stats { justify-content: center; }
    
    /* Секция категорий (Выберите класс авто) */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 12px 8px;
    }
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .category-name {
        font-size: 12px;
    }
    .category-count {
        font-size: 18px;
    }
    .category-label {
        font-size: 9px;
    }
    
    /* Блок фильтров */
    .filters-card {
        padding: 15px;
    }
    .filters-grid {
        flex-direction: column;
        gap: 12px;
    }
    .filter-group {
        min-width: 100%;
    }
    .filter-group label {
        font-size: 10px;
    }
    .filter-group select, 
    .filter-group input {
        padding: 8px 10px;
        font-size: 12px;
    }
    .price-range {
        flex-direction: row;
        gap: 8px;
    }
    .price-range input {
        flex: 1;
    }
    
    /* Строка сортировки */
    .sort-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .sort-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .sort-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .reset-btn {
        text-align: center;
        width: 100%;
    }
    
    /* Статистика и вид */
    .stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .view-toggle {
        justify-content: center;
    }
    
    /* Сетка автомобилей */
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Карточка автомобиля */
    .car-card {
        margin: 0;
    }
    .car-image-container {
        height: 180px;
    }
    .car-title {
        font-size: 16px;
    }
    .car-specs {
        gap: 10px;
    }
    .spec {
        font-size: 10px;
    }
    .car-price {
        font-size: 22px;
    }
    
    /* Список (list view) */
    .cars-list-view .car-card {
        flex-direction: column;
    }
    .cars-list-view .car-image-container {
        width: 100%;
        height: 180px;
        border-radius: 20px 20px 0 0;
    }
    
    /* Блок популярных курортов */
    .cities-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    .cities-section h3 {
        font-size: 18px;
    }
    .cities-grid {
        gap: 10px;
    }
    .city-link {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* SEO текстовый блок */
    .seo-text-block {
        padding: 20px;
        margin: 20px 0;
    }
    .seo-text-block h1 {
        font-size: 22px;
    }
    .seo-text-block h2 {
        font-size: 18px;
    }
    .seo-text-block h3 {
        font-size: 16px;
    }
    .seo-text-block p, 
    .seo-text-block li {
        font-size: 13px;
    }
    
    /* Пагинация */
    .pagination {
        gap: 5px;
    }
    .page-btn, 
    .page-nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .footer-column ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .footer-column li {
        margin-bottom: 0;
    }
    .social-links {
        justify-content: center;
    }
    
    /* Модальное окно */
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    .modal-image {
        height: 180px;
    }
    .modal-title {
        font-size: 18px;
    }
    .modal-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ========== ПЛАНШЕТЫ (769px - 1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 20px; }
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .filters-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ========== ДЕСКТОП (1025px+) ========== */
@media (min-width: 1025px) {
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== БОЛЬШИЕ ЭКРАНЫ (1600px+) ========== */
@media (min-width: 1600px) {
    .cars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== УЛУЧШЕНИЯ ДЛЯ КАРТОЧЕК И КНОПОК ========== */
.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:active {
    transform: scale(0.98);
}
.sort-btn, 
.reset-btn,
.view-btn,
.city-link {
    transition: all 0.2s ease;
}
.sort-btn:active,
.reset-btn:active,
.view-btn:active,
.city-link:active {
    transform: scale(0.97);
}

/* Убираем стрелки у number input на мобильных */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* Плавный скролл для модального окна */
.modal-content {
    -webkit-overflow-scrolling: touch;
}