@media only screen and (max-width: 699px) {

    .events-grid .events-grid__list>.news-item,
    .events-grid .events-grid__list>.board__item,
    .events-grid .events-grid__list>.event__item {
        flex: 0 1 100%;
        max-width: 0 1 100%;
    }

    .hero__form-wrapper h2 {
        font-size: 24px;
    }

    .header__container {
        align-items: flex-start;
    }

    .header__nav {
        width: 100%;
        /* display: flex; */
        display: block;
        /* flex-direction: column; */
        /* align-items: center; */
        justify-content: start;
        gap: 30px;
        /* padding-top: 200px; */
    }

    .header__nav>* {
        margin-top: 0;
    }

    .events__choose {
        flex-wrap: nowrap;
        overflow: scroll;
    }

    .events__choose .events__choose--item {
        flex: 0 1 70%;
    }

    .modal-detail .title {
        font-size: 22px;
        line-height: 1.2em;
    }

    .fancybox__content .modal-detail {
        padding: 10px;
    }

    .quiz__wrapper {
        flex-direction: column;
    }

    .quiz__wrapper .quiz--main {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .quiz__wrapper .quiz--secondary {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .carousel__img-container {
        height: 50vw;
    }

    .boards__wrapper.container-wrap {
        flex-direction: column;
    }

    .boards__wrapper.container-wrap .board {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .events__items {
        grid-template-columns: 1fr;
    }

    .fancybox__carousel.is-draggable .fancybox__slide,
    .fancybox__carousel.is-draggable .fancybox__slide .fancybox__content {
        width: 100%;
    }

    .fancybox__content {
        padding: 10px;
    }

    .fancybox__content .profile-form {
        padding: 0;
    }

    .form .group-row {
        flex-direction: column;
    }

    .profile-form .profile-form-grid {
        flex-direction: column;
    }

    .profile-form .profile-form-grid .form {
        min-width: unset;
    }

    .profile-form .profile-form-grid>* {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .form .group-row>.group {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .modal-detail .address-row {
        flex-wrap: wrap;
    }
}

/* ipad portrait*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait),
(max-width : 1023px) and (min-width : 700px) {}

@media only screen and (min-width: 1200px) and (max-width: 1579px) {
    .main__item:last-child {
        max-width: unset;
    }
}

@media only screen and (min-width: 1024px) {
    .header .header__nav .header__social {
        display: none;
    }
}

/* 14.07 */
@media only screen and (max-width: 699px) {
    body {
        --big-offset: 26px;
        --middle-offset: 26px;
    }

    .hero {
        padding-top: 0;
    }

    .hero__intro {
        padding-top: 0;
    }

    .hero__title {
        font-size: 28px !important;
        margin-bottom: 14px;
    }

    .hero__intro .hero__text {
        font-size: 16px;
    }

    .hero__btns .hero__btn {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .hero__form {
        margin: 26px 0;
    }

    .about__title {
        font-size: 16px;
        text-align: center;
        margin: auto;
        line-height: 1.3em;

    }

    .carousel__inscription {
        padding-bottom: 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: unset;
        bottom: 10px;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        padding-bottom: 16px;
    }

    .footer__privace-policy a {
        text-align: end;
    }

    .hero__input-wrapper img {
        left: 15px;
    }

    .hero__input-wrapper input {
        padding-left: 50px;
    }

    .header__item:not(:last-child) {
        padding-top: 0;
    }

    /* .footer__items {
        display: flex;
        flex-direction: row;
        gap: 25px;
    }

    .footer__items { */

    .main__item:last-child {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .defautTitle--text {
        font-size: 28px;
        line-height: 1.3em;
    }

    /* .container-wrap {
        padding: 0 30px;
    } */

    .hero__form {
        margin: 0;
    }

    .footer__contacts img {
        margin-right: 25px;
    }

    .footer__mail {
        font-weight: 600;
        font-size: 21px;
        line-height: 30px;
        color: #000000;
    }

    .main__btns {
        flex-direction: column;
    }

    .main__btns .main__btn {
        width: 100%;
    }

    .main__btns .main__btn .main__btn--title {
        font-size: 14px;
    }

    .main__phone {
        display: block;
        font-weight: 300;
        font-size: 20px;
        margin-left: 3px;
        /* color: #474747; */
    }

    .main__items .main__btn--green {
        margin-bottom: 0;
    }

    .board__item--link {
        padding: 0;
    }

    .event__item {
        height: unset;
    }

    .hero__intro .hero__title {
        font-size: 36px;
    }

    .container-wrap {
        padding: 0 20px;
    }

    .main__item {
        width: 100%;
    }

    .hero__title {
        font-size: 24px !important;
    }

    .carousel__item-wrapper {
        margin-left: unset;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: 0;
        bottom: 0;
        margin: auto;
    }

    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        left: 0;
    }

    .swiper-button-next,
    .swiper-rtl .swiper-button-prev {
        right: 0;
    }

    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        left: 0;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        padding-bottom: 0;
        bottom: 0;
    }

    .carousel__container.container-wrap {
        padding: 0;
    }

    .carousel__container.container-wrap .swiper {
        padding: 0 40px
    }

    .swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal,
    .carousel__container.container-wrap .swiper .swiper-slide-next,
    .carousel__container.container-wrap .swiper .swiper-slide-prev {
        opacity: 0;
        transition: opacity .3s ease-in-out;
    }

    .hero__input-wrapper input {
        padding-left: 20px;
        padding: 0 20px;
    }

    .hero__form-wrapper {
        width: 100%;
        margin: 0;
        padding: 0 17px;
    }

    .profile-form .profile-form-grid {
        flex-direction: column-reverse;
    }

    .profile-form .profile-form-grid>.picture {
        max-width: 40%;
    }

    .profile-form .profile-form-grid {
        gap: 20px
    }
}



@media only screen and (max-width: 1100px) {
    .header__nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .header__nav>*:nth-child(1),
    .header__nav>*:nth-child(2) {
        flex: 1 1 calc(50% - 5px);
    }

    .header__nav>*:nth-child(n+3) {
        flex: 1 1 100%;
    }

    .btnAcc.header__item.btnAcc--logined {
        margin-right: 0;
    }

    .header__container {
        display: block;
        /* flex-direction: column; */
        /* align-items: center; */
        justify-content: start;
        gap: 30px;
        /* padding-top: 200px; */
    }

}


@media only screen and (max-width: 570px) {
    .btnAcc {
        display: flex;
        /* width: 250px; */
        max-width: 210px;
        min-width: 1vw;
        height: 50px;
        border: 1px solid var(--green-color);
        border-radius: 40px;
        align-items: center;
        justify-content: center;
    }

    .news-context {
        grid-template-columns: 1fr;
    }
}