
.staff {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.5;
}

.title-page {
    font-size: 2.4rem;
    font-weight: 300;
    color: #1a365d;
    margin: 0 0 40px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* анимка(тест) */
.animate.center {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Зав.кафедры*/
.director-block-staff.main-block {
    display: flex;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 60px;
    border-left: 4px solid #2d3748;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    min-height: 300px;
}

.director-block-staff.main-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* фото зав.кафедры */
.director-block-staff.main-block .image {
    flex: 0 0 35%;
    min-width: 300px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.director-block-staff.main-block .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.director-block-staff.main-block:hover .image img {
    transform: scale(1.02);
}

/* Текст зав.кафедры */
.director-block-staff.main-block article {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.director-block-staff.main-block article h1 {
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 25px 0;
    font-weight: 500;
    line-height: 1.3;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}


.director-block-staff.main-block .entry-position {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.director-block-staff.main-block .entry-position strong {
    font-weight: 600;
    color: #1a365d;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.director-block-staff.main-block .entry-degree,
.director-block-staff.main-block .entry-title-rank {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
    border-left: 2px solid #e2e8f0;
    padding-left: 15px;
}

.director-block-staff.main-block .entry-contact {
    font-size: 1.05rem;
    color: #2d3748;
    margin-top: 25px;
    padding: 18px;
    background: #edf2f7;
    border-radius: 6px;
    border-left: 3px solid #3182ce;
}

.director-block-staff.main-block .entry-contact strong {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 500;
}

/* сетка преподавателей*/
.blocks-staff {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

.blocks-staff-title {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Карточка преподавателя */
.block-staff {
    display: flex;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 200px;
}

.block-staff:hover {
    border-color: #cbd5e0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}


.block-staff .image {
    flex: 0 0 35%;
    min-width: 140px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.block-staff .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.block-staff:hover .image img {
    transform: scale(1.05);
}


.block-staff article {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-staff article h1 {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 500;
    line-height: 1.3;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}


.block-staff .entry-position {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.block-staff .entry-degree,
.block-staff .entry-title-rank {
    font-size: 0.95rem;
    color: #718096;
    margin: 6px 0;
    padding-left: 12px;
    position: relative;
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
}

.block-staff .entry-contact {
    font-size: 0.9rem;
    color: #2d3748;
    margin-top: 15px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 4px;
    border-left: 2px solid #3182ce;
}

.block-staff .entry-contact strong {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Анимация появления карточек */
.block-staff.block-animate {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
/* тест */
.blocks-staff .block-staff:nth-child(1) { animation-delay: 0.1s; }
.blocks-staff .block-staff:nth-child(2) { animation-delay: 0.2s; }
.blocks-staff .block-staff:nth-child(3) { animation-delay: 0.3s; }
.blocks-staff .block-staff:nth-child(4) { animation-delay: 0.4s; }
.blocks-staff .block-staff:nth-child(5) { animation-delay: 0.5s; }
.blocks-staff .block-staff:nth-child(6) { animation-delay: 0.6s; }
.blocks-staff .block-staff:nth-child(n+7) { animation-delay: 0.7s; }

@media (max-width: 1100px) {
    .director-block-staff.main-block .image {
        flex: 0 0 40%;
        min-width: 280px;
    }
    
    .blocks-staff {
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .director-block-staff.main-block {
        flex-direction: column;
        min-height: auto;
    }
    
    .director-block-staff.main-block .image {
        flex: none;
        height: 300px;
        width: 100%;
        min-width: auto;
    }
    
    .director-block-staff.main-block article {
        padding: 30px;
    }
    
    .title-page {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* На мобильных переходим на 1 колонку */
    .blocks-staff {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .block-staff {
        min-height: 180px;
    }
    
    .block-staff .image {
        flex: 0 0 40%;
        min-width: 120px;
    }
    
    .teachers-archive {
        padding: 30px 15px;
    }
    
    .director-block-staff.main-block {
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .block-staff {
        flex-direction: column;
        min-height: auto;
    }
    
    .block-staff .image {
        flex: none;
        height: 300px;
        width: 100%;
        min-width: auto;
    }
    
    .title-page {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .director-block-staff.main-block article h1 {
        font-size: 1.6rem;
    }
    
    .director-block-staff.main-block .image {
        height: 250px;
    }
}

/* заглушка */
.blocks-staff:empty::after {
    content: "Преподаватели не найдены";
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 1.1rem;
    font-style: italic;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
}