/* ============================================================
   ТЁМНАЯ ТЕМА ГБ №4 — включается классом gb4-dark на <html>
   Основная (светлая) тема не изменяется. Переключатель — в шапке.
   ============================================================ */

html.gb4-dark { color-scheme: dark; }

/* ---------- База ---------- */
html.gb4-dark body {
    background: #0d1620;
    color: #d9e4ee;
}
html.gb4-dark h1, html.gb4-dark h2, html.gb4-dark h3,
html.gb4-dark h4, html.gb4-dark h5, html.gb4-dark h6 {
    color: #ecf4fb;
}
html.gb4-dark a { color: #62b0e6; }
html.gb4-dark input,
html.gb4-dark textarea,
html.gb4-dark select {
    background: #101c28;
    border-color: #2a3a4c;
    color: #dbe7f2;
}
html.gb4-dark input::placeholder,
html.gb4-dark textarea::placeholder { color: #7d92a5; }
html.gb4-dark ::selection { background: #1c4d74; color: #fff; }

/* ---------- Главное меню ---------- */
html.gb4-dark .main-nav {
    background: #101c28;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    border-bottom-color: rgba(255,255,255,0.06);
}
html.gb4-dark .nav-menu > li > a { color: #c9d8e6; }
html.gb4-dark .nav-menu > li > a:hover,
html.gb4-dark .nav-menu > li > a:focus,
html.gb4-dark .nav-menu > li.current-menu-item > a,
html.gb4-dark .nav-menu > li.current_page_item > a {
    color: #fff;
    background: #1b2b3d; /* вместо светлой подложки — текст остаётся читаемым */
}
html.gb4-dark .sub-menu {
    background: #14212f;
    box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}
html.gb4-dark .sub-menu a { color: #c9d8e6; border-bottom-color: rgba(255,255,255,0.06); }
html.gb4-dark .sub-menu a:hover { background: #1b2b3d; color: #fff; }
html.gb4-dark .nav-menu > li.menu-item-has-children > a::after { color: #7d92a5; }

/* Живой поиск */
html.gb4-dark .search-form-container,
html.gb4-dark .search-smart-results { background: #14212f; }
html.gb4-dark .search-smart-results { box-shadow: 0 18px 50px rgba(0,0,0,0.6); }
html.gb4-dark .search-smart-results .ssr-item,
html.gb4-dark .search-smart-results .ssr-tt { color: #d9e4ee; }
html.gb4-dark .search-smart-results .ssr-item:hover,
html.gb4-dark .search-smart-results .ssr-group { background: #1b2b3d; }
html.gb4-dark .search-smart-results .ssr-empty { color: #93a7b8; }
html.gb4-dark .search-form input { color: #dbe7f2; }
html.gb4-dark .search-toggle { color: #c9d8e6; }

/* Плавающая кнопка меню (моб) */
html.gb4-dark .floating-menu-btn { background: #14212f; border-color: rgba(255,255,255,0.25); }
html.gb4-dark .floating-menu-btn span { background: #e6eef6; }

/* ---------- Хлебные крошки и заголовки страниц ---------- */
html.gb4-dark .breadcrumbs a { color: #62b0e6; }
html.gb4-dark .breadcrumbs span { color: #93a7b8; }
html.gb4-dark .page-title { color: #ecf4fb; }
html.gb4-dark .page-subtitle { color: #93a7b8; }

/* ---------- Универсальные карточки ---------- */
html.gb4-dark .section-card,
html.gb4-dark .info-card,
html.gb4-dark .specialty-card,
html.gb4-dark .service-card,
html.section-card,
html.gb4-dark .stat-card,
html.gb4-dark .chief-card,
html.gb4-dark .department-archive-card,
html.gb4-dark .news-archive-card,
html.gb4-dark .schedule-day-card,
html.gb4-dark .doctor-single-info {
    background: #152130;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
html.gb4-dark .section-card h3,
html.gb4-dark .department-archive-content h2,
html.gb4-dark .news-archive-content h2,
html.gb4-dark .specialty-card h3,
html.gb4-dark .service-card h3 { color: #5cbcec; }
html.gb4-dark .department-archive-placeholder,
html.gb4-dark .news-archive-placeholder { background: #1b2b3d; }
html.gb4-dark .news-archive-meta,
html.gb4-dark .news-archive-date,
html.gb4-dark .doctor-single-specialty,
html.gb4-dark .schedule-day-note,
html.gb4-dark .schedule-day-room,
html.gb4-dark .schedule-day-time { color: #93a7b8; }
html.gb4-dark .department-archive-card:hover,
html.gb4-dark .news-archive-card:hover,
html.gb4-dark .section-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.55); }

/* Заглушки-иконки */
html.gb4-dark .department-icon { color: #5cbcec; }

/* ---------- FAQ ---------- */
html.gb4-dark .faq-item,
html.gb4-dark .faq-search-section { background: #152130; border-color: #263748; }
html.gb4-dark .faq-question { background: #1b2938; color: #e6eff8; }
html.gb4-dark .faq-question:hover { background: #22334a; }
html.gb4-dark .faq-answer { background: #101c28; color: #b6c7d6; border-top-color: #263748; }
html.gb4-dark .faq-useful-links { background: #142838; }
html.gb4-dark .faq-useful-links a { color: #9fc9e8; background: #1b2938; }
html.gb4-dark .faq-useful-links a:hover { background: #22334a; color: #fff; }
html.gb4-dark .price-toc a { background: #152130; color: #9fc9e8; }
html.gb4-dark .price-toc a:hover { background: #22334a; color: #fff; }
html.gb4-dark .news-archive-date { background: #182636; color: #e6eff8; }

/* ---------- Кнопки ---------- */
html.gb4-dark .btn-outline {
    border-color: #3a5069;
    color: #cfe3f5;
}
html.gb4-dark .btn-outline:hover { background: #1b2b3d; color: #fff; }
html.gb4-dark .filter-btn { background: #152130; color: #c9d8e6; border-color: #2a3a4c; }
html.gb4-dark .filter-btn:hover,
html.gb4-dark .filter-btn.active { background: #22334a; color: #fff; border-color: #3a5069; }
html.gb4-dark .pagination a,
html.gb4-dark .pagination span {
    background: #152130;
    color: #c9d8e6;
    border-color: #2a3a4c;
}
html.gb4-dark .pagination .current { background: var(--primary); color: #fff; }

/* ---------- Таблицы и списки ---------- */
html.gb4-dark .appointments-table th { background: #182636; color: #e6eff8; }
html.gb4-dark .appointments-table td { border-color: #263748; color: #d9e4ee; }
html.gb4-dark .appointments-table tr:nth-child(even) { background: #121e2b; }
html.gb4-dark .user-questions-list,
html.gb4-dark .detail-item { background: #152130; color: #d9e4ee; }
html.gb4-dark .detail-item strong { color: #e6eff8; }

/* ---------- Личный кабинет (UM) ---------- */
html.gb4-dark .um-account,
html.gb4-dark .um-profile-body,
html.gb4-dark .um-login,
html.gb4-dark .um-login-register,
html.gb4-dark .um-guest-message { background: #152130; color: #d9e4ee; }
html.gb4-dark .um-profile-nav { background: #182636; }
html.gb4-dark .um-profile-nav-item { color: #c9d8e6; }
html.gb4-dark .um-field-label { color: #93a7b8; }
html.gb4-dark .um-field-value { color: #dbe7f2; }

/* ---------- Страницы-разделы: фон #f5f7fb → тёмный ---------- */
html.gb4-dark .anti-corruption-page,
html.gb4-dark .departments-main-page,
html.gb4-dark .help-page,
html.gb4-dark .help-content-page,
html.gb4-dark .history-content,
html.gb4-dark .inner-page,
html.gb4-dark .single-news,
html.gb4-dark .map-section,
html.gb4-dark .contacts-main-page,
html.gb4-dark .news-section,
html.gb4-dark .news-archive,
html.gb4-dark .services-prices-page,
html.gb4-dark .vacancies-page,
html.gb4-dark .vaccination-page,
html.gb4-dark .management-page,
html.gb4-dark .sitemap-page,
html.gb4-dark .assistant-guide {
    background: #0d1620;
}

/* Белые карточки внутри этих страниц */
html.gb4-dark .anticorruption-content,
html.gb4-dark .help-contacts-block,
html.gb4-dark .single-news-article,
html.gb4-dark .news-card,
html.gb4-dark .vacancy-card,
html.gb4-dark .contact-card,
html.gb4-dark .management-card,
html.gb4-dark .sitemap-section,
html.gb4-dark .price-table-wrapper,
html.gb4-dark .process-card,
html.gb4-dark .do-card,
html.gb4-dark .department-booking,
html.gb4-dark .help-search {
    background: #152130;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    color: #c9d8e6;
}
html.gb4-dark .news-card h3,
html.gb4-dark .vacancy-card h3,
html.gb4-dark .contact-card h3,
html.gb4-dark .management-card h3,
html.gb4-dark .process-card h3,
html.gb4-dark .sitemap-section h3 { color: #5cbcec; }
html.gb4-dark .vacancy-badge,
html.gb4-dark .dept-count,
html.gb4-dark .contacts-nav-link { background: #1b2938; color: #9fc9e8; }
html.gb4-dark .contacts-nav-link:hover,
html.gb4-dark .contacts-nav-link.active { background: #22334a; color: #fff; }
html.gb4-dark .management-contacts { background: #101c28; color: #b6c7d6; }
html.gb4-dark .scroll-down-hint { background: #101c28; color: #93a7b8; }

/* Помощь: боковая навигация и поиск */
html.gb4-dark .help-side__nav,
html.gb4-dark .help-side__more { background: #152130; color: #c9d8e6; }
html.gb4-dark .help-side__nav a,
html.gb4-dark .help-side__more a { color: #c9d8e6; }
html.gb4-dark .help-side__nav a:hover,
html.gb4-dark .help-side__nav a.active { background: #1b2b3d; color: #fff; }
html.gb4-dark .help-search__box { background: #101c28; border-color: #2a3a4c; }
html.gb4-dark .help-search__box input { background: transparent; color: #dbe7f2; }

/* Прививка: цветные плашки */
html.gb4-dark .important-alert { background: #2b2410; color: #e8d9ae; }
html.gb4-dark .important-text { background: #2b2410; color: #e8d9ae; }
html.gb4-dark .do-card { background: #10241a; color: #bfe8cd; }
html.gb4-dark .dont-card { background: #2a1414; color: #f0c4c4; }
html.gb4-dark .do-card h3, html.gb4-dark .do-card h4 { color: #7ddba0; }
html.gb4-dark .dont-card h3, html.gb4-dark .dont-card h4 { color: #e88; }

/* Цены */
html.gb4-dark .price-oms { background: #10241a; color: #bfe8cd; }
html.gb4-dark .ps-item { background: #1b2938; color: #c9d8e6; }
html.gb4-dark .price-table-wrapper table td,
html.gb4-dark .price-table-wrapper table th { border-color: #263748; color: #d9e4ee; }
html.gb4-dark .price-table-wrapper table th { background: #182636; }
html.gb4-dark .price-table-wrapper table tr:nth-child(even) { background: #121e2b; }

/* Нет врачей в отделении */
html.gb4-dark .no-doctors { background: #1b2938; color: #93a7b8; }

/* Вход (wp-login) */
html.gb4-dark.login,
html.gb4-dark body.login { background: #0d1620; }
html.gb4-dark #login form,
html.gb4-dark .login form {
    background: #152130;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
html.gb4-dark .login form .input,
html.gb4-dark .login input[type="text"],
html.gb4-dark .login input[type="password"] {
    background: #101c28;
    border-color: #2a3a4c;
    color: #dbe7f2;
}
html.gb4-dark .login label { color: #9fb2c1; }
html.gb4-dark .login #backtoblog a,
html.gb4-dark .login #nav a { color: #62b0e6; }

/* ---------- Антикоррупция ---------- */
html.gb4-dark .anticorruption-intro {
    background: #2b2410;
    border-left-color: var(--accent-gold);
}
html.gb4-dark .anticorruption-intro p { color: #e8d9ae; }
html.gb4-dark .anticorruption-section h2 { color: #5cbcec; border-left-color: #5cbcec; }
html.gb4-dark .doc-link-item,
html.gb4-dark .direction-card {
    background: #1b2938;
}
html.gb4-dark .doc-link-item:hover,
html.gb4-dark .direction-card:hover { background: #22334a; }
html.gb4-dark .doc-link-item p,
html.gb4-dark .direction-card li { color: #93a7b8; border-bottom-color: #243648; }
html.gb4-dark .direction-card h3 { color: #5cbcec; }
html.gb4-dark .contacts-block { background: #142838; }
html.gb4-dark .contact-item a { color: #62b0e6; }
html.gb4-dark .ace-file-note { color: #93a7b8; }
html.gb4-dark .ace-pdf-viewer { border-color: #263748; background: #101c28; }

/* ---------- Главная (hero на внутренних страницах — белый) ---------- */
html.gb4-dark .hero { background: #101c28; }
html.gb4-dark .hero-content h1 { color: #ecf4fb; }
html.gb4-dark .hero-content p { color: #9fb2c1; }
html.gb4-dark .hero-stat { background: #182636; }
html.gb4-dark .hero-stat-number { color: #62b0e6; }
html.gb4-dark .hero-stat-label { color: #93a7b8; }
html.gb4-dark .sections-showcase,
html.gb4-dark .services-section,
html.gb4-dark .stats-section { background: #0d1620; }

/* Кнопки-плитки «Чем помочь» */
html.gb4-dark .quick-link,
html.gb4-dark .quick-link-hero { background: #152130; color: #d9e4ee; }
html.gb4-dark .quick-link:hover,
html.gb4-dark .quick-link-hero:hover { background: #1b2b3d; }

/* ---------- Отделения (dept-карточки на /departments) ---------- */
html.gb4-dark .dept-card { background: #152130; }
html.gb4-dark .dept-card h2 { color: #5cbcec; }
html.gb4-dark .dept-location { color: #93a7b8; }
html.gb4-dark .dept-list li { border-bottom-color: #243648; }
html.gb4-dark .dept-list a { color: #c9d8e6; }
html.gb4-dark .dept-list a:hover { color: #62b0e6; }
html.gb4-dark .dept-more { color: #62b0e6; }
html.gb4-dark .dept-count { color: #9fc9e8; }
html.gb4-dark .departments-archive { background: #0d1620; }

/* Страница одного отделения (таксономия) */
html.gb4-dark .department-single,
html.gb4-dark .department-info-panel { background: transparent; }
html.gb4-dark .department-single h1 { color: #ecf4fb; }
html.gb4-dark .department-short-desc { color: #9fb2c1; }
html.gb4-dark .info-item strong { color: #e6eff8; }
html.gb4-dark .info-item p, html.gb4-dark .info-item a { color: #c9d8e6; }
html.gb4-dark .department-description,
html.gb4-dark .department-doctors { background: #152130; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
html.gb4-dark .department-description h2,
html.gb4-dark .department-doctors h2 { color: #5cbcec; }
html.gb4-dark .description-content { color: #c9d8e6; }
html.gb4-dark .doctor-card { background: #1b2938; }
html.gb4-dark .doctor-specialty { color: #93a7b8; }

/* ---------- Врачи ---------- */
html.gb4-dark .doctor-single-grid,
html.gb4-dark .doctor-details-grid { color: #d9e4ee; }
html.gb4-dark .doctor-detailed-schedule { background: #152130; color: #d9e4ee; }

/* ---------- Новости (одна новость) ---------- */
html.gb4-dark .single-news-header h1 { color: #ecf4fb; }
html.gb4-dark .single-news-meta { color: #93a7b8; }
html.gb4-dark .single-news-content { color: #c9d8e6; }
html.gb4-dark .single-news-tags a { background: #182636; color: #9fc9e8; }
html.gb4-dark .no-news { background: #152130; color: #93a7b8; }
html.gb4-dark .news-search-input { background: #101c28; border-color: #2a3a4c; }

/* ---------- PDF-документы ---------- */
html.gb4-dark .pdf-doc-item { background: #152130; }
html.gb4-dark .pdf-doc-info strong { color: #e6eff8; }
html.gb4-dark .pdf-doc-info small { color: #93a7b8; }

/* ---------- Вкладки/фильтры новостей ---------- */
html.gb4-dark .news-cat-btn { background: #152130; color: #c9d8e6; border-color: #2a3a4c; }
html.gb4-dark .news-cat-btn.active { background: var(--primary); color: #fff; }

/* ---------- Контакты ---------- */
html.gb4-dark .map-address { color: #c9d8e6; }
html.gb4-dark .contacts-section { background: #152130; color: #c9d8e6; }
html.gb4-dark .phone-tile__number { color: #62b0e6; }

/* ---------- Кнопка «наверх» и прочие плавающие ---------- */
html.gb4-dark .scroll-top { background: #1b2b3d; color: #e6eef6; }

/* ---------- Онлайн-чат ---------- */
html.gb4-dark .gb4chat-window { background: #101c28; box-shadow: 0 24px 70px rgba(0,0,0,0.65); }
html.gb4-dark .gb4chat-msgs { background: #0b141d; }
html.gb4-dark .gbc-msg--bot .gbc-bubble,
html.gb4-dark .gbc-msg--operator .gbc-bubble {
    background: #1b2b3d;
    color: #d9e4ee;
}
html.gb4-dark .gbc-msg--operator .gbc-bubble { background: #16324a; }
html.gb4-dark .gbc-who { color: #7fc4ef; }
html.gb4-dark .gbc-bubble time { color: #7d92a5; }
html.gb4-dark .gb4chat-input-row { background: #101c28; border-top-color: #22334a; }
html.gb4-dark #gbc-input { background: #16232f; border-color: #2a3a4c; color: #dbe7f2; }
html.gb4-dark .gb4chat-quick { background: #101c28; border-top-color: #22334a; }
html.gb4-dark .gbc-q { background: linear-gradient(135deg, #182636, #14202c); color: #b9cddd; border-color: #2a3a4c; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
html.gb4-dark .gbc-q:hover { background: linear-gradient(135deg, #0a5c8e, #0d6ea8); border-color: #0d6ea8; color: #fff; box-shadow: 0 4px 12px rgba(10,92,142,0.4); }
html.gb4-dark .gbc-contact { background: #142838; border-color: #27506e; }
html.gb4-dark .gbc-contact__title { color: #7fc4ef; }
html.gb4-dark .gbc-contact__hint { color: #93a7b8; }
html.gb4-dark .gbc-contact input { background: #0b141d; border-color: #2a3a4c; color: #dbe7f2; }
html.gb4-dark .gbc-contact__skip { background: transparent; color: #93a7b8; border-color: #2a3a4c; }
html.gb4-dark .gbc-contact__skip:hover { background: #182636; border-color: #4a708e; color: #b9cddd; }
html.gb4-dark .gbc-contact__send { background: linear-gradient(135deg, #0a5c8e, #0d6ea8); box-shadow: 0 3px 10px rgba(10,92,142,0.35); }
html.gb4-dark .gbc-status { color: #7d92a5; }
/* Всплывающая подсказка о чате в тёмной теме */
html.gb4-dark .gb4chat-hint {
    background: #182636;
    border-color: #5a3d1a;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(240, 140, 31, 0.15);
}
html.gb4-dark .gb4chat-hint b { color: #ffb45e; }
html.gb4-dark .gb4chat-hint span { color: #b9c7d6; }
html.gb4-dark .gb4chat-hint .gbc-hint-x { background: #22334a; color: #93a7b8; }
html.gb4-dark .gb4chat-hint .gbc-hint-x:hover { background: #3a2a12; color: #ffb45e; }
html.gb4-dark .gbc-status--read { color: #6fd98a; }

/* ---------- Футер ---------- */
html.gb4-dark .footer { background: #0a121b; }
html.gb4-dark .footer-bottom,
html.gb4-dark .footer-second-row,
html.gb4-dark .footer-third-row,
html.gb4-dark .footer-fourth-row { border-top-color: rgba(255,255,255,0.08); }
html.gb4-dark .footer-strip .strip-item { background: rgba(255,255,255,0.045); }
html.gb4-dark .footer-strip .strip-item b { color: #e6eff8; }
html.gb4-dark .footer-strip .strip-item span { color: #9fb2c1; }

/* ---------- Сплэш-экран: тёмный ---------- */
html.gb4-dark .splash-screen { background: #0a121b; }

/* ---------- Переключатель темы в шапке ---------- */
.gb4-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.25s;
    vertical-align: middle;
    flex: none;
}
.gb4-theme-toggle:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}
.gb4-theme-toggle__ic { display: block; transition: transform 0.3s; }
.gb4-theme-toggle:active .gb4-theme-toggle__ic { transform: rotate(-30deg); }

@media (max-width: 768px) {
    .gb4-theme-toggle { width: 30px; height: 30px; font-size: 14px; }
    /* Кнопка перенесена JS-ом в фиксированную панель меню — стилизуем под синюю панель */
    .main-nav .gb4-theme-toggle {
        margin-left: auto;
        background: rgba(255,255,255,0.14);
        border-color: rgba(255,255,255,0.5);
    }
    .main-nav .gb4-theme-toggle:hover { background: rgba(255,255,255,0.3); }
}


/* Кнопка в тёмной шапке и светлой одинаково смотрится — она на тёмном фоне header__top */

/* ============================================================
   v1.4 — глубокая доработка по скану контраста (f9)
   Inline-стили шаблонов побеждают на равной специфичности,
   поэтому ключевые перекрытия даны с !important.
   ============================================================ */

/* --- Светлые фоны страниц/секций, не покрытых в v1.3 --- */
html.gb4-dark .current-vacancies-page,
html.gb4-dark .structure-page,
html.gb4-dark .history-page,
html.gb4-dark .achievements-page,
html.gb4-dark .quality-policy-page,
html.gb4-dark .bsmp-page,
html.gb4-dark .hr-contacts-page,
html.gb4-dark .requirements-page,
html.gb4-dark .privacy-page,
html.gb4-dark .search-page,
html.gb4-dark .reviews-section,
html.gb4-dark .popular-sections {
    background: #0d1620 !important;
}
html.gb4-dark .reviews-section::before { content: none; }
/* Белый градиент-«переход» внизу hero-слайдера */
html.gb4-dark .hero::after { background: linear-gradient(to top, #0d1620, rgba(13,22,32,0)) !important; }

/* --- Главная: помощник (сайдбар + карточки) --- */
html.gb4-dark .assistant-side { background: #152130 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
html.gb4-dark .assistant-side-search { background: transparent !important; }
html.gb4-dark .assistant-side__lbl { color: #93a7b8 !important; }
html.gb4-dark .assistant-side-search input { background: #101c28 !important; border-color: #2a3a4c !important; color: #dbe7f2 !important; }
html.gb4-dark .assistant-side-list { background: transparent !important; }
html.gb4-dark .assistant-side-btn { background: #14212f !important; color: #c9d8e6 !important; }
html.gb4-dark .assistant-side-btn .sbc { background: #22334a !important; color: #9fc9e8 !important; }
html.gb4-dark .assistant-side-btn:hover { background: #1b2b3d !important; }
html.gb4-dark .assistant-side-btn.active {
    background: linear-gradient(120deg, #0a5c8e, #0d6ea8) !important;
    color: #fff !important;
}
html.gb4-dark .assistant-side-btn.active .sbc { background: rgba(255,255,255,0.22) !important; color: #fff !important; }
html.gb4-dark .assistant-card { background: #152130 !important; border-color: #243648 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
html.gb4-dark .assistant-card-header h3 { color: #5cbcec !important; }
html.gb4-dark .assistant-card-icon { background: #182636 !important; }
html.gb4-dark .assistant-card-desc { color: #93a7b8 !important; }
html.gb4-dark .assistant-link { background: #1b2938 !important; color: #9fc9e8 !important; }
html.gb4-dark .assistant-link:hover { background: #22334a !important; color: #fff !important; }

/* --- Главная: отзывы --- */
html.gb4-dark .review-card-new { background: #152130 !important; border-color: #243648 !important; }
html.gb4-dark .review-card-new::before { color: rgba(255,255,255,0.05); }
html.gb4-dark .rcn-author { color: #e6eff8 !important; }
html.gb4-dark .rcn-sub { color: #93a7b8 !important; }
html.gb4-dark .rcn-text { color: #b9c7d6 !important; }
html.gb4-dark .rcn-date { color: #7d92a5 !important; }
html.gb4-dark .rcn-link { background: none !important; color: #7cc4ef !important; }

/* --- Главная: популярные разделы --- */
html.gb4-dark .popular-card { background: #14212f !important; }
html.gb4-dark .popular-card h3 { color: #c9d8e6 !important; }

/* --- Помощь: счётчики, боковые ссылки, форма вопроса --- */
html.gb4-dark .hs-count { background: #22334a !important; color: #9fc9e8 !important; }
html.gb4-dark .hs-count--live { background: #1d3a2a !important; color: #7ddba0 !important; }
html.gb4-dark .help-side__link { color: #c9d8e6 !important; }
html.gb4-dark .help-side__link.active { color: #fff !important; }
html.gb4-dark .faq-question .toggle { background: #22334a !important; color: #9fc9e8 !important; }
html.gb4-dark .ask-question-section { background: #152130 !important; }
html.gb4-dark .ask-question-section h2 { color: #ecf4fb !important; }
html.gb4-dark .question-tip { background: #142838 !important; color: #b9c7d6 !important; }
html.gb4-dark .question-tip a { color: #7cc4ef !important; }
html.gb4-dark .question-form-container,
html.gb4-dark .ask-question-container,
html.gb4-dark .ask-question-container .form-row,
html.gb4-dark .ask-question-container .form-group { background: transparent !important; }
html.gb4-dark .ask-question-container h3 { color: #5cbcec !important; }
html.gb4-dark .ask-question-container label { color: #93a7b8 !important; }
html.gb4-dark .ask-question-container input,
html.gb4-dark .ask-question-container textarea {
    background: #101c28 !important;
    border-color: #2a3a4c !important;
    color: #dbe7f2 !important;
}

/* --- Контакты: поликлиника, ФАПы, карта --- */
html.gb4-dark .polyclinic-block { background: #142838 !important; color: #c9d8e6 !important; }
html.gb4-dark .polyclinic-block h3 { color: #5cbcec !important; }
html.gb4-dark .polyclinic-block p,
html.gb4-dark .map-address p { color: #b9c7d6 !important; }
html.gb4-dark .polyclinic-block strong,
html.gb4-dark .map-address strong { color: #d9e4ee !important; }
html.gb4-dark .subdepartments span { background: #1b2938 !important; color: #9fc9e8 !important; }
html.gb4-dark .fap-item { background: #1b2938 !important; color: #c9d8e6 !important; }
html.gb4-dark .fap-item strong { color: #e6eff8 !important; }
html.gb4-dark .map-container { background: #101c28; }

/* --- Цены: примечание --- */
html.gb4-dark .price-note { background: #142838 !important; color: #b9c7d6 !important; }
html.gb4-dark .price-note strong { color: #e8d9ae !important; }
html.gb4-dark .price-info p { color: #b9c7d6 !important; }
html.gb4-dark .price-info strong { color: #d9e4ee !important; }

/* --- Вакансии: вступление и «Мы предлагаем» --- */
html.gb4-dark .vacancy-intro { background: #152130 !important; color: #c9d8e6 !important; }
html.gb4-dark .vacancy-benefits { background: #101c28 !important; }
html.gb4-dark .vacancy-benefits h2 { color: #ecf4fb !important; }
html.gb4-dark .benefit-card { background: #152130 !important; }
html.gb4-dark .benefit-icon { background: #182636 !important; }
html.gb4-dark .benefit-card p { color: #93a7b8 !important; }

/* --- О больнице / вакансии / приватность: белые карточки --- */
html.gb4-dark .structure-category,
html.gb4-dark .history-intro,
html.gb4-dark .history-gallery,
html.gb4-dark .achievements-intro,
html.gb4-dark .awards-wall,
html.gb4-dark .achievement-section,
html.gb4-dark .quality-section,
html.gb4-dark .value-card,
html.gb4-dark .bsmp-card,
html.gb4-dark .bsmp-vacancies,
html.gb4-dark .bsmp-apply,
html.gb4-dark .hr-card,
html.gb4-dark .requirements-section,
html.gb4-dark .privacy-section {
    background: #152130 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
html.gb4-dark .history-slider,
html.gb4-dark .hs-viewport, html.gb4-dark .hs-track, html.gb4-dark .hs-slide { background: #101c28 !important; }
html.gb4-dark .hs-arrow { background: #14212f !important; color: #e6eef6 !important; }
html.gb4-dark .gallery-subtitle, html.gb4-dark .awards-wall__sub { color: #93a7b8 !important; }
html.gb4-dark .timeline-content { background: #152130 !important; }
html.gb4-dark .achievement-card { background: #1b2938 !important; }
html.gb4-dark .achievement-icon, html.gb4-dark .hr-icon, html.gb4-dark .bsmp-icon, html.gb4-dark .value-icon { background: #182636 !important; }
html.gb4-dark .awall-item { background: #1b2938 !important; }
html.gb4-dark .awall-more { background: #14212f !important; color: #c9d8e6 !important; border-color: #2a3a4c !important; }
html.gb4-dark .mission-block { background: #142838 !important; color: #c9d8e6 !important; }
html.gb4-dark .doc-links { background: #101c28 !important; }
html.gb4-dark .bsmp-hero { background: #142838 !important; }
html.gb4-dark .bsmp-hero-content p { color: #d9e4ee !important; }
html.gb4-dark .bsmp-vacancy-tag { background: #1b2938 !important; color: #9fc9e8 !important; }
html.gb4-dark .bsmp-note,
html.gb4-dark .hr-note { background: #2b2410 !important; color: #e8d9ae !important; }
html.gb4-dark .privacy-contacts { background: #142838 !important; color: #c9d8e6 !important; }

/* --- Прививка: светлые секции из скана --- */
html.gb4-dark .contraindications { background: #2a1414 !important; color: #f0c4c4 !important; }
html.gb4-dark .vaccination-points,
html.gb4-dark .docs-section { background: #152130 !important; }
html.gb4-dark .doc-item { background: #1b2938 !important; }
html.gb4-dark .doc-icon { background: #182636 !important; }
html.gb4-dark .doc-size { color: #93a7b8 !important; }
html.gb4-dark .point-note { background: #142838 !important; color: #b9c7d6 !important; }

/* --- Поиск --- */
html.gb4-dark .sgroup { background: #152130 !important; }
html.gb4-dark .sgroup-count { background: #22334a !important; color: #9fc9e8 !important; }
html.gb4-dark .sgroup-item { background: #14212f !important; }
html.gb4-dark .sgroup-item:hover { background: #1b2b3d !important; }
html.gb4-dark .sgroup-item p { color: #93a7b8 !important; }
html.gb4-dark .search-meta { color: #93a7b8 !important; }
html.gb4-dark .sgi-best { background: #10241a !important; color: #7ddba0 !important; }
html.gb4-dark .sgi-badge { background: #1b2938 !important; color: #9fc9e8 !important; }

/* --- Кнопки: текст на ораньевой btn-primary (перебит
   глобальным цветом ссылок в v1.3) --- */
html.gb4-dark a.btn-primary,
html.gb4-dark button.btn-primary { color: #06283f !important; }
html.gb4-dark a.btn-primary:hover,
html.gb4-dark button.btn-primary:hover { color: #fff !important; }

/* --- Спасение ссылок: inline-стили шаблонов (#0a5c8e) --- */
html.gb4-dark .breadcrumbs a,
html.gb4-dark .dept-list a,
html.gb4-dark .dept-more,
html.gb4-dark .sitemap-section a,
html.gb4-dark .faq-answer a,
html.gb4-dark .faq-useful-links a,
html.gb4-dark .faq-useful-links strong,
html.gb4-dark .contact-card a,
html.gb4-dark .contact-item a,
html.gb4-dark .management-position,
html.gb4-dark .management-contacts a,
html.gb4-dark .price-toc a,
html.gb4-dark .ps-item a,
html.gb4-dark .ps-item strong,
html.gb4-dark .hotline-banner a,
html.gb4-dark .important-alert a,
html.gb4-dark .important-text a,
html.gb4-dark .info-card a,
html.gb4-dark .doc-item a,
html.gb4-dark .vacancy-link,
html.gb4-dark .vacancy-header h2 a,
html.gb4-dark .direction-card__more,
html.gb4-dark .help-side__more a,
html.gb4-dark .ace-pdf-viewer a,
html.gb4-dark .question-tip a,
html.gb4-dark .privacy-contacts a,
html.gb4-dark .hr-card a,
html.gb4-dark .doc-links a,
html.gb4-dark .all-link,
html.gb4-dark .pagination a.page-numbers,
html.gb4-dark .news-archive-readmore,
html.gb4-dark .news-card h3 a { color: #7cc4ef !important; }
html.gb4-dark .news-card .news-date { color: #7cc4ef !important; }
html.gb4-dark .news-archive-date,
html.gb4-dark .news-archive-date span { color: #e6eff8 !important; }

/* --- Спасение серого текста (#555 и т.п.) --- */
html.gb4-dark .contact-card p,
html.gb4-dark .contact-card li,
html.gb4-dark .contact-card strong,
html.gb4-dark .contact-item p,
html.gb4-dark .management-contacts p,
html.gb4-dark .dept-support li,
html.gb4-dark .structure-category p,
html.gb4-dark .structure-category li,
html.gb4-dark .structure-category strong,
html.gb4-dark .requirements-section p,
html.gb4-dark .requirements-section li,
html.gb4-dark .requirements-section strong,
html.gb4-dark .privacy-section p,
html.gb4-dark .privacy-section li,
html.gb4-dark .privacy-section strong,
html.gb4-dark .hr-card p,
html.gb4-dark .hr-card li,
html.gb4-dark .vacancy-intro p,
html.gb4-dark .bsmp-card p,
html.gb4-dark .bsmp-apply p,
html.gb4-dark .achievement-card p,
html.gb4-dark .value-card p,
html.gb4-dark .timeline-content p,
html.gb4-dark .history-intro p,
html.gb4-dark .achievements-intro p,
html.gb4-dark .quality-section p,
html.gb4-dark .bsmp-vacancy-section p { color: #b9c7d6 !important; }
html.gb4-dark .hr-card strong,
html.gb4-dark .vacancy-intro strong,
html.gb4-dark .achievement-card h3 { color: #e6eff8 !important; }
html.gb4-dark .structure-category h2,
html.gb4-dark .requirements-section h2,
html.gb4-dark .privacy-section h2,
html.gb4-dark .history-timeline h3 { color: #5cbcec !important; }

/* --- Хвосты второго скана --- */
html.gb4-dark .quality-content,
html.gb4-dark .requirements-content,
html.gb4-dark .privacy-content { background: transparent !important; }
html.gb4-dark .map-address { background: #142838 !important; }
html.gb4-dark .pop-arrow { background: #14212f !important; color: #e6eef6 !important; }
html.gb4-dark .pop-arrow:hover { background: #22334a !important; }
html.gb4-dark .bsmp-apply-method { background: #1b2938 !important; color: #c9d8e6 !important; }
html.gb4-dark .bsmp-apply-method .method-icon { background: #182636 !important; }
html.gb4-dark .bsmp-apply-method p { color: #93a7b8 !important; }
html.gb4-dark .bsmp-apply-method strong { color: #e6eff8 !important; }
html.gb4-dark .bsmp-footer { background: #101c28 !important; }
html.gb4-dark .bsmp-footer p { color: #b9c7d6 !important; }
html.gb4-dark .bsmp-footer .bsmp-slogan strong { color: #ecf4fb !important; }
html.gb4-dark .ask-question-container .btn.btn-primary { background: var(--accent-gold) !important; }

/* Широкое спасение контентных ссылок: inline-стили шаблонов красят
   их в #0a5c8e — на тёмном фоне не видно. Кнопки .btn не трогаем. */
/* (актуальная версия правила — в блоке v1.6, с исключением n2-кнопок) */

/* --- Smart Slider на главной: тёмно-синие подписи слайдов ---
   Фон слайда прозрачный (просвечивает тёмный body), текст слайдов
   остаётся #13497b — нечитаем. */
html.gb4-dark .n2-ss-slider .n2-ss-layer,
html.gb4-dark .n2-ss-slider .n2-ss-layer h1,
html.gb4-dark .n2-ss-slider .n2-ss-layer h2,
html.gb4-dark .n2-ss-slider .n2-ss-layer h3,
html.gb4-dark .n2-ss-slider .n2-ss-layer h4,
html.gb4-dark .n2-ss-slider .n2-ss-layer p,
html.gb4-dark .n2-ss-slider .n2-ss-layer b,
html.gb4-dark .n2-ss-slider .n2-ss-layer strong,
html.gb4-dark .n2-ss-slider .n2-ss-layer span { color: #c9d8e6 !important; }
html.gb4-dark .n2-ss-slider .n2-ss-layer h1,
html.gb4-dark .n2-ss-slider .n2-ss-layer h2,
html.gb4-dark .n2-ss-slider .n2-ss-layer h3,
html.gb4-dark .n2-ss-slider .n2-ss-layer h4 { color: #7cc4ef !important; }
html.gb4-dark .n2-ss-slider .n2-ss-button-container a {
    background: var(--accent-gold) !important;
    color: #06283f !important;
}
html.gb4-dark .n2-ss-slider .n2-ss-button-container a:hover { background: #ff9d33 !important; color: #fff !important; }
html.gb4-dark div[class*="n2-font-"] { color: #c9d8e6 !important; }

/* ============================================================
   v1.5 — полный обход всех разделов (скан f10: 103 URL)
   ============================================================ */

/* --- Секции с фоном #f5f7fb --- */
html.gb4-dark .about-main-page,
html.gb4-dark .documents-license-page,
html.gb4-dark .superior-orgs-page,
html.gb4-dark .addresses-page,
html.gb4-dark .map-page,
html.gb4-dark .requisites-page,
html.gb4-dark .department-page,
html.gb4-dark .doctor-single-modern,
html.gb4-dark .single-vacancy,
html.gb4-dark .reviews-archive,
html.gb4-dark .rules-page,
html.gb4-dark .schedule-page,
html.gb4-dark .appointment-page,
html.gb4-dark .checkup-page,
html.gb4-dark .hospitalization-page,
html.gb4-dark .insurance-page,
html.gb4-dark .rights-page,
html.gb4-dark .medication-page,
html.gb4-dark .motherhood-page,
html.gb4-dark .pregnancy-page,
html.gb4-dark .veterans-page,
html.gb4-dark .elderly-health-page,
html.gb4-dark .services-main,
html.gb4-dark .patients-main,
html.gb4-dark .abortion-page,
html.gb4-dark .documents-page,
html.gb4-dark .error-page,
html.gb4-dark .inner-page {
    background: #0d1620 !important;
}

/* --- Универсальные белые карточки разделов --- */
html.gb4-dark .about-hero,
html.gb4-dark .about-detail-card,
html.gb4-dark .docs-intro,
html.gb4-dark .doc-card,
html.gb4-dark .org-card,
html.gb4-dark .address-card,
html.gb4-dark .map-info-card,
html.gb4-dark .requisites-card,
html.gb4-dark .department-reviews,
html.gb4-dark .review-form-wrapper,
html.gb4-dark .review-form-container,
html.gb4-dark .doctor-bio-modern,
html.gb4-dark .no-reviews,
html.gb4-dark .vacancy-single-card,
html.gb4-dark .vacancy-apply,
html.gb4-dark .patient-card,
html.gb4-dark .important-info,
html.gb4-dark .support-card,
html.gb4-dark .download-block,
html.gb4-dark .download-link,
html.gb4-dark .phone-tile--secondary,
html.gb4-dark .way-card,
html.gb4-dark .check-item,
html.gb4-dark .appointment-gosuslugi,
html.gb4-dark .reproductive-card,
html.gb4-dark .covid-card,
html.gb4-dark .docs-card,
html.gb4-dark .article-card,
html.gb4-dark .materials-section,
html.gb4-dark .material-card,
html.gb4-dark .tips-section,
html.gb4-dark .hosp-card,
html.gb4-dark .schedule-day,
html.gb4-dark .visiting-rules,
html.gb4-dark .visiting-card,
html.gb4-dark .insurance-card,
html.gb4-dark .insurance-contacts,
html.gb4-dark .policy-points,
html.gb4-dark .rights-card,
html.gb4-dark .pharmacy-section,
html.gb4-dark .phone-card,
html.gb4-dark .rules-card,
html.gb4-dark .rules-note,
html.gb4-dark .doctor-schedule-card,
html.gb4-dark .veterans-card,
html.gb4-dark .services-main-card,
html.gb4-dark .info-block,
html.gb4-dark .popular-services,
html.gb4-dark .popular-item,
html.gb4-dark .popular-note,
html.gb4-dark .oms-services,
html.gb4-dark .oms-item,
html.gb4-dark .oms-note,
html.gb4-dark .page-content,
html.gb4-dark .review-card {
    background: #152130 !important;
    color: #c9d8e6 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
html.gb4-dark .about-nav-link,
html.gb4-dark .vacancy-single-badge,
html.gb4-dark .subdepartments span {
    background: #1b2938 !important;
    color: #9fc9e8 !important;
}
html.gb4-dark .org-logo,
html.gb4-dark .doc-badge,
html.gb4-dark .schedule-placeholder,
html.gb4-dark .schedule-placeholder-info,
html.gb4-dark .doctor-schedule-preview,
html.gb4-dark .doctor-schedule-header,
html.gb4-dark .analiz-item,
html.gb4-dark .assistant-tip-dots span {
    background: #182636 !important;
    color: #b9c7d6 !important;
}
html.gb4-dark .doc-badge { color: #7ddba0 !important; }
html.gb4-dark .assistant-tip-dots span.active { background: #7cc4ef !important; }

/* Цветные акцентные блоки внутри разделов */
html.gb4-dark .warning-banner,
html.gb4-dark .warning-block,
html.gb4-dark .warning-card { background: #2a1414 !important; color: #f0c4c4 !important; }
html.gb4-dark .warning-card > div { background: transparent !important; color: #f0c4c4 !important; }
html.gb4-dark .appointment-gosuslugi,
html.gb4-dark .school-card { background: #142838 !important; color: #c9d8e6 !important; }
html.gb4-dark .oms-services,
html.gb4-dark .price-oms { background: #10241a !important; color: #bfe8cd !important; }
html.gb4-dark .oms-item { background: #1b2938 !important; color: #c9d8e6 !important; }

/* Светлые рамки → тёмные */
html.gb4-dark .review-card,
html.gb4-dark .review-card .rc-bottom,
html.gb4-dark .review-card-new .rcn-bottom,
html.gb4-dark .dept-card .dept-footer,
html.gb4-dark .hosp-card .hosp-phone,
html.gb4-dark .vacancy-single-footer,
html.gb4-dark .doctor-schedule-footer,
html.gb4-dark .pdf-doc-item,
html.gb4-dark .faq-useful-links,
html.gb4-dark .map-address,
html.gb4-dark .doc-card,
html.gb4-dark .hosp-card { border-color: #263748 !important; }

/* --- Спасение заголовков и текста внутри новых карточек --- */
html.gb4-dark .about-hero h1, html.gb4-dark .about-hero h2,
html.gb4-dark .doc-card h3, html.gb4-dark .org-card h3,
html.gb4-dark .address-card h3, html.gb4-dark .map-info-card h3,
html.gb4-dark .requisites-card h2, html.gb4-dark .requisites-card h3,
html.gb4-dark .hosp-card h3, html.gb4-dark .insurance-card h3,
html.gb4-dark .rights-card h2, html.gb4-dark .rights-card h3,
html.gb4-dark .veterans-card h2, html.gb4-dark .veterans-card h3,
html.gb4-dark .rules-card h2, html.gb4-dark .rules-card h3,
html.gb4-dark .way-card h3, html.gb4-dark .check-item h3,
html.gb4-dark .phone-card h3, html.gb4-dark .phone-tile--secondary h3,
html.gb4-dark .article-card h3, html.gb4-dark .material-card h3,
html.gb4-dark .doc-card h3, html.gb4-dark .docs-card h3,
html.gb4-dark .reproductive-card h2, html.gb4-dark .covid-card h2,
html.gb4-dark .patient-card h3, html.gb4-dark .services-main-card h3,
html.gb4-dark .doctor-schedule-card h3, html.gb4-dark .vacancy-single-header h1,
html.gb4-dark .department-reviews h2, html.gb4-dark .review-form-container h2,
html.gb4-dark .doctor-bio-modern h2, html.gb4-dark .about-detail-card h3,
html.gb4-dark .info-block h3, html.gb4-dark .download-block h3,
html.gb4-dark .important-info h2, html.gb4-dark .schedule-day h2,
html.gb4-dark .visiting-rules h2, html.gb4-dark .policy-points h2,
html.gb4-dark .pharmacy-section h2, html.gb4-dark .popular-services h2,
html.gb4-dark .tips-section h2, html.gb4-dark .materials-section h2,
html.gb4-dark .insurance-contacts strong { color: #5cbcec !important; }
html.gb4-dark .org-card p, html.gb4-dark .org-card li,
html.gb4-dark .address-card p, html.gb4-dark .address-card li,
html.gb4-dark .requisites-card p, html.gb4-dark .requisites-card li,
html.gb4-dark .rules-card p, html.gb4-dark .rules-card li,
html.gb4-dark .rights-card p, html.gb4-dark .rights-card li,
html.gb4-dark .veterans-card p, html.gb4-dark .veterans-card li,
html.gb4-dark .hosp-card p, html.gb4-dark .hosp-card li,
html.gb4-dark .insurance-card p, html.gb4-dark .insurance-card li,
html.gb4-dark .map-info-card p, html.gb4-dark .map-info-card li,
html.gb4-dark .about-detail-card p, html.gb4-dark .about-detail-card li,
html.gb4-dark .page-content p, html.gb4-dark .page-content li,
html.gb4-dark .page-content strong,
html.gb4-dark .doctor-bio-modern p, html.gb4-dark .doctor-bio-modern li,
html.gb4-dark .vacancy-single-card p, html.gb4-dark .vacancy-single-card li,
html.gb4-dark .vacancy-apply p,
html.gb4-dark .schedule-day p, html.gb4-dark .schedule-day li,
html.gb4-dark .visiting-card p,
html.gb4-dark .check-item p, html.gb4-dark .way-card p,
html.gb4-dark .phone-card p, html.gb4-dark .material-card p,
html.gb4-dark .article-card p, html.gb4-dark .popular-item p,
html.gb4-dark .download-link { color: #b9c7d6 !important; }

/* Оранжевая кнопка на этих страницах тоже с тёмным текстом */
html.gb4-dark .review-form-container .btn.btn-primary,
html.gb4-dark .vacancy-single-card .btn.btn-primary,
html.gb4-dark .department-booking .btn.btn-primary { color: #06283f !important; }

/* 404 / форма отзыва на странице врача */
html.gb4-dark .error-page .page-title,
html.gb4-dark .error-page p { color: #c9d8e6 !important; }
html.gb4-dark .no-reviews { color: #93a7b8 !important; }
html.gb4-dark .schedule-placeholder,
html.gb4-dark .schedule-placeholder-info { color: #93a7b8 !important; }

/* --- Услуги: договор, перечень, контакты платного отделения --- */
html.gb4-dark .doctors-page,
html.gb4-dark .services-contract-page,
html.gb4-dark .services-list-page,
html.gb4-dark .services-contacts-page { background: #0d1620 !important; }
html.gb4-dark .contract-step,
html.gb4-dark .contract-docs,
html.gb4-dark .contract-info,
html.gb4-dark .doc-link,
html.gb4-dark .services-category,
html.gb4-dark .contacts-card,
html.gb4-dark .contacts-map,
html.gb4-dark .contacts-note,
html.gb4-dark .services-note { background: #152130 !important; color: #c9d8e6 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
html.gb4-dark .service-type.paid { background: #2b2410 !important; color: #e8d9ae !important; }
html.gb4-dark .service-type.free { background: #10241a !important; color: #7ddba0 !important; }
html.gb4-dark .contract-step,
html.gb4-dark .doc-link,
html.gb4-dark .services-category h3,
html.gb4-dark .contacts-card h3 { border-color: #263748 !important; }
html.gb4-dark .services-category h3,
html.gb4-dark .contacts-card h3 { color: #5cbcec !important; }
html.gb4-dark .contract-step p, html.gb4-dark .contract-step li,
html.gb4-dark .services-category li,
html.gb4-dark .contacts-card p { color: #b9c7d6 !important; }

/* Заметки-плашки на страницах пациентов */
html.gb4-dark .info-card p.note,
html.gb4-dark .docs-section p.note { background: #142838 !important; color: #b9c7d6 !important; }
html.gb4-dark .warning-grid > div { background: #1b2938 !important; color: #f0c4c4 !important; }

/* ============================================================
   v1.6 — контраст текста на новых страницах (скан f11)
   ============================================================ */

/* Меню: inline-стили отдельных страниц перебивают цвет */
html.gb4-dark .nav-menu > li > a { color: #c9d8e6 !important; }
html.gb4-dark .nav-menu > li > a:hover,
html.gb4-dark .nav-menu > li > a:focus,
html.gb4-dark .nav-menu > li.current-menu-item > a {
    color: #fff !important;
    background: #1b2b3d !important;
}
html.gb4-dark .sub-menu a { color: #c9d8e6 !important; }

/* Слайдер: общий спасатель ссылок задел кнопки n2 (+ исключён hero контактов — на синем градиенте 7cc4ef не читается) */
html.gb4-dark main a:not(.btn):not(.cc-btn):not(.cc-hero__phone):not(.contact-strip__call):not(.gb4-theme-toggle):not([class*="n2"]):not(.doc-link-btn):not(.download-link) { color: #7cc4ef !important; }

/* Карточки отзывов (отделения, архив) */
html.gb4-dark .review-card .rc-author,
html.gb4-dark .review-card .rc-doctor { color: #e6eff8 !important; }
html.gb4-dark .review-card .rc-meta, html.gb4-dark .review-card .rc-date { color: #93a7b8 !important; }
html.gb4-dark .review-card .review-text { color: #b9c7d6 !important; }

/* PDF-документы */
html.gb4-dark .pdf-doc-title { color: #e6eff8 !important; }
html.gb4-dark .pdf-doc-info p, html.gb4-dark .pdf-doc-info span { color: #93a7b8 !important; }
html.gb4-dark .pdf-preview-btn { background: #1b2938 !important; color: #9fc9e8 !important; border-color: #2a3a4c !important; }

/* Врач: инфокарточки и био */
html.gb4-dark .doctor-info-cards .info-card { background: #152130 !important; color: #c9d8e6 !important; }
html.gb4-dark .doctor-info-cards .info-card strong,
html.gb4-dark .doctor-info-cards .info-card h3 { color: #5cbcec !important; }
html.gb4-dark .doctor-info-cards .info-card p,
html.gb4-dark .doctor-info-cards .info-card div { color: #b9c7d6 !important; }
html.gb4-dark .doctor-single-modern strong { color: #d9e4ee !important; }

/* 404 */
html.gb4-dark .error-page .error-code,
html.gb4-dark .error-page div { color: #7cc4ef !important; }

/* Вакансия: мета */
html.gb4-dark .vacancy-single-meta .meta-item span,
html.gb4-dark .vacancy-single-meta .meta-item strong { color: #b9c7d6 !important; }
html.gb4-dark .vacancy-single-meta .meta-item strong { color: #e6eff8 !important; }

/* О больнице: hero */
html.gb4-dark .about-hero-content p { color: #b9c7d6 !important; }
html.gb4-dark .about-hero-info span.label,
html.gb4-dark .about-hero-info strong { color: #e6eff8 !important; }
html.gb4-dark .about-hero-info span { color: #b9c7d6 !important; }

/* Лицензии и документы */
html.gb4-dark .docs-intro p { color: #b9c7d6 !important; }
html.gb4-dark .doc-card p, html.gb4-dark .doc-card li,
html.gb4-dark .doc-card strong { color: #b9c7d6 !important; }
html.gb4-dark .doc-card strong { color: #e6eff8 !important; }

/* Реквизиты: таблица */
html.gb4-dark .requisites-table td,
html.gb4-dark .requisites-table th { background: transparent !important; color: #c9d8e6 !important; border-color: #263748 !important; }
html.gb4-dark .requisites-table th { background: #182636 !important; color: #e6eff8 !important; }

/* Пациентам: главная и запись */
html.gb4-dark .patient-card p { color: #b9c7d6 !important; }
html.gb4-dark .patient-card .card-link { color: #7cc4ef !important; }
html.gb4-dark .appointment-lead { color: #b9c7d6 !important; }
html.gb4-dark .appointment-lead b { color: #7cc4ef !important; }
html.gb4-dark .kids-card p { color: #b9c7d6 !important; }
html.gb4-dark .way-card__link { color: #7cc4ef !important; }
html.gb4-dark .check-item strong { color: #5cbcec !important; }
html.gb4-dark .check-item p { color: #b9c7d6 !important; }
html.gb4-dark .appointment-gosuslugi .warning-content { background: transparent !important; }
html.gb4-dark .appointment-gosuslugi .warning-content p { color: #e8d9ae !important; }

/* Госпитализация: вкладки, распорядок дня */
html.gb4-dark .docs-tabs .tab-btn { background: #1b2938 !important; color: #c9d8e6 !important; border-color: #2a3a4c !important; }
html.gb4-dark .docs-tabs .tab-btn.active { background: var(--primary) !important; color: #fff !important; }
html.gb4-dark .day-item .time { color: #7cc4ef !important; }
html.gb4-dark .day-item p, html.gb4-dark .day-item span { color: #c9d8e6 !important; }

/* Услуги: перечень, договор, контакты платного */
html.gb4-dark .popular-price, html.gb4-dark .service-price { color: #7cc4ef !important; }
html.gb4-dark .service-name { color: #b9c7d6 !important; }
html.gb4-dark .contract-info li { color: #b9c7d6 !important; }
html.gb4-dark .contacts-note li, html.gb4-dark .contacts-note strong { color: #b9c7d6 !important; }
html.gb4-dark .contacts-note strong { color: #e6eff8 !important; }

/* Отзывы: архив и формы */
html.gb4-dark .reviews-container .review-card .review-text { color: #b9c7d6 !important; }
html.gb4-dark .review-form-container label { color: #93a7b8 !important; }
html.gb4-dark .review-form-container input,
html.gb4-dark .review-form-container textarea,
html.gb4-dark .review-form-container select {
    background: #101c28 !important; border-color: #2a3a4c !important; color: #dbe7f2 !important;
}
html.gb4-dark .rating-stars span { color: #f08c1f !important; }

/* Антикоррупционное просвещение: переработанная страница */
html.gb4-dark .ace-lead { color: #93a7b8 !important; }
html.gb4-dark .ace-card { background: #152130 !important; border-color: #243648 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
html.gb4-dark .ace-card--doc .ace-doc-info h2,
html.gb4-dark .ace-side-title { color: #5cbcec !important; }
html.gb4-dark .ace-doc-meta { color: #7d92a5 !important; }
html.gb4-dark .ace-doc-desc { color: #b9c7d6 !important; }
html.gb4-dark .ace-law-list li { background: #101c28 !important; border-left-color: #5cbcec !important; }
html.gb4-dark .ace-law-list strong { color: #e6eff8 !important; }
html.gb4-dark .ace-law-list span { color: #93a7b8 !important; }
html.gb4-dark .ace-pdf-viewer { border-color: #263748 !important; background: #101c28 !important; }
html.gb4-dark .ace-doc-actions .btn-primary { color: #06283f !important; }
html.gb4-dark .ace-doc-actions .btn-outline { color: #cfe3f5 !important; background: transparent !important; }
html.gb4-dark .ace-doc-actions .btn-outline:hover { background: #1b2b3d !important; color: #fff !important; }

/* Запись к врачу: белая плитка регистратуры и блок «Запись ребёнка» */
html.gb4-dark .phone-tile { background: #152130 !important; }
html.gb4-dark .phone-tile--primary { background: #152130 !important; border-top-color: #f0b429 !important; }
html.gb4-dark .phone-tile .phone-tile__label,
html.gb4-dark .phone-tile p,
html.gb4-dark .phone-tile span { color: #b9c7d6 !important; }
html.gb4-dark .phone-tile__number { color: #7cc4ef !important; }
html.gb4-dark .kids-card { background: #142838 !important; border-color: #27506e !important; }
html.gb4-dark .kids-card h3,
html.gb4-dark .kids-card strong { color: #5cbcec !important; }
html.gb4-dark .kids-card p { color: #b9c7d6 !important; }
html.gb4-dark .kids-card a { color: #7cc4ef !important; }

/* График врачей: жёлтая плашка (inline-стили в шаблоне) */
html.gb4-dark .schedule-notice {
    background: #2b2410 !important;
    border-color: #6a5420 !important;
    box-shadow: none !important;
}
html.gb4-dark .schedule-notice strong { color: #e8d9ae !important; }
html.gb4-dark .schedule-notice p { color: #cbb98a !important; }
html.gb4-dark .schedule-notice a { color: #7cc4ef !important; }

/* ============================================================
   v1.8 — Лекарства (новые блоки), Выдача имущества, Сельские ФАПы
   ============================================================ */

/* --- Реализация и выдача лекарственных препаратов --- */
html.gb4-dark .med-lead { color: #93a7b8 !important; }
html.gb4-dark .med-point { background: #14212f !important; border-left-color: #5cbcec !important; }
html.gb4-dark .med-point-body h2 { color: #5cbcec !important; }
html.gb4-dark .med-point-body p { color: #b9c7d6 !important; }
html.gb4-dark .med-point-addr { color: #7cc4ef !important; }
html.gb4-dark .med-sales-item { background: #14212f !important; border-color: #22334a !important; }
html.gb4-dark .med-sales-item strong { color: #5cbcec !important; }
html.gb4-dark .med-sales-item span { color: #93a7b8 !important; }
html.gb4-dark .med-sales-hours { background: #2b2410 !important; }
html.gb4-dark .med-sales-hours strong { color: #e8d9ae !important; }
html.gb4-dark .med-sales-hours li { color: #cbb98a !important; }

/* --- Выдача имущества умерших пациентов --- */
html.gb4-dark .property-page { background: #0d1620 !important; }
html.gb4-dark .pi-lead { color: #93a7b8 !important; }
html.gb4-dark .pi-card,
html.gb4-dark .pi-form-card,
html.gb4-dark .pi-order-bar,
html.gb4-dark .pi-cat { background: #152130 !important; border-color: #22334a !important; box-shadow: none !important; }
html.gb4-dark .pi-title,
html.gb4-dark .pi-form-card h3,
html.gb4-dark .pi-order-info strong { color: #5cbcec !important; }
html.gb4-dark .pi-steps li { background: #14212f !important; }
html.gb4-dark .pi-steps strong { color: #c9d8e6 !important; }
html.gb4-dark .pi-steps span,
html.gb4-dark .pi-form-card p,
html.gb4-dark .pi-order-info span,
html.gb4-dark .pi-cat span { color: #93a7b8 !important; }
html.gb4-dark .pi-steps a { color: #7cc4ef !important; }
html.gb4-dark .pi-steps li::before { background: #0a5c8e !important; color: #fff !important; }
html.gb4-dark .pi-note { background: #2b2410 !important; color: #cbb98a !important; }
html.gb4-dark .pi-docs li { background: #14212f !important; border-left-color: #5cbcec !important; }
html.gb4-dark .pi-docs strong { color: #c9d8e6 !important; }
html.gb4-dark .pi-docs span { color: #93a7b8 !important; }
html.gb4-dark .pi-form-meta { color: #7d92a5 !important; }
html.gb4-dark .pi-cat strong { color: #5cbcec !important; }
html.gb4-dark .pi-pdf-viewer { border-color: #22334a !important; }
html.gb4-dark .pi-section h2 { color: #5cbcec !important; }
html.gb4-dark .btn-outline.pi-btn--outline { color: #7cc4ef !important; border-color: #4b7ea0 !important; }
html.gb4-dark .btn-outline.pi-btn--outline:hover { background: #22334a !important; color: #fff !important; }

/* --- Сельские амбулатории и ФАПы --- */
html.gb4-dark .rural-clinics-page { background: #0d1620 !important; }
html.gb4-dark .rural-intro,
html.gb4-dark .rural-card { background: #152130 !important; box-shadow: none !important; }
html.gb4-dark .rural-intro p,
html.gb4-dark .rural-address,
html.gb4-dark .rural-schedule,
html.gb4-dark .rural-info { color: #b9c7d6 !important; }
html.gb4-dark .rural-content h3 { color: #5cbcec !important; }
html.gb4-dark .rural-phone a { color: #7cc4ef !important; }
html.gb4-dark .rural-note { background: #2b2410 !important; border-left-color: #f0b429 !important; }
html.gb4-dark .rural-note h3 { color: #e8d9ae !important; }
html.gb4-dark .rural-note li { color: #cbb98a !important; }
html.gb4-dark .rural-note strong { color: #7cc4ef !important; }
html.gb4-dark .rural-schedule { color: #b9c7d6 !important; }

/* --- Медицинские работники: выпадающий список отделений --- */
html.gb4-dark .dfdd-btn { background: #152130 !important; color: #c9d8e6 !important; border-color: #2a3a4c !important; }
html.gb4-dark .dfdd-btn:hover,
html.gb4-dark .dfdd.open .dfdd-btn { border-color: #3a7ca8 !important; box-shadow: 0 4px 14px rgba(0,0,0,0.4) !important; }
html.gb4-dark .dfdd-arrow { color: #5cbcec !important; }
html.gb4-dark .dfdd-menu { background: #1b2938 !important; border-color: #3a7ca8 !important; box-shadow: 0 18px 40px rgba(0,0,0,0.55) !important; }
html.gb4-dark .dfdd-search { background: #152130 !important; border-bottom-color: #2a3a4c !important; }
html.gb4-dark .dfdd-search input { background: #0d1620 !important; color: #c9d8e6 !important; border-color: #2a3a4c !important; }
html.gb4-dark .dfdd-search input:focus { border-color: #3a7ca8 !important; }
html.gb4-dark .dfdd-item { color: #c9d8e6 !important; }
html.gb4-dark .dfdd-item:hover { background: #22334a !important; }
html.gb4-dark .dfdd-item.active { background: linear-gradient(120deg, #0a5c8e, #0d6ea8) !important; color: #fff !important; }

/* --- Всплывающее увеличение картинки карточки --- */
html.gb4-dark .pop-zoom__backdrop { background: rgba(2,10,18,0.82) !important; }
html.gb4-dark .pop-zoom__box img { background: #1b2938 !important; }
html.gb4-dark .pop-zoom__close { background: #22334a !important; color: #c9d8e6 !important; }
html.gb4-dark .pop-zoom__close:hover { background: #f08c1f !important; color: #fff !important; }

/* --- Новости на главной: карточка с фото --- */
html.gb4-dark .news-card { background: #1b2938 !important; }
html.gb4-dark .news-card__body {
    background: linear-gradient(180deg, rgba(13,22,32,0.3) 0%, rgba(13,22,32,0.62) 22%, rgba(13,22,32,0.98) 40%, #1b2938 58%) !important;
    backdrop-filter: blur(7px);
}
html.gb4-dark .news-card--photo .news-date { color: #5cbcec !important; }
html.gb4-dark .news-card h3 a { color: #e6eef6 !important; }
html.gb4-dark .news-card h3 a:hover { color: #5cbcec !important; }
html.gb4-dark .news-card p { color: #a9bbca !important; }

/* --- Страница оператора чата (chat-operator) --- */
html.gb4-dark .chat-operator-page { background: #0d1620 !important; }
html.gb4-dark .chat-operator-page .page-title,
html.gb4-dark .chat-operator-page .breadcrumbs a { color: #e6eef6 !important; }
html.gb4-dark .chat-operator-page .breadcrumbs { color: #8fa3b5 !important; }
html.gb4-dark .chat-operator-page .gb4chat-filters .gbf-filter { background: #152130 !important; border-color: #2a3a4c !important; color: #c9d8e6 !important; }
html.gb4-dark .chat-operator-page .gb4chat-filters .gbf-filter:hover { border-color: #3a7ca8 !important; color: #5cbcec !important; }
html.gb4-dark .chat-operator-page .gb4chat-filters .gbf-filter.active { background: #0a5c8e !important; border-color: #0a5c8e !important; color: #fff !important; }
html.gb4-dark .chat-operator-page .gb4chat-toolbar input[type="search"] { background: #152130 !important; border-color: #2a3a4c !important; color: #c9d8e6 !important; }
html.gb4-dark .chat-operator-page .gb4chat-list,
html.gb4-dark .chat-operator-page .gb4chat-win { background: #1b2938 !important; border-color: #2a3a4c !important; }
html.gb4-dark .chat-operator-page .gb4chat-conv { border-bottom-color: #22334a !important; }
html.gb4-dark .chat-operator-page .gb4chat-conv:hover { background: #22334a !important; }
html.gb4-dark .chat-operator-page .gb4chat-conv.active { background: #1d3a54 !important; border-left-color: #5cbcec !important; }
html.gb4-dark .chat-operator-page .gb4chat-conv b { color: #e6eef6 !important; }
html.gb4-dark .chat-operator-page .gb4chat-conv small { color: #8fa3b5 !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-head { border-bottom-color: #22334a !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-head small { color: #8fa3b5 !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-msgs { background: #101c28 !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-msgs .gbc-bubble { background: #1b2938 !important; color: #dbe6ef !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-msgs .gbc-msg--user .gbc-bubble { background: #1d3a54 !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-msgs .gbc-who { color: #5cbcec !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-msgs .gbc-bubble time { color: #7b90a2 !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-msgs .gbc-bubble a { color: #7cc4ef !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-input { border-top-color: #22334a !important; }
html.gb4-dark .chat-operator-page .gb4chat-win-input textarea { background: #152130 !important; border-color: #2a3a4c !important; color: #dbe6ef !important; }
html.gb4-dark .chat-operator-page .gb4chat-quick-row .button-small { background: #22334a !important; border-color: #2a3a4c !important; color: #c9d8e6 !important; }
html.gb4-dark .chat-operator-page .gb4chat-quick-row .button-small:hover { background: #2c4364 !important; color: #fff !important; }
html.gb4-dark .chat-operator-page .gb4chat-grid .button-primary { background: #0a5c8e !important; border-color: #0a5c8e !important; color: #fff !important; }
html.gb4-dark .chat-operator-page .gb4chat-settings-btn { background: #22334a !important; border-color: #2a3a4c !important; color: #c9d8e6 !important; }
html.gb4-dark .chat-operator-page .gb4chat-settings-btn:hover { background: #2c4364 !important; color: #fff !important; }

/* --- Админка онлайн-чата (wp-admin, страница «Онлайн чат») — тёмная тема независимо от админ-стиля --- */
body.wp-admin .gb4chat-admin h1 .description { display: none; }
/* тёмная версия только если сайт в тёмной теме не влияет: админка WP отдельная — стилизуем кнопки и колонки нейтрально */
.gb4chat-admin .gb4chat-filters .gbf-filter { border-radius: 20px; }
.gb4chat-admin .gb4chat-toolbar input[type="search"] { border-radius: 20px; }
.gb4chat-admin .gb4chat-list { border-radius: 10px; }
.gb4chat-admin .gb4chat-win { border-radius: 10px; }
.gb4chat-admin .gb4chat-grid .button-primary,
.gb4chat-admin .button-primary { background: #0a5c8e; border-color: #0a5c8e; }
.gb4chat-admin .gb4chat-grid .button-primary:hover,
.gb4chat-admin .button-primary:hover { background: #0d6ea8; border-color: #0d6ea8; }

/* ============================================================
   v2.2 — мобильная тёмная тема: читаемость меню и новостей
   ============================================================ */

/* Мобильное меню: панель + пункты + подпункты — светлый текст, крупные тапы */
@media (max-width: 992px) {
    html.gb4-dark .main-nav {
        background: #101c28 !important;
        border-bottom-color: rgba(255,255,255,0.08) !important;
    }
    html.gb4-dark .nav-menu {
        border-top-color: rgba(255,255,255,0.1) !important;
    }
    html.gb4-dark .nav-menu > li > a {
        color: #dce8f4 !important;
        background: transparent !important;
    }
    html.gb4-dark .nav-menu > li > a:hover,
    html.gb4-dark .nav-menu > li > a:focus,
    html.gb4-dark .nav-menu > li.current-menu-item > a,
    html.gb4-dark .nav-menu > li.current_page_item > a {
        color: #fff !important;
        background: #1b2b3d !important;
    }
    html.gb4-dark .nav-menu .sub-menu {
        background: #14212f !important;
    }
    html.gb4-dark .nav-menu .sub-menu a {
        color: #c9d8e6 !important;
        border-bottom-color: rgba(255,255,255,0.07) !important;
    }
    html.gb4-dark .nav-menu .sub-menu a:hover {
        color: #fff !important;
        background: #1b2b3d !important;
    }
    html.gb4-dark .nav-menu .gb4-user-item { color: #dce8f4 !important; }
    html.gb4-dark .nav-menu > li.gb4-user-menu-item:hover .gb4-user-item {
        color: #fff !important;
        background: #1b2b3d !important;
    }
    html.gb4-dark .nav-menu .gb4-nav-chat-badge { background: #e05d5d; color: #fff; }
}

/* Новости на главной (карточка с фото): заголовок читается на любом фото.
   Плотнее затемняющая подложка и раньше «пол» — тексту хватает контраста */
html.gb4-dark .news-card__body {
    background: linear-gradient(180deg, rgba(13,22,32,0.45) 0%, rgba(13,22,32,0.8) 18%, rgba(13,22,32,0.985) 34%, #1b2938 52%) !important;
    backdrop-filter: blur(9px);
}
html.gb4-dark .news-card--photo h3 a,
html.gb4-dark .news-card h3 a { color: #f2f7fc !important; text-shadow: 0 1px 8px rgba(0,0,0,0.65) !important; }
html.gb4-dark .news-card--photo .news-date { color: #7cc4ef !important; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

/* Светлая тема: то же усиление подложки — пользователь отметил плохую читаемость заголовков */

/* === v2.3 фикс: панель мобильного меню остаётся белой (style.css 3341) —
   при тёмной теме делаем саму панель тёмной, иначе светлый текст на белом === */
@media (max-width: 992px) {
    html.gb4-dark .nav-menu {
        background: #101c28 !important;
        box-shadow: 0 12px 24px rgba(0,0,0,0.5) !important;
    }
    html.gb4-dark .nav-menu > li { border-bottom-color: rgba(255,255,255,0.08) !important; }
    html.gb4-dark .nav-menu .sub-menu { background: #14212f !important; }
}

/* ================= v2.4 =================
   Контакты (hero-номер, кнопки, чипы, навигация) и чат-плашка на главной:
   глобальное правило html.gb4-dark a красит все ссылки в светло-синий —
   на синем градиенте hero телефон и текст кнопок становились «синим на синем»,
   а белые чипы/плашки не вписывались в тёмную тему. */
html.gb4-dark .cc-hero__phone,
html.gb4-dark .cc-hero__phone b,
html.gb4-dark .cc-hero__phone:hover,
html.gb4-dark .cc-hero__phone:hover b { color: #ffffff !important; }
html.gb4-dark .cc-hero__phone b { color: #f5a94e !important; }
html.gb4-dark .section-phone-chip a { color: #62b0e6 !important; }
html.gb4-dark .cc-hero__meta { color: rgba(255,255,255,0.92); }
html.gb4-dark .cc-hero__alt b { color: #f5a94e !important; }
html.gb4-dark .cc-hero__alt span { color: rgba(255,255,255,0.85); }
html.gb4-dark .cc-btn--call,
html.gb4-dark .cc-btn--call:hover { color: #fff !important; }
html.gb4-dark .cc-btn--chat,
html.gb4-dark .cc-btn--chat:hover { color: #fff !important; background: rgba(255,255,255,0.14); }
html.gb4-dark .contacts-nav-link {
    background: #1b2b3d;
    color: #d5e2ee;
    box-shadow: none;
    border: 1px solid #2a3a4c;
}
html.gb4-dark .contacts-nav-link:hover {
    background: var(--primary, #0a5c8e);
    color: #fff;
    border-color: transparent;
}
html.gb4-dark .section-phone-chip {
    background: #142234;
    border-color: #2a3a4c;
    color: #c9d8e6;
}
html.gb4-dark .section-phone-chip a { color: #62b0e6; }

/* Чат-плашка на главной — тёмная тема (фон секции + тонкая подстройка) */
html.gb4-dark .contact-block { background: #0d1620; }
html.gb4-dark .contact-strip { box-shadow: 0 14px 34px rgba(0,0,0,0.45); }

/* ============ v2.5: отзывы (карточки/модалка/форма) + Помощь (FAQ/Мои обращения/Задать вопрос) ============ */
/* --- Архив отзывов --- */
html.gb4-dark .reviews-archive { background: #0d1620; }
html.gb4-dark .reviews-lead { color: #8fa3b5; }
html.gb4-dark .filter-btn { background: #152130; color: #d5e2ee; border-color: #2a3a4c; box-shadow: none; }
html.gb4-dark .filter-btn.active,
html.gb4-dark .filter-btn:hover { background: linear-gradient(135deg, #0a5c8e, #0d6ea8); color: #fff; border-color: transparent; }
html.gb4-dark .reviews-container .review-compact { background: #152130; border-color: #2a3a4c; }
html.gb4-dark .reviews-container .review-compact:hover { border-color: rgba(98,176,230,0.45); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
html.gb4-dark .reviews-container .review-compact::before { background: linear-gradient(90deg, #62b0e6, #3d8ec2 55%, #f79a3d); }
html.gb4-dark .reviews-container .rc-author { color: #e6eef5; }
html.gb4-dark .reviews-container .rc-text { color: #b6c6d4; }
html.gb4-dark .reviews-container .rc-badge { background: #1b2b3d !important; color: #62b0e6; }
html.gb4-dark .reviews-container .rc-date { color: #7d90a2; }
html.gb4-dark .reviews-container .rc-bottom { border-color: #2a3a4c; }
html.gb4-dark .reviews-container .rc-more { background: #1b2b3d; color: #62b0e6; }
html.gb4-dark .reviews-container .rc-more:hover { background: linear-gradient(135deg, #0a5c8e, #0d6ea8); color: #fff; }
html.gb4-dark .reviews-container p.no-reviews { background: #152130; color: #8fa3b5; }
/* --- Модалка полного отзыва --- */
html.gb4-dark .review-modal { background: rgba(2, 10, 18, 0.7); }
html.gb4-dark .review-modal-card { background: #13202e; box-shadow: 0 30px 90px rgba(0,0,0,0.65); }
html.gb4-dark .review-modal-close { background: #1d2d3e; color: #c9d8e6; }
html.gb4-dark .review-modal-close:hover { background: #e74c3c; color: #fff; }
html.gb4-dark .review-modal-head .rm-author { color: #e6eef5; }
html.gb4-dark .review-modal-head .rm-target { background: #1b2b3d; color: #62b0e6; }
html.gb4-dark .review-modal-stars .rm-date { color: #7d90a2; }
html.gb4-dark .review-modal-text { color: #c9d8e6; }
html.gb4-dark .review-modal-block--like { background: #12301f; color: #8fd4ac; }
html.gb4-dark .review-modal-block--like b { color: #5fc48c; }
html.gb4-dark .review-modal-block--dislike { background: #331a18; color: #e0a39b; }
html.gb4-dark .review-modal-block--dislike b { color: #e07b6d; }
html.gb4-dark .review-modal-block--advice { background: #33270f; color: #e6c184; }
html.gb4-dark .review-modal-block--advice b { color: #f5a94e; }
/* --- Форма отзыва rf2 --- */
html.gb4-dark .review-form-wrapper { background: #13202e; border-color: #223348; box-shadow: none; }
html.gb4-dark .review-form-container.rf2 h3 { color: #62b0e6; }
html.gb4-dark .rf2__sub { color: #8fa3b5; }
html.gb4-dark .rf2__group > label { color: #b6c6d4; }
html.gb4-dark .rf2-chip { background: #1b2b3d; color: #d5e2ee; border-color: #2a3a4c; }
html.gb4-dark .rf2-chip:hover { background: #223349; color: #62b0e6; border-color: #3d5470; }
html.gb4-dark .rf2-chip.is-active { background: linear-gradient(135deg, #0a5c8e, #0d6ea8); color: #fff; border-color: transparent; }
html.gb4-dark .rf2__pick select, html.gb4-dark .rf2__pick input[type="text"],
html.gb4-dark .rf2 input[type="text"], html.gb4-dark .rf2 textarea {
    background: #0f1a26; border-color: #2a3a4c; color: #d5e2ee;
}
html.gb4-dark .rf2__pick select:focus, html.gb4-dark .rf2__pick input:focus,
html.gb4-dark .rf2 input:focus, html.gb4-dark .rf2 textarea:focus {
    border-color: #62b0e6; background: #12202e; box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
html.gb4-dark .rf2 .rating-stars .star { color: #3d5470; }
html.gb4-dark .rf2 .rating-stars .star.is-on { color: #f5a623; }
/* --- Помощь: FAQ компактнее --- */
html.gb4-dark .faq-search-section, html.gb4-dark .ask-question-section { background: #13202e; box-shadow: none; }
html.gb4-dark .faq-search-section h2, html.gb4-dark .ask-question-section h2 { color: #62b0e6; }
html.gb4-dark .faq-item { border-color: #223348; background: #13202e; }
html.gb4-dark .faq-item:hover { border-color: rgba(98,176,230,0.4); }
html.gb4-dark .faq-question { background: #13202e; color: #d5e2ee; }
html.gb4-dark .faq-question:hover { background: #182939; }
html.gb4-dark .faq-question .toggle { background: #1b2b3d; color: #62b0e6; }
html.gb4-dark .faq-item.opened .toggle { background: #0d6ea8; color: #fff; }
html.gb4-dark .faq-answer { color: #b6c6d4; }
html.gb4-dark .faq-answer > *:first-child { color: inherit; }
html.gb4-dark .faq-item.opened .faq-answer { border-color: #223348; }
html.gb4-dark .faq-useful-links { border-color: #223348; }
html.gb4-dark .faq-useful-links a { color: #62b0e6; }
/* --- Помощь: предупреждение про чат --- */
html.gb4-dark .ask-chat-note { background: linear-gradient(120deg, #2a2113, #1d2430); border-color: #5a4520; }
html.gb4-dark .ask-chat-note__body { color: #d8c39a; }
html.gb4-dark .ask-chat-note__body b { color: #f5a94e; }
/* --- Мои обращения uq2 + форма вопроса --- */
html.gb4-dark .ask-question-container.uq2 { background: #10202e; border-color: #223348; }
html.gb4-dark .uq2 h3 { color: #62b0e6; }
html.gb4-dark .uq2-list { background: #152230; border-color: #223348; }
html.gb4-dark .uq2-list .question-item { background: #1b2b3d; border-color: #2a3a4c; }
html.gb4-dark .uq2-list .question-meta { color: #8fa3b5; }
html.gb4-dark .uq2-list .status-new { background: #33270f; color: #f5a94e; }
html.gb4-dark .uq2-list .status-answered { background: #12301f; color: #5fc48c; }
html.gb4-dark .uq2-list .question-question { color: #d5e2ee; }
html.gb4-dark .uq2-list .question-answer { background: #12301f; color: #a9d8bd; }
html.gb4-dark .uq2-chat-note { background: linear-gradient(120deg, #2a2113, #1d2430); border-color: #5a4520; color: #d8c39a; }
html.gb4-dark .uq2-chat-note b { color: #f5a94e; }
html.gb4-dark .uq2-form input, html.gb4-dark .uq2-form textarea {
    background: #0f1a26 !important; border-color: #2a3a4c !important; color: #d5e2ee;
}
html.gb4-dark .uq2-form input:focus, html.gb4-dark .uq2-form textarea:focus {
    border-color: #62b0e6 !important; box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
html.gb4-dark .uq2-info { background: #1b2b3d; color: #b6c6d4; }

/* v2.6: главная — лента разделов помощника (мобайл, один ряд) в тёмной теме */
@media (max-width: 992px) {
    html.gb4-dark .assistant-side { background: none !important; box-shadow: none; }
    html.gb4-dark .assistant-side-list { animation: none; }
    html.gb4-dark .assistant-side-btn { background: #14212f !important; border-color: #2a3a4c !important; }
    html.gb4-dark .assistant-side-list::after {
        background: linear-gradient(90deg, rgba(13,22,32,0), rgba(13,22,32,0.92) 70%);
    }
}
