@media only screen and (max-width: 1250px) {
    html {
        font-size: 10px;
    }

    body {
        font-size: 2rem;
        line-height: 1.6rem;
    }

    h1 {
        font-size: 3.5rem;
        line-height: 5rem;
    }

    h2 {
        font-size: 3.5rem;
        line-height: 4.6rem;
    }

    h3 {
        font-size: 2rem;
        line-height: 2rem;
    }

    .wrapper {
        max-width: 668px;
    }

    /***HEADER***/
    .header__wrapper {
        padding: 35px 0;
    }

    /***WELCOME***/
    .welcome__wrapper {
        padding: 37px 0 70px;
    }

    .welcome__content {
        order: -1;
        max-width: 346px;
        padding: 0;
    }

    .welcome__image {
        max-width: 280px;
        max-height: 254.15px;
    }

    .welcome__description {
        margin: 30px 0 35px;
        padding-left: 5px;
        font-size: 1.6rem;
        line-height: 2.5rem;
    }

    .welcome__button {
        font-size: 1.6rem;
    }

    /***ABOUT***/
    .about__wrapper {
        flex-direction: column;
        padding: 40px 0 95px;
    }

    .about__content {
        max-width: 100%;
        padding: 0;
    }

    .about__title {
        text-align: center;
        margin: 0 auto 50px;
    }

    .about__description {
        line-height: 3rem;
    }

    .about__image {
        max-width: 250px;
        max-height: 258px;
        margin: 70px auto 0;
    }

    /***SERVICE***/
    .service__wrapper {
        padding-top: 59px;
        padding-bottom: 70px;
    }

    .service__filter {
        flex-direction: column;
        margin-bottom: 0;
    }

    .service__groups {
        padding: 42px 0 40px;
    }

    .service__group {
        font-size: 2rem;
    }

    .service__variants {
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        grid-gap: 39px 106px;
    }

    .service__image {
        max-width: 280px;
    }

    .service__content {
        padding: 0 39px;
    }

    .service__subtitle {
        margin: 9px 0;
    }

    .service__description {
        margin-bottom: 20px;
        font-size: 1.6rem;
        line-height: 2rem;
    }

    /***PRICE***/
    .price__wrapper {
        max-height: none;
        padding: 42px 0 164px;
    }

    .price__title {
        line-height: 4rem;
        margin-left: 15px;
        margin-bottom: 56px;
    }

    .price__item {
        line-height: 2rem;
    }

    .price__extra {
        margin-top: 0;
        max-width: 296px;
    }

    .price__subtitle {
        font-size: 2.5rem;
        line-height: 3.5rem;
        width: 100%;
    }

    .price__contact {
        margin: 30px 0 30px;
        font-size: 2rem;
        line-height: 2.6rem;
    }

    .price__image {
        top: 180px;
    }

    /***CONTACTS***/
    .contacts__wrapper {
        max-height: 739px;
        padding: 40px 0 497px;
    }

    .contacts__title {
        margin-bottom: 60px;
        font-size: 4rem;
        line-height: 5.2rem;
    }

    .contacts__content {
        flex-direction: column;
        align-items: center;
    }

    .contacts__image {
        max-width: 200px;
        left: 36.5%;
    }

    .contacts__city {
        line-height: 4rem;
    }

    /***FOOTER***/
    .footer__wrapper {
        flex-direction: column;
        padding: 33px 0 18px;
    }

    .footer__school,
    .footer__item {
        line-height: 2.42rem;
    }

    .footer__school {
        margin: 16px 0;
    }

    .footer__socials {
        padding: 10px 0;
    }
}

