.all-team {
    margin-top: 80px;
    margin-bottom: 80px;
}

.all-team__wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.all-team__wrapper h2 {
    font-family: Ermilov;
    font-weight: 700;
    font-style: Bold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 80px;
    letter-spacing: -3%;
    color: #2E2E2E;
}

.all-team__items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.all-team__items-item {
    padding: 4px;
    background: #FFFFFF;
    border: 1px solid #E2E2E2;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    height: auto;
    flex-direction: column;
    gap: 12px;
    width: calc(25% - 27px);
}

.all-team__items-item .img-wrapper {
    width: 100%;
    height: 273px;
    border-radius: 28px;
    overflow: hidden;
}

.all-team__items-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-team__items-item .text-section {
    padding: 0 16px 16px 14px;
}

.all-team__items-item .name {
    font-family: Ermilov;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 30px;
    letter-spacing: -3%;
    color: #2E2E2E;
}

.all-team__items-item .position {
    font-family: Manrope;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: -2%;
    color: #747474;
}
.all-team__items-item-mail{
    font-family: Manrope;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: -2%;
    text-decoration: none;
    color: #507BC3;
}
@media screen and (max-width: 1024px){
    .team-swiper{
        width: 100%;
    }
    .all-team .app-container{
        width: 100%;
        max-width: 100%;
    }
    .all-team__items{
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;;
        gap: 0 !important;
    }
    .all-team__items-item {
        width: 100%;
        box-sizing: border-box;
    }
    .all-team__wrapper h2 {
        font-size: 24px;
        line-height: 36px;
        max-width: calc(100% - 32px);
        margin: 0 16px;
    }
    .all-team {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .all-team__wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .all-team__items-item .name{
        font-size: 20px;
        line-height: 120%;
    }
    .all-team__items-item-mail{
        font-size: 14px;
    }
    .all-team__items-item .img-wrapper img {

   
    object-position: top;
  
}
 .team-swiper .swiper-pagination-progressbar {
        position: relative;
        height: 4px;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 30px;
        display: none;
    }

    .team-swiper .swiper-pagination-progressbar-fill {
        background: #4671B9;
    }


    .team-swiper .swiper-pagination-progressbar {
        display: block;
        max-width: calc(100% - 32px);
        margin: 20px auto 0 auto;
    }

    .team-swiper {
        padding-bottom: 40px;
    }
}
