@media (max-width: 1440px) {
    .content h1 {
        font-size: 36px;
    }

    .content h2,
    .content h3,
    .content h4 {
        font-size: 28px;
    }
}

@media (max-width: 1080px) {
    .header__nav {
        padding: 120px 20px;
        position: fixed;
        top: 0;
        opacity: 0;
        left: -110%;
        width: 100%;
        height: 100%;
        overflow: auto;
        z-index: -1;
        background-color: var(--white);
        transition: all 0.34s linear;
    }

    .header__nav.active {
        opacity: 1;
        z-index: 20;
        left: 0px;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: flex-start;
        gap: 10px;
    }

    .nav__list-item {
        width: 100%;
    }

    .header__btn {
        display: flex;
        position: relative;
        min-width: 24px;
        max-width: 24px;
        height: 24px;
    }

    .header__btn span {
        margin: 0;
        position: absolute;
        z-index: 22;
        background-color: var(--primary);
        left: 0;
        width: 100%;
        top: 11px;
        height: 2px;
        border-radius: 50px;
        transition: all 0.3s ease 0s;
    }

    .header__btn:before,
    .header__btn:after {
        content: '';
        background-color: var(--primary);
        position: absolute;
        z-index: 22;
        width: 100%;
        height: 2px;
        left: 0;
        border-radius: 50px;
        transition: all 0.3s ease 0s;
    }

    .header__btn:before {
        top: 3px;
    }

    .header__btn:after {
        bottom: 3px;
    }

    .header__btn.active span {
        transform: scale(0);
    }

    .header__btn.active:before {
        transform: rotate(45deg);
        top: 11px;
    }

    .header__btn.active:after {
        transform: rotate(-45deg);
        bottom: 11px;
    }

    .submenu {
        width: 100%;
        background-color: transparent;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        z-index: 22;
        position: static;
    }

    .nav__list-item-active>.submenu {
        display: block;
    }

    .header__contacts {
        margin-left: auto;
        margin-right: 40px;
    }

    .header__line {
        font-size: 14px;
    }

    .footer__top {
        flex-wrap: wrap;
    }

    .footer__left {
        max-width: 100%;
    }

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

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .footer__wrap {
        padding: 20px;
    }

    .footer__right {
        gap: 10px;
    }

    .footer__menu ul {
        gap: 5px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 10px;
    }

    .content h1 {
        font-size: 32px;
    }

    .content h2,
    .content h3,
    .content h4 {
        font-size: 24px;
    }

    .content__box {
        margin-bottom: 40px;
    }

    .content__box-white {
        padding: 40px 0;
    }

    .content__text ul {
        margin-left: 10px;
    }
}

@media (max-width: 500px) {
    .header__contacts {
        position: fixed;
        bottom: 60px;
        opacity: 0;
        left: -110%;
        width: 100%;
        overflow: auto;
        z-index: -1;
        transition: all 0.34s linear;
    }

    .header__contacts.active {
        opacity: 1;
        z-index: 20;
        left: 0px;
    }

    .footer__top {
        flex-direction: column;
        gap: 20px;
    }

    .cards ul {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .content h1 {
        font-size: 24px;
    }

    .content h2,
    .content h3,
    .content h4 {
        font-size: 20px;
    }
}