.team-list {
    position: relative;
}

.team-list::before {
    content: '';
    width: 100%;
    height: 100%;
    max-height: 800px;
    background: url("../images/pattern.png") no-repeat left;
    background-size: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

@media screen and (min-width: 1280px) {
    .team-list::before {
        background-position: center;
    }
}

.team-list--container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

@media screen and (min-width: 768px) {
    .team-list--container {
        gap: 56px;
    }
}

.team-list--title {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

.team-list--title h2,
.team-list--title h3,
.team-list--title p {
    text-align: center;
}

.team-list--title h2 {
    font-size: 2rem;
    color: var(--accent-1);
}

@media screen and (min-width: 768px) {
    .team-list--title h2 {
        font-size: 2.875rem;
    }
}

.team-list--title h3 {
    font-size: 1.875rem;
    color: var(--accent-1);
}

@media screen and (min-width: 768px) {
    .team-list--title h3 {
        font-size: 2.25rem;
    }
}

.team-list--title p:not(.uptitle) {
    margin-top: 8px;
    color: var(--accent-3);
}

.team-list--cards-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .team-list--cards-team {
        gap: 48px;
    }
}

.team-list--cards-team .card-team {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 calc(50% - 16px);
}

@media screen and (min-width: 768px) {
    .team-list--cards-team .card-team {
        flex: 0 1 calc(33.33% - 32px);
    }
}

@media screen and (min-width: 992px) {
    .team-list--cards-team .card-team {
        flex: 0 1 284px;
    }
}

.team-list--cards-team .card-team--image {
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .team-list--cards-team .card-team--image {
        border-radius: 16px;
        height: 300px;
    }
}

.team-list--cards-team .card-team--image img {
    -o-object-fit: cover;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.team-list--cards-team .card-team--content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-list--cards-team .card-team--content .name {
    color: var(--accent-3);
    font-family: var(--aileron);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.team-list--cards-team .card-team--content .job {
    color: var(--accent-2);
    font-family: var(--aileron);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    text-transform: uppercase;
}