/* Базовые сбросы и переменные */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: rgb(0, 169, 228);
    --primary-dark: #0a7caf;
    --dark: #2d3748;
    --gray: #718096;
    --light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-service-card: 15px 15px 4px 0px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
.section-title {
    font-size: 2.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.02em;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold, #C9A03D));
    margin: 1rem auto 0;
    border-radius: 4px;
}

.subsection-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 2.5rem 0 1.8rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

/* ========================================
   Хедер (десктоп)
   ======================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 20px;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

.logo a img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo i {
    font-size: 1.8rem;
}

/* Десктопная контактная инфа */
.header__info--desktop {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.header__info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.header__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.header__item i {
    color: var(--primary);
    width: 1.2rem;
    flex-shrink: 0;
}

.phone-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.phone-link:hover {
    color: var(--primary);
}

/* Кнопка бургер — скрыта на десктопе */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    padding: 0.5rem;
}

/* Мобильная контактная инфа — скрыта на десктопе */
.header__info--mobile {
    display: none;
}

/* Мобильный логотип + кнопка — скрыты на десктопе */
.header__mobile-brand {
    display: none;
}

/* Навбар — скрыт по умолчанию, показывается на десктопе */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    display: none;
}

/* ========================================
   АДАПТИВНЫЙ ДИЗАЙН
   ======================================== */

