/* MAIN */
body {
    /* overflow-x: clip — современная альтернатива hidden, которая НЕ создаёт
       новый scroll-контейнер на body. Это критично для position: sticky:
       при overflow-x: hidden Chrome/Safari «прибивают» sticky-элементы к
       body вместо viewport, и они перестают залипать при скролле страницы.
       clip поддерживается всеми актуальными браузерами с 2022 года. */
    overflow-x: clip;
    font-family: 'Roboto', sans-serif;
}

.top-tittle{
    margin-top: 10vw
}

.main-container{
    /* max-width: 2300px убран — на мониторах шире 2300px давал боковые поля
       у навбара/футера/секций. Внутренние блоки сами ограничивают свою
       ширину (.pn-nav-inner, .mp-container, .container — по 1200px),
       а full-width backgrounds (тёмный navbar, soft-секции) теперь
       тянутся до краёв экрана.
       overflow-x: hidden убран ранее — создавал scroll-контейнер, из-за
       которого position:sticky «приклеивался» к main-container, а не к
       viewport. Если всплывут лишние горизонтальные скроллы — лечить
       точечно у виновника, не общо. */
    width: 100%;
}
/* Сброс default body-margin: 8px от браузера давали маленький зазор */
/* у краёв навбара. MDB обычно ставит margin:0, но на всякий случай — явно. */
body { margin: 0; }

.container-fluid {
    margin: 0;
    padding: 0;
}

.gold-text {
    color: #bba88c
}

.main-text{
    color: #30323D
}

.alert-absolute {
    position: absolute;
    bottom: 0;
}

.alert[data-mdb-hidden="true"] {
    display: none;
    pointer-events: none;
}

@media (max-width: 757px){
    .top-tittle{
        margin-top: 30vw;
        font-size: 10vw;
    }

    .alert{
        width: 80% !important;
        word-wrap: break-word;
    }
}
/* END MAIN */

/* NAVBAR */
.navbar {
    height: 80px;
    background-color: #2d323c;
    color: #ffffff;
}

.navbar-brand {
    margin-left: 5vw;
}

.navbar-nav {
    padding-left: 0;
}

#navbar-brand-img {
    height: 70px;
}

.sidebar-nav {
    margin-left: 4vw;
    font-weight: bold;
    font-size: 1vw;
}

.navbar-nav .nav-link.active {
    color: #bba88c;
    border-bottom: 2px solid #bba88c;
}

.navbar-nav .nav-link:hover {
    color: #bba88c;
}

.navbar-nav .nav-link {
    color: #ffffff;
}

.phone-icon {
    background-color: #bba88c;
    color: white;
    padding: 10px;
    border-radius: 50%;
    margin-right: 1vw;
}

.navbar-phone {
    font-weight: bold;
}

.nav-icon {
    /* На десктопе иконки скрыты — было visibility:hidden, но visibility
       оставляет занимаемое пространство, и иконки «съедали» по 25-30px у
       каждого пункта меню. На 6 пунктах это ~150px лишнего, из-за чего
       пункты переходили на вторую строку. display:none убирает их полностью. */
    display: none;
}

/* Названия пунктов меню не должны переноситься на 2 строки даже при
   узком окне: «Для взрослых», «Для детей» лучше пусть выйдут за edge,
   чем разорвутся. */
.navbar-nav .nav-link {
    white-space: nowrap;
}


@media (max-width: 757px){
    .navbar {
        height: 19.5vw;
    }


    .navbar-brand {
        margin-left: 5vw;
    }

    #navbar-brand-img {
        height: 15vw
    }

    .nav-icon {
        display: inline-block;
        width: 20px;
        color: black;
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .offcanvas-header {
        margin-top: 5vw;
        color: black;
    }

    .offcanvas-title{
        margin-left: 15vw;
    }

    #button_navbar{
        position: absolute;
        right: 25px;
        top: 25px;
    }

    .nav-item {
        font-size: 4vw;
        margin-top: 2vw;
        margin-bottom: 2vw;
    }

    #navbarRightCorner {
        visibility: hidden;
    }

    .sidebar-nav{
        margin-left: 0;
    }

    .nav-link{
        color: black !important;
    }

    .nav-link:hover{
        color: #bba88c !important;
    }
}

@media (min-width: 2000px){
    .navbar {
        height: 5vw;
    }
}
/* END NAVBAR */

/* CAROUSEL */
.carousel-indicators {
    pointer-events: none;
    left: -150px;
}

.carousel-indicators li{
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 50%;

}

.carousel-indicators .active {
    background-color: #bba88c;
}

.carousel-caption {
  left: 45%;
  top: 45%;
  transform: translateY(-25%);
}

.carousel-caption .d-flex {
  justify-content: center;
  height: 75%;
}

.carousel-item-img {
    display: block;
    width: 100%;
    margin-top: 50px;
}

/* button text */
.carousel-main {
    font-size: 2.5vw;
    line-height: 2.5vw;
    font-weight: 900;
}

/* top text */
.carousel-submain {
    font-size: 2.7vw;
    line-height: 2vw;
}

.carousel-button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1vw;
    width: 11vw;
    height: 2.5vw;
    background-color: #bba88c;
    border-radius: 5em;
    color: white;
}

@media (max-width: 757px) {

    #mainCarousel {
        margin-top: 5px;
    }

    .carousel-caption {
        left: 25%;
        top: 45%;
    }

    .carousel-item-img {
        width: 150%;
    }

    .carousel-indicators {
        left: 0;
        visibility: hidden;
    }

    #mainCarousel {
        margin-top: 7vw;
    }

    .carousel-caption {
        left: 25%;
        top: 40%;
    }

    .carousel-item-img {
        width: 170%;
    }

    .carousel-main {
        font-size: 4vw;
        line-height: 5vw;
    }

    .carousel-submain {
        font-size: 7vw;
        line-height: 6vw;
    }

    .carousel-button{
        margin-top: 1vw;
        width: 40vw;
        height: 8vw;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3.5vw;
    }
}

