/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ СТИЛИ ===== */

/* Цветовая схема проекта */
:root {
    --white: #ffffff;
    --light-green: #DFFFFD;
    --dark-teal: #00B0BD;
    --orange: #FF7800;
    --text-dark: #2c3e2f;
    --text-muted: #5a6e6f;
    --body-font-family: 'Roboto', sans-serif;
}

/* Сброс стандартных отступов у всех элементов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Плавная прокрутка и отступ для якорных ссылок (учитывает высоту меню) */
html {
    scroll-padding-top: 75px;
    scroll-behavior: smooth;
}

/* Базовые стили body */
body {
    font-family: var(--body-font-family);
    color: #2c3e2f;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
    padding-top: 80px; /* Отступ для фиксированного меню */
}

/* ===== НАВИГАЦИЯ (FIXED MENU) ===== */

/* Фиксированная панель навигации */
.bg-nd-mainmenu {
    background-color: var(--light-green) !important;
    border-bottom: 2px solid var(--dark-teal);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Логотип в навигации */
.navbar-brand img {
    width: 200px !important;
    height: auto !important;
}

/* Ссылки в меню */
.navbar-nav .nav-link {
    color: var(--dark-teal) !important;
    font-weight: 600;
    font-size: 16px;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    text-decoration: none;
}

/* Hover и активное состояние ссылок */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--orange) !important;
}

/* Кнопка "Записаться" в навигации */
.nav-appointment-btn {
    background-color: var(--dark-teal) !important;
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.nav-appointment-btn:hover,
.nav-appointment-btn:hover.nav-link {
    background-color: #009aa6 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Запрещаем оранжевый цвет для кнопки при любых обстоятельствах */
.nav-appointment-btn.nav-link,
.nav-appointment-btn.nav-link:hover,
.nav-appointment-btn.nav-link:focus,
.nav-appointment-btn.nav-link.active {
    color: white !important;
    background-color: var(--dark-teal) !important;
}

.nav-appointment-btn.nav-link:hover {
    background-color: #009aa6 !important;
}

/* ===== КНОПКИ И ССЫЛКИ ===== */

/* Основная кнопка сайта */
.nd-btn {
    background-color: var(--dark-teal);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nd-btn:hover {
    background-color: #009aa6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Кнопка с контуром (оранжевая граница) */
.btn-outline-nd {
    border: 1px solid var(--orange);
    color: var(--orange);
    background: transparent;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-nd:hover {
    background-color: var(--orange);
    color: white;
}

/* Акцентный цвет для дополнительных элементов */
.additional_accent {
    color: var(--orange);
    text-decoration: none;
}

/* Базовый цвет текста (бирюзовый) */
.text_color {
    color: var(--dark-teal);
}

/* Кастомная ссылка (оранжевая) */
.my-link {
    color: var(--orange) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.my-link:hover {
    color: #e06700 !important;
    text-decoration: underline;
}

/* ===== HERO СЕКЦИЯ (ГЛАВНЫЙ ЭКРАН) ===== */

.doctor-hero-section {
    padding: 40px 0 20px 0;
    background-color: var(--white);
}

/* Заголовок в hero */
.doctor-hero-section h1 {
    font-size: 52px;
    font-weight: 500;
    color: var(--dark-teal);
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Выделенная часть заголовка */
.doctor-hero-section h1 span {
    color: var(--orange);
}

/* Подзаголовок */
.doctor-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Тэглайн */
.doctor-tagline {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Описание */
.doctor-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Статистика (блок с иконками и цифрами) */
.doctor-stats {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 45px;
    height: 45px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 22px;
}

.stat-text {
    font-weight: 600;
    color: var(--dark-teal);
}

.stat-text small {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 13px;
}

/* Фото в hero */
.doctor-photo-hero img {
    width: 100%;
    height: auto;
    display: block;
}
/* Блок с кнопками поверх фото — центрирован по горизонтали */
.hero-overlay-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: auto;
    min-width: 280px;
    max-width: 90%;
}

.hero-buttons-group {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 24px 30px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 120, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.hero-buttons-group:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--orange);
}

.hero-cta-btn,
.hero-cta-btn-outline {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 10px 0;
    border-radius: 40px;
    font-weight: 600;
}

.hero-cta-btn {
    background-color: var(--dark-teal);
    color: white;
}

.hero-cta-btn:hover {
    background-color: #009aa6;
    transform: translateY(-2px);
}

.hero-cta-btn-outline {
    border: 1.5px solid var(--orange);
    color: var(--orange);
    background: transparent;
}

.hero-cta-btn-outline:hover {
    background-color: var(--orange);
    color: white;
    transform: translateY(-2px);
}

/* ===== ССЫЛКА "АДРЕСА ПРИЕМА" С ПУНКТИРНЫМ ПОДЧЕРКИВАНИЕМ ===== */

.address-link-dashed {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.address-link-dashed span {
    border-bottom: 1px dashed var(--orange);
    color: var(--orange);
    font-weight: 500;
    transition: all 0.2s ease;
}

.address-link-dashed i {
    color: var(--orange);
    transition: transform 0.2s ease;
}

.address-link-dashed:hover span {
    border-bottom-color: #e06700;
    color: #e06700;
	    transform: translateX(3px);
}

.address-link-dashed:hover i {
    transform: translateX(3px);
}


/* ===== ИНФОРМАЦИОННЫЕ КАРТОЧКИ ===== */

.info-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
    border: 1px solid #e0f0ef;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

/* Оранжевая подчеркивающая линия под заголовком */
.info-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--orange);
}

/* ===== КАРТОЧКИ ФИЛОСОФИИ ===== */

.philosophy-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s;
    border: 1px solid var(--light-green);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.philosophy-icon {
    font-size: 48px;
    color: var(--orange);
    margin-bottom: 20px;
}

/* ===== КАРТОЧКИ ОБОРУДОВАНИЯ ===== */

.equip-item {
    background: var(--light-green);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.equip-item i {
    font-size: 40px;
    color: var(--dark-teal);
    margin-bottom: 15px;
}

/* ===== ГАЛЕРЕЯ ПОРТФОЛИО ===== */

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e0f0ef;
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Блок с изображением/иконкой в портфолио */
.portfolio-img {
    background-color: var(--light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--dark-teal);
}

.portfolio-img i {
    font-size: 70px;
    color: var(--dark-teal);
}

.portfolio-caption {
    padding: 20px;
}

/* ===== КАРТОЧКИ ОТЗЫВОВ ===== */

.review-card {
    background: var(--light-green);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    border-left: 4px solid var(--orange);
}

/* ===== КАРТОЧКИ АДРЕСОВ ===== */

.address-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0f0ef;
    height: 100%;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 176, 189, 0.1);
    border-color: var(--dark-teal);
}

.address-day {
    display: inline-block;
    background: var(--light-green);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark-teal);
    font-size: 14px;
    margin-bottom: 20px;
}

.address-clinic {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 20px;
}

.address-details p {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.address-details i {
    width: 24px;
    color: var(--orange);
    margin-right: 8px;
}
/* ===== СТИЛИ ДЛЯ МИНИ-СЛАЙДЕРА В КАРТОЧКАХ АДРЕСОВ ===== */

.address-carousel {
    border-radius: 16px;
    overflow: hidden;
}

.address-carousel .carousel-control-prev,
.address-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    margin: 0 5px;
}

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

.address-carousel .carousel-control-prev-icon,
.address-carousel .carousel-control-next-icon {
	font: bold;
    width: 32px;
    height: 32px;
	color: var(--light-green);


}

/* Иконки оборудования (микроскоп и КЛКТ)     


*/
.equip-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--light-green);
    border-radius: 50%;
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.equip-icon-wrapper i {
    font-size: 28px;
}

.equip-icon-wrapper:hover i {
    color: var(--orange);
}

/* ===== VK ИНФО БЛОК ===== */

.vk-info-box {
    background: var(--light-green);
    border-radius: 20px;
    padding: 25px 30px;
    border-left: 5px solid var(--orange);
}

.vk-info-box .fa-vk {
    color: #4C75A3;
}

.btn-outline-nd i.fa-vk {
    color: #4C75A3;
}

.btn-outline-nd:hover i.fa-vk {
    color: white;
}

/* ===== FAQ (АККОРДЕОН) ===== */

.faq-item {
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #e0f0ef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--dark-teal);
    box-shadow: 0 5px 15px rgba(0, 176, 189, 0.08);
}

/* Заголовок вопроса */
.faq-question {
    padding: 20px 28px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-teal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
    margin: 0;
}

.faq-question:hover {
    background-color: var(--light-green);
}

/* Иконка плюса/минуса */
.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--orange);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* Поворот иконки при открытом аккордеоне */
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* Блок с ответом */
.faq-answer {
    padding: 5px 28px 24px 28px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    border-top: 1px solid #e0f0ef;
    background-color: #fefef9;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer li {
    margin-bottom: 6px;
}

/* ===== КАРТА ===== */

.map {
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

/* ===== ФОРМА ЗАПИСИ ===== */

.appointment-form {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-green);
}

/* Поля ввода формы */
.appointment-form input,
.appointment-form textarea,
.appointment-form select {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 18px;
    width: 100%;
    transition: all 0.3s;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.1);
}

/* Чекбокс согласия */
.consent-wrapper {
    margin: 20px 0;
}

.consent-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    width: 100%;
}

.consent-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-text {
    display: inline;
    line-height: 1.4;
    flex: 1;
}

