.all-teams {
    margin: 0 0 80px 0;
}
.grad-container.team{
    padding-top: 150px;
    margin-top: 0;
}

.all-teams__wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.all-teams__wrapper-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.all-teams__wrapper-top a {
    font-family: Ermilov;
    font-weight: 700;
    font-style: Bold;
    text-decoration: none;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 80px;
    letter-spacing: -3%;
    opacity: 0.4;
    color: #FFFFFF;
}
.all-teams__wrapper-top a.active{
    opacity: 1;
}
.all-teams__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.all-teams__items-item {
    padding: 4px;
    background: #fff;
    border: 1px solid #E2E2E2;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.all-teams__items-item .img-wrapper {
    width: 100%;
    height: 273px;
    border-radius: 28px;
    overflow: hidden;
}

.all-teams__items-item .img-wrapper img {
    width: 100%;
    object-position: top;
    height: 100%;
    object-fit: cover;
}

.all-teams__items-item .text-section {
    padding: 0 16px 8px 14px;
}

.all-teams__items-item .name {
    font-family: Ermilov;
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    color: #2E2E2E;
}

.all-teams__items-item .position {
    font-family: Manrope;
    font-size: 16px;
    line-height: 24px;
    color: #747474;
}
.all-team-btn{
    cursor: pointer;
    width: calc(100% - 32px);
    padding: 8px;
    font-family: Ermilov;
    margin: 0 auto 12px auto;
    font-weight: 500;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;
    color: white;
    text-align: center;
    background: #507BC3;
    border: 1px solid transparent;
    transition: all 0.4s ease-in-out;
    border-radius: 999px;
}

.all-teams__items-item-mail {
    font-family: Manrope;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    color: #507BC3;
}

@media screen and (max-width: 1024px) {
    .all-teams__items {
        grid-template-columns: repeat(2, 1fr);
    }

    .all-teams__wrapper h2 {
        font-size: 24px;
        line-height: 36px;
        margin: 0 16px;
    }

    .all-teams {
        margin: 0;
    }
    .all-teams__wrapper-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .all-teams__wrapper-top a {
        font-family: Ermilov;
        font-weight: 700;
        font-style: Bold;
        text-decoration: none;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 32px;
        letter-spacing: -3%;
        opacity: 0.4;
        color: #FFFFFF;
    }
}

@media screen and (max-width: 600px) {
    .all-teams__items {
        grid-template-columns: 1fr;
    }
}
