.doctors {
    background: #fff;
    padding: 160px 0;
    z-index: 4; /* слой стека наложения (выше heroes=3) */
}

.doctors__pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.doctors__heading {
    margin: 0 0 50px;
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: rgba(90, 97, 108, 1);
    text-transform: uppercase;
}

.doctors__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
    min-height: 560px;
}

.doctors__nav {
    display: flex;
    flex-direction: column;
    gap: 50px;
    min-width: 0;
}

.doctors__nav-item {
    display: flex;
    gap: 32px;
    width: 100%;
    padding: 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.25s ease;
}

.doctors__nav-item.is-active {
    opacity: 1;
    gap: 70px;
}

.doctors__nav-body {
    display: block;
    min-width: 0;
}

.doctors__nav-num {
    flex-shrink: 0;
    font-family: "Noto Serif Display", serif;
    font-size: 24px;
    line-height: 32px;
    color: rgba(60, 36, 21, 1);
}

.is-active .doctors__nav-num {
    font-size: 40px;
    line-height: 52px;
}

.doctors__nav-name {
    display: block;
    margin-bottom: 8px;
    font-family: "Noto Serif Display", serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 52px;
    color: rgba(146, 153, 165, 1);
    transition: font-size 0.3s ease, line-height 0.3s ease, color 0.3s ease, margin-bottom 0.3s ease;
    width: 83%;
}

.doctors__nav-item.is-active .doctors__nav-name {
    margin-bottom: 24px;
    font-size: 72px;
    line-height: 80px;
    color: rgba(60, 36, 21, 1);
    width: 100%;
}

.doctors__nav-spec {
    display: block;
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(146, 153, 165, 1);
}

.doctors__nav-item.is-active .doctors__nav-spec {
    font-size: 20px;
    line-height: 30px;
    color: rgba(0, 0, 0, 1);
    width: 70%;
}

.doctors__stage {
    min-width: 0;
    width: 860px;
}

.doctors__stage-slide {
    height: auto;
    min-width: 0;
}

.doctor__head,
.doctors__stage-pagination,
.doctors__stage-dots {
    display: none;
}

.doctor {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.doctor__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    height: 560px;
    min-width: 400px;
}

.doctor__photo-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.doctor__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: stretch;
    justify-content: space-between;
}

.doctor__info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor__xp {
    font-family: "Noto Serif Display", serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    color: rgba(17, 24, 39, 1);
}

.doctor__functions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor__function {
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: rgba(90, 97, 108, 1);
}

.doctor__description {
    display: flex;
    flex-direction: column;
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: rgba(146, 153, 165, 1);
}

.doctor__description p {
    margin: 0;
}

@media (max-width: 1820px) {
    .doctors__nav-item.is-active .doctors__nav-name {
        font-size: 60px;
        line-height: 66px;
    }

    .doctors__stage {
        max-width: 100%;
    }
}

@media (max-width: 1500px) {
    .doctor {
        display: grid;
        align-items: start;
        gap: 48px;
        grid-template-columns: 1fr;
    }

    .doctor__photo {
        min-width: unset;
    }

    .doctors__stage {
        max-width: 420px;
    }
}

@media (max-width: 1300px) {
    .doctors__nav-item {
        flex-direction: column;
    }

    .doctors__nav-item.is-active .doctors__nav-name {
        font-size: 54px;
        line-height: 60px;
    }
}

@media (max-width: 991px) {
    .doctors {
        padding: 80px 0;
    }

    .doctors__inner {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .doctors__nav {
        display: none;
    }

    .doctors__stage {
        max-width: 100%;
    }

    .doctor {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doctor__head {
        display: block;
    }

    .doctor__photo {
        order: -1;
    }

    .doctor__head-name {
        font-family: "Noto Serif Display", serif;
        font-weight: 500;
        font-size: 32px;
        line-height: 40px;
        color: rgba(60, 36, 21, 1);
    }

    .doctor__head-spec {
        margin-top: 8px;
        font-family: "Inter Tight", sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        color: rgba(90, 97, 108, 1);
    }

    .doctor__info {
        height: auto;
        gap: 24px;
    }

    /* счётчик «текущий / всего» */
    .doctors__stage-pagination {
        display: flex;
        align-items: baseline;
        gap: 4px;
        margin-bottom: 24px;
        font-family: "Noto Serif Display", serif;
        font-size: 18px;
        line-height: 24px;
        color: rgba(146, 153, 165, 1);
    }

    .doctors__stage-current {
        color: rgba(60, 36, 21, 1);
    }

    .doctors__stage-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 32px;
    }

    .doctors__stage-dots .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(60, 36, 21, 0.25);
        opacity: 1;
        transition: background 0.2s ease;
    }

    .doctors__stage-dots .swiper-pagination-bullet-active {
        background: rgba(60, 36, 21, 1);
    }

    .doctors__heading {
        margin: 0 0 16px;
    }

    .doctors__pin {
        padding: 0;
    }
}

@media (max-width: 576px) {

    .doctors {
        padding: 64px 0;
    }

    .doctor__head-name {
        font-size: 26px;
        line-height: 34px;
    }

    .doctor__xp {
        font-size: 18px;
        line-height: 24px;
    }

    .doctors__heading {
        font-size: 20px;
        line-height: 24px;
    }

    .doctors__stage-pagination {
        margin-bottom: 16px;
    }

    .doctors__stage-page {
        font-size: 24px;
        line-height: 32px;
    }

    .doctor__head-spec {
        margin-top: 12px;
        font-size: 16px;
        line-height: 24px;
    }

    .doctor__function {
        font-size: 18px;
        line-height: 24px;
    }

    .doctor__info {
        gap: 16px;
    }

    .doctor__description {
        font-size: 15px;
        line-height: 22px;
    }

    .doctors__pin .container {
        padding: 0;
    }

    .doctors__heading,
    .doctors__stage-pagination {
        padding: 0 20px;
    }

    .doctors__stage-pagination {
        font-size: 24px;
        line-height: 32px;
    }

    .doctor__photo {
        width: 100%;
        height: 370px;
    }

    .doctors__stage-dots {
        margin-top: 24px;
        gap: 6px;
    }

    .doctors__stage-dots .swiper-pagination-bullet {
        width: 4px;
        height: 4px;
        margin: 0 !important;
    }
}
/* 1. Секция на всю высоту экрана */
#doctorsSection {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* 2. Контейнер Swiper занимает всё свободное место */
.js-doctors,
.js-doctors-stage,
.swiper-wrapper {
    height: 100%;
}

/* 3. Слайд занимает 100% высоты */
.js-doctors-slide {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 4. Обертка контента внутри слайда, которая будет скроллиться */
.js-doctors-slide-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain; /* Предотвращает передачу скролла родителю */
    padding-right: 8px; /* Запас для скроллбара */
}

/* Кастомный тонкий скроллбар для красоты */
.js-doctors-slide-scroll::-webkit-scrollbar {
    width: 4px;
}
.js-doctors-slide-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#doctorsSection {
    position: relative;
}

/* Стили полноэкранной фиксации включаются ТОЛЬКО от 1500px */
@media (min-width: 1500px) {
    #doctorsSection {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }

    .js-doctors,
    .js-doctors-stage,
    .swiper-wrapper {
        height: 100%;
    }

    .js-doctors-slide {
        height: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .js-doctors-slide-scroll {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 8px;
    }
}