/*==========  Desktop First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    .groups-item h3 {
        font-size: 22px;
    }

    .home-about__text-img {
        display: none;
    }
    .distance-learning-all__items-item h2 {
        font-size: 20px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .header-menu ul li a {
        font-size: 15px;
    }

    .top-block {
        height: 600px;
    }

    .top-block h1 {
        font-size: 48px;
    }

    .top-links__item {
        padding: 45px 12px;
    }

    .contacts-line__contacts {
        flex-direction: column;
    }

    .contacts-line__email {
        margin-left: 0;
        margin-top: 12px;
    }

    .contacts-line__img {
        top: -55px;
    }

    .site-parts__item-content h3:after {
        top: calc(50% - 12px);
    }

    .site-parts__list-wrapper {
        position: static;
        padding: 0;
        margin-top: -20px;
    }

    .site-parts {
        padding: 100px 0 50px 0;
    }

    .groups {
        padding: 100px 0;
    }

    .groups-header:before {
        left: 0;
    }

    .groups-header:after {
        right: 0;
    }

    .groups-header h2 {
        font-size: 36px;
    }

    .site-parts__header h2 {
        font-size: 36px;
    }

    .site-parts__item-content h3 {
        font-size: 26px;
        height: auto;
    }

    .groups-item {
        margin-bottom: 32px;
    }

    .groups .top-block__button-wrapper {
        margin-top: 32px;
    }

    .home-about {
        padding: 50px 0 18px;
    }

    .home-about__text {
        margin-top: 80px;
    }

    .home-about__item {
        margin-bottom: 32px;
    }

    .home-about__text h2 {
        font-size: 36px;
    }

    .home-team {
        padding: 100px 0;
    }

    .home-team__header h2 {
        font-size: 36px;
    }

    .home-news {
        margin-top: 70px;
    }

    .home-news__header h2 {
        font-size: 36px;
    }

    .home-news__item {
        margin-bottom: 32px;
    }

    .home-news__open-all {
        margin-top: 32px;
    }

    .home-reviews__slider-wrapper {
        padding: 70px 0;
    }

    .slick-slider {
        margin-top: 32px;
    }

    .home-reviews__slider-item p {
        font-size: 22px;
    }

    .home-faq__header h2 {
        font-size: 36px;
    }

    .home-child-register__card {
        padding: 100px;
    }

    .home-child-register__card h2 {
        font-size: 36px;
    }

    .home-child-register__card > p {
        font-size: 16px;
    }

    .home-child-register {
        margin-top: 0;
    }

    .home-child-register__card form {
        flex-direction: column;
    }

    .home-child-register__card form input {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .home-reviews__stars img:last-child {
        z-index: -1;
    }

    .home-news__open-all {
        margin-top: 0;
    }

    .gallery-posts {
        padding-top: 50px;
        margin-bottom: 70px;
    }

    .gallery-posts__header h1 {
        font-size: 32px;
    }

    .gallery-posts__item-text__headline h2 {
        font-size: 22px;
    }

    .gallery-posts__item {
        height: 230px;
    }

    .single-news__header-img {
        display: none;
    }

    .contacts-page__map {
        margin-top: 24px;
    }
    .teache-single__text h1 {
        text-align: center;
    }
    .teache-single__text span {
        text-align: center;
    }
    .teache-single__text p {
        text-align: center;
    }
    .teache-single__text a {
        display: block;
        text-align: center;
        margin: 0 0 16px 0;
    }
    .teache-single__text a:last-child {
        margin: 0;
    }
    .all-teachers-banner__banner {
        flex-direction: column;
    }
    .all-teachers-banner__banner h2 {
        margin-bottom: 24px;
        text-align: center;
    }
    .distance-learning-all__items-item {
        margin-bottom: 24px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    .top-header__contacts-phone {
        margin-left: 0;
    }

    .header-menu ul li a {
        font-size: 16px;
    }

    .mobile-menu-wrapper {
        position: fixed;
        top: 0;
        left: -999px;
        width: 100%;
        height: 100%;
        background: #fff;
        padding: 15px;
        z-index: 9999;
        overflow: auto;
        transition: all .30s;
    }

    .mobile-menu-wrapper__active {
        transition: all .30s;
        left: 0;
    }

    .header-menu ul {
        flex-direction: column;
        justify-content: center;
    }

    .header-menu .sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        display: none;
        padding: 0;
    }

    .has-sub-menu:hover > a span svg {
        transform: none;
    }

    .rotate-mob-menu-arrow svg {
        transform: rotate(180deg) !important;
    }

    .header-menu ul li {
        margin-bottom: 6px;
        background: #eee;
        padding: 8px;
        border-radius: 8px;
    }

    .sub-menu {
        background: #eee !important;
    }

    .sub-menu li {
        padding: 4px !important;
    }

    .header-menu {
        margin-top: 32px;
    }

    .close-mob-menu__btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .mob-menu-btn__wrapper {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .main-header > .container > .row {
        align-items: center;
    }

    .mob-nemu-btn {
        outline: none;
        background: #fff;
        border: 1px solid #6159D1;
        border-radius: 8px;
        height: 40px;
        width: 40px;
        transition: all .30s;
    }

    .mob-nemu-btn svg {
        transition: all .30s;
    }

    .mob-nemu-btn:hover {
        transition: all .30s;
        background: #6159D1;
    }

    .mob-nemu-btn:hover > svg path {
        transition: all .30s;
        fill: #fff;
    }

    .mob-menu-contacts {
        margin-top: 32px;
    }

    .mob-menu-contacts {}

    .mob-menu-contacts a {
        display: block;
        text-decoration: none;
        margin-bottom: 16px;
        font-weight: 700;
        color: #353E4E;
    }

    .mob-menu-contacts a span svg {
        vertical-align: middle;
    }

    .mob-menu-contacts address {
        font-weight: 700;
        color: #353E4E;
        font-style: normal;
    }

    .mob-menu-contacts address svg {
        vertical-align: middle;
    }

    .mob-menu-contacts {}

    /*    ******************************/
    .top-block h2 {
        font-size: 22px;
    }

    .top-links__item {
        padding: 24px 12px;
    }

    .top-links {
        margin: 70px 0;
    }

    .contacts-line__img {
        display: none;
    }

    .contacts-line__contacts {
        text-align: center;
    }

    .groups-header:before {
        display: none;
    }

    .groups-header:after {
        display: none;
    }

    .home-team__job-offer-link {
        display: none;
    }

    .home-team {
        padding: 70px 0;
    }

    .home-reviews__stars img:nth-child(5) {
        display: none;
    }

    .home-reviews__stars img:nth-child(6) {
        display: none;
    }

    .home-reviews__slider-wrapper {
        padding-top: 25px;
        margin-top: 25px;
    }

    .slick-slider {
        margin-top: 70px;
    }

    .home-faq__header-img {
        display: none;
    }

    .home-child-register__card {
        padding: 50px;
        background: url(../img/cr-top-left.svg) top left/30% no-repeat, url(../img/cr-top-right.svg) top right/30% no-repeat, url(../img/cr-bottom.svg) bottom right no-repeat, #fff;
        margin-bottom: 50px;
    }

    .footer-contacts h3 {
        margin-top: 64px;
    }

    .footer-child-register {
        margin-top: 24px;
    }

    .footer-social {
        margin-top: 32px;
    }

    .home-team__slider-controller {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .slick-slider {
        margin-top: 0;
    }

    .gallery-posts__item {
        height: auto;
        flex-direction: column;
    }

    .gallery-posts__item-img {
        width: 100%;
    }

    .gallery-posts__item-text {
        width: 100%;
    }

    .gallery-posts__wrapper {
        margin-top: 42px;
    }

    .single-news__header h1 {
        font-size: 36px;
    }

    .single-news {
        padding-top: 50px;
        margin-bottom: 70px;
    }

    .contacts-page {
        padding-top: 50px;
    }

    .contacts-page__contacts h1 {
        font-size: 36px;
    }

    .contacts-page__contacts p {
        font-size: 18px;
    }

    .contacts-page__contacts address,
    .contacts-page__contacts a {
        font-size: 18px;
    }

    .contacts-page__map iframe {
        height: 300px;
    }

    .about-page__header h1 {
        font-size: 36px;
    }

    .about-page__header p {
        font-size: 18px;
    }

    .about-page__content {
        margin-top: 70px;
    }

    .about-page__content-content > h2:before {
        top: -24px;
    }

    .certificats-slider {
        margin-top: 24px;
        padding: 100px 0;
    }
    .certificats-slider__header h2 {
        font-size: 36px;
    }
    .certificats-slider__buttons {
        justify-content: flex-start;
        margin-top: 24px;
    }
    .certificats-slider__wrapper {
        margin-top: 24px;
    }
    .certificats-slider__slider-item {
        padding: 0;
    }
    .about-page {
        padding-top: 50px;
    }
    .about-page__content-content > h2 {
        font-size: 36px;
    }
    .teache-single__text {
        margin-top: 24px;
    }
    .teache-single__text h1 {
        font-size: 26px;
    }
    .teache-single__text span {
        font-size: 18px;
    }
    .teache-single {
        padding-top: 50px;
    }
    .all-teachers__header figure {
        display: none;
    }
    .all-teachers {
        padding-top: 50px;
    }
    .all-teachers__header h1 {
        font-size: 36px;
    }
    .all-teachers__list {
        margin-top: 36px;
    }
    .all-teachers__item {
        margin-bottom: 36px;
    }
    .all-teachers-banner__banner h2 {
        font-size: 24px;
    }
    .all-teachers-banner {
        margin-top: 12px;
        margin-bottom: 70px;
    }
    .distance-learning-all {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .distance-learning-all__categories {
        margin-bottom: 24px;
    }
    .distance-learning-single {
        padding-top: 50px;
    }
    .distance-learning-single__item h2 {
        font-size: 36px;
    }
    .distance-learning-single__item h3 {
        font-size: 24px;
    }
    .distance-learning-single__item {
        margin-bottom: 70px;
    }
    .distance-learning-single__item h3 {
        margin-bottom: 24px;
    }
    .all-photo-posts__header figure {
        display: none;
    }
    .all-photo-posts__header h1 {
        font-size: 36px;
    }
    .all-photo-posts {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .all-photo-posts__wrapper {
        margin-top: 36px;
    }
    .all-photo-posts__items {
        margin-top: 24px;
    }
    .all-photo-posts__items-item {
        margin-bottom: 24px;
    }
    .all-photo-posts__items-item figure {
        height: auto;
    }
    .photo-post-single__header figure {
        display: none;
    }
    .photo-post-single {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .photo-post-single__header h1 {
        font-size: 36px;
    }
    .job-offers__header figure {
        display: none;
    }
    .job-offers {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .job-offers__header h1 {
        font-size: 36px;
    }
    .job-offers__list {
        margin-top: 36px;
    }
    .job-offers__list-item {
        margin-bottom: 36px;
    }
    .job-offers__list-item p {
        font-size: 16px;
    }
    .how-add-child {
        padding-top: 50px;
    }
    .how-add-child h1 {
        font-size: 36px;
    }
    .how-add-child__free-pace {
        margin: 70px 0;
    }
    .how-add-child__free-pace h3 {
        font-size: 36px;
        margin-bottom: 24px;
    }
    .all-menufood {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .all-menufood__header h1 {
        font-size: 36px;
    }
    .distance-learning-single__header h1 {
        font-size: 36px;
    }
    .food-cost-banner {
        flex-direction: column;
        padding: 24px;
        text-align: center;
        margin-top: 36px;
    }
    .food-cost-banner button {
        margin-top: 24px;
    }
    .food-cost-banner h3 {
        font-size: 26px;
    }
    .single-foodmenu-page {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .single-foodmenu__header h1 {
        font-size: 36px;
    }
    .single-foodmenu__header h2 {
        font-size: 24px;
    }
    .simple-page {
        padding-top: 50px;
        margin-bottom: 70px;
    }
    .simple-page__header h1 {
        font-size: 26px;
    }
    .has-sub-menu:after {
        top: 10px;
        right: 15px;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .main-header {
        padding: 8px 0;
    }

    .main-header .logo img {
        max-width: 120px;
    }

    .top-block h1 {
        font-size: 36px;
    }

    .top-block h2 {
        font-size: 16px;
    }

    .top-block {
        height: 500px;
    }

    .top-links__item {
        padding: 18px 12px;
        font-size: 24px;
    }

    .top-links {
        margin: 50px 0 24px;
    }

    .site-parts__header h2 {
        font-size: 32px;
    }

    .site-parts__header h2:before {
        top: -24px;
    }

    .site-parts {
        padding: 70px 0 20px 0;
    }

    .site-parts__item-content h3 {
        font-size: 18px;
    }

    .site-parts__item {
        margin-bottom: 12px;
    }

    .site-parts__header {
        margin-bottom: 32px;
    }

    .groups {
        padding: 70px 0;
    }

    .groups-header h2:before {
        top: -24px;
    }

    .groups-header {
        margin-bottom: 32px;
    }

    .groups .top-block__button-wrapper {
        margin-top: 12px;
    }

    .home-about__top-clouds img:nth-child(2) {
        display: none;
    }

    .home-about__top-clouds img:last-child {
        display: none;
    }

    .home-about {
        padding: 20px 0 20px;
    }

    .home-team__header h2:before {
        top: -24px;
    }

    .home-news__header span:after {
        right: 94px;
        display: none;
    }

    .home-news__header h2 {
        font-size: 28px;
    }

    .home-news__header span:before {
        left: -40px;
    }

    .home-reviews__slider-item p {
        font-size: 18px;
    }

    .home-reviews__stars img:nth-child(3) {
        display: none;
    }

    .slick-slider {
        margin-top: 0;
    }

    .home-reviews__slider-item span {
        font-size: 16px;
    }

    .home-reviews {
        margin-top: 0;
        padding-top: 32px;
    }

    .home-news__header h2:before {
        top: -24px;
    }

    .home-reviews__stars img:nth-child(2) {
        top: 35px;
    }

    .home-reviews__stars img:first-child {
        top: -10px;
    }

    .home-reviews__stars img:nth-child(7) {
        display: none;
    }

    .home-reviews__stars img:nth-child(4) {
        top: -20px;
    }

    .home-reviews__stars img:last-child {
        bottom: -140px;
    }

    .home-faq__header h2 {
        font-size: 24px;
    }

    .home-faq__header h2:before {
        top: -24px;
    }

    .home-faq {
        margin-top: 70px;
    }

    ul.accordion-list li h3 {
        font-size: 18px;
    }

    ul.accordion-list li div.answer p {
        font-size: 16px;
    }

    .home-child-register__card {
        padding: 48px 15px;
    }

    .home-child-register__card h2:before {
        top: -24px;
    }
    .about-page__header-statistic {
        flex-direction: column;
    }
    .about-page__header-statistic .grops {
        border: none;
        border-top: 1px solid #DEDCEE;
        border-bottom: 1px solid #DEDCEE;
        padding: 24px 0;
        margin: 24px 0;
    }
    .all-teachers-banner__banner {
        padding: 24px;
    }
    .job-offers__list-item__contacts {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .job-offers__list-item__contacts a {
        margin-left: 0;
    }
    .job-offers__list-item__contacts button {
        margin-top: 16px;
    }
    .job-offers__list-item h2 {
        font-size: 24px;
    }
    .job-offers__list-item h3, .job-offers__list-item span {
        font-size: 18px;
    }
    .job-offers__popup {
        padding: 24px;
    }
    .how-add-child h1, .how-add-child__free-pace h3 {
        font-size: 26px;
    }
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {}


/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
    .mob-menu-logo {
        display: none;
    }
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {}