@media (max-width: 1600px) {
    .home__about {
        grid-template-columns: 450px 1fr;
    }
}
/* 1600px */

@media (max-width: 1500px) {
    .header__with-text {
        grid-column-gap: 30px;
        grid-template-columns: 1fr 450px;
    }
}
/* 1500px */

@media (max-width: 1400px) {
    .home__about {
        grid-column-gap: 35px;
    }
    .home__about {
        grid-template-columns: 400px 1fr;
    }
    .knabis__big-btn {
        height: 90px;
    }
    .home__about-title {
        margin-bottom: 30px;
    }
    .partner__item-title {
        line-height: 22px;
        font-size: 15px;
    }
    .partner__item-url {
        font-size: 15px;
        line-height: 22px;
    }
    .knabis__methods .methods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}   
/* 1400px */

@media (max-width: 1300px) {
    .video__title {
        padding: 60px 20px 30px;
        font-size: 36px;
        line-height: 45px;
    }
    h1 {
        font-size: 70px;
        line-height: 55px;
    }
    .routine__schools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .christ__gallery {
        grid-column-gap: 15px;
    }
    .christ__gallery a {
        height: 350px;
    }
    .christ__gallery a img {
        height: 350px;
    }
}
/* 1300px */

@media (max-width: 1250px) {
    .header__with-text {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .header__text-left {
        order: 2;
        margin-top: 45px;
        padding: 0 var(--container-padding);
    }
    .header__text-right {
        order: 1;
    }
    .header__text-right img {
        width: 100vw;
        height: 345px;
        object-fit: cover;
        object-position: center;
    }
    .projects {
        margin-top: 0;
    }
    .partners__header {
        margin-bottom: 20px;
    }
    .project {
        grid-template-columns: minmax(0, 1fr);
    }
    .project__img {
        margin-bottom: 25px;
    }
    .project__img img {
        width: initial;
        max-width: 100%;
        max-height: 250px;
        object-fit: cover;
    }
    .project__more {
        justify-content: center;
    }
}
/* 1250px */

@media (max-width: 1200px) {
    .home__about {
        grid-template-columns: 1fr;
        padding-right: 0;
    }
    .home__about-left img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
    .home__about-right {
        padding: 0 var(--container-padding);
    }
    .homepage__banner-title {
        max-width: 100%;
        padding: 0 40px;
    }
    .homepage__banner-title {
        font-size: 62px;
        line-height: 65px;
    }
    .knabis__methods .methods {
        grid-template-columns: repeat(3, minmax(0,1fr));
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }
    .gallery__overlay-text {
        font-size: 55px;
    }
    .school__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contacts__information {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-column-gap: 50px;
        grid-row-gap: 50px;
    }
    .school__apply-btn a {
        height: 80px;
    }
}
/* 1200px */

@media (max-width: 1150px) {
    .story__left img {
        max-height: 350px;
        width: 100%;
        object-fit: cover;
        object-position: top center;
    }
    .image__text-block {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1050px) {
    .pages__list {
        grid-template-columns: repeat(2, 1fr);
    }
    .knabis__methods .methods {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .method__description {
        padding: 0px 15px 0px;
    }
    .method__title {
        font-size: 30px;
        line-height: 32px;
    }
    .popup__inner {
        width: 95%;
    }
}
/* 1050px */

@media (max-width: 1000px) {
    .r__school-img {
        height: 240px;
    }
    .r__school-img img {
        height: 240px;
    }
    .christ__gallery a {
        height: 230px;
    }
    .christ__gallery a img {
        height: 230px;
    }
    .gallery__overlay-text {
        font-size: 40px;
    }
    .school__list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .contacts__information {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .popup__row-3 {
        grid-template-columns: 1fr;
    }
}
/* 1000px */

@media (max-width: 850px) {
    .knabis__sidebar {
        display: none;
    }
    .knabis__page {
        grid-template-columns: 1fr;
    }
    .video__list {
        width: 100vw;
    }
    .home__quote-text {
        margin-left: 35px;
        margin-right: 35px;
        font-size: 20px;
        line-height: 28px;
    }
    .home__quote-title {
        font-size: 45px;
        line-height: 45px;
    }
    .page__header img {
        height: 250px;
    }
    .page__header {
        height: 250px;
        margin-bottom: 40px;
    }
    .routine__schools {
        grid-template-columns: repeat(2, 1fr);
    }
    .r__school-content {
        padding: 80px 20px 45px;
    }
    .partners__header {
        height: initial;
    }
    .partner__slider-list {
        width: calc(100vw - 130px);
    }
    .home__header {
        margin-bottom: 0;
    }
    .home__header {
        display: none;
    }
    .knabis__mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding: 16px 23px;
    }
    .mobile__header-logo svg {
        height: 55px;
        width: auto;
    }
    .mobile__header-burger svg {
        width: 38px;
        height: auto;
    }
    .mobile__header-burger:hover {
        cursor: pointer;
    }
    .mobile__header-quote {
        font-size: 25px;
        font-weight: 600;
        text-align: center;
    }
    .knabis__page {
        padding-top: 91px;
    }
    .mobile__header-homebtn {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
    }
    .mobile__header-homebtn .home__header-btn {
        height: 50px;
        font-size: 18px;
        line-height: 20px;
        width: 115px;
        padding: 0 15px;
    }
    .knabis__mobile-nav {
        position: fixed;
        z-index: 15;
        background-color: #FFF;
        width: 100%;
        height: 100%;
    }
    .mobile__nav-close {
        margin-top: 40px;
        text-align: right;
        margin-right: 16px;
    }
    .mobile__nav-links {
        padding-top: 30px;
    }
    .knabis__first-level  {
        list-style: none;
        text-align: center;
        margin-left: 0;
    }
    .mobile__nav-links a {
        font-weight: 400;
        font-size: 30px;
        line-height: 35px;
    }
    .mobile__nav-links .knabis__submenu {
        margin-left: 0;
        margin-top: 10px;
    }
    .knabis__submenu a:hover {
        background: initial !important;
        cursor: pointer;
    }
    .mobile__nav-close:hover {
        cursor: pointer;
    }
    .mobile__nav-inner {
        overflow-y: auto;
        max-height: 100vh;
    }
    .popup__fields {
        padding: 0 80px 50px;
    }
}
/* 850px */

@media (max-width: 768px) {
    p, p strong, ul li {
        font-size: 16px;
        line-height: 30px;
    }
    h1 {
        font-size: 70px;
    }
    .method__description {
        font-size: 16px;
        line-height: 30px;
    }
    .home__about-title {
        font-size: 55px;
        line-height: 60px;
    }
    .knabis__big-btn {
        height: 60px;
        font-size: 24px;    
    }
    .follow__us {
        margin-top: 50px;
    }
    .follow__us-title {
        font-size: 55px;
        line-height: 60px;
        text-align: center;
    }
    .video__btn {
        height: 60px;
        font-size: 24px;
        top: -30px;
    }
    .video__title {
        font-size: 32px;
        line-height: 35px;
        padding: 60px 15px 30px;
    }
    .gallery__block {
        grid-template-columns: repeat(3, minmax(0,1fr));
        margin-top: 60px;
    }
    .home__gallery img {
        height: 270px;
    }
    .video__img {
        height: 230px;
    }
    .video__img img {
        height: 230px;
    }
    :root {
        --container-padding: 45px;
    }
    .follow__us-socials a svg {
        height: 42px;
    }
    .method__title {
        font-weight: 700;
    }
    .school__lower {
        padding: 20px 20px 30px;
    }
    .school__title {
        min-height: initial;
    }
    .page__list-title {
        padding: 0 20px;
    }
    .popup__desc {
        padding: 25px 25px 0;
    }
}
/* 768px */

@media (max-width: 550px) {
    h1 {
        font-size: 50px;
    }
    .gallery__block {
        grid-template-columns: repeat(2, minmax(0,1fr));
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }
    :root {
        --container-padding: 25px;
    }
    .knabis__methods .methods {
        grid-template-columns: repeat(1, minmax(0,1fr));
    }
    .follow__us-title {
        font-size: 45px;
        line-height: 50px;
    }
    .partner__slider-list {
        width: calc(100vw - 50px);
    }
    .project__title {
        font-size: 20px;
        line-height: 28px;
    }
    .mobile__header-quote {
        font-size: 20px;
    }
    .popup__fields {
        padding: 0 25px 50px;
    }
}
/* 550px */

@media (max-width: 530px) {
    .routine__schools {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
/* 530px */

@media (max-width: 500px) {
    .homepage__banner-title {
        transform: translateX(-50%) translateY(-62%);
    }
    .footer__title {
        width: 90%;
        font-size: 40px;
        line-height: 50px;
    }
    .school__tab-switcher {
        font-size: 28px;
        padding: 0 30px;
        height: 50px;
    }
}
/* 500px */

@media (max-width: 475px) {
    .video__list .slick-slide {
        margin: 0px;
    }
    
    .video__list .slick-list {
        margin: 0px;
    }
}
/* 475px */

@media (max-width: 450px) {
    .homepage__banner-title {
        font-size: 45px;
        line-height: 55px;
    }
    .pages__list {
        grid-template-columns: 1fr;
    }
    .home__header-btn {
        font-size: 23px;
        height: 70px;
        bottom: -35px;
    }
    .home__about-btns {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .home__about-btns a:first-child {
        margin-right: 0;
    }
    .home__gallery img {
        height: 230px;
    }
    .christ__gallery a {
        height: 160px;
    }
    .christ__gallery a img {
        height: 160px;
    }
    .gallery__overlay-text {
        font-size: 30px;
    }
    p {
        font-size: 15px;
        line-height: 25px;
    }
    p, p strong, ul li {
        margin-bottom: 20px;
    }
    .school__apply-btn a {
        font-size: 25px;
        height: 60px;
        padding: 0 35px;
    }
    .mobile__header-quote {
        padding: 0 15px;
    }
    .mobile__header-homebtn {
        bottom: 10px;
    }
    .footer__copyright {
        margin-bottom: 80px;
    }
}
/* 450px */

@media (max-width: 440px) {
    .mobile__header-homebtn .home__header-btn {
        height: 45px;
    }
}
/* 440px */

@media (max-width: 400px) {
    .gallery__block {
        grid-template-columns: repeat(1, minmax(0,1fr));
        grid-row-gap: 10px;
    }
    .project__title {
        font-size: 18px;
        line-height: 26px;
    }
    .mobile__nav-links a {
        font-size: 25px;
        line-height: 32px;
    }
    .knabis__mobile-nav .sidebar__contacts {
        font-size: 25px;
    }
}
/* 400px */

@media (max-width: 380px) {
    .home__about-btns {
        flex-direction: column;
        justify-content: center;
    }
    .home__about-btns a:first-child {
        margin-bottom: 20px;
    }
}
/* 380px */