.team {
    text-align: center;
}

.team__header {
    gap: 4rem;
    align-items: center;
    flex-direction: column;
    margin-bottom: 8rem;
}

.team__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-item {
    align-items: center;
    gap: 1rem;
    line-height: 1.3;
}

.team-item__image {
    aspect-ratio: 1;
    width: 100%;
    border: 2rem;
    margin-bottom: 1rem;
}

.team-item__name {
    font-weight: 700;
    font-size: 1.8rem;
}

.team-item__profession {
    font-weight: 500;
    color: #415451;
}

@media screen and (max-width: 1024.9px) {
    .team__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 575.9px) {
    .team__list {
        grid-template-columns: repeat(1, 1fr);
    }
}