/* =================== ПРЕПОДАВАТЕЛИ =================== */
.staff-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 42px;
}

.director-block-staff { max-width: 700px; margin: 0 auto; }

.blocks-staff {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.staff-card {
    display: block;
    padding: 16px;
    border: 1px solid #d4e8dd;
    border-radius: var(--r20);
    background: #f0f9f4;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
    color: var(--b);
}

.staff-card:hover {
    transform: none;
    border-color: #d4e8dd;
    background: #f0f9f4;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
}

.staff-card.main-block {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
    padding: 22px;
    background: #e9f6f0;
}

.staff-card__image-link { display: block; }

.staff-card .image {
    width: 100%;
    height: 220px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 3px solid var(--o1);
    border-radius: var(--r16);
    background: rgba(0, 0, 0, .05);
    transition: border-color .2s ease, transform .2s ease;
}

.staff-card__image-link:hover .image { border-color: var(--o4); transform: scale(1.01); }

.staff-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card h1, .staff-card h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2em;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 1000;
    line-height: 1.08;
    text-align: center;
    color: var(--o1);
}

.staff-card p { margin: 0 0 8px; line-height: 1.12; }
.staff-line, .staff-line__label, .staff-line__value { font-size: 13.8px; color: var(--b); }
.staff-line__label { font-weight: 900; }
.staff-line__value, .staff-line__value--contact { font-weight: 400; }

.staff-line__value--contact {
    color: var(--b);
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 76, 0, .28);
    transition: color .2s ease, border-color .2s ease;
}

.staff-line__value--contact:hover { color: var(--o3); border-bottom-color: var(--o3); }
.staff-line.is-empty .staff-line__value, .professor-info__line.is-empty .professor-info__value { opacity: .72; }


/* =================== АДАПТАЦИЯ СТРАНИЦЫ ПРЕПОДАВАТЕЛЕЙ =================== */
@media (max-width: 768px) {
    .blocks-staff { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .blocks-staff { grid-template-columns: 1fr; }
}