@media(max-width: 1400px) {
    #full-menu > li > a {
        padding: 16px;
    }
    #full-menu .sub-menu {
        padding: 16px;
    }
}
@media(max-width: 1170px) {
    .container {width: 990px;}
    .header-menu .main-navigation li
    {
        padding: 13px;
        font-size: 16px;
        font-weight: 700;
    }
    .header-wrap .header-btn
    {
        display: none;
    }
    .header-phone
    {
        margin-left: 0;
        
    }
    .header-mobile-foot {display: flex;}

    .header-btn__a {width: 197px;height: 37px;font-size: 15px;padding: 0;justify-content: center;}
    .header-btn__a svg {height: 20px;margin-right: 10px;}

    .home__team-wrap {flex-wrap: wrap; justify-content: center;}
    .home__team .team-left{margin-bottom: 30px;}
    .home__team .team-social{display: none;}
    .home__team .digits_text{font-size: 16px;}
    .home__services-wrap{flex-wrap: wrap;}
    .home__services .services-left{flex-wrap: wrap; width: auto;}
    .home__services .services-left__text{ width: 100%;}
    .home__services_btn{ margin: auto; margin-bottom: 10px;}
    .home__services .services-right{width: auto; margin: 0 auto;}



    .about-team .person{
        width: 100%;
    }
    .post-service .content__wrap
    {
        flex-wrap: wrap;
    }
    .post-service__left,.post-service__sidebar
    {
        width: 100%;
    }

    .header-full__menu {display: none;}
			
    .main-navigation ul {
        display: none;
    }
    .header-toggle {
        display: flex;
    }
    .header-wrap {
        flex-wrap: nowrap;
    }
    .header-logo img {
        max-width: 100%;
    }
    .header-logo {
        padding-right: 15px;
    }
    .header-wrap .header-btn {
        display: block;
        margin-right: 20px;
    }

    .new-home__team-wrapp {flex-wrap: wrap;}
    .new-home__team-content {width: 100%;margin-bottom: 50px;}
    .new-home__team-persons {width: 100%;margin: auto;}
    .new-price__row {padding: 25px 35px;}
    .new-price__text {font-size: 15px;}
    .new-review {grid-template-columns: repeat(2, 1fr);}
    .header-right .header-btn {
        display: none;
    }

    .page-post__colon .content {width: 100%;}
    
}
@media(max-width: 990px) {
    .container {width: 740px;}
    .header_fixed
    {
        position: relative;
    }

    .header-wrap, .header-right
    {
        /* flex-wrap: wrap; */
    }
    .header-right{
        
    }

    .header-phone
    {
        width: 100%;
        text-align: center;
    }
    .header-phone a
    {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    .header-phone a svg {
        height: 21px;
    }

    .about-team .person{
        flex-wrap: wrap;
    }
    .about-team .person__left
    {
        width: 100%;
        height: 300px;
        text-align: center;
        margin-bottom: 20px;
    }
    .about-team .person__left img
    {
        height: inherit;
    }
    .footer-wrap
    {
        align-items: center;
        padding-top: 50px;
        position: relative;
    }
    .footer-logo
    {
        max-width: 30%;
    }
    .footer-logo .logo-text
    {
        display: none;
    }
    footer .footer-contacts, .phone {
        padding-top: 0;
    }
    footer .footer-nav
    {
        width: 70%;
        position: absolute;
        left: 0;
        top: 20px;
        padding-top: 0;
    }
    footer .menu
    {
        display: flex;
        list-style: none;
        margin: 0;
    }
    .footer-nav li {
        margin-bottom: 0;
        margin-right: 20px;
    }
    .footer-nav li:last-child {
        margin-right: 0;
    }
    .footer-nav li a {
        font-size: 15px;
    }
    .footer-btn
    {
        position: absolute;
        right: 0;
        top: 17px;
    }
    .footer-phone{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .footer-phone_elem{
        padding-left: 20px;
        font-size: 16px;    
    }
    .footer-socials,.footer-phone
    {
        margin-bottom: 0px;
        margin-top: 0;
        padding-top: 0;
    }

    .gallery-blocks
    {
        justify-content: flex-start;
    }
    .gallery-block
    {
        width:32%;
        margin-left: 10px;
    }
    .gallery-block:nth-child(3n+1)
    {
        margin-left: 0;
    }
    .gallery-block:nth-child(4n+1) { margin-left: 1.3%;}  

    .header-buttons {
        /* display: flex; */
    }
    .header-call {display: none;}
    .new-head__content {
        padding: 45px;
    }
    .new-home__team-wrapp {padding: 25px;}
    .new-services__grid {grid-template-columns: repeat(1, 1fr);}
    .new-price__text {width: 100%;margin-bottom: 10px;}
    .new-price__varianty {flex-wrap: wrap;}
    .new-step__wrapp {padding: 30px 20px;}
    
}
@media(max-width: 770px) {
    .container {width: 740px;}
    .header-right{width: 200px;min-width: auto;}

    .footer-socials,.footer-phone{
        width: auto;
        padding: 0;
    }
    footer .footer-contacts
    {      
        width: auto;
        padding-top: 0;
    }
    .footer-btn {top: 12px;}
    .footer-btn a {width: 95px;}
    .footer-btn span {display: none;}
    .footer-btn {text-transform: capitalize;}
    .footer-socials img {height: 30px;width: 30px;}
    .footer-socials a {width: 35px;}
    .footer-socials {
        justify-content: flex-end
    }
    .gallery-block
    {
        width:48%;
        margin-left: 1.3%;
    } 
    .gallery-block:nth-child(3n+1), .gallery-block:nth-child(4n+1)
    {
         margin-left: 1.3%;
    }  
    .gallery-block:nth-child(2n+1) { margin-left: 0;}  
    .infomap-wrap{ flex-wrap: wrap;}
    .page-contacts__infomap .infomap__left, .page-contacts__infomap .infomap__right{width: 100%;}
    .page-contacts__infomap .infomap__left{margin-bottom: 10px;}

    .anketa-client .offer-text {width: 100%;}
    .anketa-client {padding: 0;}
    .anketa-client label {font-size: 14px;}
    
    
    .new-head__content {padding: 20px;}
    .new-head h1 {font-size: 26px;margin-bottom: 10px;}
    .new-head__text {font-size: 15px;font-weight: 400;margin-bottom: 20px;}
    .new-home__team-grid {grid-template-columns: repeat(1, 1fr);}
    .new-price__row {padding: 20px;}
    .new-step__numb {flex-direction: column;}
    .new-step__numb img {margin-bottom: 5px;}
    .new-review {grid-template-columns: repeat(1, 1fr);}

    .post-service__sidebar form .title {font-size: 18px;}
    .post-service__sidebar h3 {font-size: 18px;}



    .popup-prices .right {justify-content: center;width: 100%;flex-direction: row;align-items: center;padding: 15px 30px;}
    .popup-prices .social {display: flex;}
    .popup-prices .mess {margin-bottom: 0;width: 160px;margin-right: 17px;}
    .popup-prices .left {width: 100%;padding: 15px;}
    .popup-prices .wrapp {width: 310px;height: 460px;flex-direction: column;justify-content: space-between;}
    

}
@media(max-width: 540px) {
    
    .footer-phone{
        flex-wrap: wrap;
        order: 3;
    }
    .header-phone a {font-size: 17px;width: 160px;}
    .footer-nav li {margin-right: 8px;}
    .footer-nav li:last-child {margin-right: 0;}
    .footer-nav li a {font-size: 14px;}
    .header-btn__a svg {margin-right: 5px;}
    footer .footer-contacts{
        width: auto;
        padding-top: 0;
    }
    
    .home__team .team-digits
    {
        flex-wrap:wrap;
    }
    .home__team .digit-block
    {
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid #fff;
        padding-bottom: 10px;
    }

    .home__team .digit {
        border-bottom: none;
        margin-bottom:0;
    }
    .gallery-block
    {
        width:100%;
        margin-left: 0 !important;
        text-align:center;
    } 
    .gallery-block img{ width: auto;}
    
    .page-portfolio .portfolio-block .portfolio-block__ttl, .page-uslugi .portfolio-block .portfolio-block__ttl
    {
        width: auto;
        padding: 10px 20px;
    }
    .gallery-block__under
    {
        box-shadow: none;
        border: none;
        margin-bottom: 10px;
        text-align: center;
    }

    .new-home__team-grid {gap: 25px;}
    .new-services__item {padding: 20px 10px;}
    .new-price__text ul {margin-left: 10px;}
    .new-step__text {width: 100%;}
    

    .popup-consultation .left {display: none;}
    .popup-consultation .right {width: 100%;}

    .popup-consultation .wrapp {width: 316px;}
    .popup-consultation .title {font-size: 18px;}
    .popup-consultation .subtitle {font-size: 14px;}
        
}
@media(max-width: 425px) {
    .footer-wrap {padding-bottom: 15px;}
    .footer-socials {position: absolute;right: 0;top: 64px;}
    .footer-logo {max-width: 45%;}
    .footer-wrap {padding-top: 115px;}
    .footer-btn span {display: none;}
    .footer-btn a {width: 130px;}
    footer .footer-nav {width: 100%;text-align: center;}
    .footer-btn {right: auto;left: 0;top: 60px;padding-left: 0;}
}
@media(max-width: 340px) {
    .header-btn__a {font-size: 13px;}
    .header-btn__a svg {height: 15px;width: 15px;}
}