html, body {
    font-family: 'Roboto Slab', serif;
}

.container {
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
}

.mobile {
    display: none;
}

.ta-center {
    text-align: center;
}

.ta-right {
    text-align: right;
}

.line-height-26 {
    line-height: 26px !important;
}

.ml-5 {
    margin-left: 5px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mb-35 {
    margin-bottom: 35px !important;
}

.mb-50 {
    margin-bottom: 35px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-25 {
    margin-top: 25px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-35 {
    margin-top: 35px !important;
}

span.info-item {
    line-height: 26px;
    font-size: 20px;
    padding: 5px 20px;
    border-radius: 50px;
}

span.info-item.info-blue {
    color: #ffffff;
    background-color: #3ABAD6;
}

span.info-item.info-yellow {
    color: #010C70;
    background-color: #F3F593;
}

a.btn {
    display: block;
    line-height: 42px;
    font-size: 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    padding: 7px 0;
}

a.btn.btn-blue {
    color: #ffffff;
    background-color: #3ABAD6;
    box-shadow: 0px 6px 6px rgba(1, 12, 112, 0.40);
}

a.btn.btn-yellow {
    color: #010C70;
    background-color: #F3F593;
    box-shadow: 0px 6px 6px rgba(1, 12, 112, 0.40);
}

#main {
    background: linear-gradient(to bottom, #F3F593, #FFFFFF);
}

#main .container {
    position: relative;
    min-height: 830px;
}

#main .main__header img {
    width: 225px;
    height: 150px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.sm-logo {
    display: none;
    margin-left: -4px;
}

#main .main__header {
    margin-bottom: 70px;
    margin-left: 10px;
}

#main .main__header ul li {
    margin-bottom: 15px;
}

#main .main__header ul li a {
    line-height: 26px;
    font-size: 20px;
    color: #010C70;
    font-weight: 600;
    text-decoration: none;
}

#main .main__benefits {
    width: 500px;
    margin-left: 10px;
}

#main .main__benefits h1 {
    line-height: 42px;
    font-size: 36px;
    font-weight: 700;
    color: #010C70;
    font-family: 'Sofia Sans', sans-serif;
    margin-bottom: 35px;
}

#main .main__benefits ul li {
    margin-bottom: 16px;
}

.main__banner--img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

#news .news__grid {
    display: flex;
    flex-direction: row;
}

#news .news__grid .news__grid--title {
    background: #F3F593;
    width: 120px;
    padding: 20px 0 30px;
}

.news__grid--title ul {
    width: 100%;
}

.news__grid--title ul li {
    width: 100%;
    font-weight: 700;
    text-align: center;
    line-height: 60px;
    font-size: 50px;
    color: #010C70;
    margin-bottom: 10px;
}

.news__grid--items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 30px 40px;
}

.news__item {
    max-width: 280px;
    width: 100%;
}

.news__item .news__grid--items__preview {
    margin-bottom: 30px;
}

.courses__grid {
    min-height: 500px;
}

.courses__grid {
    display: flex;
    flex-direction: row;
}

.courses__grid .padding {
    width: 20px;
    background-color: #F3F593;
}

section h2 {
    color: #010C70;
    font-weight: 700;
    line-height: 96px;
    font-size: 70px;
    font-family: 'Sofia Sans', sans-serif;
    margin-top: 10px;
    margin-left: 5px;
}

section h3 {
    color: #010C70;
    font-weight: 700;
    line-height: 42px;
    font-size: 35px;
    font-family: 'Sofia Sans', sans-serif;
    text-align: center;
}

.courses__container {
    width: 100%;
}

.courses__items {
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
}

.courses__items--3 {
    grid-template-columns: 2fr 1fr;
}

.course {
    display: flex;
    flex-direction: column;
    width: 380px;
    align-items: center;
    margin-bottom: 20px;
}

.course__info {
    line-height: 36px;
}

