@media(max-width: 1250px){
    .container{
        padding: 0 30px;
    }
    .specialist__image{
        max-width: 400px;
        max-height: 400px;
    }
    .contact__map {
        width: 500px;
    }
}

@media(max-width: 1125px){
    .main {
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
    }
    .contact__info{
        margin-right: 20px;
    }

}

@media(max-width: 1080px){
    .cards__item {
        max-width: 300px;
    }
    .cards__image{
        height: 300px;
    }
}

@media(max-width: 1024px){
    .reviews{
        display: table;
    }
    .reviews__list{
        grid-template-columns: 1fr;
    }
    .specialist__image{
        display: none;
    }
    .specialist__title{
        width: 90%;
    }
    .specialist__list{
        width: 70%;
    }
    .specialist__item {
        width: 50%;
    }
    .contact{
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        width: 100%;
    }
    .contact__map {
        width: 400px;
    }
}

@media(max-width: 980px){
    .cards{
        flex-direction: column;
        align-items: center;
    }
    .cards__item:not(:last-child){
        margin-bottom: 20px;
    }
    .cards__item {
        max-width: 90%;
    }

    .advantages__button{
        flex-direction: column-reverse;
    }
    .advantages__right{
        max-width: 400px;
        margin-left: 20px;
    }
    .advantages__button .button,
    .advantages__button p{
        margin: 0;
    }
    .advantages__button p{
        margin-bottom: 30px;
    }
    .advantages__image{
        margin: 0 0 20px 0;
    }
    .header__logo {
        width: 110px;
        height: 110px;
    }
    .header__link:first-child{
        margin-right: 15px;
    }
    .contact__map {
        width: 320px;
        height: 500px;
    }
}

@media(max-width: 825px){
    section{
        padding: 50px 0;
    }
    .advantages{
        height: auto;
    }
    .advantages__content{
        flex-direction: column;
        align-items: center;
    }
    .advantages__button p{
        text-align: center;
    }
    .advantages__image{
        margin: 0 0 20px -50px;
    }
    .advantages__right {
        margin-left: 0px;
    }
    .specialist{
        height: -webkit-fit-content;
        height: -moz-fit-content;
        height: fit-content;
        display: table;
        width: 100%;
    }
    .contact__content{
        flex-direction: column;
    }
    .contact__map {
        width: 100%;
        height: 300px;
        margin-top: 40px;
    }
    .footer__logo {
        width: 125px;
        height: 50px;
        margin-top: 35px;
    }
    .footer__body{
        flex-direction: column;
    }
    .footer{
        max-height: none;
        height: 400px;
    }
    .footer__text{
        margin: 0 10px;
        font-size: 15px;
    }
    .footer__grafic{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer__social{
        margin-right: 10px;
    }
    .footer__copyright {
        margin-bottom: 20px;
    }
}

/* меню бургер */
@media (max-width:925px){
    .footer__social img{
        width: 30px;
        height: 30px;
    }
	body.lock{
		overflow: hidden;
	}
	.header__burger {
		display: block;
		position: relative;
		height: 20px;
		width: 30px;
		z-index: 51;
	}
	.header__burger::before,
	.header__burger::after{
		content:'';
		background-color: #fff;
		position: absolute;
		width: 100%;
		height: 2px;
		left:0;
		transition: all 0.5s ease 0s;
	}
	.header__burger::before{
		top: 0;
	}
	.header__burger::after{
		bottom: 0;
	}
	.header__burger span{
		position: absolute;
		background-color: #fff;
		height: 2px;
		width: 100%;
		left: 0;
		top: 9px;
		transition: all 0.5s ease 0s;
	}
	.header__nav{
        display: flex;
        flex-direction: column;
		position: fixed;
		top:0;
		right:-100%;
		width: 100%;
		height: 100%;
		overflow: auto;
		background-color: #222222;
		padding: 25% 10px 20px 10px;
		transition: all 0.5s ease 0s;
        z-index: 50;
	}
	.header__nav.active{
		right:0;
	}

    .header__nav.active .header__link{
        font-size: 20px;
        margin: 0;
    }
    .header__nav.active .header__link:not(:last-child){
        margin-bottom: 20px;
    }

    .header__phone{
        margin-left: auto;
        margin-right: 30px;
    }
}
/* /меню бургер */

@media(max-width: 650px){
    .title{
        margin-bottom: 50px;
    }
    .specialist__title {
        width: 100%;
    }
    .specialist__buttons {
        display: flex;
        flex-direction: column;
    }
    .specialist__buttons div{
        text-align: center;
    }
    .specialist__buttons div:last-child{
        margin-left: 0;
        margin-top: 20px;
    }
    .specialist__subtitle{
        font-size: 18px;
    }
    .specialist__list{
        width: 100%;
        flex-direction: column;
    }
    .specialist__item {
        width: 100%;
        align-items: center;
        margin-bottom: 10px;
    }
    .specialist__item svg{
        margin-right: 15px;
    }
    .specialist__item:last-child{
        margin-left: 0;
    }
    .specialist__item p{
        margin: 0 !important;
    }
    .popup-form__body, .popup-call__body {
        padding: 50px 50px;
    }
}

@media(max-width: 580px){
    .reviews__item img {
        max-width: 150px;
    }
    .reviews__image{
        width: 150px;
        height: 150px;
    }
    .advantages__content{
        height: auto;
    }
    .advantages__right{
        margin-top: 50px;
    }
    .title{
        font-size: 30px;
        margin-bottom: 50px;
    }

    .advantages__list-item p{
        font-size: 18px;
    }

    .advantages__list-item:not(:last-child) {
        margin-bottom: 25px;
    }

    .main__button{
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .main__button p {
        margin: 0 0 10px 0;
    }
}

@media(max-width: 530px){
    .header__logo {
        width: 110px;
        height: 80px;
    }
    .reviews__item{
        flex-direction: column;
    }
    .reviews__item img{
        max-width: 250px;
    }
    .reviews__image{
        width: 250px;
        height: 250px;
    }
    .reviews__text-block{
        margin-top: 20px;
    }
    .contact-form-form{
        flex-direction: column;
    }
    .contact-form__input{
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }
    .popup-form__body, .popup-call__body {
        padding: 50px 25px;
    }
}

@media(max-width: 465px){
    .popup-form__body, .popup-call__body {
        padding: 50px 10px;
    }
    .popup-form__label{
        font-size: 12px;
    }
    .popup-form__title, .popup-call__title {
        font-size: 25px;
    }
    .popup-form__subtitle{
        font-size: 18px;
    }
    .footer__text {
        font-size: 13px;
    }
    .reviews__title{
        width: 100%;
    }
    .header__logo {
        width: 110px;
        height: 65px;
    }
    .header__phone {
        font-size: 15px;
    }
}

@media(max-width: 440px){
    .footer__social img {
        width: 25px;
        height: 25px;
    }
}