.teachers{
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
   padding-top: 50px;
}
/* .about .container-inside{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
} */
.teachers_name{
    margin-top: 35px;
    padding-bottom: 10px;
    text-align: center;
    color: #413960;
    font-weight: normal;
    font-size: 2.85rem;
    line-height: 1;
    font-weight: normal;
}
.teachers-list{
    width: 100%;
}
.teacher{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 0;
    border-bottom: 1px solid rgba(65, 57, 96, 0.2);
}
.teacher_photo{
    width: 360px;
    height: 390px;
    border-radius: 20px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 
        0 0 0 6px #380a4d;
}
.teacher-info{
    width: 60%;
}
.teacher_name{
    font-size: 27px;
}
.teacher_profession{
    font-size: 18px;
    text-transform: capitalize;
}
.teacher-block{
    width: 80%;
    padding: 15px 0;
}
.teacher-block_name{
    display: inline;
    position: relative;
    font-family: 'Regular', sans-serif;
    font-size: 20px;
}
.teacher-block_name::after{
    content: "";
    width: 35px;
    height: 1px;
    position: absolute;
    bottom: -5px;
    right: 0;
    background-color: #413960;
}
.teacher-block_desc{
    margin-top: 8px;
    font-size: 18px;
}
.teacher-spec{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.teacher-spec_item{
    padding: 5px 15px;
    background-color: rgba(56, 10, 77, 0);
    border: 1px solid rgba(56, 10, 77, 0.8);
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Bold', sans-serif;
}

/* адаптирование под экраны */
@media screen and (max-width: 1175px) {
    .teachers .container-inside{
        width: 97%;
    }
}
@media screen and (max-width: 940px) {
    .teacher_photo{
        width: 260px;
        height: 290px;
    }
    .teacher{
        align-items: flex-start;
    }
}
@media screen and (max-width: 790px) {
    .teacher_photo{
        width: 220px;
        height: 250px;
    }
    .teacher{
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .teacher-info {
        width: 100%;
    }
}