.course__preview {
    width: 300px;
    height: 300px;
    position: relative;
    text-align: center;
}

.course__preview img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.course__button {
    width: 100%;
}

.course__button a {
    width: 100% !important;
}

.course-third .course__info {
    position: relative;
    height: 46px;
    width: 100%;
}

.course-third .info-item {
    display: block;
    position: absolute;
    top: 0;
    font-weight: 700;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    z-index: 10;
}

.course-third .course__preview {
    height: 290px;
}

.course-button {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-button img.arrow {
    position: absolute;
}

.course-button img.arrow-1 {
    top: 15px;
    right: 60px;
}

.course-button img.arrow-2 {
    top: 15px;
    left: 60px;
}

.course-button img.arrow-3 {
    bottom: 10px;
    right: 140px;
}

.container-bottom-border {
    border-bottom: 2.5px solid #3ABAD6;
}

a.btn.btn-big {
    font-weight: 700;
    border-radius: 10px;
    line-height: 120px;
    padding: 0 60px;
    font-size: 30px;
    font-family: 'Sofia Sans', sans-serif;
}

.about__grid {
    min-height: 500px;
    display: flex;
    flex-direction: row;
}

.about__grid .padding {
    width: 20px;
    background-color: #F3F593;
}

.about__container {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.about__form--container {
    margin-top: 30px;
    padding: 25px 20px;
    background-color: rgba(1, 12, 112, 0.75);
    border-radius: 10px;
}

.about__form--form {
    padding: 20px;
    background-color: #F3F593;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__form--form__items {
    width: 70%;
    background-color: #010C70;
    color: #F3F593;
    font-family: 'Sofia Sans', sans-serif;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 30px;
    border-radius: 15px;
    text-align: center;
    line-height: 30px;
}

.about__form--form__items.first {
    margin-top: 50px;
}

.about__form--form__items.end {
    margin-bottom: 170px;
}

.btn-border {
    font-weight: 700;
    border: 1px solid #010C70;
    border-radius: 20px !important;
    padding: 18px 40px !important;
    line-height: 30px;
    box-shadow: inset 0px 2px 6px rgba(1, 12, 112, 0.70),
    0px 2px 6px rgba(1, 12, 112, 0.70);
}

.about__info--item__title {
    font-size: 35px;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 700;
    color: #010C70;
}

.about__info--items {
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
}

.about__info--item {
    margin-bottom: 15px;
}

.about__info--item .description {
    display: block;
    color: #010C70;
    line-height: 24px;
    font-size: 20px;
    font-weight: 600;
    background-color: #F3F593;
    border-radius: 20px;
    padding: 10px 20px;
}

.about__info--item.half {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.about__info--item.half .half {
    width: 50%;
}

.about__info--item.right-text {
    text-align: right;
}

.form__grid {
    min-height: 300px;
    width: 70%;
    margin: 0 auto;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

form .form-error {
    color: red;
    text-align: center;
    font-size: 20px;
    display: none;
}

.form-control {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-control input {
    border-radius: 50px;
    border: 5px solid #F3F593;
    padding: 10px 15px;
    line-height: 30px;
    font-size: 25px;
    font-weight: 400;
    color: #010C70;
    font-family: 'Sofia Sans', sans-serif;
}

.form-control textarea {
    border-radius: 15px;
    border: 5px solid #F3F593;
    padding: 10px 15px;
    line-height: 30px;
    font-size: 25px;
    font-weight: 400;
    color: #010C70;
    font-family: 'Sofia Sans', sans-serif;
}

.form-control select {
    display: inline-block;
    border-radius: 50px;
    border: 5px solid #F3F593;
    padding: 10px 15px;
    line-height: 30px;
    font-size: 25px;
    font-weight: 400;
    color: #010C70;
    font-family: 'Sofia Sans', sans-serif;
    min-height: 56px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
}

.form-control select:after {
    content: "▼";
    padding: 0 8px;
    font-size: 12px;
    position: absolute;
    right: 8px;
    top: 4px;
    z-index: 1;
    text-align: center;
    width: 10%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

.form-control input:focus, .form-control select:focus {
    border: 5px solid #F3F593;
    outline: none;
}

.form-item.error {
    border-color: #ff9c9c;
}

.form-item.error:focus {
    border-color: #ff9c9c;
}

.form-control label {
    font-weight: 400;
    color: #010C70;
    font-size: 25px;
    line-height: 30px;
    margin-left: 15px;
    font-family: 'Sofia Sans', sans-serif;
}

.form-control button {
    font-family: 'Sofia Sans', sans-serif;
    width: 300px;
    font-size: 30px;
    color: #010C70;
    font-weight: 700;
    background-color: #F3F593;
    line-height: 54px;
    border-radius: 50px;
    border: 1px solid #F3F593;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0px 6px 6px rgba(1, 12, 112, 0.40);
}

.reviews__grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.reviews__grid .review {
    width: 400px;
    box-shadow: 0px 6px 6px rgba(1, 12, 112, 0.40);
    border-radius: 10px;
}

.review img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.teachers__items {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 50px;
}

.courses__grid .teacher {
    width: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.teacher .teacher__preview {
    margin-bottom: 10px;
    text-align: center;
}

.teacher img {
    width: 95%;
    height: 100%;
    border-radius: 200px;
}

.teacher__description {
    padding: 10px;
}

.teacher__description p {
    text-align: center;
    font-size: 22px;
}

.contacts__grid {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    width: 70px;
    justify-content: center;
    gap: 30px;
}

.contact_item {
    width: 200px;
}

.contact_item.tel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.contact__tel {
    color: #000000;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 30px;
    text-decoration: none;
}

.qr {
    width: 160px !important;
    height: 160px !important;
}

.modal-overlay * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}

.modal-overlay *:before,
.modal-overlay *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    overflow: auto;
    z-index: 999;
    transition: .4s all;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.modal-overlay_visible {
    opacity: 1;
    visibility: visible;
}

.modal-table {
    display: table;
    width: 100%;
    height: 100%;
}

.modal-table-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 0 15px;
}

.modal {
    transition: .4s all;
    display: inline-block;
    padding: 30px;
    width: 70%;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .25);
    color: #333;
    text-align: left;
    font-family: 'Sofia Sans', sans-serif;
    margin: 30px 0;
    transform: translate(0, 20%);
    position: relative;
    border-radius: 4px 6px 4px 4px;
    cursor: auto;
    font-size: 16px;
}

.modal-overlay_visible .modal {
    transform: translate(0);
}

.modal__content {
    margin-top: 30px;
}

.modal__close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #3ABAD6;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    transition: .4s all;
}

.modal__close:hover {
    background: #ed5f55;
    cursor: pointer;
}

.modal__close:before,
.modal__close:after {
    content: "";
    display: block;
    height: 16px;
    width: 2px;
    transform: rotate(45deg);
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
}

.modal__close:after {
    transform: rotate(-45deg);
}

.modal__content h2 {
    text-align: center;
    font-weight: 600;
    color: #010C70;
    font-size: 25px;
    line-height: 30px;
    font-family: 'Sofia Sans', sans-serif;
}

.modal__content .modal__error {
    font-size: 25px;
    text-align: center;
    color: red;
}

.modal__content .modal__success, .about__form form .modal__success, .modal__course-form .modal__success {
    font-size: 20px;
    text-align: center;
    color: green;
}

.modal__course-grid {
    display: flex;
    flex-direction: row;
}

.modal__course-description, .modal__course-form {
    width: 50%;
}

.form__trial-lesson {
    width: 70%;
    margin: 0 auto;
}

.modal__course-form {
    padding-top: 130px;
}

.modal__course-form form {
    position: relative;
}

.modal__course-form form img {
    width: 200px;
    position: absolute;
    top: -145px;
    right: -10px;
}

.modal__course-form form input[name="name"] {
    z-index: 1;
}

.modal__course-description h3, .modal__course-description h1 {
    color: #010C70;
    font-weight: 700;
    font-size: 24px;
}

.modal__course-description p {
    font-size: 20px;
    line-height: 24px;
    width: 90%;
}

.modal__course-description p b {
    font-weight: 700;
    color: #010C70;
}

header {
    border-bottom: 2.5px solid #3ABAD6;
    display: grid;
    grid-template-columns: 80px 1fr 2fr;
    height: 70px;
    padding: 5px 0;
    margin-bottom: 40px;
}

.about__info p b {
    font-weight: 700;
    color: #010C70;
}

.header__menu {
    display: flex;
    align-items: center;
}

.header__menu ul {
    display: flex;
    flex-direction: row;
}

.header__menu ul li {
    margin-right: 20px;
}

.header__menu ul a {
    line-height: 26px;
    font-size: 20px;
    color: #010C70;
    font-weight: 600;
    text-decoration: none;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    width: 70px;
}

.header__contacts {
    display: flex;
    align-items: center;
    justify-content: end;
}

.header__contacts ul {
    display: flex;
    flex-direction: row;
}

.header__contacts ul img {
    width: 40px;
}

#about-page {
    background: linear-gradient(to bottom, #F3F593, white);
    min-height: 700px;
}

.header__contacts--phones {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.header__contacts--phones img {
    width: 30px !important;
}

.header__contacts--phones .contact__tel {
    font-size: 20px;
    line-height: 22px;
}

.header__menu .active {
    line-height: 26px;
    font-size: 20px;
    color: #010C70;
    font-weight: 600;
    text-decoration: underline;
}

.course-description--header {
    display: flex;
    flex-direction: row;
}

.course-description--header div.course-description--header-img {
    width: 30%;
    margin-right: 20px;
}

.course-description--header div.course-description--header-info {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.course-description--header img {
    width: 100%;
}

.course-description--header-info span {
    font-size: 14px;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 500;
}

#about-page h1 {
    color: #010C70;
    font-weight: 700;
    font-size: 24px;
}

.about__form h3 {
    color: #010C70;
    font-weight: 700;
    font-size: 24px;
}

#about-page .form__trial-lesson {
    width: 80%;
    margin: 0 auto;
}

.about-page__grid .about__container {
    display: flex;
    flex-direction: row;
}

.about-page__grid .about__container .about__info {
    width: 50%;
    font-size: 20px;
    line-height: 24px;
}

.about-page__grid .about__container .about__form {
    width: 50%;
}

.about-page__grid .social ul {
    display: flex;
    flex-direction: row;
}

.about-page__grid .social ul img {
    width: 40px;
}

.about-page__grid .social ul li {
    margin-right: 10px;
}

.about-page__grid .social p {
    font-weight: 600;
}

.mobile__burger {
    display: none;
}

.about__info p a {
    color: #010C70;
}

@media (max-width: 1290px) {
    .container {
        max-width: none;
        width: auto;
    }

    .page .container {
        padding: 0 10px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: none;
        width: auto;
        padding: 0 10px 0 0;
    }

    #main .container, #reviews .container, #contacts .container {
        padding: 0 10px;
    }

    .main__banner--img {
        width: 70%;
    }

    .courses__items {
        margin-left: 5px;
    }

    #reviews h2, #contacts h2 {
        margin-left: 0;
    }

    .reviews__grid .review {
        width: 360px;
    }

    .about__form--form__items {
        font-size: 20px;
    }

    .about__form--form__items {
        margin-bottom: 30px;
    }

    .about__form--form__items.first {
        margin-top: 50px;
    }

    section h2 {
        font-size: 70px;
    }

    .about__info--item .description {
        line-height: 20px;
        font-size: 16px;
    }

    .about__info--item__title {
        font-size: 30px;
    }

    .btn-border {
        padding: 18px 26px !important;
    }
}

@media (max-width: 1190px) {
    #main .main__benefits h1 {
        line-height: 42px;
        font-size: 32px;
    }

    span.info-item {
        font-size: 18px;
    }

    .main__banner--img {
        width: 65%;
    }

    .padding {
        display: none;
    }

    .about__info--items {
        padding: 20px 40px 20px 10px;
    }
}

