/* ===========================
   Single Specialist Page
   =========================== */
.header{
    margin-bottom: 0 !important;
} 

.single-specialist-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Кнопка назад */
.single-spec__back {
    margin-bottom: 24px;
}
.single-spec__back a {
    color: #0D80C2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.single-spec__back a:hover {
    opacity: 0.75;
}

/* ===========================
   Верхній блок: фото + інфо
   =========================== */

.single-spec__top {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
}

/* --- Ліва колонка (фото) --- */
.single-spec__left {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.single-spec__image-wrap {
    position: relative;
    width: 100%;
}

.single-spec__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* Бейдж "зірка" */
.single-spec__image-wrap .mark_box {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 20px;
    padding: 4px 10px 4px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.single-spec__btn-appoint {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0D80C2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.single-spec__btn-appoint:hover {
    background: #0a6aa0;
}

/* --- Права колонка (текст) --- */
.single-spec__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-spec__fio {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.2;
}

.single-spec__jtitle {
    font-size: 17px;
    font-weight: 600;
    color: #0D80C2;
    margin: 0;
}

.single-spec__jdesc {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.single-spec__bullets {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.single-spec__bullets li {
    font-size: 15px;
    color: #333;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.single-spec__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #0D80C2;
    border-radius: 50%;
}

.single-spec__right .button-wrapper {
    margin-top: 16px;
}

/* ===========================
   Акордеони (під верхнім блоком)
   =========================== */

.single-spec__accordions {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid #e0e0e0;
}

.single-spec__accordions .fah-accordion {
    border-bottom: 1px solid #e0e0e0;
}

.single-spec__accordions .accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    cursor: pointer;
    user-select: none;
}

.single-spec__accordions .accordion-header {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Кнопка-стрілка */
.fah-accordion-button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.fah-accordion-button::before,
.fah-accordion-button::after {
    content: '';
    position: absolute;
    background: #0D80C2;
    border-radius: 2px;
    transition: transform 0.25s ease;
}
/* Горизонтальна лінія */
.fah-accordion-button::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Вертикальна лінія (знак +, стає – коли active) */
.fah-accordion-button::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.fah-accordion-button.active::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Вміст акордеону */
.single-spec__accordions .fah-accordion-content {
    padding: 0 4px 20px;
}

.single-spec__accordions .fah-accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.single-spec__accordions .fah-accordion-content ul li {
    font-size: 15px;
    color: #444;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.single-spec__accordions .fah-accordion-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    background: #0D80C2;
    border-radius: 50%;
}

/* ===========================
   Кнопка внизу
   =========================== */

.single-spec__btn-bottom {
    margin-top: 40px;
    text-align: center;
}

/* Загальна кнопка "Записатися" */
.spec_button_appointment_mod {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0D80C2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.spec_button_appointment_mod:hover {
    background: #0a6aa0;
}

/* ===========================
   Модальне вікно запису
   =========================== */

.modal-fah-p {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    overflow-y: auto;
}
.modal-fah-p .modal-fah-content {
    background: #fff;
    margin: 60px auto;
    padding: 36px 32px;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    position: relative;
}
.modal-fah-p h2 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #1a1a1a;
}
.modal-fah-p .close-fah {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.modal-fah-p .close-fah:hover {
    color: #333;
}

/* ===========================
   Адаптив
   =========================== */

@media (max-width: 768px) {
    .single-spec__top {
        flex-direction: column;
        gap: 24px;
    }
    .single-spec__left {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .single-spec__fio {
        font-size: 22px;
    }
}