@media (max-width: 1261px){
    .service .header-button {
        padding-left: 0px;
    }
}

@media (max-width: 1120px){
    .service__header{
        flex-direction: column;
    }

   .service .header_title{
    max-width: 100%;
   }

   .service .header-button{
    margin-top: 20px;
}
}

@media (max-width: 1070px){
    .contacts_cities, .contacts_cities_select_active, .cities_info_all_active{
        width: 350px;
    }
}

@media (max-width: 970px){
    .contacts_cities, .contacts_cities_select_active, .cities_info_all_active{
        width: 250px;
    }

    .contacts_cities_info_titles, .contacts_cities_info_data{
        line-height: 30px;
    }
}

@media (max-width: 936px){
    .category_item{
        width: 46%;
    }

    .category_img{
       width: 100%;
    }   
}

@media (max-width: 900px){
    .contacts_cities{
        margin-top: 20px;
    }
}

@media (max-width: 830px){
    .contacts_cities_info{
        padding: 10px;
    }

    .call_link_all {
        padding-bottom: 16px;
    }
}


@media (max-width: 768px){
    
    .container{
        padding: 0 50px;
    }

    .header-wrapper{
        height: 117px;
        line-height: 117px;
    }

    .header__nav{
        padding-top: 3px;
    }

    /*** welcome ***/

    .welcome-wrapper{
        flex-direction: row-reverse;
    }

    .welcome__description{
        margin-left: 0px;
        margin-right: 20px;
    }

    .welcome .description_title{
        font-size: 35px;
        margin-top: 0px;
        margin-bottom: 30px;
    }

    .welcome .description_text{
        font-size: 16px;
        line-height: 25px;
        padding-left: 5px;
        margin-bottom: 35px;
    }

    /*** about ***/

    .about-wrapper{
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .about__description{
        width: 100%;
        margin-bottom: 40px;
        margin-right: 0px;
    }

    .about .description_title{
        font-size: 35px;
        line-height: 46px;
        max-width: 423px;
        text-align: center;
        margin: 0 auto;
    }

    .about .description_text{
        font-size: 20px;
        line-height: 30px;
        padding-top: 50px;
        max-width: 668px;
    }

    /*** service ***/


    .service .header_title{
        font-size: 35px;
        line-height: 46px;
    }

    .service .header-button{
        gap:20px;
        width: 100%;
    }

    /*** category ***/

    .category_discription{
        padding-bottom: 17px;
    }

    .category_text{
        max-width: 201px;
        margin: 0 auto;
        padding-top: 10px;
    }

    /*** prices ***/

    .prices_title{
        font-size: 35px;
        line-height: 42px;
        padding-left: 14px;
        padding-bottom: 58px;
    }

    .best_title{
        font-size: 25px;
        line-height: 35px;
    }

    /*** contacts ***/
    
    .contacts__box{
        flex-direction: column-reverse;
    }

    .contacts__title{
        top:40px;
    }

    .contacts_cities_all{
        margin: 0 auto;
    }

    .contacts_cities{
        width: 450px;
      
    }

    .contacts_cities_select{
        width: 450px;
    }
    
    .cities_info_all_active{
        width: 450px;
    }

    .contacts_img-wrapper{
        text-align: center;
    }

    .contacts_img {
        width: 70%;
        height: 70%;
        margin-bottom: -4px;
    }

    /*** footer ***/

    .footer-wrapper{
        flex-direction: column;
        min-height: 181px;
        justify-content: center;
        row-gap: 18px;
    }

    .year__github, .rsschool_link, ul.social_list{
        line-height: normal;
        height: 30px;
    }
    
    .rsschool_link{
        padding-left: 0px;
    }
}

@media (max-width: 659px){
    .header__nav{
        width: 100%;
        gap: 20px;
    }

    .header_button {
        width: 121px;
    }

    .service__category{
        justify-content: center;
    }

    .prices-wrapper{
        flex-direction: column;
    }

    .best_title{
        text-align: center;
    }

    .best_img{
        display: none;
    }

    .prices__best{
        align-items: center;

    }
    .prices_form{
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row;
    }
}

@media (max-width: 616px){
    .category_item{
        width: 44%;
    }
}

@media (max-width: 549px){

    body{
        margin-top: 96px;
    }
    
    header.header{
        position: absolute;
        top: 0px;
        width: 100%;
        box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 30%);
    }

    /*** burger menu start ***/
    .header__burger{
        display: block;
        position: relative;
        width: 40px;
        height: 25px;
    }

    .header__burger:before,
    .header__burger:after{
        content: '';
        position: absolute;
        background-color: #010201;
        width: 100%;
        height: 2px;
        left: 0;
        transition: all 0.3s ease 0s;
    }

    .header__burger:before{
        top:0;
    }

    .header__burger:after{
        bottom:0;
    }

    .header__burger span{
        position: absolute;
        background-color: #010201;
        width: 100%;
        height: 2px;
        left: 0;
        transition: all 0.3s ease 0s;
    }

    .header__burger span.top{
        top: 15px;
    }

    .header__burger span.botton{
        top: 8px;
    }

    .nav__main{
        position: fixed;
        top: 96px;
        right: -100%;
        width: 100%;
        background: #EDF2EC;
        transition: all 0.3s ease 0s;
    }

    .nav__main.active{
        top: 96px;
        right: 0px;
        transition: all 0.3s ease 0s;
    }

    .nav__main li{
        text-align: center;
    }

    .header__nav{
        display: block;
        padding-bottom: 20px;
    }

    .menu.active:before{
        transform: rotate(45deg);
        top: 14px;
    }

    .menu.active:after{
        transform: rotate(-45deg);
        bottom: 9px;
    }

    .menu.active span{
        transform: scale(0);
    }

    /*** burger menu end ***/

    .header-wrapper{
        height: 96px;
        line-height: 60px;
    }

    .welcome-wrapper{
        flex-direction: column;
    }

    .welcome__description {
        margin-right: 0;
        width: 100%;
    }

    .welcome-wrapper img{
        display: none;
    }

    .contacts_cities, .contacts_cities_select, .cities_info_all_active{
        width: 300px;
    }

    .contacts__title{
        position: static;
    }

 .header .active_nav{
    color: #010201;
    background-color: #EDF2EC;
 }

 .header__nav{
    color: #010201;
    font-weight: 700;
    font-size: 25px;
    box-shadow: 0px -10px 10px -10px rgb(0 0 0 / 40%) inset;
 }

}