/* Ссылка в тексте согласия */
.consent-link {
    color: var(--orange) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: #e06700 !important;
    text-decoration: underline;
}

/* ===== ПОДВАЛ (FOOTER) ===== */

.footer-dark {
    background-color: var(--dark-teal);
    color: white;
    padding: 50px 0 20px;
}

.footer-dark a {
    color: white;
    text-decoration: none;
}

.footer-dark a:hover {
    color: var(--orange);
}

/* ===== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ===== */

.bg-light-green {
    background-color: var(--light-green);
}

.text-dark-teal {
    color: var(--dark-teal);
}

/* Кнопка клиники (белая с оранжевой границей) */
.clinic-btn {
    background-color: white;
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.clinic-btn:hover {
    background-color: var(--orange);
    color: white;
}

/* Декоративная подчеркивающая линия */
.doctor-underline {
    background-color: var(--orange);
    height: 3px;
    width: 80px;
    margin: 15px auto;
}

/* ===== АДАПТИВНОСТЬ (RESPONSIVE) ===== */

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .doctor-hero-section h1 {
        font-size: 36px;
    }

    .doctor-stats {
        gap: 15px;
    }

    .consent-label {
        gap: 10px;
    }

    .consent-checkbox {
        width: 16px;
        height: 16px;
        margin-top: 1px;
    }

    .consent-text {
        font-size: 13px;
    }

    /* Кнопка в меню на мобильных */
    .nav-appointment-btn {
        display: inline-block;
        width: fit-content;
        margin: 5px 15px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 5px 20px 20px 20px;
        font-size: 14px;
    }

    .faq-icon {
        font-size: 22px;
    }
	    .equip-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    .equip-icon-wrapper i {
        font-size: 24px;
    }
}

/* Сетка для услуг - 4 колонки на десктопе */
@media (min-width: 1200px) {
    .services-grid .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* ===== HERO АНИМАЦИЯ ===== */

.hero-animated {
    position: relative;
    overflow: hidden;
}

/* Фоновый слой анимации */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Контент поверх анимации */
.hero-content {
    position: relative;
    z-index: 3;
}

/* Стили для SVG линий анимации */
.line {
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    opacity: 0.5;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

/* Бирюзовые линии */
.teal {
    stroke: var(--dark-teal);
}

/* Оранжевые линии (более прозрачные) */
.orange {
    stroke: var(--orange);
    opacity: 0.35;
}

/* Анимация движения линий */
.move1 {
    animation: flow 14s linear infinite, drift1 22s ease-in-out infinite;
}

.move2 {
    animation: flow 10s linear infinite reverse, drift2 18s ease-in-out infinite;
}

.move3 {
    animation: flow 16s linear infinite, drift3 26s ease-in-out infinite;
}

/* Ключевые кадры: поток линий */
@keyframes flow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -1400;
    }
}

/* Плавное смещение линий */
@keyframes drift1 {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(8%, -10%);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes drift2 {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10%, 8%);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes drift3 {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 12%);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* ===== АНИМАЦИЯ ТОЛЬКО ПОД ФОТО ===== */

.doctor-photo-hero {
    position: relative;
    overflow: hidden;
}

/* Контейнер для анимированных линий над фото */
.photo-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Плавное исчезновение по краям */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* SVG растягивается на весь контейнер */
.photo-lines svg {
    width: 100%;
    height: 100%;
}

/* Фото располагается поверх линий */
.doctor-photo-hero img {
    position: relative;
    z-index: 2;
}


/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ: КНОПКИ ПОВЕРХ ФОТО (ЦЕНТРИРОВАННЫЕ) ===== */

.doctor-photo-hero {
    position: relative;
    overflow: visible;
}



/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ: ФОТО СВЕРХУ, ТЕКСТ СНИЗУ ===== */

@media (max-width: 1000px) {
    /* Кнопки остаются центрированными, но с горизонтальным расположением */
    .hero-overlay-buttons {
        bottom: 15px;
        min-width: 260px;
    }
    
    .hero-buttons-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 22px 18px;
    }
    
    .hero-cta-btn,
    .hero-cta-btn-outline {
        width: 100%;
        min-width: unset;
        padding: 8px 16px;
    }
    
    /* Меняем порядок колонок: фото сверху, текст снизу */
    .doctor-hero-section .hero-content .row {
        display: flex;
        flex-direction: column;
    }
    
    .doctor-hero-section .hero-content .row .col-lg-5 {
        order: 1;
        margin-bottom: 30px;
    }
    
    .doctor-hero-section .hero-content .row .col-lg-7 {
        order: 2;
    }
    .hero-overlay-buttons {
        bottom: 10px;
        min-width: 240px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    
    .hero-buttons-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-cta-btn,
    .hero-cta-btn-outline {
        width: 100%;
        min-width: unset;
    }
}