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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Шапка */
.header {
    background: linear-gradient(135deg, #2c3e50, #e74c3c);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input, .filter-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #3498db;
}

/* Сетка автомобилей */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Карточка автомобиля */
.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #e74c3c;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.car-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    text-align: center;
}

.car-title {
    font-size: 1.3rem;
    margin: 0;
    font-weight: bold;
}

.car-body {
    padding: 20px;
}

.car-specs {
    list-style: none;
    margin-bottom: 15px;
}

.car-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
}

.spec-value {
    font-weight: bold;
    color: #e74c3c;
    text-align: right;
}

.power-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.car-link {
    display: block;
    background-color: #27ae60;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.car-link:hover {
    background-color: #219a52;
}

/* Подвал */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input, .filter-select {
        width: 100%;
        max-width: 300px;
    }
}

.car-type-badge {
    background: #9b59b6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
}
.brand-badge {
    background: #e67e22;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.car-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Адаптивность для фильтров */
@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .car-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filters {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Остальные стили остаются без изменений, добавляем только адаптивность для большего количества фильтров */

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 1rem;
}

.search-input, .filter-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

/* Остальные стили без изменений */