@media (max-width: 1151px) {
    #main .main__header {
        margin-bottom: 40px;
    }

    #main .container {
        min-height: 750px;
    }

    .course {
        width: 340px;
    }

    a.btn {
        font-size: 18px;
    }

    a.btn.btn-big {
        line-height: 100px;
        font-size: 26px;
    }

    .reviews__grid .review {
        width: 310px;
    }
}

@media (max-width: 1100px) {
    .btn-border {
        padding: 14px 16px !important;
        font-size: 14px;
    }

    .form__trial-lesson {
        width: 90%;
    }

    .modal__course-grid {
        display: flex;
        flex-direction: column;
    }

    .modal__course-description, .modal__course-form {
        width: 100%;
    }

    .modal__course-description p {
        width: 100%;
    }

    .modal__course-form {
        padding-top: 40px;
    }

    .modal__course-form form img {
        display: none;
    }

    #about-page .modal__course-form form {
        width: 70%;
        margin: 0 auto;
    }
}

@media (max-width: 1050px) {
    .course {
        width: 310px;
    }

    .about__form--form {
        padding: unset;
    }
}

@media (max-width: 1000px) {
    .courses__items {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin-left: 0px;
    }

    .about-page__grid .about__container {
        flex-direction: column;
    }

    .about-page__grid .about__container .about__info {
        width: 100%;
        margin-bottom: 50px;
    }

    .about-page__grid .about__container .about__form {
        width: 100%;
    }

    .about-page__grid .about__container .about__form form {
        width: 70%;
    }

    .courses__grid .teacher {
        width: 200px;
    }

    #our-teachers .container {
        height: 450px;
    }

    .teachers__items {
        margin-bottom: 0px;
    }
}

