@media (max-width: 1366px){
    .contacts-page .width.flexbox {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .contacts-page-scheme {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        padding: 60px 0 0;
    }
    .contacts-page .feedback-form {width: 100%;}
    .contacts-page .form-dog:before {left: 540px;}
	.review-row {width: 33%;}

}
@media (max-width: 1080px){
    .search-form.open {
        width: 100%;
        right: 0;
        border-bottom: 2px dashed #995bbe;
        height: 66px;
    }
    .feedback-form fieldset:nth-child(1) {width: 55%;}
    .feedback-form fieldset:nth-child(2) {width: 45%;}
    .form-dog:before {display: none;}
    .feedback-form {padding: 50px 0;}
    .services-banner .slider.page .slide-image {height: 600px;}

    .online-container {
        height: 100px;
        width: 100px;
        top: inherit;
        bottom: 20px;
        right: 50px;
    }
    .online-button {
        height: 80px;
        width: 80px;
    }
    .online-button {font-size: 14px;}
    .online-button > span:last-child {font-size: 16px;}
    span.online-circle-big {
        width: 28px;
        height: 28px;
        top: -18px;
        right: -16px;
    }
    span.online-circle-small {
        width: 20px;
        height: 20px;
        top: -45px;
        right: -5px;
    }
    span.online-circle-dot {
        width: 15px;
        height: 15px;
        top: -40px;
        right: -30px;
    }
    .scroller {
        right: initial;
        left: 20px;
    }
	.header-phone {
		padding: 6px 0;
	}
	.header-phone a {
		width: 100%;
		padding: 0;
	}
}
@media (max-width: 1024px){
    .master-photo {width: 350px;}
    .banner .slide-picture-home {left: 60px;}
    .slider.home .slide-text {left: 30px;}
    .footer-menu li {
        width: 50%;
        padding: 0;
    }
    .about-item {width: 49%;}
    .about .flexbox,
    .direction,
    .school-directions-width {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .slider-carousel:after {display: none;}
    .photo-carousel + a {margin-bottom: 20px;}
    .advantages .width > p {padding: 20px 0;}

    .school-directions-width,
    .direction {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .school-directions-width {
        margin: 15px 0;
    }
    .direction {
        width: 50%;
        margin: 10px 0;
    }
    .direction-subtitle {
        width: 60px;
        font-size: 14px;
        padding: 4px 10px;
        text-align: left;
    }
    .direction-image,
    .direction-number,
    .direction.active:before {display: none;}
    .direction .direction-name {
        width: initial;
        text-align: left;
        background: transparent !important;
        color: #995bbe;
        text-transform: none;
        font-size: 26px;
        padding: 0 10px;
    }
    .direction-name-text {position: relative;}
    .direction.active .direction-name-text:before {
        content: '';
        width: 12px;
        height: 12px;
        display: inline-block;
        -webkit-border-radius: 50%;
        border-radius: 50%;
        position: absolute;
        top: 10px;
        right: -20px;
        left: initial;
    }
    .direction-01 .direction-name-text:before {background: #995bbe;}
    .direction-02 .direction-name-text:before {background: #f082a5;}
    .direction-03 .direction-name-text:before {background: #09a3a3;}
    .direction-04 .direction-name-text:before {background: #e41849;}



    .gallery-block {width: 100%;}


}


/* mobile menu */

@media (max-width: 956px){
    .slider.home .slide-text {
        left: 0;
        top: 5px;
    }
    .mobile-menu.open {
        display: inline-block;
        height: 100%;
        overflow: scroll;
        position: fixed;
        top: 0;
        right: 0;
        min-width: 320px;
        max-width: 320px;
        width: 100%;
        background: #fff;
        font-family: 'Myriad Pro Regular';
        z-index: 999;
        padding: 30px;
        overflow-y: scroll;
        -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    .mobile-menu.open a {
        color: #995bbe;
    }
    .mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .mobile-menu-header {
        margin-bottom: 20px;
        display: inline-block;
        width: 100%;
    }
    .mobile-menu-header a {font-size: 20px;}
    .mobile-menu-nav li {
        list-style-type: none;
        padding: 5px 0;
    }
    .mobile-menu-nav a {
        font-size: 16px;
        padding: 5px;
        border-bottom: 1px solid #eee;
        display: inline-block;
        width: 100%;
    }


	.article-page {
		padding-top: 10px;
	}
	.article-page-morearticles {
		-ms-flex-wrap: wrap;
        flex-wrap: wrap;
	}

    .menu {display: none;}
    .logo {
        top: -40px;
        height: 125px;
        width: 135px;
        background-size: contain;
    }
    .footer .logo {
        height: 120px;
        top: -68px;
    }
    .header {
        position: relative;
        margin-bottom: 40px;
    }
    .header:before {
        content: '';
        display: inline-block;
        width: 100%;
        background: #fff;
        position: absolute;
        bottom: -22px;
        left: 0;
        height: 20px;
        width: 100%;
    }
    .slider {
        min-height: 400px;
        max-height: 400px;
    }
    h1,
    h2 {margin: 30px 0;}
    .section.about {padding-bottom: 40px;}
    .section.feedback .white {padding-top: 20px;}
    .about-item {margin-bottom: 10px;}
    .services-banner .slider.page .slide-image {height: 500px;}

    /* menu */

    .header-menu {display: none;}
    .header-search {width: 60px;}
    .header-menu-button {display: block;}
    .logo {
        right: inherit;
        left: 20px;
    }

    /*  */
    .masters .master .flexbox {padding: 0;}
    .masters .master h2 {margin-top: 0;}
    .masters .master {padding: 50px 30px;}
    .master-photo-name {padding: 20px 0 10px;}
    .master-photo {
        width: 350px;
        padding-right: 40px;
        text-align: left;
    }
    .photo-carousel.ms2Gallery {margin: 25px 0;}

    .school-hidden .flexbox {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .school-hidden .flexbox div {width: 100% !important;}
    .direction-hidden-title-container h2 {font-size: 38px;}
    .advantages-block {width: 48%;}
    .direction-hidden-text {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }
    .direction-hidden-title {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }

    .direction-hidden-number {
        font-size: 66px;
    }
	.review-row {width: 50%;}


}
@media (max-width: 850px){
    .slider.home .slide-text {
        width: 250px;
        height: 250px;
        top: initial;
        bottom: 70px;
    }
    .slider.home .slide-text span {
        top: 50px;
        font-size: 18px;
        width: 195px;
    }

    .feedback-form fieldset:nth-child(1) {
        width: 100%;
        float: none;
    }
    .feedback-form fieldset:nth-child(2) {
        width: 400px;
        float: none;
        margin: 0 auto;
        display: block;
        padding-bottom: 20px;
    }
    .feedback-form {padding: 50px 0 30px;}

    .about-item {width: 100%;}
    .about-row:nth-child(1) {
        min-height: initial;
        height: auto;
    }
    .about-item:nth-child(2) .about-row-text {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }
    .about-item:nth-child(2) .about-row-image {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }
    .banner .slide-picture-home,
    .about-item h3 br {display: none;}
    .scroller {bottom: 42px;}
    .slider {height: initial;}

    .article-preview {width: 48%;}
}

@media (max-width: 768px){
    .slider {
        min-height: initial;
        max-height: 300px;
    }
    .slider.page .slide-image {height: 400px;}
    .white h2,
    .white h1 {
        padding-bottom: 25px;
    }

    .review,
    .masters .master .flexbox {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .review {padding: 40px 20px;}

    .services-banner .slider.page .slide-image {height: 400px;}
    .section .master-descr > p:last-child {padding-bottom: 0;}
    .master-photo {
        width: 100%;
        text-align: center;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .arcticmodal-container .price-table,
    .table-body {min-width: 600px;}
    .table-body  table {min-width: 596px;}

    .advantages-block {
        width: 98%;
        padding: 20px 0;
    }
    .advantages .width > p {width: 100%;}
    .master-descr-specialist-title {text-align: left;}
    .direction {width: 25%;}
    .direction.active .direction-name-text:before {
        top: -27px;
        right: initial;
        left: 60px;
    }

    .footer-menu,
    .online-container > span,
    .review-photo:before {display: none;}
    .review-photos img {
        width: 100%;
        float: none;
        padding-bottom: 0;
    }
    .footer-contacts {
        -ms-flex-negative: 1;
        flex-shrink: 1;

        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;

        text-align: right;
    }
    .footer-row:nth-child(1) {height: 160px;}
    .main-page h1,
    .main-page .video h2 {
        margin-top: 40px;
    }
	.school-reviews .review-photo:before {display: inline-block;}
	.school-reviews {padding-bottom: 30px;}
}
@media (max-width: 640px){
    .contacts-page-div h2 br {
        display: none;
    }
    .slider.home .slide-text {
        width: 100%;
        background: #fff;
        border-top: 2px solid #c71ba3;
        height: auto;
        bottom: 0;
    }
    .slider.home .slide-text span {
        position: relative;
        width: 100%;
        padding: 20px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    .slider {max-height: 400px;}
    .slide-picture-contacts {right: 80px;}
    .slider.page .slide-image {height: 350px;}
    .footer-contacts-phone {font-size: 24px;}
    .online-container {right: 20px;}
    .feedback-form-image img {width: 80%;}
    .feedback-form {
        padding: 40px 20px 30px;
    }
    .contacts-flexbox,
    .gallery-block {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .contacts-page .flexbox {padding-bottom: 0;}

	.gallery-block-img {left: 0;}

    .contacts-page-div {
        width: 100%;
        padding: 0 20px;
    }
    .services-banner .slider.page .slide-image {height: 300px;}
    .contacts-page-div:nth-child(2) {padding: 0 20px;}
    .contacts-page-div h2 {
        text-align: center;
        margin-bottom: 5px;
    }
    .contacts-flexbox:before {
        left: initial;
        right: 20px;
    }
    .contacts-page-div:nth-child(2) .contacts-icon {
        width: 300px;
        margin: 10px auto 0;
    }
    .section.photos.purple {padding-bottom: 30px;}

    a.gallery-block-a {
        width: 100%;
        height: auto;
        text-align: center;
    }
    .gallery-block-img {
        width: 100%;
        position: relative;
    }

}
@media (max-width: 580px){


    .header-search > .search-close {
        top: 16px;
        right: 20px;
        position: absolute;
    }
    .search-form button[type="submit"] {
        margin-right: 40px;
        width: 55px;
        top: 3px;

        -ms-flex-negative: 0;
        flex-shrink: 0;
    }
    .search-form.open {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding-left: 20px;
    }
    .search-form.open input {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }
    .feedback-form fieldset:nth-child(2) {width: 100%;}
    .header-phone {display: none;}
    .slider {max-height: 350px;}
    .slider.page .slide-image {height: 250px;}
    .slide-picture-contacts {right: 40px;}
    .contacts-page .feedback-form {padding-top: 30px;}
    .section.photos.purple > .width {
        padding-left: 0;
        padding-right: 0;
    }
    .pagination-li .prev,
    .pagination-li .next {
        border: none;
        height: 35px;
        width: 35px;
    }
    .direction {width: 33%;}


    .article-preview {
        width: 100%;
        margin: 20px 0;
    }

    .contacts-page-scheme {
        width: 100%;
        margin-bottom: 40px;
    }
    .contacts-page .feedback-form {
        padding: 0 20px;
    }
	.review-row {
		width: 100%;
		padding: 0;
		margin-bottom: 20px;
	}
}
@media (max-width: 425px){
    .about-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .direction {width: 100%;}
    .direction.active .direction-name-text:before {
        top: 10px;
        right: -20px;
        left: initial;
    }
    .header {margin-bottom: 20px;}
    .slide-picture-contacts,
    .contacts-flexbox:before {display: none;}
    .banner > .width {padding: 0;}
    .section.photos > .width {
        padding-top: 40px;
        padding-bottom: 0;
    }
    .master-descr-specialist {text-align: center;}
    .modal-price {margin: 0 auto;}
    .section.photos.purple > .width {padding-top: 40px;}
    .contacts-page-div:nth-child(2) .contacts-icon {width: 100%;}
    .services-banner .slider.page .slide-image {height: 250px;}
    .feedback-form-inputs input {min-height: 52px;}
    .footer .logo {left: 0;}
    .feedback-form {padding: 40px 0 20px;}
    .master-photo-wrap,
    .pagination-ul {width: 100%;}
    .masters .master {padding: 30px 20px;}
    .review-photos img {
        padding-left: 0;
        padding-right: 0;
    }
    .section.photos.purple .contacts-icon * {font-size: 16px;}
}
@media (max-width: 375px){
    .slider {max-height: 250px;}
}