/*MAIN*/
.main{
    flex: 1 1 auto;
}

.welcom{
    padding: 0;
    margin: 0;
    background: url('../imgs/freepik-export-20240930064210SiNN1.jpeg') center/cover no-repeat;
}
.welcom_container{
    height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;   
}

.welcom_content{
    color: #f5f5f5;
    display: flex;
    text-shadow: 3px 4px 3px rgba(0, 0, 0, 0.4);
    align-items: center;
    width: 100%;
    flex-direction: column;
    padding: 7rem 0;
    position: relative;
}
.welcom_title{
    /* font-family: "El Messiri", sans-serif; */
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
}
.welcom_title span.lower {
    font-family: 'Inter', sans-serif;
}
.welcom_title span.upper {
    font-size: 4rem;
    color: #59ADEB;
    text-shadow: 1px 1.1px #8fe2ff;
}

.welcom_description{
    border-left: 3px solid #59adeb;
    padding-left: 1rem;
    font-weight: 300;
    width: 60%;
    font-size: 1.5rem;
    align-self: flex-start;
    margin: 4rem 0 0 0;

}
.welcom_button{
    font-weight: 300;
    align-self: flex-start;
    font-size: 1.5rem;
    border-radius: 1rem;
    border: 2px white solid;
    background-color: transparent;
    color: white;
    
    height: 4.3rem;
    width: 25rem;
    margin: 6rem 0 0 0;
    /*test*/
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 3px 7px 1px rgba(0, 0, 0, 0.4);
    transition: 0.1s;
}


  .sign-up_btn:active {
    transform: translateY(2px) scale(0.98); /* Вибрация при нажатии */
    transition: transform 0.1s ease; /* Короткий переход для вибрации */
  }





/*DIRECTIONS*/
.directions{
    background-color: whitesmoke;
}
.directions_content-width{
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
}
.directions_title, .teachers_title, .tours_title{
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gray);
    font-weight: 400;
    margin-top: 2rem;
}