@media (max-width: 940px) {
    header {
        grid-template-columns: 80px 1fr 1fr;
    }

    .contacts__grid {
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr 1fr;
    }

    .courses__items--3 {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .courses__items--3 .course-button {
        order: 2;
    }

    .courses__items--3 .course {
        order: 1;
    }

    a.btn.btn-big {
        font-weight: 700;
        line-height: 70px;
        padding: 0 40px;
        font-size: 16px;
    }

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

    .reviews__grid .review {
        width: 90%;
        margin: 0 auto;
    }

    .owl-nav {
        margin: 0 auto;
        text-align: center;
    }

    .owl-nav .owl-prev span, .owl-nav .owl-next span {
        font-size: 70px;
        color: #010C70;
        margin: 0 10px;
    }

    .owl-stage-outer {
        max-height: 730px;
    }
}

@media (max-width: 768px) {
    .desktop {
        display: none;
    }

    .mobile__burger {
        display: block;
    }

    .mobile_menu {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -100%;
        background: linear-gradient(to bottom, #F3F593, white);
        z-index: 99;
        padding: 13px 10px;
        -webkit-transition: 0.8s;
        -moz-transition: 0.8s;
        -o-transition: 0.8s;
        transition: 0.8s;
    }

    .mobile_menu.mobile_menu--active {
        left: 0;
        right: 0;
        -webkit-transition: 0.8s;
        -moz-transition: 0.8s;
        -o-transition: 0.8s;
        transition: 0.8s;
    }

    .mobile_menu--logo {
        margin-bottom: 30px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile_menu--close {
        font-weight: 500;
        font-size: 18px;
        color: black;
        font-family: 'Sofia Sans', sans-serif;
    }

    .mobile_menu--logo img {
        -webkit-transition: 0.8s;
        -moz-transition: 0.8s;
        -o-transition: 0.8s;
        transition: 0.8s;
        width: 170px !important;
    }

    .mobile_menu .mobile_menu--nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        margin-bottom: 100px;
    }

    .mobile_menu .mobile_menu--nav li {
        text-align: center;
        margin-bottom: 15px;
    }

    .mobile_menu .mobile_menu--nav a {
        line-height: 26px;
        font-size: 20px;
        color: #010C70;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile_menu--social {
        justify-content: center;
    }

    .mobile_menu--phones {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        margin-bottom: 20px;
    }

    .mobile_menu--phones li {
        text-align: center;
        margin-bottom: 5px;
    }

    .mobile_menu--phones li .contact__tel {
        font-size: 23px !important;
    }

    .about-page__grid .about__container .about__form form {
        width: 94% !important;
    }

    .mobile {
        display: unset;
    }

    .main__header ul {
        position: absolute;
        z-index: 1;
    }

    .main__banner--img {
        width: 105%;
    }

    .main__benefits ul, .main__benefits h1 {
        display: none;
    }

    section h2 {
        font-size: 60px;
        text-align: center;
        margin-left: 0px;
    }

    .course-button img.arrow-1 {
        display: none;
    }

    .course-button img.arrow-2 {
        top: 70px;
        left: 35px;
        width: 40px;
    }

    .course-button img.arrow-3 {
        width: 85px;
        bottom: 80px;
        right: 35px;
    }

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

    .about__info--items {
        padding: 20px;
    }

    #about .container {
        padding: 0 10px 0 10px;
    }

    .about__form--container {
        width: 80%;
        margin: 0 auto;
    }

    .about__form--form__items.end {
        margin-bottom: 100px;
    }

    .about__form--form__button {
        width: 80%;
        text-align: center;
    }

    .about__info--item__title {
        font-size: 25px;
    }

    .about__info--item .description {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #moto .container {
        padding: 20px;
    }

    #moto h2 {
        color: #010C70;
        font-family: 'Sofia Sans', sans-serif;
        font-size: 28px;
        font-weight: 700;
        line-height: 30px;
    }

    #benefits .container {
        padding: 20px 60px 30px;
    }

    #benefits h1 {
        color: #010C70;
        font-family: 'Sofia Sans', sans-serif;
        font-size: 28px;
        font-weight: 700;
    }

    .modal-table-cell {
        padding: unset;
    }

    .modal {
        width: 85%;
    }

    .modal__content h2 {
        font-size: 20px;
    }

    .form-control label {
        font-size: 20px;
    }

    .form-control input {
        line-height: 26px;
        font-size: 20px;
    }

    .form-control select {
        line-height: 26px;
        font-size: 20px;
    }

    .form-control button {
        font-size: 24px;
    }
}

