/* Ustina - sixth screen / team */
.team-section.section {
    padding: 3.25rem 0 !important;
    background: linear-gradient(135deg,#FBFAF8 0%,#F7F9FA 58%,#F2F5F7 100%);
}

.team-section__head {
    max-width: 1000px;
    margin-bottom: 2rem;
}

.team-section__kicker {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .7rem;
    color: var(--ustina-muted,#68778A);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-section__kicker::before {
    content: "";
    flex: 0 0 38px;
    width: 38px;
    height: 2px;
    background: var(--ustina-wine,#8A2432);
}

.team-section__title {
    margin: 0;
    color: var(--ustina-blue,#203E63);
    font: 400 clamp(2.45rem,3.5vw,3.7rem)/1.06 Georgia,"Times New Roman",serif;
    letter-spacing: -.025em;
}

.team-section__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1rem;
    align-items: stretch;
}

.team-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #D9DFE5;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 28px rgba(32,62,99,.045);
    transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: var(--ustina-line,#BDC6D0);
    box-shadow: 0 16px 34px rgba(32,62,99,.08);
}

.team-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #E9EDF0;
}

.team-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22%;
    background: linear-gradient(180deg,transparent,rgba(32,62,99,.07));
    pointer-events: none;
}

.team-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s ease;
}

.team-card:hover .team-card__media img {
    transform: scale(1.018);
}

.team-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.35rem 1.35rem 1.45rem;
}

.team-card__name {
    margin: 0;
    color: var(--ustina-blue,#203E63);
    font: 400 clamp(1.3rem,1.5vw,1.55rem)/1.13 Georgia,"Times New Roman",serif;
}

.team-card__accent {
    width: 38px;
    height: 2px;
    margin: .85rem 0;
    background: var(--ustina-wine,#8A2432);
}

.team-card__role {
    color: var(--ustina-blue,#203E63);
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.4;
}

.team-card__descr {
    margin: .8rem 0 0;
    color: var(--ustina-text,#31465E);
    font-size: .9rem;
    line-height: 1.48;
}

.team-card__facts {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.team-card__facts li {
    position: relative;
    margin: 0 0 .48rem;
    padding-left: 1.05rem;
    color: var(--ustina-text,#31465E);
    font-size: .89rem;
    line-height: 1.42;
}

.team-card__facts li:last-child {
    margin-bottom: 0;
}

.team-card__facts li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ustina-wine,#8A2432);
}

.team-card__facts strong {
    color: var(--ustina-text,#31465E);
    font-weight: 700;
}

@media (max-width: 1180px) {
    .team-section__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .team-card__media {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 700px) {
    .team-section.section {
        padding: 2.25rem 0 !important;
    }

    .team-section__head {
        margin-bottom: 1.5rem;
    }

    .team-section__title {
        font-size: 2.15rem;
    }

    .team-section__grid {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .team-card__media {
        aspect-ratio: 1 / 1;
    }

    .team-card__body {
        padding: 1.2rem;
    }

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