.directions_container { /*флекс контейнер для направлений*/
    --direction_count: 2;
    --gap: 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2rem 0;
}
.direction {
    height: 600px;
    transition: all .5s;
    display: flex;
    flex-direction: column;
    /* width: calc( ( (80% - var(--gap)*(var(--direction_count) - 1)) / var(--direction_count)) - 2px ); */
    width: 45%;
    color: var(--dark-gray);
    border-radius: 10px;
    /* border: 1px solid rgb(163, 163, 163) ; */
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.direction_image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.text-about {
    height: 50%;
    padding: 2rem;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
}
.direction_name {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.direction_description {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.direction_description.addtional_direction {
    line-height: 1.7rem;
    display: none;
}

.direction_btn-more {
    background-color: transparent;
    font-size: 1.3rem;
    text-decoration: underline;
    color: rgb(144 141 141);
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 1.5rem;
}

.direction_sign-up {
    background-color: cornflowerblue;
    border-radius: 5px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    color: white;
    margin-top: auto;
    width: 250px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
/*ПРЕПОДАВАТЕЛИ*/
.teachers {
    background-color: whitesmoke;
    border-top: 1px solid #6f6f6f;
}
.teachers_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 3rem 6rem 3rem;
}
.teachers_title {
    padding: 0;
    margin-bottom: 4rem;
}
.teacher {
    margin-bottom: 4rem;
}
.teacher_main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.teacher_photo {
    /* mask-image: url(../imgs/mask.png);
    mask-size: cover; */
    border-radius: 20px;
    width: 45%;
    object-fit: cover;
    order: 2;
    min-height: 400px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
    /* box-shadow: 3px 3px 2px 1px rgba(0, 0, 0, 0.2); */
}
.teacher_photo.left {
    /* box-shadow: -3px 3px 2px 1px rgba(0, 0, 0, 0.2); */
    order: 1;
}
.about_teacher {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
    order: 1;
}
.teacher_name {
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.teacher_description{
    border-left: 3px solid #4d74bd;
    font-size: 1.3rem;
    padding-left: 1rem;
}
.teacher_description ~ ul {
    list-style-type: none;
    font-size: 1.3rem;
    margin-top: 5px;
}
.teacher_description ~ ul li {
    margin: 6px 0;
    padding-left: 1rem; 
}

.teacher_courses_header {
    margin-top: auto;
    font-weight: 600;
    font-size: 1.5rem;
    border-left: 3px solid #4d74bd;
    padding-left: 1rem;

}
.teacher_courses {
    padding: 0 2rem;
    margin-top: 2rem;
}
.teacher_courses ul {
    list-style-type: none;
    font-size: 1.2rem;
    color: #494949;
    margin-top: 1rem;
    list-style-position: inside;
}
.teacher_courses li {
    width: fit-content;
    margin-top: 1rem;
    border-bottom: 1px solid #c2bebe;
    padding-bottom: 1rem;
}
.teacher_courses ul.addtional_courses 
{
    margin-top: 0;
    display: none;
}
.courses_btn-more {
    background-color: transparent;
    font-size: 1.3rem;
    text-decoration: underline;
    color: #7b7a7a;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 1rem;
}
.teacher_courses li::marker {
    color: #4d74bd;
}
/*ТУРЫ*/
/* .tours {
    display: none;
    background-color: #262626;
}
.tours_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
}
.tours_title {
    padding: 0;
    margin-bottom: 5rem;
    color: whitesmoke;
}
.tour {
    display: flex;
    flex-direction: row;
}
.tour_photo {
    border-radius: 20px;
    width: 50%;
    object-fit: cover;
}
.about_tour {
    padding: 0 2rem;
}
.tour_name {
    font-weight: normal;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: whitesmoke;
}
.tour_description {
    font-size: 1.2rem;
    color: whitesmoke;
} */

/*МОДАЛЬНОЕ ОКНО*/
.modal {
    position: fixed;
    left: 0; top: 0;
    z-index:2;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .3);
    display: grid;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
}
.modal.open {
    visibility: visible;
    opacity: 1;
}
.modal_window {
    margin: 1.5rem;
    padding: 3rem;
    max-width: 500px;
    border-radius: 10px;
    background-color: white;
    transform: scale(0);
    transition: all .8s;
    color: var(--dark-gray);
}
.modal.open .modal_window {
    transform: scale(1);
}

.form {
    display: flex;
    flex-direction: column;
}

.form_title {
    letter-spacing: 1.5px;
    font-weight: 500;
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 1rem;
}
.form_description {
    color: #7b7b7b;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 3rem;
}
.form_group {
    margin-bottom: 3rem;
    position: relative;
    
}
.form_group label {
    color: #7b7b7b;
    font-size: 1.2rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: 0.4s;
}
.input_box {
    color: var(--dark-gray);
    width: 100%;
    border: none;
    padding-bottom: 10px;
    border-bottom: 2px solid #7b7b7b;
    background-color: transparent;
    outline: none;
    font-size: 1.2rem;
}
.input_box:focus {
    border-bottom: 3px solid cornflowerblue;
}
.input_box:focus ~ label, .input_box:not(:placeholder-shown) ~ label {
    color: #cecdcd;
    top: -1.5rem;
    font-size: 1rem;
}
.politic_agree
{
    font-size: 1rem;
    padding-left: 2rem;
    position: relative;
}
.politic_agree input {
    position: absolute;
    left: 0;
    top: 2px;
    appearance: none;
    background-color: #b5b5b5;
    width: 20px; height: 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.politic_agree input::before{
    background-image: url(../ok_icon.svg);
    content: '';
    width: 20px;
    height: 20px; 
    display: none; 
    /* color: white;
    font-size: 1rem;*/
}
.politic_agree input:checked {
    background-color: #309f47;
}
.politic_agree input:checked::before{
    display: inline-block;
}
.modal_window button {
    background-color: #6495ed;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    color: white;
    font-family: 'Inter';
    margin-top: 1.5rem;
}
#modalWindowButton:active {
    transform: translateY(2px) scale(0.98); /* Вибрация при нажатии */
    transition: transform 0.1s ease; /* Короткий переход для вибрации */
    background-color: #4d74bd;
  }