@media only screen and (max-width: 700px) {
    body {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
        line-height: 3.257rem;
    }

    .wrapper {
        max-width: 330px;
    }

    /***HEADER***/
    .header__wrapper {
        align-items: center;
        padding: 34px 0 36px;
    }

    .header__navigation {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        padding: 15px;
        background: var(--background-color);
        transform: translateX(-100%);
        transition: transform 0.5s;
    }

    .header__navigation.active-menu {
        padding-top: 20px;
        z-index: 1;
        transform: translateX(0);
    }

    .navigation {
        flex-direction: column;
    }

    .header__burger-menu {
        display: initial;
        z-index: 2;
    }

    .header__burger-menu.active-menu span:nth-of-type(1) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, 0%) rotate(45deg);
        transition: transform 0.5s ease-out;
    }

    .header__burger-menu.active-menu span:nth-of-type(2) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, 0%) rotate(-45deg);
        transition: transform 0.5s ease-out;
    }

    .header__burger-menu.active-menu span:nth-of-type(3),
    .header__burger-menu.active-menu span:nth-of-type(4) {
        display: none;
    }

    /***WELCOME***/
    .welcome__wrapper {
        padding: 23px 0 25px;
    }

    .welcome__description {
        margin: 20px 0 25px;
        padding-left: 0;
        font-size: 1.6rem;
        line-height: 2.5rem;
    }

    .welcome__image {
        display: none;
    }

    .welcome__button {
        width: 100px;
        height: 34.14px;
        font-size: 1rem;
        line-height: 2rem;
    }

    /***ABOUT***/
    .about__wrapper {
        padding: 30px 0 35px;
    }

    .about__title {
        margin: 0 auto 14px;
    }

    .about__description {
        line-height: 2.5rem;
    }

    .about__image {
        max-width: 150px;
        max-height: 147px;
        margin: 0 auto;
    }

    /***SERVICE***/
    .service__wrapper {
        padding: 30px 0 24px;
    }

    .service__groups {
        padding: 39px 0;
    }

    .service__group {
        width: 121px;
        height: 35px;
        font-size: 1.5rem;
    }

    .service__group:not(:last-child) {
        margin-right: 10px;
        margin-bottom: 9px;
    }

    .service__variants {
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr;
        grid-gap: 35px 0;
    }

    .service__variant {
        padding: 0 25px;
    }

    .service__content {
        padding: 0 38px;
    }

    .service__subtitle {
        margin: 10px 0;
    }

    .service__description {
        margin-bottom: 18px;
    }

    /***PRICE***/
    .price__wrapper {
        padding: 25px 0 40px;
    }

    .price__title {
        margin-left: 0;
        margin-bottom: 37px;
        text-align: center;
        line-height: 3rem;
    }

    .price__species {
        flex-direction: column;
        align-items: center;
    }

    .price__items {
        max-width: 224px;
        padding: 28px 21px;
    }

    .price__item {
        padding-left: 30px;
    }

    .price__item:not(:last-child) {
        margin-bottom: 14px;
    }

    .price__image {
        display: none;
    }

    .price__extra {
        margin: 19px 33px 0 33px;
        max-width: 296px;
    }

    .price__subtitle {
        margin-bottom: 20px;
        text-align: center;
        font-size: 2rem;
    }

    .price__contact {
        width: 121px;
        height: 35px;
        margin: 0 auto;
        font-size: 1.5rem;
        line-height: 1.954rem;
    }

    /***CONTACTS***/
    .contacts__wrapper {
        padding: 25px 0 258px;
    }

    .contacts__title {
        margin-bottom: 80px;
        font-size: 2.5rem;
        line-height: 3.257rem;
    }

    .contacts__image {
        max-width: 100px;
        left: 34%;
    }

    .contacts__location {
        width: 300px;
        font-size: 2rem;
    }

    .contacts__location:after {
        right: 20px;
    }

    .contacts__location .contacts__city-content.active {
        width: 282px;
        height: 212px;
        padding: 22px 35px;
    }

    .contacts__city-info {
        column-gap: 0;
    }

    .contacts__call-button {
        margin-top: 17px;
    }

    .city-info__title {
        max-width: 65px;
    }

    .city-info__title>p:last-child,
    .city-info__value>p:last-child {
        line-height: 20px;
    }

    .city-info__value>p:last-child {
        margin-left: 10px;
    }

    /***FOOTER***/
    .footer__wrapper {
        padding: 20px 0 18px;
    }

    .footer__info,
    .footer__school {
        font-size: 2rem;
    }

    .footer__school {
        margin: 16px 0 3px;
    }
}