


@media (max-width: 1440px) {
    .hero > div,
    .about > div,
    .how-to-buy > div,
    .cars-catalog > div,
    #contacts > div,
    section > div {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}


@media (max-width: 1200px) {
    .hero {
        min-height: 700px !important;
    }
    .hero > div,
    .about > div,
    .how-to-buy > div,
    .cars-catalog > div,
    #contacts > div,
    section > div {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    .hero h1 {
        font-size: 56px !important;
    }
}


@media (max-width: 992px) {
    .hero {
        min-height: 550px !important;
    }
    .hero h1 {
        font-size: 44px !important;
    }
    .hero p {
        font-size: 18px !important;
    }

    
    .about > div {
        flex-direction: column !important;
        gap: 40px !important;
    }
    .about h2 {
        font-size: 36px !important;
    }

    
    .how-to-buy h2 {
        font-size: 32px !important;
        margin-bottom: 50px !important;
    }

    
    .cars-catalog h2 {
        font-size: 36px !important;
    }
    .cars-catalog__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    
    #contacts > div {
        flex-direction: column !important;
        gap: 30px !important;
    }
    #contacts > div > div:last-child {
        height: 400px !important;
    }
}


@media (max-width: 768px) {
    .hero {
        min-height: 450px !important;
        background-position: center right !important;
    }
    .hero > div,
    .about > div,
    .how-to-buy > div,
    .cars-catalog > div,
    #contacts > div,
    section > div {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .hero > div {
        text-align: center;
    }
    .hero > div > div {
        max-width: 100% !important;
    }
    .hero h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    .hero p {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }

    
    .about {
        padding: 60px 0 !important;
    }
    .about h2 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
    }
    .about > div > div:first-child {
        font-size: 16px !important;
    }
    .about > div > div:first-child p {
        margin-bottom: 16px !important;
    }

    
    .how-to-buy {
        padding: 60px 0 !important;
    }
    .how-to-buy h2 {
        font-size: 24px !important;
        margin-bottom: 40px !important;
    }
    .how-to-buy h2 br {
        display: none;
    }
    .how-to-buy > div > div {
        gap: 32px !important;
    }
    .how-to-buy > div > div > div {
        flex-direction: column !important;
        text-align: center;
        gap: 16px !important;
    }
    .how-to-buy > div > div > div:nth-child(even) {
        flex-direction: column !important;
    }
    .how-to-buy > div > div > div > div:first-child {
        width: 56px !important;
        height: 56px !important;
        font-size: 22px !important;
    }
    .how-to-buy > div > div > div > div:last-child {
        padding: 20px !important;
    }
    .how-to-buy > div > div > div > div:last-child p {
        font-size: 15px !important;
    }

    
    .cars-catalog {
        padding: 60px 0 !important;
    }
    .cars-catalog h2 {
        font-size: 28px !important;
        margin-bottom: 32px !important;
    }
    .cars-catalog__grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cars-catalog__filters {
        flex-wrap: wrap;
        gap: 10px !important;
        margin-bottom: 32px !important;
    }
    .cars-catalog__filter-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    
    #contacts {
        padding: 60px 0 !important;
    }
    #contacts h2 {
        font-size: 28px !important;
    }
    #contacts > div > div:first-child {
        padding: 24px !important;
    }
    #contacts > div > div:last-child {
        height: 300px !important;
    }

    
    section[style*="gray-light"] > div {
        padding: 0 20px !important;
    }
    section[style*="gray-light"] h2 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
    }

    
    .service-section__content {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .service-section ul {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .service-section__image {
        min-height: 280px !important;
    }
    .service-section__image img {
        min-height: 280px !important;
    }
}


@media (max-width: 576px) {
    .hero {
        min-height: 400px !important;
    }
    .hero h1 {
        font-size: 28px !important;
    }
    .hero p {
        font-size: 14px !important;
    }

    .about h2,
    .how-to-buy h2,
    .cars-catalog h2,
    #contacts h2 {
        font-size: 24px !important;
    }
}


@media (max-width: 480px) {
    .hero > div,
    .about > div,
    .how-to-buy > div,
    .cars-catalog > div,
    #contacts > div,
    section > div {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero h1 {
        font-size: 24px !important;
    }
    .hero p {
        font-size: 13px !important;
    }
    .btn-large {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .how-to-buy > div > div > div > div:first-child {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }

    #contacts > div > div:last-child {
        height: 250px !important;
    }
}
