.team-grid {
    padding: clamp(2.5rem, 6vw, 6rem) 0;
}

.team-grid__header {
    max-width: 980px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
}

.team-grid__title {
    margin: 0;
}

.team-grid__separator {
    display: block;
    width: min(100%, 470px);
    height: 2px;
    margin: 1rem auto;
    background: #CCCCCC;
}

.team-grid__text {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text);
}

.team-grid__text > *:first-child {
    margin-top: 0;
}

.team-grid__text > *:last-child {
    margin-bottom: 0;
}

.team-grid__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3rem, 7vw, 6rem) clamp(2rem, 6vw, 5.5rem);
    max-width: 1040px;
    margin: 0 auto;
}

.team-grid__item {
    text-align: center;
}

.team-grid__image-wrap {
    width: clamp(150px, 14vw, 210px);
    aspect-ratio: 1;
    margin: 0 auto 1.2rem;
    overflow: hidden;
    border-radius: 999px;
}

.team-grid__image-wrap picture {
    display: block;
    height: 100%;
}

.team-grid__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-grid__image:hover {
    filter: contrast(1.05) brightness(1.03);
    transform: scale(1.05);
}

.team-grid__name {
    margin: 0 0 0.35rem;
    color: var(--color-link);
    font-family: var(--font-family-nav);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.team-grid__position {
    max-width: 240px;
    margin: 0 auto;
    color: var(--color-text);
    font-family: var(--font-family-nav);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.team-grid__actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 991px) {
    .team-grid__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .team-grid__items {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
