


@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;
    }
}

/* Giveaway promotion */
.home-giveaway {
    padding: 86px 0 96px;
    background: #fff;
}

.home-giveaway__inner {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: 72px;
    align-items: center;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 120px;
}

.home-giveaway__copy {
    padding: 0;
}

.home-giveaway__copy h2 {
    max-width: 600px;
    margin: 0 0 18px;
    color: var(--secondary-color);
    font-size: 48px;
    line-height: 1.12;
}

.home-giveaway__copy p {
    max-width: 590px;
    margin: 0 0 28px;
    color: #34415b;
    font-size: 18px;
    line-height: 1.62;
}

.home-giveaway__media {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

.home-giveaway__media img {
    position: relative;
    width: 104%;
    max-width: 760px;
    height: auto;
    margin: 10px -4% 0 0;
    object-fit: contain;
    filter: drop-shadow(0 14px 14px rgba(21, 32, 64, .18));
}

@media (max-width: 900px) {
    .home-giveaway {
        padding: 58px 0;
    }

    .home-giveaway__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-inline: 32px !important;
    }

    .home-giveaway__media {
        min-height: 0;
    }
}

@media (max-width: 576px) {
    .home-giveaway {
        padding: 46px 0;
    }

    .home-giveaway__inner {
        padding-inline: 20px !important;
    }

    .home-giveaway__copy h2 {
        font-size: 32px !important;
    }

    .home-giveaway__copy p {
        font-size: 16px;
    }

    .home-giveaway__media {
        min-height: 0;
    }

    .home-giveaway__media img {
        width: 98%;
        margin-right: -2%;
    }
}
