@media screen and (max-width: 1320px) {

    /* about */
    .about_items img {
        max-width: 500px;
    }

    /* Услуги */
    .services__flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }
}

@media screen and (max-width: 960px) {
    .about_items {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 100px;
    }

    .about_items img {
        order: -1;
        margin-bottom: 25px;
    }

    .form-group {
        width: 85%;
    }

    .form textarea {
        width: 85%;
        min-height: 200px;
    }
}

@media screen and (max-width: 730px) {
    .header__items h1 {
        font-size: 60px;
    }

    .header__items p,
    .about-text p,
    .services-p,
    .reviews-p,
    .experience__items p,
    .contact__items-card a,
    .contact__items-card p {
        font-size: 20px;
    }

    .text-h2,
    .experience__items h3 {
        font-size: 50px;
    }

    .experiense__flex {
        flex-wrap: wrap;
        gap: 50px;
    }

    .experience__items {
        max-width: 100%;
    }

    .form-group {
        width: 100%;
    }

    .form textarea {
        width: 100%;
        min-height: 200px;
    }

    .gallery__items img {
        max-width: 75%;
    }

    .contact__items {
        grid-template-columns: repeat(1, 1fr);
        width: 85%;
        gap: 25px;
    }

    .footer__flex {
        flex-direction: column;
        gap: 30px;
    }

    .nav-icon {
        display: none;
    }

    .nav-list {
        display: none;
    }

    .burger {
        display: block;
        padding: 15px;
    }

    .burger-btn {
        display: flex;
        flex-direction: column;
        gap: 7px;
        border: none;
        background-color: inherit;
    }

    .burger-btn_line {
        background-color: #2F2E2E;
        width: 28px;
        height: 3px;
        border-radius: 2px;
    }

    /* Модальное окно */
    .modal.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .modal-content {
        padding: 20px;
    }

    .modal-nav ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .modal-nav a {
        display: block;
        padding: 14px 16px;
        color: #2F2E2E;
        font-size: 20px;
        font-weight: 500;
        border-radius: 12px;
        transition: all 0.2s;
        border-bottom: 1px solid #f0f0f0;
    }

    .modal-nav li:last-child a {
        border-bottom: none;
    }

    .modal-nav a:hover {
        background: #f0f7ff;
        color: var(--btn-color);
        padding-left: 24px;
    }
}

@media screen and (max-width: 540px) {
    .header__items h1 {
        font-size: 50px;
    }

    .header__items p,
    .about-text p,
    .services-p,
    .reviews-p,
    .experience__items p,
    .contact__items-card a,
    .contact__items-card p {
        font-size: 18px;
    }

    .text-h2,
    .experience__items h3 {
        font-size: 40px;
    }

    .about_items img {
        max-width: 90%;
    }

    .services-h3 {
        font-size: 30px;
    }
    .services__items {
        padding-left: 15px;
        padding-right: 15px;
    }
    .services__items:last-child>h3 {
        padding-top: 0;
        margin-bottom: 50px;
    }
    .services-img {
        width: 100%;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        width: 100%;
    }

    .contact__items-card h3 {
        font-size: 30px;
    }

    .contact__items {
        width: 95%;
    }
}

@media screen and (max-width: 380px) {
    .footer-p {
        text-align: center;
    }
}