.prepod_detail_form {
border-radius: 24px 24px 0 0;
position: relative;
z-index: 2;
margin-top: -24px;
background: #fff;
padding: 50px 0 66px;
}
.teacher-card {
display: flex;;
gap: 32px;
align-items: start;
}
.teacher-card__photo {
flex: 2;
border-radius: 6px;
overflow: hidden;
background: #f1f1f1;
}
.teacher-card__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.teacher-card__content {
flex: 5;
}
.teacher-card__title {
margin: 0 0 24px;
font-size: 32px;
line-height: 1.1;
font-weight: 500;
color: var(--dark-blue);
}
.teacher-card__department {
margin-bottom: 18px;
font-size: 11px;
line-height: 1.25;
}
.teacher-card__department span,
.teacher-card__info-item span {
display: block;
margin-bottom: 2px;
color: #5C5C5C;
font-size: 16px;
}
.teacher-card__department b,
.teacher-card__info-item b {
display: block;
font-weight: 700;
font-size: 16px;
color: #5C5C5C;
}
.teacher-card__info {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px 28px;
margin-bottom: 24px;
}
.teacher-card__info-item {
font-size: 11px;
line-height: 1.2;
}
.teacher-card__divider {
width: 245px;
margin: 24px 0;
border-top: 1px dashed #cfcfcf;
}
.teacher-card__text {
margin: 0 0 12px;
font-size: 16px;
line-height: 1.18;
color: #626262;
}
.teacher-card__btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 83px;
min-height: 24px;
padding: 10px 14px;
border-radius: 4px;
background: var(--dark-blue);
color: #fff;
font-size: 14px;
line-height: 1;
font-weight: 500;
text-decoration: none;
transition: background-color 0.2s ease;
}
.teacher-card__btn:hover {
background: #27498f;
}
.teacher-section {
margin-bottom: 38px;
}
.teacher-section:last-child {
margin-bottom: 0;
}
.teacher-section__title {
margin: 0 0 14px;
font-size: 24px;
line-height: 1.15;
font-weight: 700;
color: #5C5C5C;
}
.timeline {
position: relative;
padding-left: 28px;
}
.timeline::before {
content: "";
position: absolute;
left: 6px;
top: 8px;
bottom: 5px;
width: 1px;
background: #f05b68;
}
.timeline__item {
position: relative;
margin-bottom: 18px;
font-size: 12px;
line-height: 1.2;
}
.timeline__item:last-child {
margin-bottom: 0;
}
.timeline__item::before {
content: "";
position: absolute;
left: -28px;
top: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background: #ed1c2e;
}
.timeline__year {
margin-bottom: 2px;
color: var(--dark-blue);
font-weight: 700;
font-size:16px;
}
.timeline__text {
font-sizeL:16px;
color: #5C5C5C;
}
.teacher-card__more {
display: inline-flex;
align-items: center;
gap: 9px;
margin: 13px 0 0 28px;
padding: 0;
border: 0;
background: transparent;
color: #676767;
font-size: 10px;
line-height: 1;
cursor: pointer;
}
.teacher-card__more span {
width: 8px;
height: 8px;
border-right: 2px solid #333;
border-bottom: 2px solid #333;
transform: rotate(45deg) translateY(-2px);
}
.teacher-list {
display: flex;
flex-direction: column;
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
.teacher-list li {
position: relative;
padding-left: 12px;
font-size: 12px;
line-height: 1.2;
font-weight: 700;
}
.teacher-list li::before {
content: "•";
position: absolute;
left: 0;
top: 0;
color: var(--dark-blue);
}
.teacher-list a {
color: var(--dark-blue);
text-decoration: none;
font-size:16px;
}
.teacher-list a:hover {
text-decoration: underline;
}
@media (max-width: 1200px) {
.teacher-card {
grid-template-columns: 1fr;
gap: 24px;
display: grid;
}
.teacher-card__photo {
width: 100%;
height: auto;
aspect-ratio: 276 / 292;
}
.teacher-card__info {
grid-template-columns: repeat(2, 1fr);
}
.teacher-card__divider {
width: 100%;
}
}

@media (max-width: 575px) {
    .teacher-card__info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .teacher-card__title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    .prepod_detail_form {
        padding: 28px 0 40px;
    }
    .teacher-section__title {
        font-size: 20px;
    }
}