/* Стили блока сопутствующих услуг врача */

.staff-services-wrapper {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.staff-services__title {
    display: none;
}

.staff-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    border: 1px solid #D6DAF1;
    border-radius: 38px;
    height: 100%;
}

.staff-service-card_img {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

.staff-service-card_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin-top: 0;
    margin-left: 0;
    transition: 0.4s;
}

.staff-service-card {
    border-radius: 30px;
    padding: 10px;
    overflow: hidden;
    width: 100%;
    transition: 0.3s;
    position: relative;
    min-height: 330px;
    background: #e9ebf3;
}

.staff-service-card-link:hover {
    color: var(--theme-base-color);
}

.staff-service-card_image.contain-img {
    object-fit: contain;
    margin-top: 5%;
    height: 90%;
}

.staff-service-card_content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    padding: 20px;
    border: 2px solid #ffffff30;
    background: #706e6e2e;
    min-height: 150px;
}

.adns2_services_card_content.contain-img {
    background: #b9b9b92e;
}

.staff-service-title {
    color: white;
    font-weight: 600;
    padding-top: 10px;
    font-size: 20px;
    line-height: 110%;
    text-wrap: wrap;
}

.staff-service-description {
    color: white;
    padding-top: 15px;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
}

.staff-service-card.pink {
    background: linear-gradient(to bottom, #FF8BB3, white);
}

.staff-service-card.green {
    background: linear-gradient(to bottom, #CAFFD1, white);
}

.staff-service-card.gray {
    background: linear-gradient(to bottom, #CFE4ED, white);
}

.staff-service-card.blue {
    background: linear-gradient(to bottom, #A5DAFF, white);
}

.staff-service-card.red {
    background: linear-gradient(to bottom, #FFB9C0, white);
}

.staff-service-card.yellow {
    background: linear-gradient(to bottom, #FFEFCB, white);
}

.staff-service-card.purple {
    background: linear-gradient(to bottom, #FFD4F1, white);
}

.staff-service-card:hover .staff-service-card_image {
    margin-top: -1%;
    margin-left: -1%;
    height: 102%;
    width: 102%;
    transition: 0.4s;
}

.staff-service-section {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 700;
    font-size: 14px;
}

.staff-service-description ul {
    list-style: none;
    padding-left: 0;
}

.staff-service-description ul li {
    color: white;
}

.staff-service-description ul li::before {
    background: white;
}

.adns2_container .link_arrow {
    top: 20px;
    right: 20px !important;
}

.custom-scroll-content-services {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.services-custom-scrollbar {
    position: absolute;
    top: 25px;
    right: 12px;
    width: 8px;
    height: 100%;
    background: #f0f0f050;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.staff-services-wrapper:hover .services-custom-scrollbar {
    opacity: 1;
}

.services-custom-thumb {
    position: absolute;
    width: 100%;
    background: #F2F4FF;
    border: 1px solid #D6DAF1;
    border-radius: 20px;
}

.staff-service-price {
    display: none;
}

@media (max-width: 991px) {
    .staff-service-price {
        display: block;
        color: white;
        padding-top: 15px;
        font-weight: 700;
        font-size: 20px;
    }

    .staff-services-wrapper {
        border: none;
    }

    .staff-services__title {
        display: block;
        margin-bottom: 0;
        color: var(--theme-base-color);
        font-weight: 700;
        font-size: 30px;
    }

    .custom-scroll-content-services {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(300px, 1fr);
        gap: 20px;
        padding: 5px;
        margin: 25px 10px;
        overflow-x: auto;
        overflow-y: visible;
        width: fit-content;
        min-width: 100%;
        margin: 25px 0;
    }

    .custom-scroll-content,
    .custom-scroll-content-services {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .custom-scroll-content-services::-webkit-scrollbar,
    .custom-scroll-content::-webkit-scrollbar,
    .staff-services-wrapper::-webkit-scrollbar {
        display: none;
    }

}
