.section {
    margin: 0px 10%;
    margin-top: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #003543;
}

.team_carousel__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.team_filter {
    display: flex;
    gap: 10px;
}
.team_filter .filter-btn {
    border: 1px solid #C0D8DF;
    color: #000;
    padding: 10px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border-radius: 8px;
    outline: none;
}
.team_filter .filter-btn.active {
    background: #0196BB;
    color: #fff;
    border: 1px solid #0196BB;
    outline: none;
}

.team_nav {
    display: flex;
    gap: 10px;
}
.team_nav .swiper-button-prev,
.team_nav .swiper-button-next {
    position: static;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transform: none;
    margin: 0;
    border: 1px solid #ECF3F5;
}
.team_nav .swiper-button-prev::after,
.team_nav .swiper-button-next::after {
    font-size: 15px;
    color: #0196BB;
    font-weight: 700;
}

/* Карточка и кнопка «Записаться» */
.swiper-slide {
    position: relative;
    overflow: hidden;
}
.slider-team .swiper-slide__pic {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.slider-team .swiper-slide__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Кнопка записи */
.slider-team .swiper-slide__btn {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #0196BB;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: auto;
    z-index: 2;
    text-align: center;
    border-radius: 8px;
    color: #fff;
}

.slider-team .swiper-slide__btn:hover {
    background: #fff;
    color: #0196BB;
    border: 1px solid #0196BB;
}

.slider-team .swiper-slide__btn a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 8px 0;
    color: currentColor;
}


/* При наведении на слайд кнопка выезжает */
.slider-team .swiper-slide:hover .swiper-slide__btn {
    transform: translateY(0);
    opacity: 1;
}

.slider-team .swiper-slide__btn,
.slider-team .swiper-slide__btn a {
    cursor: pointer;
}

.swiper-pagination-team {
    text-align: center;
}

.slider-team .swiper-slide__name {
    display: flex;
    justify-content: flex-start;
    text-align: left !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    color: #003543 !important;
    margin-bottom: 5px !important;
}

.slider-team .swiper.swiper_team {
    padding: 0px !important;
}

.slider-team .swiper-slide {
    margin-right: 20px !important;
}

.team_carousel .swiper-slide__pic img {
    border-radius: 8px;
}

.slider-team .swiper-slide__position {
    text-align: left !important;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .section.slider-team {
        position: relative;
    }
    .section-title {
        padding-right: 70px;
        margin-bottom: 20px;
        font-size: 26px;
    }

    section {
        margin: 80px 5% !important;
    }
    .team_carousel__controls {
        position: relative;
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .team_nav {
        position: absolute;
        top: -60px;
        right: 0;
        display: flex;
        gap: 6px;
    }
    .team_nav .swiper-button-prev,
    .team_nav .swiper-button-next {
        width: 32px;
        height: 32px;
    }
        .team_filter {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 4px 0 12px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .team_filter::-webkit-scrollbar {
        display: none;
    }

    .team_filter .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 8px;
        background: #FFFFFF;
        border: 1px solid #C0D8DF;
        transition: all 0.2s;
    }
    .team_filter .filter-btn.active {
        background: #0196bb;
        color: #fff;
        border-color: #0196bb;
    }

    .team_filter .filter-btn.active {
        scroll-margin-left: 10px;
    }
}