@media (max-width: 991px) {
    .header__menu {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero {
        padding: 58px 0 72px;
    }

    .hero::before {
        top: 40px;
        right: 2%;
        width: 220px;
        height: 160px;
        opacity: 0.42;
    }

    .hero::after {
        left: auto;
        right: 4%;
        bottom: 36px;
        width: 190px;
        height: 140px;
        opacity: 0.46;
    }

    .hero__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .hero__image-wrap {
        max-width: 520px;
    }

    .benefits__grid,
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__text {
        position: static;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .header__link--button {
        padding: 10px 14px;
    }

    .hero {
        padding: 42px 0 58px;
    }

    .hero::before {
        display: none;
    }

    .hero::after,
    .benefits::before,
    .benefits::after,
    .reviews::after,
    .contact::before,
    .contact::after,
    .reviews::before {
        display: none;
    }

    .hero__content {
        gap: 38px;
    }

    .hero__badge {
        max-width: 100%;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .benefits__grid,
    .reviews__grid {
        grid-template-columns: 1fr;
    }

    .benefit-card,
    .review-card,
    .contact-form {
        border-radius: 22px;
    }

    .contact-form {
        padding: 24px;
    }

    .footer__content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header__link--button,
    .button {
        width: 100%;
    }

    .header__logo {
        font-size: 18px;
    }

    .hero__actions {
        width: 100%;
    }

    .hero__image-wrap {
        padding: 12px;
        border-radius: 28px;
    }

    .hero__image-wrap::before {
        inset: 28px -12px -12px 28px;
        border-radius: 28px;
    }

    .hero__image {
        border-radius: 20px;
    }
}