@media (min-width: 2000px){
    .carousel-button {
        font-size: 1.2em;
    }
}
/* END CAROUSEL */

/* BUTTONS */
.booking-btn {
    background-color: #bba88c;
    color: white;
    width: 12vw;
    border-radius: 20px;
    font-size: 1vw;
    margin-left: 3vw;
    margin-right: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-me-btn {
    background-color: #30323D;
    color: white;
    width: 12vw;
    border-radius: 20px;
    font-size: 1vw;
    margin-left: 3vw;
    margin-right: 3vw;
    margin-top: auto;
}

.call-me-btn:hover{
    background-color: #bba88c;
    color: white;
}

@media (max-width: 768px) {
    .call-me-btn{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 10vw;
        font-size: 6vw;
        width: 75%;
        margin-left: 10vw;
    }

    .booking-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 10vw;
        font-size: 6vw;
        width: 75%;
    }

    #contact_block{
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

.about-btn {
    background-color: #7051ae;
    color: white;
    width: 9vw;
    border-radius: 20px;
    font-size: 0.9vw;
    margin-top: 0.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-btn:hover, .carousel-button:hover, .btn-steps:hover, .booking-btn:hover {
    background-color: #30323D;
    color: #ffffff;
}

.btn-steps {
    background-color: #7051ae;
    color: white;
    width: 13vw;
    border-radius: 20px;
    font-size: 0.8vw;
    margin-top: 0.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Старое определение .btn-booking с фиолетовым #7051ae удалено —
   оно конфликтовало с актуальной .btn-booking (gold #bba88c) ниже на
   странице болезни. В templates его уже никто не использовал, но из-за
   совпадения имён класса приходилось лепить !important. */

.booking-btn-online {
    background-color: #bba88c;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1.5em;
    transition: background-color 0.3s, transform 0.3s;
}

.booking-btn-online:hover {
    background-color: #30323D;
    transform: scale(1.05);
    color: white;
}

.btn-documentation {
    background-color: #bba88c;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1em;
    width: 17vw;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-documentation:hover {
    background-color: #30323D;
    transform: scale(1.05);
    color: white;
}


@media (max-width: 768px) {
    .booking-btn-online {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 15vw;
        font-size: 4vw;
        width: 100%;
    }

    .btn-documentation {
        width: 100%
    }
}

.btn-round {
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 1em;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-round:hover {
    transform: scale(1.1);
}

.btn-telegram {
    background-color: #26A5E4;
}

.btn-telegram:hover {
    background-color: #1f87b8;
    color: white;
}

.btn-email {
    background-color: #D44638;
}

.btn-email:hover {
    background-color: #aa372e;
    color: white;
}

.btn-call {
    background-color: #4CAF50;
}

.btn-call:hover {
    background-color: #388e3c;
    color: white;
}

@media (min-width: 2000px){
    .booking-btn {
        font-size: 1.25em;
    }
}
/* END BUTTONS */

/* ICONS */
.icon-social {
    background-color: white;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-gold{
    color: #bba88c;
}

.icon-social:hover {
    color:  white;
}



/* END ICONS */

/* MODULE SPECIALISATION */
.specialization-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #bba88c 0%, #8f7a5e 100%);
    border-radius: 2px;
}

/* Карточки специализации */
.spec-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #bba88c 0%, #8f7a5e 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(187, 168, 140, 0.2);
    border-color: #bba88c;
}

.spec-card:hover::before {
    transform: scaleX(1);
}

.spec-icon-wrapper {
    width: 50px;  /* Было 80px */
    height: 50px; /* Было 80px */
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.spec-card:hover .spec-icon-wrapper {
    background: linear-gradient(135deg, #bba88c 0%, #8f7a5e 100%);
    transform: rotate(10deg) scale(1.1);
}

.spec-icon {
    font-size: 1.5rem; /* Было 2.5rem */
    color: #bba88c;
    transition: color 0.3s ease;
}

.spec-card:hover .spec-icon {
    color: white;
}

.spec-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.spec-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
    }

    .spec-card {
        padding: 1.5rem 1rem;
    }
}
/* END MODULE SPECIALISATION */

/* MODULE PHOTO DIPLOM */
/* Секция сертификатов */
.certificates-section {
    padding: 3rem 0;
}

.carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Основная карусель */
.main-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
    background: #f8f9fa;
}

.main-carousel-img {
    object-fit: contain;
    max-height: 600px;
    background: white;
}

/* Подпись к изображению */
.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 2rem 1rem 1rem;
    color: white;
    font-size: 0.95rem;
}

/* Кастомные кнопки навигации */
.custom-control-prev,
.custom-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .custom-control-prev,
.carousel:hover .custom-control-next {
    opacity: 1;
}

.custom-control-prev {
    left: 1rem;
}

.custom-control-next {
    right: 1rem;
}

.carousel-control-icon {
    color: #bba88c;
    font-size: 1.2rem;
}

.custom-control-prev:hover,
.custom-control-next:hover {
    background: #bba88c;
}

.custom-control-prev:hover .carousel-control-icon,
.custom-control-next:hover .carousel-control-icon {
    color: white;
}

/* Счётчик слайдов */
.carousel-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

#currentSlide {
    color: #bba88c;
}

/* Миниатюры */
.carousel-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.thumbnail-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    background: rgba(187, 168, 140, 0.3);
}

.thumbnail-item.active {
    border-color: #bba88c;
    box-shadow: 0 4px 12px rgba(187, 168, 140, 0.4);
}

.thumbnail-item.active .thumbnail-overlay {
    background: transparent;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .main-carousel-img {
        max-height: 400px;
    }

    .carousel-counter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .custom-control-prev,
    .custom-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-icon {
        font-size: 1rem;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
    }
}

/* MODULE TEAM */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* MODULE EDUCATION */
.education-section {
    padding: 3rem 0;
}

/* Timeline */
.education-timeline {
    position: relative;
    padding-left: 0;
}

/* Вертикальная линия для desktop */
@media (min-width: 768px) {
    .education-timeline::before {
        content: '';
        position: absolute;
        left: 60px;
        top: 20px;
        bottom: 20px;
        width: 2px;
        background: linear-gradient(180deg, #bba88c 0%, #e0e0e0 100%);
    }
}

/* Элемент образования */
.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.education-item:last-child {
    margin-bottom: 0;
}

/* Бейдж с годом */
.edu-year-badge {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #bba88c 0%, #8f7a5e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(187, 168, 140, 0.3);
    z-index: 2;
}

/* Контент образования */
.edu-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.edu-content:hover {
    box-shadow: 0 4px 16px rgba(187, 168, 140, 0.15);
    border-color: #bba88c;
    transform: translateY(-2px);
}

/* Шапка с названием и типом */
.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.edu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* Бейджи типов образования */
.edu-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-aspirantura,
.badge-ordinatura,
.badge-internatura {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.badge-povyshenie-kval {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.badge-perekvalifikaciya {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.badge-osnovnoe-vysshee {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

/* Место обучения */
.edu-place {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    /* Отступы для секции */
    .education-section .education-timeline {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .education-item {
        gap: 1rem;
    }

    .edu-year-badge {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .edu-content {
        padding: 1rem;
    }

    /* Три строки, все по левому краю */
    .edu-header {
        display: block; /* Меняем на block вместо flex */
        margin-bottom: 0.5rem;
    }

    .edu-title {
        font-size: 1rem;
        min-width: auto;
        display: block;
        margin-bottom: 0.5rem; /* Отступ между названием и типом */
    }

    .edu-type-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0 0.3rem 0; /* верх право низ лево */
        display: inline-flex;
    }

    .edu-place {
        font-size: 0.85rem;
        margin-top: 0.5rem; /* Отступ сверху для локации */
    }
}
/* PUBLICATIONS */
.publications-section {
    padding: 3rem 0;
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

/* Элемент публикации */
.publication-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 3px solid #bba88c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.publication-item:hover {
    box-shadow: 0 4px 12px rgba(187, 168, 140, 0.15);
    transform: translateX(5px);
}

/* Год публикации */
.pub-year-tag {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #bba88c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
}

.publication-item:hover .pub-year-tag {
    background: linear-gradient(135deg, #bba88c 0%, #8f7a5e 100%);
    color: white;
    border-color: #bba88c;
}

/* Контент публикации */
.pub-content {
    flex: 1;
    min-width: 0; /* Для корректного переноса текста */
}

.pub-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-place {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .publications-list {
        padding: 0 1rem;
    }

    .publication-item {
        gap: 1rem;
        padding: 1rem;
    }

    .pub-year-tag {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    .pub-title {
        font-size: 0.95rem;
    }

    .pub-place {
        font-size: 0.85rem;
    }
}
/* MODULE TEAM */

.team-container {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.team-cards-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.team-cards {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.team-card {
    flex: 0 0 auto;
    min-width: 17.5vw;
    max-width: 17.5vw;
    margin-right: 2%;
    box-sizing: border-box;
}

.arrow-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.arrow-container.left {
    left: 10px;
}

.arrow-container.right {
    right: 10px;
}

.arrow-button {
    background: transparent;
    border: none;
    color: #bba88c;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.arrow-button:hover {
    color: #30323D;
    transform: scale(1.2);
}

.arrow-button:active {
    transform: scale(0.9);
}

/* Pagination dots */
.team-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot:hover {
    background: #bba88c;
    transform: scale(1.2);
}

.pagination-dot.active {
    background: #bba88c;
    width: 30px;
    border-radius: 6px;
}

.team-photo {
    width: 175px;
    border-radius: 50%;
    box-shadow:
        inset 0 -5em 5em rgba(0, 0, 0, 0.3),
        0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    display: block;
    margin: 10px auto;
    transition: transform 0.3s ease;
}

.team-photo:hover {
    transform: scale(1.05);
}

.team-name, .team-name-rest {
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
    font-size: 1.2em;
    line-height: 1em;
    text-transform: uppercase;
}

.team-spec {
    color: #bba88c;
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 15px;
    white-space: normal !important;
}

.team-exp, .team-work {
    color: grey;
}

.team-info {
    padding: 0 10px;
    margin-top: 30px;
    text-align: center;
}

.team-detail-button-adult, .team-detail-button {
    display: block;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    color: #FFFFFF;
    padding: 5px 10px;
    background-color: #bba88c;
    border-radius: 15px;
    margin-left: 20px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.team-detail-button-adult {
    display: block;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    color: #FFFFFF;
    padding: 5px 10px;
    background-color: #30323D;
    border-radius: 15px;
    margin-left: 20px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.team-detail-button-adult:hover, .team-detail-button:hover {
    color: #FFFFFF;
    background-color: #30323D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-detail-button-adult:hover {
    color: #FFFFFF;
    background-color: #bba88c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .team-card {
        min-width: 40vw;
        max-width: 40vw;
    }
}

@media (max-width: 768px) {
    .team-container {
        padding: 0 40px;
    }

    .team-card {
        min-width: 80vw;
        max-width: 80vw;
        margin-right: 5%;
    }

    .arrow-button {
        font-size: 2.5rem;
    }

    .team-photo {
        width: 150px;
    }

    .team-detail-button-adult, .team-detail-button {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 10vw;
        font-size: 6vw;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .team-card {
        margin-right: 20vw;
        min-width: 82vw; /* Минимальная ширина каждой карточки */
        max-width: 82vw; /* Максимальная ширина каждой карточки */
    }
}

/* END MODULE TEAM */

/* MODULE WORK WITH INFO */
.card-work-top {
    background-color: #bba88c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #FFFFFF;
}

.card-work-top-adult {
    background-color: #30323D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #FFFFFF;
}

.card-work-img {
    max-width: 50px;
    margin-right: 10px;
}

.card-work-title {
    margin: 0;
}

/* END MODULE WORK WITH INFO */

/* MODULE CONTACT FORM */
.form-outline .form-control.form-control-lg {
  border: 1px solid #ced4da; /* Цвет рамки */
}
.form-outline .form-control.form-control-lg:focus {
  border-color: #bba88c !important; /* Цвет рамки при фокусе */
}
/* END MODULE CONTACT FORM*/

/* MODULE PRICES */
/* MODULE PRICES */
.table-prices thead{
    background-color: #30323D;
    color: white;
}

.table-primary-gr, .table-light-gr{
    background-color: #bba88c;
    color: white;
    height: 30px; /* Уменьшаем высоту строк категорий в 2 раза */
}

/* Стили для улучшения внешнего вида таблицы */
.table-prices {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table-prices thead th {
    padding: 12px 15px;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.table-prices tbody td {
    padding: 10px 15px;
    vertical-align: middle;
}

.table-hover tbody tr.table-primary-gr:hover,
.table-hover tbody tr.table-light-gr:hover {
    background-color: #bba88c !important;
}


/* Стили для строк категорий */
.table-primary-gr td {
    padding: 5px !important; /* Уменьшаем внутренние отступы */
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.table-light-gr td {
    padding: 3px !important; /* Ещё меньше отступы для подкатегорий */
    font-size: 0.95rem;
    font-style: italic;
}

/* Стили для цен и времени */
.table-prices td:nth-child(2) {
    font-weight: bold;
}

.table-prices tbody tr:hover:not(.table-primary-gr):not(.table-light-gr) {
    background-color: #f5f5f5;
    transition: background-color 0.3s;
}
/* END MODULE PRICES */

/* GROUP LIST */
.list-group-item {
    border: none;
    background-color: #f8f9fa; /* Светлый фон */
}

.list-group-item:nth-of-type(odd) {
    background-color: #e0d6c7; /* Чередование цветов для улучшения читаемости */
}
/* END GROUP LIST */

/* MODULE REVIEW */
#carouselReview {
    height: 20vw;
}

@media (max-width: 768px) {
    #carouselReview {
        height: 120vw;
    }
}
/* END MODULE REVIEW */

#appointment_widow{
    border: 0;
    display: block;
    width: 100%;
    height: 122vh;
}

#wrap{
    width: 100%;
}

.or-separator {
    position: relative;
    background: #f3f2ee;
    height: 2px;
    margin: 2em 0;
}

.or-text {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f3f2ee;
    padding: 0 0.5em;
    font-size: 1.2em;
}

@media (max-width: 1000px){
    .work_with_icon {
        font-size: 40px;
    }

    .icon-share-media {
        font-size: 50px;
        color: black;
    }

    .badge-success, .badge-info, .badge-danger, .badge-warning, .badge-primary {
        font-size: 2vw;
    }

    #appointment_widow {
        -ms-zoom: 2.25;
        -moz-transform: scale(2.25) translateY(-20%);
        -moz-transform-origin: 0 0;
        -o-transform: scale(2.25) translateY(-20%);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(2.25) translateY(-20%);
        -webkit-transform-origin: 0 0;
        transform: scale(2.25) translateY(-20%);
        border: 0;
        height: 110vw;
        width: 45%;
        clip-path: inset(25% 0 0% 0);  /*Удаляет шапку над окном бронирования*/

    }

    #wrap {
        height: 210vw;
    }

    .btn-round {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 5vw;
        height: 15vw;
    }

}

/* CAROUSEL CLINIC PHOTO MODULE */
#carouselClinicPhoto {
  max-height: 1500px;
}

.img-clinic{
    height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-clinic-small{
    width: 100px;
    max-height: 130px
}

.img-clinic img {
    object-fit: cover; /* или 'contain', в зависимости от желаемого эффекта */
    max-height: 100%;
}

@media (max-width: 768px) {
    .img-clinic {
        height: 120vw;
    }

    .img-clinic-small{
        width: 70px;
        max-height: 85px
    }
}
/* END CAROUSEL CLINIC PHOTO MODULE */
/* REVIEW MODULE */
/* Общий контейнер, центрируем секцию по вертикали и горизонтали */
#review{
    background: white;
    margin-top: 40px;
    padding-bottom: 40px;
}

#review-section {
    display: flex;
    justify-content: center;  /* Центрируем по горизонтали */
    align-items: center;      /* Центрируем по вертикали */
    min-height: 400px;        /* Растягиваем на весь экран */
}

/* Оболочка слайдера */
.custom-review-slider {
    width: 100%;
    max-width: 1100px;
    position: relative;
}

/* Карточка отзыва */
.custom-review-card {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Центрируем текст внутри */
    align-items: center; /* Центрируем все элементы внутри */
    text-align: center;
    height: 400px; /* Фиксированная высота */
}

/* Кастомные стрелки */
.custom-review-prev::after, .custom-review-next::after {
    font-size: 28px !important;
    color: #5b5b5b;
}

.custom-review-prev, .custom-review-next {
    background: none !important; /* Убираем серый фон */
    border: none !important;
    outline: none !important;
    width: auto !important;
    height: auto !important;
}

.custom-review-prev::after {
  content: '<' !important;
}

.custom-review-next::after {
  content: '>' !important;
}

@media (max-width: 757px) {
    #review-section {
        display: block;
        padding: 20px 0;
    }

    .custom-review-card {
        min-height: unset !important; /* Убираем фиксированную высоту */
        padding: 20px 30px;
        height: auto; /* Автоматическая высота */
    }

    .custom-review-text {
        max-width: 100%;
    }

    .custom-review-name {
        margin-right: 40px;
    }

    /* Важно для автоматической высоты слайдов */
    .swiper-slide {
        height: auto !important;
    }

    .custom-review-name {
        margin-top: 15px;
        margin-right: 40px;
    }

    .custom-review-prev::after,
    .custom-review-next::after {
        margin-top: -200px;
    }
}

/* END REVIEW MODULE */

/* DOCTOR */
/* Базовая секция */
#base-info-section {
    padding: 3rem 0;
}

/* Контейнер фото */
.doctor-photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.doctor-photo-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4; /* Пропорциональное фото */
    transition: transform 0.3s ease;
}

.doctor-photo-container:hover img {
    transform: scale(1.03);
}

/* Информация о враче */
.doctor-info-content {
    padding: 1rem;
}

.doctor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.doctor-specialty {
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 2px solid #bba88c;
}

.doctor-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

/* Детали (стаж и работа с) */
.doctor-details {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #bba88c;
}

.detail-row {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.detail-row i {
    font-size: 1.1rem;
}

/* Контейнер кнопки */
.doctor-info-content > .mt-4 {
    text-align: left; /* Выравнивание по левому краю на десктопе */
}

/* Кнопка записи */
.booking-btn-doctor {
    background: linear-gradient(135deg, #bba88c 0%, #a89372 100%);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 400; /* Не жирный текст */
    border-radius: 50px;
    margin-left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(187, 168, 140, 0.3);
    white-space: nowrap; /* Текст в одну строку */
}

.booking-btn-doctor:hover {
    background: linear-gradient(135deg, #a89372 0%, #8f7a5e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 168, 140, 0.5);
    color: white;
}

/* Адаптивность */
@media (max-width: 991px) {
    .doctor-name {
        font-size: 1.5rem;
    }

    .doctor-specialty {
        font-size: 1.1rem;
    }

    .doctor-photo-container img {
        aspect-ratio: 1/1; /* Квадратное фото на планшетах */
    }
}

@media (max-width: 767px) {
    #base-info-section {
        padding: 2rem 0;
    }

    .doctor-info-content {
        padding: 0 1rem; /* Отступы слева и справа на мобильных */
        text-align: center;
    }

    .doctor-description {
        text-align: center;
    }

    .detail-row {
        justify-content: center;
    }

    /* Кнопка по центру на мобильных */
    .doctor-info-content > .mt-4 {
        text-align: center;
    }

    .booking-btn {
        width: 100%;
        max-width: 100%; /* Чтобы поместилась на экране */
        margin: 1rem 0 0 0; /* Убираем боковые отступы */
    }
}

/* Золотой текст (если используется класс .gold-text) */
.gold-text {
    color: #bba88c;
}

.doctor-details-info .list-group-light {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #bba88c;
}

.doctor-details-info .list-group-item {
    background: transparent;
}

/* Desktop: горизонтальное расположение */
.doctor-detail-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.detail-icon-label {
    display: flex;
    align-items: center;
    min-width: 160px;
    flex-shrink: 0;
}

.detail-icon-label i {
    width: 20px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
}

/* Mobile: вертикальное расположение */
@media (max-width: 767px) {
    .doctor-detail-item {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .detail-icon-label {
        margin-bottom: 0.25rem;
        min-width: auto;
    }

    .detail-value {
        padding-left: 28px; /* Отступ под иконку */
        word-break: break-word; /* Переносим длинные слова */
        text-align: left !important;
    }
}

/* Заголовок для страницы с врачом */
#base-info-section-title {
    padding-top: calc(100px + 3rem); /* высота навбара + отступ секции */
}

.btn-minimal-back {
    display: inline-flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    margin: -0.75rem -1rem;
    border-radius: 8px;
}

.btn-minimal-back:hover {
    color: #bba88c;
}

.btn-minimal-back i {
    font-size: 0.8rem;
}

@media (max-width: 767px) {
    .btn-minimal-back {
        font-size: 0.85rem;
        padding: 1rem 1.5rem;
        margin: -1rem -1.5rem;
        z-index: 9999;
    }

    #base-info-section-title {
        padding-top: calc(60px + 3rem); /* высота навбара + отступ секции */
    }
}
/* END DOCTOR MODULE */

/* MAIN PAGE SPEC */
.spec-grid {
    --spec-accent: #bba88c;
    --spec-accent-dark: #8f7a5e;
    --spec-dark: #30323D;
}

.spec-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    color: var(--spec-dark);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(48, 50, 61, 0.08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.spec-card:hover,
.spec-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(187, 168, 140, 0.32);
    color: var(--spec-dark);
    text-decoration: none;
}

.spec-card-header {
    background: linear-gradient(135deg, var(--spec-accent) 0%, var(--spec-accent-dark) 100%);
    padding: 36px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    position: relative;
}

.spec-card-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.spec-card-header img {
    max-width: 78px;
    max-height: 78px;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    transition: transform .28s ease;
}

.spec-card:hover .spec-card-header img {
    transform: scale(1.06);
}

.spec-card-body {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.spec-card-title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--spec-dark);
}

.spec-card-desc {
    margin: 0 0 22px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #5a5d68;
    flex-grow: 1;
}

.spec-card-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(187, 168, 140, 0.28);
    color: var(--spec-accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.spec-card-arrow i {
    transition: transform .25s ease;
}

.spec-card:hover .spec-card-arrow i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .spec-card-header {
        padding: 28px 20px;
        min-height: 120px;
    }
    .spec-card-header img {
        max-width: 60px;
        max-height: 60px;
    }
    .spec-card-body {
        padding: 22px 20px 20px;
    }
    .spec-card-title {
        font-size: 1.25rem;
    }
}
/* ============== Cookie banner (вынесено из inline-style для CSP) ============== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(48, 50, 61, 0.97);
    color: #fff;
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1 1 300px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.cookie-banner-text a {
    color: #bba88c !important;
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.cookie-btn-primary {
    background-color: #bba88c;
    color: #fff;
    border: 1px solid #bba88c;
}
.cookie-btn-primary:hover {
    background-color: #a8916b;
    border-color: #a8916b;
}
.cookie-btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
@media (max-width: 600px) {
    .cookie-banner-content { justify-content: center; text-align: center; }
    .cookie-banner-actions { width: 100%; justify-content: center; }
    .cookie-btn { flex: 1 1 auto; }
}

/* Honeypot для антиспама — невидимое поле */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Team carousel — фикс высоты блока специализации (раньше inline-style) */
.team-spec-fixed { height: 75px; }

.form-text-tight { margin-top: -1rem; }

/* Аватар отзыва — раньше был inline style="width: 100px" */
.review-avatar {
    width: 100px;
}


/* Fallback-аватар отзыва — инициал в круге (когда фото не загружено) */
.review-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1;
}

/* ============== Disease list (на страницах категорий услуг) ============== */
.disease-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.disease-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #555;
}
.disease-item:last-child {
    border-bottom: none;
}
.disease-list--full .disease-item {
    padding: 6px 0;
}

.disease-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    transition: border-color .15s ease, color .15s ease;
}
.disease-link:hover {
    color: #bba88c;
    border-bottom-color: #bba88c;
}
.disease-link .fa-chevron-right {
    font-size: 0.7em;
    opacity: 0.4;
    transition: opacity .15s ease, transform .15s ease;
}
.disease-link:hover .fa-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

.disease-details > .disease-details-summary {
    cursor: pointer;
    color: #bba88c;
    font-weight: 500;
    padding: 8px 0;
    list-style: none;
    user-select: none;
}
.disease-details > .disease-details-summary::-webkit-details-marker { display: none; }
.disease-details > .disease-details-summary::before {
    content: "+ ";
    font-weight: 700;
}
.disease-details[open] > .disease-details-summary::before {
    content: "− ";
}

/* ============== Disease detail page ============== */
/* Высота шапки на десктопе: topbar ~36-40px + navbar 80px = ~120px.
   Берём с запасом + ~30px воздуха над breadcrumbs. */
.disease-main { padding-top: 165px; }
@media (max-width: 992px) { .disease-main { padding-top: 130px; } }
@media (max-width: 576px) { .disease-main { padding-top: 110px; } }

/* Заголовок болезни — без 10vw, как у общесайтового .top-tittle. */
.disease-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
@media (max-width: 576px) {
    .disease-title { font-size: 1.5rem; }
}

.disease-detail .disease-summary {
    max-width: 700px;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.55;
}
.disease-breadcrumbs { color: #888; }
.disease-breadcrumbs a { color: #bba88c; text-decoration: none; }
.disease-breadcrumbs a:hover { text-decoration: underline; }

.disease-hero img { max-height: 480px; object-fit: cover; width: 100%; }

/* Sticky TOC слева.
   Aside col-lg-3 ОБЯЗАТЕЛЬНО должен растягиваться на всю высоту row
   (default flex align-items: stretch) — sticky-ребёнок «ездит» внутри
   высоты aside. Если выставить align-self: flex-start, aside схлопнется
   до высоты содержимого, и sticky никогда не сработает.

   Сам sticky-элемент тоже не должен иметь max-height/overflow — это
   создаёт scroll-контейнер на нём же, что в некоторых браузерах ломает
   залипание. Если оглавление длиннее экрана — допустим внутренний
   скролл, но через nested div, не через sticky-элемент сам по себе. */
.disease-toc {
    position: -webkit-sticky;
    position: sticky;
    /* topbar + navbar ~120px, плюс ~25px воздуха. */
    top: 145px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
}
.disease-toc-inner {
    max-height: calc(100vh - 185px);
    overflow-y: auto;
}
.disease-toc h6 { letter-spacing: 0.05em; }
.disease-toc ul { margin-bottom: 0; }
.disease-toc a {
    color: #555;
    text-decoration: none;
    line-height: 1.9;
    display: block;
    padding: 2px 0;
    border-left: 2px solid transparent;
    padding-left: 8px;
    transition: border-color .15s ease, color .15s ease;
}
.disease-toc a:hover {
    color: #bba88c;
    border-left-color: #bba88c;
}

/* Mobile-вариант оглавления — раскрывающийся блок над контентом. */
.disease-toc-mobile {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
}
.disease-toc-mobile-summary {
    cursor: pointer;
    font-weight: 600;
    color: #2b2b2b;
    list-style: none;
    user-select: none;
}
.disease-toc-mobile-summary::-webkit-details-marker { display: none; }
.disease-toc-mobile-summary::before {
    content: "▾";
    color: #bba88c;
    margin-right: 8px;
    display: inline-block;
    transition: transform .2s ease;
}
.disease-toc-mobile[open] > .disease-toc-mobile-summary::before {
    transform: rotate(180deg);
}
.disease-toc-mobile ul li { line-height: 1.9; }
.disease-toc-mobile ul a {
    color: #555;
    text-decoration: none;
    display: block;
    padding-left: 18px;
}
.disease-toc-mobile ul a:hover { color: #bba88c; }

/* Кнопка «Наверх» — fixed bottom-right, появляется после ~400px скролла */
.disease-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #bba88c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 1000;
    transition: background-color .15s ease, transform .1s ease, opacity .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.disease-back-to-top:hover {
    background: #a8916b;
    transform: translateY(-2px);
}
.disease-back-to-top:active { transform: translateY(0); }
.disease-back-to-top[hidden] { display: none; }
@media (max-width: 576px) {
    .disease-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

.disease-content { color: #2b2b2b; line-height: 1.7; }
.disease-section { margin: 2.5rem 0; }
.disease-section h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #bba88c;
    display: inline-block;
}
.disease-section h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.disease-section ul, .disease-section ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.disease-section li { margin-bottom: 0.4rem; }
.disease-section img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

.disease-section--urgent {
    background: #fff5f0;
    border-left: 4px solid #d97742;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}
.disease-section--urgent h2 { color: #c45a1f; border-bottom-color: #d97742; }

.disease-faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 8px;
    overflow: hidden;
}
.disease-faq-question {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 500;
    background: #fafafa;
    list-style: none;
    user-select: none;
    transition: background-color .15s;
}
.disease-faq-question::-webkit-details-marker { display: none; }
.disease-faq-question::before {
    content: "+";
    color: #bba88c;
    font-weight: 700;
    margin-right: 12px;
    display: inline-block;
    width: 14px;
}
.disease-faq-item[open] > .disease-faq-question::before { content: "−"; }
.disease-faq-item[open] > .disease-faq-question { background: #f4ede1; }
.disease-faq-answer { padding: 14px 18px 18px 44px; line-height: 1.6; }

.disease-prices { margin: 1rem 0; }
.disease-prices th { background: #fafafa; font-weight: 500; }
.disease-prices td { vertical-align: middle; }

/* ── Карточка специалиста на странице болезни ──
   Все блоки фиксированной высоты: ФИО — 2 строки, спец — 4 строки,
   опыт — 1 строка. За счёт этого все карточки в ряду абсолютно
   одинаковые независимо от длины ФИО или специализации. */
.disease-specialists { row-gap: 2rem !important; }

.disease-specialist-card {
    --photo-size: 130px;
    width: 220px;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0 14px 18px;       /* Без top-padding — фото идёт сразу с верха */
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
}
.disease-specialist-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.disease-specialist-photo-link {
    display: flex;            /* flex-контейнер выравнивает <img> без inline-baseline */
    align-items: stretch;
    justify-content: stretch;
    margin: 18px auto 14px;
    width: var(--photo-size);
    height: var(--photo-size);
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    background-color: #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.disease-specialist-photo {
    /* Принудительно занимает всю площадь круга без всяких баz из-за
       intrinsic-размера <img>. flex: 1 1 auto + min-width/height = 0 — это
       стандартный приём, чтобы flex-item действительно тянулся, а не
       схлопывался под intrinsic-content. */
    display: block !important;
    flex: 1 1 100%;
    min-width: 0;
    min-height: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    object-position: center 25% !important;
    border-radius: 50%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top;
    transition: transform .25s ease;
}
.disease-specialist-photo-link:hover .disease-specialist-photo {
    transform: scale(1.05);
}
.disease-specialist-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 3rem;
    font-weight: 600;
}

.disease-specialist-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ФИО — обе строки жирным одного размера, всегда ровно 2 строки */
.disease-specialist-name {
    --name-line-height: 1.25;
    --name-font-size: 1rem;
    font-size: var(--name-font-size);
    font-weight: 700;
    color: #2b2b2b;
    text-decoration: none;
    line-height: var(--name-line-height);
    display: block;
    height: calc(var(--name-font-size) * var(--name-line-height) * 2);
    margin-bottom: 8px;
}
.disease-specialist-name:hover { color: #bba88c; text-decoration: none; }
.disease-specialist-name-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Специализация — резервируем 4 строки */
.disease-specialist-spec {
    --spec-line-height: 1.35;
    --spec-font-size: 0.82rem;
    font-size: var(--spec-font-size);
    color: #666;
    line-height: var(--spec-line-height);
    height: calc(var(--spec-font-size) * var(--spec-line-height) * 4);
    margin-bottom: 8px;
    /* Если текст длиннее 4 строк — обрезаем многоточием */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.disease-specialist-experience {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    height: 1.4em;
    margin-bottom: 12px;
}
.disease-specialist-experience .fa-clock { color: #bba88c; margin-right: 4px; }

/* Кнопка «Подробнее» в карточке — outline-стиль, сдержанная.
   :link и :visited явно перечислены, иначе общий a.btn-booking:visited
   выше выигрывает по специфичности (0,2,1) над .disease-specialist-card
   .btn-booking--sm (0,2,0) и красит текст в #fff — на белой карточке
   получается «невидимая» кнопка. Особенно ярко в Firefox. */
.disease-specialist-card .btn-booking--sm,
.disease-specialist-card .btn-booking--sm:link,
.disease-specialist-card .btn-booking--sm:visited {
    align-self: center;
    width: auto;
    margin-top: auto;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    background: transparent !important;
    color: #bba88c !important;
    border: 1px solid #bba88c !important;
}
.disease-specialist-card .btn-booking--sm:hover,
.disease-specialist-card .btn-booking--sm:focus {
    background: #bba88c !important;
    color: #fff !important;
    border-color: #bba88c !important;
}

@media (max-width: 576px) {
    /* На телефоне — 2 карточки в ряд по ширине viewport (50% - половина gap),
       без бесполезного пустого пространства по бокам. max-width на случай
       альбомной ориентации, чтобы карточки не разъезжались до 250+ px. */
    .disease-specialists {
        gap: 12px !important;
    }
    .disease-specialist-card {
        --photo-size: 110px;
        width: calc(50% - 6px);
        max-width: 200px;
        flex: 1 1 calc(50% - 6px);
        padding: 0 10px 14px;
    }
    .disease-specialist-photo-link { margin: 14px auto 10px; }
    .disease-specialist-name { --name-font-size: 0.92rem; }
    .disease-specialist-spec { --spec-font-size: 0.74rem; }
    .disease-specialist-experience { font-size: 0.74rem; }
    .disease-specialist-card .btn-booking--sm {
        padding: 4px 10px;
        font-size: 0.74rem;
    }
}

.disease-final-cta {
    background: #fafafa;
    border-radius: 12px;
    padding: 2rem 1rem;
}

/* ============== Disease detail page — кнопки и CTA ============== */
a.btn-booking, button.btn-booking, .btn-booking {
    display: inline-block;
    background-color: #bba88c;
    color: #fff;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #bba88c;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
a.btn-booking:hover, button.btn-booking:hover, .btn-booking:hover {
    background-color: #a8916b;
    border-color: #a8916b;
    color: #fff;
    text-decoration: none;
}
a.btn-booking:visited { color: #fff; }
.btn-booking:active { transform: translateY(1px); }

.btn-booking--lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}
.btn-booking--sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}
.btn-booking--block {
    display: block;
    text-align: center;
    width: 100%;
}

@media (max-width: 576px) {
    /* Все «крупные» кнопки записи на мобиле — full-width, чтобы пальцем
       было удобно нажимать и текст «Записаться на консультацию» влезал
       без обрезаний. Карточная кнопка --sm («Подробнее») не трогается. */
    .btn-booking:not(.btn-booking--sm) {
        display: block;
        width: 100%;
        padding: 12px 18px;
        font-size: 1rem;
    }
    .btn-booking--lg {
        padding: 14px 18px;
        font-size: 1.05rem;
    }
}

/* ============== Site header (topbar + navbar) ============== */
.site-header { z-index: 1030; }

/* Тонкий info-бар вверху: часы, адрес, телефон. На мобиле скрыт целиком. */
.site-topbar {
    background: #1f2129;
    color: #d0d0d0;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-topbar-item {
    color: #d0d0d0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.site-topbar-item i { color: #bba88c; }
.site-topbar-link:hover { color: #bba88c; }
.site-topbar-phone { font-weight: 600; color: #ffffff; }
.site-topbar-phone:hover { color: #bba88c; }

@media (max-width: 1200px) {
    /* На средне-широких экранах адрес сокращаем (он самый длинный из трёх). */
    .site-topbar-item:nth-child(2) i + * { display: none; }
}

/* ============== Mobile offcanvas — современный drawer ==============
   ВСЕ правила ниже — только для мобильных (< lg breakpoint). На десктопе
   тот же <ul class="navbar-nav site-mobile-nav"> отрисовывается inline
   горизонтальным меню в navbar, и если ему применить мобильные стили
   (тёмный текст, padding, бордеры), пункты сольются с тёмным навбаром
   и развалят layout. */
@media (max-width: 991.98px) {
    .site-mobile-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #ececec;
        align-items: center;
        background: #fff;
    }
    .site-mobile-brand-link { display: inline-block; }
    .site-mobile-brand { height: 44px; width: auto; }
    .site-mobile-close {
        margin: 0;
        padding: 0.6rem;
        background-size: 1.2rem;
        opacity: 0.7;
    }
    .site-mobile-close:hover { opacity: 1; }

    /* Пункты меню — крупно, с иконкой слева, разделители тонкими линиями */
    .site-mobile-nav { padding: 0.5rem 0; }
    .site-mobile-nav .nav-item { width: 100%; }
    .site-mobile-nav .nav-link {
        display: flex !important;
        align-items: center;
        gap: 14px;
        padding: 14px 20px !important;
        font-size: 1.05rem !important;
        font-weight: 500;
        color: #2b2b2b !important;
        border-bottom: 1px solid #f0f0f0;
        margin: 0 !important;
    }
    .site-mobile-nav .nav-link:active,
    .site-mobile-nav .nav-link:hover {
        background: #faf6ee;
        color: #bba88c !important;
    }
    .site-mobile-nav .nav-link .nav-icon {
        width: 22px;
        color: #bba88c !important;
        margin: 0 !important;
        text-align: center;
        font-size: 1rem;
        flex-shrink: 0;
    }
    .site-mobile-nav .nav-link span { flex: 1; }

    /* Блок информации внизу drawer: CTA + телефон + часы + адрес */
    .site-mobile-info { padding: 24px 20px 32px; }
    .site-mobile-cta { margin-bottom: 20px; }

    .site-mobile-phone {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 16px;
        background: #faf6ee;
        border: 1px solid #e8dcc1;
        border-radius: 10px;
        color: #2b2b2b;
        font-size: 1.15rem;
        font-weight: 600;
        text-decoration: none;
        transition: background-color .15s ease, border-color .15s ease;
    }
    .site-mobile-phone:hover {
        background: #f3eada;
        border-color: #d4bc88;
        color: #2b2b2b;
        text-decoration: none;
    }
    .site-mobile-phone i {
        color: #bba88c;
        font-size: 1.05rem;
    }

    .site-mobile-hours {
        background: #fafafa;
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 16px;
        font-size: 0.95rem;
        color: #444;
    }
    .site-mobile-hours-row {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
    }
    .site-mobile-hours-row span:first-child {
        color: #888;
        font-weight: 500;
    }
    .site-mobile-hours-row span:last-child {
        font-weight: 600;
        font-feature-settings: "tnum"; /* tabular цифры — времена выровнены столбиком */
    }
    .site-mobile-hours-off span:last-child {
        color: #999;
        font-weight: 400;
        font-style: italic;
    }

    .site-mobile-address {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #555;
        font-size: 0.9rem;
        line-height: 1.45;
        padding: 12px 4px 4px;
        text-decoration: none;
    }
    .site-mobile-address:hover {
        color: #bba88c;
        text-decoration: none;
    }
    .site-mobile-address i {
        color: #bba88c;
        margin-top: 3px;
        flex-shrink: 0;
    }
}

/* Подстраховка: иконки в навбаре скрыты на десктопе ВСЕГДА — даже если
   что-то снаружи попытается их вернуть через display:inline-block. На
   мобиле внутри offcanvas-меню они нужны (см. правила выше). */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-icon { display: none !important; }
}

/* ============== Custom scrollbar — тонкий, в фирменных цветах ==============
   Подход безопасный: ширина 10px (легко попасть мышью), thumb gold-полупрозрачный,
   при hover темнеет. На мобиле скроллбары всё равно автоскрытые (touch-режим),
   стили действуют только когда устройство решит их показать. На десктопе —
   приятная брендовая деталь, не ломает muscle memory: ширина и поведение
   стандартные, только цвет фирменный. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(187, 168, 140, 0.55) transparent;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: rgba(187, 168, 140, 0.55);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background-color .15s ease;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(187, 168, 140, 0.85);
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:active {
    background: #bba88c;
    background-clip: content-box;
}