@media (max-width: 500px){
    .category_item{
        width: 100%;
    }
}


@media (max-width: 380px){

    .logo{
        line-height: 24px;
    }

    .container{
        padding: 0 25px;
    }

    .welcome-wrapper{
        min-height: 300px;
        padding: 20px 0px;
    }

    .welcome .description_title{
        font-size: 25px;
        line-height: 35px;
        margin-bottom: 20px;
    }

    .welcome .description_text{
        padding-left: 0px;
        margin-bottom: 26px;
    }

    .welcome .description_button{
        width: 100px;
        height: 34px;
        font-size: 10px;
        line-height: 20px;
    }

    .about-wrapper{
        min-height: 516px;
        padding: 20px 0px;
    }

    .about .description_title{
        font-size: 25px;
        line-height: 33px;
    }

    .about .description_text{
        font-size: 15px;
        line-height: 25px;
        padding-top: 13px;
    }

    .about-wrapper img{
        width: 150px;
        height: 150px;
        margin: 2px auto;
    }

    .service-wrapper {
        padding: 20px 0px;
    }

    .service .container{
        padding-bottom: 27px;
    }

    .service__header{
        margin-bottom: 0px;
    }

    .service .header-button{
        flex-wrap: wrap;
        gap:10px;
    }

    .service .header_title{
        font-size: 25px;
        line-height: 33px;
        width: 187px;
    }

    .service .header_button{
        font-size: 15px;
        line-height: 20px;
        width: 121px;
        height: 35px;
        margin-right: 0px;
    }

    .service__category{
        margin-top: 20px;
        row-gap: 34px;
    }

    .category_discription{
        height: 100px;
    }

    .prices{
        min-height: 512px;
    }

    .prices .container{
        padding: 0px 78px;
    }

    .prices-wrapper{
        min-height: 512px;
        justify-content: flex-start;
        padding: 20px 0px;
    }

    .prices_title{
        font-size: 25px;
        line-height: 30px;
        text-align: center;
        padding-left: 0px;
        padding-bottom: 36px;
    }

    .prices_form_item{
        max-width: 180px;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

    .prices_form{
        padding: 28px 22px;
        row-gap: 14px;
    }

    .prices_form_title p{
        font-size: 15px;
    }

    .price_name{
        padding-left: 29px;
    }

    .price_ico{
        line-height: 60px;
    }

    .best_title{
        padding-top: 19px;
        padding-bottom: 19px;
        width: 230px;
        font-size: 20px;
        line-height: 35px;
    }

    .best_button{
        font-size: 15px;
        line-height: 20px;
        width: 121px;
        height: 35px;
        margin-bottom: 40px;
    }

    .contacts-wrapper{
        padding-top: 20px;
    }
    
    .contacts__title{
        font-size: 25px;
        line-height: 33px;
    }

    .contacts_cities_all {
        margin: 0px;
    }

    .contacts_cities, .contacts_cities_select, .cities_info_all_active {
        width: 100%;
    }

    .cities_ico{
        padding-right: 22px;
    }

    .contacts_img{
        padding-left: 0px;
    }

    .contacts_cities_info_titles{
        width: 65px;
    }
    
    .contacts_adress{
        line-height: 22px;
        margin-top: 8px;
    }

    .contacts_cities_info_data{
        padding-left: 0px;
    }

    .footer-wrapper{
        margin-top: 3px;
        min-height: 146px;
        row-gap: 12px;
    }
}

@media (max-width: 360px){
    .prices .container{
        padding: 0px 25px;
    }

    .welcome .description_text{
        margin-bottom: 10px;
    }

    .prices_form_item{
        max-width: 160px;
    }
    
    .price_ico{
        padding-right: 25px;
    }
}

/*hover на сенсорных экранах*/
@media (hover: none) {

    .header_button:hover{
        color: #E06733;
        background-color: #EDF2EC;
       }
}

/*hover на сенсорных экранах*/
@media (hover: none) {

    .header_button_active:hover{ 
        color: #fff;
        background-color: #E06733;
        transition: 0.3s ease-in-out;
    }
}
