/* ===== TEAM PAGE ===== */

/* Department block */
.team-department {
    margin-bottom: 6rem;
}

.team-department__header {
    margin-bottom: 3rem;
}

/* Horizontal separator between departments */
.team-department__divider {
    border-top: 1px solid var(--color-border, rgba(0,0,0,.12));
    margin-top: 6rem;
}

/* Members grid — flexbox с центровкой */
.team-members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
}

.team-card {
    width: 260px;
    flex-shrink: 0;
}

@media only screen and (max-width: 767px) {
    .team-card {
        width: calc(50% - 1.2rem);
    }
}

@media only screen and (max-width: 479px) {
    .team-card {
        width: calc(50% - 0.8rem);
    }
    .team-members-grid {
        gap: 1.2rem;
    }
}

/* Card */
.team-card__inner {
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card__inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* Photo */
.team-card__photo-wrap {
    width: 255px;
    border-radius: 12%;
    overflow: hidden;
    margin-bottom: 1.8rem;
    flex-shrink: 0;
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tint, #f5f5f5);
    color: var(--color-text-muted, #aaa);
    font-size: 4rem;
}

/* Text */
.team-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.team-card__name {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.team-card__position {
    font-size: 1.3rem;
    color: var(--color-text-muted, #666);
    margin: 0;
}

/* Empty / no data states */
.team-empty,
.team-no-data p {
    font-size: 1.8rem;
    color: var(--color-text-muted, #888);
    padding: 3rem 0;
    text-align: center;
}

/* Mobile tweaks */
@media only screen and (max-width: 767px) {
    .team-card__photo-wrap {
        width: 160px;
        height: 160px;
    }

    .team-card__inner {
        padding: 1.8rem 1.2rem;
    }

    .team-card__name {
        font-size: 1.4rem;
    }

    .team-card__position {
        font-size: 1.2rem;
    }
}