@media (max-width: 675px) {
    header .header__menu ul {
        display: none;
    }

    .course-description--header {
        flex-direction: column;
    }

    .course-description--header-img {
        text-align: center;
        width: 100% !important;
        margin-bottom: 20px;
    }

    .course-description--header-img img {
        width: 50%;
    }

    .course-description--header-info {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .course-description--header-info div {
        text-align: center;
    }

    #about-page .modal__course-form form {
        width: 94%;
    }

    #our-teachers .container {
        height: unset;
    }

    .teachers__items {
        flex-direction: column;
        align-items: center;
    }

    .courses__grid .teacher {
        margin-bottom: 50px;
        width: 350px;
    }
}

@media (max-width: 650px) {
    .lg-logo {
        display: none;
    }

    .sm-logo {
        display: inline-block;
    }

    #main .main__header img {
        width: 130px;
        height: 110px;
    }

    #main .container {
        min-height: 550px;
    }

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

    .course-button {
        min-height: 340px;
    }

    .course {
        width: 370px;
        margin-bottom: 40px;
    }

    .course-button img.arrow-2 {
        top: 40px;
        left: 105px;
    }

    .course-button img.arrow-3 {
        bottom: 50px;
        right: 130px;
    }

    .course-button img.arrow-1 {
        display: unset;
        height: 85px;
        top: 40px;
        right: 100px;
    }

    .contacts__grid {
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr;
    }

    .contact_item {
        width: unset;
    }

    .contact_item:nth-of-type(1) {
        order: 3;
    }

    .contact_item:nth-of-type(2) {
        order: 4;
    }

    .contact_item:nth-of-type(3) {
        order: 2;
    }

    .contact_item:nth-of-type(4) {
        order: 1;
    }
}

