/* ==== СЕКЦИЯ ВРАЧА ==== */
.doctor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor__wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0 20px;
}

.doctor__photo-block {
    width: calc( 50% - 20px );
    flex-shrink: 0;
}

.doctor__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.doctor__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor__name {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 100%;
    color: #E8E6D4;
    margin: 0 0 45px 0;
}

.doctor__block {
    margin-bottom: 30px;
}

.doctor__block--education {
    margin-bottom: 45px;
}

.doctor__subtitle {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    color: var(--color-text-green);
    margin: 0 0 10px;
}

.doctor__text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #E8E6D4;
    margin: 0;
}

.doctor__link {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #E8E6D4;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    width: fit-content;
    transition: opacity 0.3s;
}

.doctor__link:hover {
    opacity: 0.6;
}

.doctor__buttons {
    display: flex;
    gap: 10px;
}

.doctor__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    padding: 0 20px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #E8E6D4;
    border: 1px solid #FFFFFF;
    background-color: rgba(132, 168, 172, 0.1);
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.doctor__btn:hover {
    opacity: 0.6;
}

.doctor__appointment {
    margin-top: 20px;
}

/* ==== АККОРДЕОН СЕКЦИЯ ==== */
.doctor-accordion {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
}

.accordion__wrapper {
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ==== Универсальная кнопка ==== */
.single-doc-btn {
    display: inline-block;
    padding: 0 24px;
    border-radius: 30px;
    border: 1px solid #E8E6D4;
    background-color: var(--color-orange);
    color: #E8E6D4;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.single-doc-btn:hover {
    background-color: #E8E6D4;
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
}

/* ==== Индивидуальный размер кнопки для "Записаться" ==== */
.btn--wide {
    width: 100%;
    height: 60px;
    font-size: 18px;
    line-height: 60px;
}

.doctor__right {
    width: 560px;
    height: 560px;
    display: flex;
    flex-direction: column;
    width: calc(50% - 20px);
}

/* ==== Адаптация под мобильные устройства ==== */
@media (max-width: 768px) {
    .doctor__wrapper {
        flex-direction: column;
    }

    .doctor-accordion {
        padding-top: 40px;
    }

    .doctor__photo-block, .doctor__content {
        width: 100%;
    }

    .doctor__photo {
        aspect-ratio: 1 / 0.75;
        height: auto;
        object-position: top;
    }

    .doctor__buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn--wide {
        font-size: 16px;
        line-height: 50px;
        height: 50px;
    }

    .accordion-title { width: auto; }

    .doctor__right {
        width: 100%;
    }
    .accordion__wrapper{
        padding: 0;
    }
}

/* ==== ВИДЕОБИОГРАФИЯ ==== */
.doctor-vbio-section {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.doctor-vbio-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.vbio-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #E8E6D4;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==== Сертификаты Врача ==== */
.doctor-certificates {
    width: 1200px;
    /* margin: 0 auto; */
    /* padding: 100px 20px 100px; */
    box-sizing: border-box;
}

/* По умолчанию (без карусели) заголовок центрирован, кнопок нет */
.certificates-header {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    /* Заголовок по центру */
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

/* Когда есть карусель - выравнивание заголовка влево, кнопки справа */
.certificates-header.has-controls {
    justify-content: space-between;
}

/* Заголовок по умолчанию по центру */
.certificates-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 100%;
    color: #E8E6D4;
    height: 31px;
    display: flex;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    outline: none;
    width: auto;
    margin: 0;
}

.certificates-header.has-controls .certificates-title {
    text-align: left;
}

.certificates-wrapper:not(.slick-initialized) {
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    height: 400px;
}

.certificate-item {
    scroll-snap-align: start;
}

.has-carousel::-webkit-scrollbar {
    display: none;
}

.certificate-item {
    flex: 0 0 auto;
    width: calc( 50% - 10px);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.certificate-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    object-fit: contain;
    max-width: calc( 100vw - 40px );
}

.certificates-controls {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}


@media (max-width: 767px) {
    .doctor-certificates {
        width: 100%;
        padding: 80px 10px;
    }

    .certificates-header {
        max-width: 100%;
        margin-bottom: 20px;
        justify-content: center !important;
    }

    .certificates-title {
        width: 100%;
        font-size: 22px;
        text-align: center !important;
    }

    .certificates-wrapper {
        max-width: 100%;
        /* overflow-x: auto; */
        /* padding-bottom: 10px; */
    }

    .certificate-item {
        width: calc(100% - 20px);
    }

    .certificates-controls {
        display: none;
        /* скрываем кнопки на мобилках */
    }
}
