/* laptops 1920, 1366 */

@media (max-width: 1666px) {
    html {
        font-size: 21px;
    }
}

@media (max-width: 1590px) {
    html {
        font-size: 20px;
    }
}

@media (max-width: 1525px) {
    html {
        font-size: 19px;
    }
}

@media (max-width: 1440px) {
    html {
        font-size: 18px;
    }
}

@media (max-width: 1380px) {
    html {
        font-size: 17px;
    }
}

@media (max-width: 1300px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 1225px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1150px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 1070px) {
    html {
        font-size: 13px;
    }
}

/* tablets, phones */

@media (max-width: 991px) {
    html {
        font-size: 15px;
    }

    /* BURGER MENU */

    .nav_expanded {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 6rem;

        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        padding: 2rem 3rem 0 0;
        background-color: rgba(0, 49, 59, 0.9);
        overflow: auto;
    }

    .burger {
        display: block;
        z-index: 10;
        position: relative;
        width: 3rem;
        height: 2rem;
        cursor: pointer;
    }

    .burger__icon,
    .burger::before,
    .burger::after {
        position: absolute;
        left: 0;
        width: 100%;
        height: 0.3rem;
        background-color: var(--text-color);
        transition: all 0.2s linear;
    }

    .burger__icon {
        top: 50%;
        transform: scale(1) translate(0px, -50%);
        /* background-color: var(--accent-color); */
        background-color: var(--text-color);
    }

    .burger::before {
        content: "";
        top: 0;
    }

    .burger::after {
        content: "";
        bottom: 0;
    }

    .burger_pressed .burger__icon {
        transform: scale(0) translate(0px, -50%);
    }

    .burger.burger_pressed::before {
        top: 50%;
        transform: rotate(-45deg);
    }

    .burger.burger_pressed::after {
        top: 50%;
        transform: rotate(45deg);
    }

    .header__menu {
        display: none;
    }

    .header__menu.menu_opened {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 6rem;
    }

    .header__menu-item::after {
        display: none;
    }

    .header__menu-link {
        padding: 1rem 0 1rem 1rem;
        font-size: 3rem;
    }

    /* HOME */

    .home__project,
    .home__project:nth-child(even) {
        flex-direction: column-reverse;
    }

    .home__project-slider,
    .home__project-single {
        width: 100%;
    }

    .home__project-desc,
    .home__project:nth-child(even) .home__project-desc {
        width: 100%;
        padding: 0 0 1.5rem 0;
    }

    /* ABOUT */

    .about {
        flex-direction: column-reverse;
    }

    .about__img {
        max-width: 80%;
        margin: 0 auto;
    }

    /* REVIEWS */

    .clients__review {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 639px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 479px) {
    html {
        font-size: 11px;
    }
}

@media (max-width: 359px) {
    html {
        font-size: 8px;
    }
}