/* ===== 20px – 480px: Смартфоны ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* ===== Хедер ===== */
    .header__container {
        justify-content: flex-end;
        padding: 0.6rem 12px;
    }

    /* Скрываем логотип в верхнем хедере на мобильных */
    .header__container .logo {
        display: none;
    }

    /* Скрываем десктопную контактную инфу */
    .header__info--desktop {
        display: none;
    }

    /* Показываем бургер */
    .mobile-menu-btn {
        display: block;
    }

    /* Уменьшаем логотип */
    .logo a {
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .logo a img {
        height: 36px;
        border-radius: 6px;
    }

    /* Навбар скрыт по умолчанию */
    .navbar {
        display: none;
    }

    .navbar.active {
        display: block;
    }

    /* Мобильная контактная инфа внутри навбара */
    .header__info--mobile {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 1rem;
    }

    .navbar.active .header__info--mobile {
        display: flex;
    }

    .header__info--mobile .header__item {
        font-size: 0.8rem;
    }

    /* Мобильный логотип + кнопка */
    .header__mobile-brand {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }

    .navbar.active .header__mobile-brand {
        display: flex;
    }

    .logo--mobile a {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .logo--mobile a img {
        height: 36px;
        border-radius: 6px;
    }

    .logo--mobile i {
        display: none;
    }

    #btnRecordMobile {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Навигация */
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-top: 0.5rem;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .nav-menu li a:hover {
        background: #f7fafc;
    }

    .separator {
        display: none;
    }

    /* ===== Hero секция ===== */
    .home {
        min-height: 70vh;
        padding: 3rem 0;
    }

    .home__title--desktop {
        display: none !important;
    }

    .home__title--mobile {
        display: block !important;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: #000;
        font-weight: 800;
        font-family: 'Playfair Display', serif;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .home__subtitle--desktop {
        display: none !important;
    }

    .home__buttons--mobile {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* ===== Типографика ===== */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
        margin: 0.75rem auto 0;
    }

    .subsection-title {
        font-size: 1.2rem;
        margin: 2rem 0 1rem;
    }

    /* ===== Секции ===== */
    .about,
    .services,
    .advantages,
    .contacts,
    .appointment {
        padding: 2.5rem 0;
    }

    /* ===== Сетки — одна колонка ===== */
    .doctors__grid,
    .services__grid,
    .advantages__grid,
    .reviews__grid,
    .licenses__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ===== Контакты ===== */
    .contacts__wrapper {
        flex-direction: column !important;
        display: flex !important;
        gap: 1.5rem;
    }

    .contacts__map {
        height: 300px;
        border-radius: 12px;
    }

    /* ===== Онлайн запись ===== */
    .online-booking {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
        border-radius: 12px;
    }

    .online-booking h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .online-booking__buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    /* ===== Фильтры услуг ===== */
    .services__filter {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* ===== Форма ===== */
    .booking-form {
        gap: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    /* ===== Врач на странице услуги ===== */
    .doctor-card--large {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1rem;
    }

    .doctor-card--large img {
        height: 220px;
    }

    .service-cta {
        flex-direction: column;
        align-items: center;
    }

    .service-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* ===== Панель доступности ===== */
    .accessibility-panel {
        padding: 0.75rem;
    }

    .accessibility-panel__content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .accessibility-panel__buttons {
        flex-wrap: wrap;
    }

    /* ===== Footer ===== */
    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* ===== 481px – 768px: Планшеты ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* ===== Хедер ===== */
    .header__container {
        justify-content: flex-end;
    }

    /* Скрываем логотип в верхнем хедере */
    .header__container .logo {
        display: none;
    }

    /* Скрываем десктопную контактную инфу */
    .header__info--desktop {
        display: none;
    }

    /* Показываем бургер */
    .mobile-menu-btn {
        display: block;
    }

    /* Логотип */
    .logo a {
        font-size: 0.95rem;
    }

    .logo a img {
        height: 42px;
    }

    /* Навбар скрыт по умолчанию */
    .navbar {
        display: none;
    }

    .navbar.active {
        display: block;
    }

    /* Мобильная контактная инфа */
    .header__info--mobile {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem 1.5rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 1rem;
    }

    .navbar.active .header__info--mobile {
        display: flex;
    }

    /* Мобильный логотип + кнопка */
    .header__mobile-brand {
        display: none;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }

    .navbar.active .header__mobile-brand {
        display: flex;
    }

    .logo--mobile a {
        font-size: 1rem;
    }

    .logo--mobile a img {
        height: 42px;
    }

    /* Навигация */
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        text-align: center;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .separator {
        display: none;
    }

    /* ===== Hero ===== */
    .home {
        min-height: 65vh;
    }

    .home__title--desktop {
        display: none !important;
    }

    .home__title--mobile {
        display: block !important;
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: 800;
        font-family: 'Playfair Display', serif;
        color: black;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .home__subtitle--desktop {
        display: none !important;
    }

    .home__buttons--mobile {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    /* ===== Типографика ===== */
    .section-title {
        font-size: 1.8rem;
    }

    .subsection-title {
        font-size: 1.4rem;
    }

    /* ===== Секции ===== */
    .about,
    .services,
    .advantages,
    .contacts,
    .appointment {
        padding: 3rem 0;
    }

    /* ===== Сетки — две колонки ===== */
    .doctors__grid,
    .services__grid,
    .advantages__grid,
    .reviews__grid,
    .licenses__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* ===== Контакты ===== */
    .contacts__wrapper {
        flex-direction: column !important;
        display: flex !important;
        gap: 1.5rem;
    }

    .contacts__map {
        height: 350px;
        border-radius: 12px;
    }

    /* ===== Онлайн запись ===== */
    .online-booking {
        padding: 2rem;
    }

    /* ===== Фильтры ===== */
    .services__filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    /* ===== Страницы услуг ===== */
    .service-header h1 {
        font-size: 2rem;
    }

    .service-contacts__grid {
        grid-template-columns: 1fr;
    }

    .service-cta {
        flex-direction: column;
        align-items: center;
    }

    .service-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== 769px – 1024px: Ноутбуки ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 24px;
    }

    /* Хедер в две строки */
    .header__container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .logo {
        order: 1;
    }

    .header__info--desktop {
        order: 2;
    }

    .mobile-menu-btn {
        display: none;
    }

    /* Десктопная контактная инфа видна */
    .header__info--desktop {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header__info--mobile {
        display: none !important;
    }

    .header__mobile-brand {
        display: none !important;
    }

    .navbar {
        display: block;
    }

    /* Навигация — горизонтальная */
    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
    }

    .nav-menu li a {
        display: inline-block;
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
        border-bottom: none;
        border-radius: 8px;
    }

    .separator {
        display: inline;
    }

    .header__info {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header__item {
        font-size: 0.75rem;
    }

    .btn-bvi {
        padding: 0.4rem 0.7rem;
    }

    .btn-bvi i {
        font-size: 0.9rem;
    }

    .logo a {
        font-size: 0.85rem;
    }

    .logo a img {
        height: 38px;
    }

    /* Hero */
    .home {
        min-height: 70vh;
    }

    .home__title--desktop {
        display: block !important;
    }

    .home__title--mobile {
        display: none !important;
    }

    .home__subtitle--desktop {
        display: block !important;
    }

    .home__buttons--mobile {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .home__title {
        font-size: 2.6rem;
    }

    /* Типографика */
    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.6rem;
    }

    /* Сетки */
    .doctors__grid,
    .advantages__grid,
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .licenses__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Онлайн запись */
    .online-booking {
        padding: 2.5rem;
    }
}

/* ===== 1025px – 1280px: Малые десктопы ===== */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }

    .header__info--desktop {
        display: flex;
        gap: 0.75rem;
    }

    .header__info--mobile {
        display: none !important;
    }

    .header__mobile-brand {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none;
    }

    .navbar {
        display: block !important;
    }

    /* Хедер в две строки */
    .header__container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .logo {
        order: 1;
    }

    .header__info--desktop {
        order: 2;
    }

    .header__item {
        font-size: 0.75rem;
    }

    .btn-bvi {
        padding: 0.4rem 0.7rem;
    }

    .btn-bvi i {
        font-size: 0.9rem;
    }

    .logo a {
        font-size: 0.85rem;
    }

    .logo a img {
        height: 38px;
    }

    /* Навигация — горизонтальная */
    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
    }

    .nav-menu li a {
        display: inline-block;
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
        border-bottom: none;
        border-radius: 8px;
    }

    .separator {
        display: inline;
    }

    /* Hero */
    .home {
        min-height: 70vh;
    }

    .home__title--desktop {
        display: block !important;
    }

    .home__title--mobile {
        display: none !important;
    }

    .home__subtitle--desktop {
        display: block !important;
    }

    .home__buttons--mobile {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .home__title {
        font-size: 3rem;
    }

    .home__subtitle {
        font-size: 1.1rem;
    }

    /* Секции */
    .about,
    .services,
    .advantages,
    .contacts,
    .appointment {
        padding: 3.5rem 0;
    }

    /* Типографика */
    .section-title {
        font-size: 2.2rem;
    }

    .subsection-title {
        font-size: 1.6rem;
    }

    /* Сетки */
    .doctors__grid,
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__grid,
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .licenses__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Контакты */
    .contacts__wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contacts__map {
        height: 350px;
    }

    /* Онлайн запись */
    .online-booking {
        padding: 2.5rem;
    }

    /* Форма */
    .appointment__content {
        max-width: 550px;
    }

    /* Футер */
    .footer {
        padding: 2rem 0;
    }
}

/* ===== 1281px+: Большие десктопы ===== */
@media (min-width: 1281px) {
    .container {
        max-width: 1200px;
    }

    .header__info--desktop {
        display: flex;
    }

    .header__info--mobile {
        display: none !important;
    }

    .header__mobile-brand {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none;
    }

    .navbar {
        display: block !important;
    }

    /* Навигация — горизонтальная */
    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .nav-menu li a {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        border-bottom: none;
        border-radius: 8px;
    }

    .separator {
        display: inline;
    }

    /* Hero */
    .home {
        min-height: 80vh;
    }

    .home__title--desktop {
        display: block !important;
    }

    .home__title--mobile {
        display: none !important;
    }

    .home__subtitle--desktop {
        display: block !important;
    }

    .home__buttons--mobile {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .home__title {
        font-size: 3.8rem;
    }

    .home__subtitle {
        font-size: 1.2rem;
    }

    /* Секции */
    .about,
    .services,
    .advantages,
    .contacts,
    .appointment {
        padding: 4rem 0;
    }

    /* Типографика */
    .section-title {
        font-size: 2.7rem;
    }

    .subsection-title {
        font-size: 1.9rem;
    }

    /* Сетки */
    .doctors__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .licenses__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Контакты */
    .contacts__wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contacts__map {
        height: 400px;
    }

    /* Онлайн запись */
    .online-booking {
        padding: 3rem;
    }

    /* Форма */
    .appointment__content {
        max-width: 600px;
    }
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-menu li a:hover {
    color: var(--primary);
    background: rgba(0, 169, 228, 0.1);
}

.separator {
    color: #cbd5e0;
    font-weight: normal;
}

/* Home секция */
.home {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Видео фон */
.home__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

/* Затемнение поверх видео */
.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home__container {
    position: relative;
    z-index: 2;
}

.home__title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: black;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Мобильный заголовок — скрыт по умолчанию */
.home__title--mobile {
    display: none;
}

/* Десктопный подзаголовок */
.home__subtitle--desktop {
    display: block;
}

.home__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: black;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: rgb(0, 169, 228);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgb(0, 169, 228);
    color: var(--white);
    /* border: 2px solid var(--white); */
}

/* .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
} */

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Кнопка для слабовидящих */
.btn-bvi {
    background: #333;
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 2px solid #333;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-bvi:hover {
    background: #000;
    border-color: #000;
}

.btn-bvi i {
    font-size: 1.2rem;
}

/* ========================================
   Панель для слабовидящих
   ======================================== */
.accessibility-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid #00a9e4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1rem;
}

.accessibility-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.accessibility-panel__title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
}

.accessibility-panel__close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
    line-height: 1;
}

.accessibility-panel__close:hover {
    color: #00a9e4;
}

.accessibility-panel__content {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.accessibility-panel__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accessibility-panel__section label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.accessibility-panel__buttons {
    display: flex;
    gap: 0.5rem;
}

.ap-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ap-btn:hover {
    background: #e2e8f0;
}

.ap-btn.active {
    background: #00a9e4;
    color: white;
    border-color: #00a9e4;
}

.ap-btn--reset {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
    padding: 0.5rem 1.5rem;
}

.ap-btn--reset:hover {
    background: #c53030;
}

/* Цветовые схемы */
body.color-black {
    background: #000 !important;
    color: #fff !important;
}

body.color-black * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.color-black img {
    filter: grayscale(100%);
}

body.color-blue {
    background: #87ceeb !important;
    color: #00008b !important;
}

body.color-blue * {
    background: #87ceeb !important;
    color: #00008b !important;
    border-color: #00008b !important;
}

body.color-blue a {
    color: #000080 !important;
}

/* Отключение изображений */
body.images-off img,
body.images-off video,
body.images-off iframe {
    display: none !important;
}

/* Секция О нас */
.about {
    padding: 4rem 0;
    background-image: linear-gradient(to bottom, #ffffff, #f8faff, #eef6ff, #e1f3ff, #d1f0ff, #d1f0ff, #d1f0ff, #d1f0ff, #e1f3ff, #eef6ff, #f8faff, #ffffff);
}

.about__text {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.about__text p {
    margin-bottom: 1rem;
}

/* Врачи */
.doctors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-service-card);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 1rem;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.doctor-card h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.doctor-card p {
    color: var(--gray);
    padding: 0 1rem 1rem;
}

/* Лицензии */
.licenses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.license-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.license-card i.fa-file-pdf {
    font-size: 4rem;
    color: #dc3545;
}

.license-card p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.license-card .btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Услуги */
.services {
    padding: 4rem 0;
    background-image: linear-gradient(to bottom, #ffffff, #f8faff, #eef6ff, #e1f3ff, #d1f0ff, #d1f0ff, #d1f0ff, #d1f0ff, #e1f3ff, #eef6ff, #f8faff, #ffffff);
}

.services__wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-service-card);
    border: 1px solid var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.service-price {
    font-weight: bold;
    color: var(--dark);
    font-size: 1.2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* Преимущества */
.advantages {
    padding: 4rem 0;
    background-image: linear-gradient(to bottom, #ffffff, #f8faff, #eef6ff, #e1f3ff, #d1f0ff, #d1f0ff, #d1f0ff, #d1f0ff, #e1f3ff, #eef6ff, #f8faff, #ffffff);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-service-card);
}

.advantage-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.online-booking {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    color: var(--white);
}

.online-booking h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.online-booking__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.online-booking .btn-secondary {
    border-color: var(--white);
}

/* Отзывы */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-service-card);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-header h4 {
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.review-text {
    line-height: 1.6;
}

/* Контакты */
.contacts {
    padding: 4rem 0;
    background-image: linear-gradient(to bottom, #ffffff, #f8faff, #eef6ff, #e1f3ff, #d1f0ff, #d1f0ff, #d1f0ff, #d1f0ff, #e1f3ff, #eef6ff, #f8faff, #ffffff);
}

.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 2rem;
}

.contacts__map {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

/* Футер */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Адаптив — централизован (см. секцию "АДАПТИВНЫЙ ДИЗАЙН" выше) */

/* Анимации загрузки */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

/* Модальное окно для лицензий (опционально) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================
   Стили для страниц услуг
   ======================================== */

/* Хлебные крошки */
.breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--dark);
}

/* Заголовок услуги */
.service-header {
    padding: 2rem 0 3rem;
}

.service-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    max-width: 900px;
}

/* Контакты услуги */
.service-contacts {
    padding: 2rem 0;
    background: var(--light);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.service-contacts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.service-contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 2rem;
}

.contact-card a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

/* Врач на странице услуги */
.service-doctor {
    padding: 3rem 0;
}

.service-doctor h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.doctor-card--large {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.doctor-card--large img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.doctor-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.doctor-desc {
    color: var(--gray);
    line-height: 1.7;
}

/* Прайс-лист */
.service-price {
    padding: 3rem 0;
}

.service-price h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.price-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background: var(--light);
}

.price-table td:last-child {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Кнопки CTA */
.service-cta {
    padding: 3rem 0 5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-cta .btn {
    min-width: 200px;
}

/* Адаптив страниц услуг — перенесён в основную секцию "АДАПТИВНЫЙ ДИЗАЙН" */

/* ========================================
   Секция Запись на прием
   ======================================== */
.appointment {
    padding: 4rem 0;
    background-image: linear-gradient(to bottom, #ffffff, #f8faff, #eef6ff, #e1f3ff, #d1f0ff, #d1f0ff, #d1f0ff, #d1f0ff, #e1f3ff, #eef6ff, #f8faff, #ffffff);
}

.appointment__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.appointment__text {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 228, 0.1);
}

/* Honeypot — скрытое от людей поле */
.form-group--honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Чекбокс согласия */
.form-group--checkbox {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.checkbox-text {
    flex: 1;
}

.pd-link {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.pd-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Кнопка отключена */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}