@media (max-width: 550px) {
    #benefits .container {
        padding: 20px 20px 30px;
    }

    #moto h2 {
        font-size: 24px;
    }

    #benefits h1 {
        font-size: 24px;
    }

    span.info-item {
        font-size: 16px;
    }

    .about__info--items {
        padding: 5px;
    }

    .about__info--item .description {
        line-height: 18px;
        font-size: 14px;
    }

    .about__info--item__title {
        font-size: 20px;
    }

    .modal {
        width: 90%;
        padding: 30px 15px;
    }

    .form__trial-lesson {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .modal__content h2 {
        font-size: 18px;
    }

    .form-control {
        gap: unset;
    }

    .form-control input, .form-control textarea {
        line-height: 22px;
        font-size: 18px;
    }

    .form__trial-lesson {
        width: 380px;
    }

    form {
        gap: 20px;
    }

    .form-control label {
        font-size: 18px;
    }
}

@media (max-width: 450px) {
    .form__trial-lesson {
        width: 300px;
    }

    .form-control button {
        font-size: 22px;
    }

    #main .container {
        min-height: 400px;
    }

    #main .main__header, #main .main__benefits {
        margin-left: 0;
    }

    #main .main__header img {
        width: 80px;
        height: 75px;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    #main .main__header ul li {
        margin-bottom: 5px;
    }

    #main .main__header ul li a {
        line-height: 25px;
        font-size: 18px;
    }

    #moto h2 {
        font-size: 20px;
    }

    #benefits h1 {
        font-size: 20px;
    }

    span.info-item {
        font-size: 14px;
    }

    section h2 {
        font-size: 50px;
    }

    .container {
        padding: 0 10px 0 10px;
    }

    #benefits .container {
        padding: 20px 10px 30px;
    }

    .about__form--container {
        width: 85%;
    }

    .owl-stage-outer {
        max-height: 640px;
    }

    .courses__grid .teacher {
        width: 96%;
    }
}

@media (max-width: 400px) {
    #main .main__header ul li a {
        line-height: 16px;
        font-size: 14px;
    }

    #main .main__header img {
        width: 85px;
        height: 85px;
    }

    #main .container {
        min-height: 330px;
    }

    .course {
        width: 90%;
    }

    .course__button a.btn {
        font-size: 16px;
    }

    .course span.info-item {
        line-height: 18px;
    }

    .course-button img.arrow-1 {
        right: 40px;
    }

    .course-button img.arrow-2 {
        left: 60px;
    }

    .course-button img.arrow-3 {
        right: 50px;
    }

    .contact__tel {
        font-size: 22px;
        line-height: 26px;
    }

    .about__info, .about__form {
        width: 100%;
    }

    .about__form--form__items {
        width: 80%;
    }
}

@media (max-width: 380px) {
    .form__trial-lesson {
        width: 280px;
    }

    .form-control button {
        width: 270px;
    }
}

@media (max-width: 350px) {
    #benefits h1 {
        font-size: 18px;
    }

    span.info-item {
        font-size: 12px;
    }

    #benefits .mb-25 {
        margin-bottom: 16px !important;
    }

    .course__preview {
        width: 285px;
        height: 285px;
    }
}