@font-face {
    font-family: 'Heuristica';
    src: url('../fonts/heuristica/Heuristica-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Heuristica';
    src: url('../fonts/heuristica/Heuristica-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Heuristica';
    src: url('../fonts/heuristica/Heuristica-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Heuristica';
    src: url('../fonts/heuristica/Heuristica-BoldItalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}


body {
    font-family: 'Montserrat', sans-serif;
    background: #FFFFFF;
}

a {
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

img {
    width: 100%;
}

/*--- Header Start ---*/

.header-container {
    width: 100%;
    position: relative;
    padding: 10px 0 10px 0;
}
.header-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, #FFFFFF, #FEFEFE);
}

.header {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    min-width: 147px;
}


.desktop-contacts {
    width: 100%;
    max-width: 580px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-contacts {
    display: none;
}

.desktop-contacts .phone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 30px;
}

.phone img {
    width: 30px;
    height: 30px;
    margin: 0 11px;
}
.phone a {
    margin-right: 20px;
    cursor: pointer;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: #212121;
}
.phone a:hover, .phone a:visited {
    color: #212121;
}

.social {
    width: 100%;
    max-width: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.bge-languages-selector {
    min-width: 45px;
    margin: 0 10px;
}

.bge-langselect {
    width: 100%;
    padding: 3px 5px;
    border: none;
    cursor: pointer;
    background: #FFFFFF;
    color: #212121;

}
.bge-langselect option {
    background: #FFFFFF;
    color: #212121;
    cursor: pointer;
}


.login-button {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    width: 230px;
    height: 60px;
    background: #FFFFFF;
    border: 1px solid #DD3930;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: #DD3930;
}
.login-button:hover {
    background: #DD3930;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.mobile-menu-button {
    display: none;
    padding: 10px;
    cursor: pointer;
    text-align: center;
}


/*--- Nav Menu Start ---*/

.nav-menu-container {
    width: 100%;
}
.nav-menu {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 17px 0;
}
.nav-menu ul {
    width: 100%;
    margin: 0 auto;
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
}
.nav-element {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #212121;
}
.nav-element:visited {
    color: #212121;
}
.nav-element:hover {
    color: #DD3930;
}
.nav-element.nav-active {
    font-weight: 600;
}

/*--- Nav Menu End ---*/
/*--- Header End ---*/




/*--- Home Page Start ---*/

.home-top-container {
    width: 100%;
}
.home-top {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-bottom: 15px;
}

.home-top-title {
    font-family: 'Heuristica', serif;
    padding: 40px 10px;
    max-width: 670px;
    width: 100%;
    font-size: 60px;
    font-weight: 400;
    line-height: 70px;
    letter-spacing: 0.02em;
    font-style: italic;
}
.home-top-title .title-red {
    font-style: normal;
    font-weight: 700;
}

.home-top-info-container {
    max-width: 600px;
    width: 100%;
    height: 320px;
    background-image: url('/image/bge-top-fon.png');
    background-position: bottom center;
    background-size: contain;
    background-repeat: no-repeat;
}
.home-top-info {
    max-width: 380px;
    margin: 20px auto;
    text-align: center;
}
.home-top-info p {
    margin: 0;
    padding: 50px 40px 20px;
    font-size: 16px;
    line-height: 26px;
    color: #666666;
}



.home-top-image-container {
    width: 100%;
}
.home-top-image {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    position: relative;
    display: block;
    overflow: hidden;
}
.home-top-image img {
    display: block;
    width: 100%;
    height: auto;
}
.home-top-image::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #F8F8F8;
    border-radius: 100% 100% 0 0;
}

.home-info-container {
    width: 100%;
    padding-bottom: 90px;
    background: #FFFFFF;
    box-shadow: inset 0px 1px 25px #EEEEEE;
    position: relative;
    background-image:
            url('/image/info-fon-01.png'),
            url('/image/info-fon-03.png'),
            url('/image/info-fon-02.png'),
            url('/image/info-fon-04.png');
    background-position:
        10px 10px,
        calc(100% - 60px) 10px,
        10px calc(100% - 60px),
        calc(100% - 60px) calc(100% - 60px);
    background-repeat: no-repeat;
}


.home-info {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    position: relative;
    padding-top: 70px;
}

.home-info-video-link {
    width: 140px;
    height: 140px;
    position: absolute;
    top: -94px;
    /*left: 48%;*/
    left: 50%;
    transform: translateX(-35%);
}

.home-info h2 {
    font-family: 'Heuristica', serif;
    width: 100%;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    font-size: 45px;
    line-height: 55px;
    color: #212121;
}
.home-info .title-red {
    font-style: normal;
    font-weight: 700;
}


.info-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.info-item-text {
    width: 100%;
    max-width: 530px;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 4px rgba(217, 217, 217, 0.25);
    border-radius: 5px;
    padding: 30px 60px 30px 30px;
    color: #212121;
    background-position: calc(100% - 15px) 10px;
    background-repeat: no-repeat;
}
.info-item-text h3 {
    font-style: normal;
    font-weight: 500;
    font-size: 25px;
    line-height: 35px;
}
.info-item-text p {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
}


.info-item-image {
    width: 100%;
    max-width: 630px;
    background-repeat: no-repeat;
}

.info-item-1 {
    background-image: url('/image/info-01.png');
}
.info-image-1 {
    background-image: url('/image/info-right-line.png');
    background-position: bottom left;
}
.info-item-2 {
    background-image: url('/image/info-02.png');
}
.info-image-2 {
    background-image: url('/image/info-left-line.png');
    background-position: bottom right;
}
.info-item-3 {
    background-image: url('/image/info-03.png');
}
.info-image-3 {
    background-image: url('/image/info-right-line.png');
    background-position: bottom left;
}
.info-item-4 {
    background-image: url('/image/info-04.png');
}
.info-image-4 {
    background-image: url('/image/info-bottom-line.png');
    background-position: bottom right;
}



.home-course-container {
    width: 100%;
    background-color: #FFFFFF;
    padding: 80px 0 10px;
}



.home-course {
    width: 100%;
    /*max-width: 1170px;*/
    /*margin: 0 auto;*/
}
.home-course h2 {
    font-family: 'Heuristica', serif;
    width: 100%;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    font-size: 45px;
    line-height: 55px;
    color: #212121;
}



.course-items-container {
    background-image: url('/image/courses-fon.png');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.course-items {
    width: 100%;
    max-width: 1130px;
    margin: 0 auto;
    position: relative;
}

.course-item {
    display: none;
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    padding: 30px;
    background: #FFFFFF;
    box-shadow: 0px 0px 30px 5px rgba(209, 209, 209, 0.25);
    border-radius: 10px;
}

.course-item.course-active {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.course-mobile {
    display: none;
}

.course-item-image {
    width: 100%;
    max-width: 452px;
}

.course-item-text {
    width: 100%;
    max-width: 510px;
    padding: 0 30px;
    position: relative;
    padding-bottom: 110px ;
}

.course-age {
    display: block;
    border: 1px solid #DD3930;
    border-radius: 10px;
    padding: 12px 20px;
    max-width: 170px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: #DD3930;
}

.course-title {
    font-family: 'Heuristica', serif;
    display: block;
    font-style: italic;
    font-weight: 400;
    font-size: 25px;
    line-height: 35px;
    color: #212121;
    margin: 20px 0;
}
.course-title span {
    font-style: normal;
    font-weight: 600;
}

.course-info-list {
    color: #DD3930;
}
.course-info-list li span {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #212121;
}

.course-info {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #212121;
}

.course-item-text .button-join {
    position: absolute;
    left: 30px;
    bottom: 5px;
}


.course-item-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
}
.course-arrow-button {
    width: 60px;
    height: 60px;
    opacity: 0.4;
    background: #DD3930;
    color: #FFFFFF;
    border-radius: 100px;
    border: none;
    font-weight: 400;
    font-size: 22px;
}
.arrow-button-active.course-arrow-button {
    cursor: pointer;
}
.arrow-button-active.course-arrow-button:hover {
    opacity: 1;
}

.home-reviews-container {
    width: 100%;
    background-image: url('/image/reviews-fon.png');
    background-position: calc(100% - 12%) 40px;
    background-repeat: no-repeat;
}
.home-reviews {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}
.home-reviews h2 {
    font-family: 'Heuristica', serif;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    font-size: 45px;
    line-height: 55px;
    color: #212121;
}
.home-reviews h2 span {
    font-style: normal;
    font-weight: 600;
}

.home-reviews-items {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.home-review-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-review-title-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-review-item {
    max-width: 368px;
    padding: 22px 24px;
}

.home-review-title-text-name {
    font-style: normal;
    font-weight: 400;
    font-size: 25px;
    line-height: 35px;
}

.home-review-title-text-star {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-review-title-text-star img {
    width: 22px;
    margin: 0 5px;
}
.home-review-title-image {
    width: 94px;
}

.home-review-text {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
}

.home-reviews-link {
    display: block;
    max-width: 220px;
    text-align: center;
    margin: 0 auto 80px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    text-decoration: underline;
    color: #706969;
}
.home-reviews-link:visited {
    color: #706969;
}
.home-reviews-link:hover {
    color: #DD3930;
}

.home-reviews-link img {
    max-width: 170px;
}




/*--- Home Page End ---*/

/*--- Footer Start ---*/
.footer-container {
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 4px rgba(217, 217, 217, 0.25);
    padding: 100px 0px;
}

.footer {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer .logo {
    min-width: 147px;
    width: 147px;
}

.footer .phone {
    min-width: 150px;
}

.footer .phone a {
    display: block;
}



/*--- Footer end ---*/


/*--- Modal ---*/
.modal.fade {
    display: none;
}


/*--- Login Modal Form Start ---*/

.login-modal-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}


.login-modal-content {
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 90%;
    max-width: 460px;
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 4px rgba(217, 217, 217, 0.25);
    border-radius: 10px;
}

.login-modal-close {
    cursor: pointer;
    float: right;
    font-size: 34px;
    color: #212121;
}

.login-form-title {
    font-style: normal;
    font-weight: 500;
    font-size: 25px;
    line-height: 35px;
    text-align: center;
    color: #212121;
}

.login-modal-content input.form-control {
    display: block;
    margin: 15px auto;
    width: 100%;
    max-width: 380px;
    height: 65px ;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 4px rgba(217, 217, 217, 0.35);
    border-radius: 10px;
    text-align: center;
    outline: none;
    font-size: 18px;
}

.login-modal-content .remember-me {
    text-align: center;
}

.login-modal-content .bge-join-button {
    margin: 15px auto;
}

/*--- Login Modal Form End ---*/



/*--- Join Modal Form Start ---*/

.join-modal-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}


.join-modal-content {
    margin: 10% auto;
    padding: 20px;
    border: none;
    width: 90%;
    max-width: 460px;
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 4px rgba(217, 217, 217, 0.25);
    border-radius: 10px;
}

.join-modal-close {
    cursor: pointer;
    float: right;
    font-size: 34px;
    color: #212121;
}

.join-modal-content .bge-join-button {
    margin: 30px 10px;
}

/*--- Join Modal Form End ---*/



/*--- All pages styles ---*/

.title-red {
    color: #DD3930;
}

.bge-join-button, .button-join {
    display: block;
    cursor: pointer;
    background: #DD3930;
    border: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #FFFFFF;
    width: 100%;
    max-width: 380px;
    padding: 35px 10px;

}





@media (max-width: 1180px) {
    .header-container {
        padding: 10px;
    }
    .nav-menu-container {
        padding: 0 10px;
    }
    .footer-container {
        padding: 100px 10px;
    }
    .home-top-container {
        padding: 0 10px;
    }
    .home-info-container {
        padding: 0 10px 90px;
    }
    .home-course-container {
        padding: 80px 10px 10px;
    }
    .home-reviews-container {
        padding: 0 10px;
    }
}

@media (max-width: 1100px) {
    .desktop-contacts {
        max-width: 420px;
    }
    .desktop-contacts .phone {
        max-width: 230px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .home-info-container {
        background-image: none;
    }

    .home-reviews-items {
        justify-content: space-around;
    }

}


@media (max-width: 880px) {
    .home-top {
        flex-wrap: wrap;
        justify-content: center;
    }
    .home-top h1 {
        text-align: center;
        margin: 0;
    }

    .info-item {
        flex-wrap: wrap;
        justify-content: center;
        margin: 20px 0;
    }
    .info-item-image {
        display: none;
    }
    .info-item-image.info-image-4 {
        display: block;
        max-width: 100%;
        height: 150px;
        order: 2;
    }

    .footer {
        justify-content: space-around;
    }

}


@media (max-width: 780px) {
    .login-button {
        width: 60px;
        min-width: 60px;
    }
    .login-button span {
        display: none;
    }
    .home-top-image::after {
        content: none;
    }
    .home-info-video-link {
        width: 80px;
        top: -43px;
    }
}

@media (max-width: 660px) {

    .mobile-menu-button {
        display: block;
    }
    .desktop-contacts {
        display: none;
    }
    .mobile-contacts {
        display: block;
    }

    .nav-menu {
        display: none;
    }
    .nav-menu.show-menu {
        display: block;
        max-width: 350px;
        padding: 0;
    }

    .nav-menu.show-menu ul {
        display: block;
        width: 100%;
        text-align: center;
    }
    .nav-menu.show-menu ul li {
        padding: 4px;
        margin-bottom: 4px;
    }
    .mobile-contacts .phone {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        padding: 10px 5px;
    }
    .mobile-contacts .phone a {
        display: block;
    }

    .mobile-contacts .social {
        margin: 15px auto 0;
    }

    .home-top {
        padding-bottom: 25px;
    }

    .home-top-title {
        padding: 0;
        font-weight: 700;
        font-size: 55px;
        line-height: 55px;
    }

    .home-top-info-container {
        background-image: none;
        height: auto;
    }

    .home-top-info {
        margin: 0 auto;
    }
    .home-top-info p {
        padding: 15px 30px 15px;
    }

    .course-item.course-active {
        display: block;
        max-width: 450px;
    }

    .home-info-container {
        padding: 0 10px 10px;
    }
    .home-info h2 {
        margin: 10px 0 20px;
        background-image: url('/image/info-top-line-small.png');
        background-position: bottom right;
        background-repeat: no-repeat;
        position: relative;
    }

    .info-image-4 {
        background-image: url('/image/info-bottom-line-small.png');
        background-position: right;
    }

    .home-course-container {
        padding: 10px;
    }

    .home-course h2 {
        margin: 0 0 20px;
    }

    .course-mobile {
        display: block;
    }
    .course-item-text.course-mobile {
        padding: 0;
    }

    .course-desktop .course-age {
        display: none;
    }
    .course-desktop .course-title {
        display: none;
    }
    .course-item-text {
        padding: 0;
    }

    .course-item-text .button-join {
        position: initial;
    }

    .home-reviews-container {
        background-image: none;
    }

    .home-reviews h2 {
        background-image: url('/image/reviews-fon-small.png');
        background-position: bottom right;
        background-repeat: no-repeat;
        padding-bottom: 30px;
        margin-bottom: 0px;
    }

    .footer-container {
        padding: 20px 10px;
    }

    .footer {
        max-width: 300px;
    }

    .footer .social {
        margin-top: 15px;
    }

    .footer .copyright {
        text-align: center;
    }

}

@media (max-width: 480px) {
    .home-info h2 {
        padding-bottom: 30px;
    }
}
