/* =================================================================
   Gamma.Help — design system
   Источник правды по визуалу: design handoff (chats/chat1.md, chat2.md)
   Применяется на новые компоненты с префиксом .gh-*
   ================================================================= */

/* ----- Локальный reset поверх старого styles.css -----
   styles.css задаёт text-transform: uppercase на h1-h6, line-height: 1, etc.
   Перебиваем только для gh-* контента, чтобы не ломать legacy-страницы. */

.gh-section h1, .gh-section h2, .gh-section h3, .gh-section h4,
.gh-hero h1, .gh-hero h2,
.gh-page-hero h1, .gh-page-hero h2,
.gh-cta h1, .gh-cta h2,
.gh-partners h2, .gh-modal-overlay h2 {
    text-transform: none;
    color: var(--gh-text);
}

/* Hero h1 и модалка — заголовки слева (перебивает h2 { text-align: center } из styles.css). */
.gh-hero h1, .gh-hero h2,
.gh-page-hero h1, .gh-page-hero h2,
.gh-modal-overlay h2 {
    text-align: left;
}

/* Чёрные заголовки секций центрированы во всех блоках, кроме hero. */
.gh-section-title {
    text-align: center;
}

/* В CTA родитель имеет text-align: center; синюю метку оставляем слева для единообразия с другими секциями. */
.gh-cta .gh-section-label {
    text-align: left;
}

.gh-section, .gh-hero, .gh-cta, .gh-partners, .gh-stats-banner,
.gh-section *, .gh-hero *, .gh-cta *, .gh-partners *, .gh-stats-banner *,
.gh-header, .gh-header *, .gh-footer, .gh-footer *,
.gh-modal-overlay, .gh-modal-overlay *,
.gh-mobile-nav, .gh-mobile-nav * {
    box-sizing: border-box;
}

/* Сбрасываем text-transform для всех текстовых элементов внутри gh-* */
.gh-section *, .gh-hero *, .gh-cta *, .gh-partners *,
.gh-header *, .gh-footer *,
.gh-modal-overlay *, .gh-mobile-nav * {
    text-transform: none;
}

/* Кроме помеченных классов — лейблы секций и uppercase бейджи */
.gh-section-label,
.gh-hero-tag,
.gh-footer-heading {
    text-transform: uppercase !important;
}

/* ----- Дизайн-токены ----- */

:root,
:root[data-theme="light"] {
    --gh-bg: #f8fafc;
    --gh-bg-alt: #f0f5fa;
    --gh-bg-card: #ffffff;
    --gh-bg-card-hover: #f5f9ff;
    --gh-text: #334155;
    --gh-text-muted: #5a7a9a;
    --gh-text-dim: #8aa3bd;
    --gh-accent: #2563eb;
    --gh-accent-hover: #1d4ed8;
    --gh-accent-soft: #3a72c4;
    --gh-accent-text: #ffffff;
    --gh-header-bg: rgba(248, 250, 252, 0.97);
    --gh-hero-bg: linear-gradient(135deg, rgba(232, 240, 254, 0.85) 0%, rgba(219, 234, 254, 0.65) 60%, rgba(239, 246, 255, 0.85) 100%), url('../images/hero_background.jpg') center / cover no-repeat #e8f0fe;
    --gh-section-alt: #eef4fb;
    --gh-border: rgba(0, 0, 0, 0.08);
    --gh-step-num: #dbeafe;
    --gh-badge: #dbeafe;
    --gh-shadow-card: 0 8px 24px rgba(15, 28, 46, 0.04);
    --gh-shadow-modal: 0 24px 64px rgba(15, 28, 46, 0.18);
    --gh-overlay: rgba(15, 28, 46, 0.55);
}

:root[data-theme="dark"] {
    --gh-bg: #0d1b2e;
    --gh-bg-alt: #0a1525;
    --gh-bg-card: #1a2d45;
    --gh-bg-card-hover: #1f3550;
    --gh-text: #e2e8f0;
    --gh-text-muted: #8aa3bd;
    --gh-text-dim: #5a7a96;
    --gh-accent: #3b82f6;
    --gh-accent-hover: #2563eb;
    --gh-accent-soft: #6090d4;
    --gh-accent-text: #ffffff;
    --gh-header-bg: rgba(13, 27, 46, 0.95);
    --gh-hero-bg: linear-gradient(135deg, rgba(13, 27, 46, 0.88) 0%, rgba(10, 32, 64, 0.92) 60%, rgba(9, 24, 48, 0.95) 100%), url('../images/hero_background.jpg') center / cover no-repeat #0d1b2e;
    --gh-section-alt: #0a1525;
    --gh-border: rgba(255, 255, 255, 0.08);
    --gh-step-num: #1a2d45;
    --gh-badge: #1a3a5c;
    --gh-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.32);
    --gh-shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.6);
    --gh-overlay: rgba(0, 0, 0, 0.7);
}

:root {
    --gh-radius: 12px;
    --gh-radius-lg: 24px;
    --gh-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gh-max-content: 1200px;
    --gh-section-pad-y: 100px;
    --gh-section-pad-x: 48px;

    /* Типографическая шкала.
       Принцип: декор не больше H1, нижний размер не меньше 14px (читаемость для 50+).
       Используется в .gh-hero h1, .gh-section-title, .gh-stat-n и т.д. */
    --gh-fs-h1: clamp(34px, 4.4vw, 56px);
    --gh-fs-h2: clamp(28px, 3.2vw, 40px);
    --gh-fs-h3: 22px;
    --gh-fs-stat: clamp(36px, 3.4vw, 44px);
    --gh-fs-decor: clamp(40px, 3.6vw, 52px);  /* декор-цифры, всегда меньше H1 */
    --gh-fs-body: 16px;
    --gh-fs-body-lg: 17px;
    --gh-fs-small: 14px;            /* минимальный размер видимого текста */
    --gh-fs-label: 13px;            /* uppercase-метки секций, мельче body */
    --gh-fs-tag: 12px;              /* badge-подобные элементы */
}

/* ----- Глобальные правила тем ----- */

html[data-theme="light"] body,
html[data-theme="dark"] body {
    background: var(--gh-bg);
    color: var(--gh-text);
    font-family: var(--gh-font);
    -webkit-font-smoothing: antialiased;
}

/* ----- Кнопки ----- */

.gh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gh-accent);
    color: var(--gh-accent-text);
    border: none;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: var(--gh-radius);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
    font-family: var(--gh-font);
    text-decoration: none;
}

.gh-btn-primary:hover {
    background: var(--gh-accent-hover);
    transform: translateY(-1px);
}

.gh-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--gh-accent);
    border: 2px solid var(--gh-accent);
    cursor: pointer;
    padding: 12px 26px;
    border-radius: var(--gh-radius);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    transition: all 0.2s;
    font-family: var(--gh-font);
    text-decoration: none;
}

.gh-btn-outline:hover {
    background: var(--gh-accent);
    color: var(--gh-accent-text);
}

.gh-btn-sm {
    padding: 10px 20px;
    font-size: 16px;
}

.gh-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gh-btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* ----- Хедер ----- */

.gh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--gh-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gh-border);
    padding: 0 var(--gh-section-pad-x);
    height: 72px;
}

.gh-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gh-header-phone-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.gh-header-inner {
    max-width: var(--gh-max-content);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gh-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--gh-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    font-family: var(--gh-font);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.gh-logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

/* Лого-иконка и текст — одним цветом с основным текстом темы. */
html[data-theme="light"] .gh-logo-icon {
    filter: brightness(0) saturate(100%);
}

html[data-theme="dark"] .gh-logo-icon {
    filter: brightness(0) invert(1);
}

.gh-logo-text {
    color: var(--gh-text);
}

.gh-logo-text span {
    color: inherit;
}

.gh-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-nav a {
    color: var(--gh-text-muted);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.2s;
    font-family: var(--gh-font);
}

.gh-nav a:hover {
    color: var(--gh-text);
}

.gh-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gh-header-phone {
    color: var(--gh-text);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    font-family: var(--gh-font);
    white-space: nowrap;
}

/* Сброс styles.css задаёт span { color: black } и перебивает
   наследование от <a> — без этого в тёмной теме номер чёрный на тёмном. */
.gh-header-phone-text {
    color: inherit;
}

.gh-header-phone-wrap {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.gh-header-badge {
    background: var(--gh-accent-soft);
    color: var(--gh-accent-text);
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
}

/* Глобальный reset на span-ах задаёт color: black,
   поэтому внутри бейджа нужно явно наследовать от родителя. */
.gh-header-badge-full {
    color: inherit;
}

.gh-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    color: var(--gh-text);
    line-height: 1;
    padding: 0;
}

.gh-theme-toggle:hover {
    background: var(--gh-badge);
    border-color: var(--gh-accent);
    transform: rotate(20deg);
}

.gh-theme-toggle svg {
    width: 20px;
    height: 20px;
}

.gh-theme-toggle .gh-theme-toggle-light {
    display: none;
}

.gh-theme-toggle .gh-theme-toggle-dark {
    display: block;
}

html[data-theme="dark"] .gh-theme-toggle .gh-theme-toggle-light {
    display: block;
}

html[data-theme="dark"] .gh-theme-toggle .gh-theme-toggle-dark {
    display: none;
}

html[data-theme="light"] .gh-theme-img--dark,
html[data-theme="dark"] .gh-theme-img--light {
    display: none;
}

.gh-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gh-text);
    line-height: 1;
    padding: 8px;
}

.gh-hamburger svg {
    width: 32px;
    height: 48px;
}

/* Мобильное меню */
.gh-mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--gh-bg);
    z-index: 150;
    display: none;
    flex-direction: column;
    padding: 100px 48px 48px;
}

.gh-mobile-nav.is-open {
    display: flex;
}

.gh-mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gh-text);
    line-height: 1;
    padding: 8px;
}

.gh-mobile-nav-close svg {
    width: 28px;
    height: 28px;
}

.gh-mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.gh-mobile-nav-links a {
    font-size: 28px;
    font-weight: 700;
    color: var(--gh-text);
    text-decoration: none;
    font-family: var(--gh-font);
}

.gh-mobile-nav-phone {
    margin-top: 48px;
    font-size: 22px;
    font-weight: 700;
    color: var(--gh-text);
    text-decoration: none;
    font-family: var(--gh-font);
}

/* ----- Футер ----- */

.gh-footer {
    background: var(--gh-bg-alt);
    border-top: 1px solid var(--gh-border);
    padding: 60px var(--gh-section-pad-x);
    color: var(--gh-text);
    font-family: var(--gh-font);
}

.gh-footer-inner {
    max-width: var(--gh-max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.gh-footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--gh-text);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.gh-footer-logo .gh-logo-icon {
    height: 28px;
    width: auto;
    display: block;
}

.gh-footer-logo .gh-logo-text {
    color: var(--gh-text);
}

.gh-footer-logo .gh-logo-text span {
    color: inherit;
}

.gh-footer-desc {
    font-size: 14px;
    color: var(--gh-text-muted);
    line-height: 1.6;
}

.gh-footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gh-text-dim);
    margin-bottom: 16px;
}

.gh-footer-link {
    display: block;
    font-size: 14px;
    color: var(--gh-text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.gh-footer-link:hover {
    color: var(--gh-text);
}

.gh-footer-phone {
    font-weight: 700;
    font-size: 16px;
    color: var(--gh-text);
}

.gh-footer-bottom {
    max-width: var(--gh-max-content);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--gh-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.gh-footer-copy {
    font-size: 13px;
    color: var(--gh-text-dim);
}

.gh-social-links {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    color: var(--gh-text);
}

.gh-social-btn:hover {
    background: var(--gh-accent);
    border-color: var(--gh-accent);
    color: var(--gh-accent-text);
}

.gh-social-btn img,
.gh-social-btn svg {
    width: 16px;
    height: 16px;
}

/* Иконки соц-сетей (telegram.svg, vk.svg) — белые, делаем их тёмными в светлой теме. */
html[data-theme="light"] .gh-social-btn img {
    filter: brightness(0) saturate(100%);
    opacity: 0.6;
    transition: opacity 0.2s;
}

html[data-theme="light"] .gh-social-btn:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* ----- Модалка вызова ----- */

.gh-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--gh-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gh-modal-overlay[aria-hidden="true"] {
    display: none;
}

.gh-modal-box {
    position: relative;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--gh-shadow-modal);
}

.gh-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gh-text);
    margin-bottom: 8px;
    font-family: var(--gh-font);
}

.gh-modal-sub {
    font-size: 14px;
    color: var(--gh-text-muted);
    margin-bottom: 32px;
    font-family: var(--gh-font);
}

.gh-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gh-text-muted);
    line-height: 1;
    padding: 4px;
}

.gh-modal-close svg {
    width: 22px;
    height: 22px;
}

.gh-modal-close:hover {
    color: var(--gh-text);
}

.gh-form-group {
    margin-bottom: 16px;
}

.gh-form-input {
    width: 100%;
    height: 52px;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: var(--gh-fs-body);
    color: var(--gh-text);
    font-family: var(--gh-font);
    outline: none;
    transition: border-color 0.2s;
}

.gh-form-input:focus {
    border-color: var(--gh-accent);
}

.gh-form-input::placeholder {
    color: var(--gh-text-dim);
}

.gh-form-textarea {
    height: auto;
    resize: vertical;
    min-height: 88px;
}

.gh-form-error {
    color: #c0392b;
    font-size: 13px;
    margin-top: 6px;
}

.gh-form-consent {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.gh-form-checkbox {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--gh-accent);
    cursor: pointer;
}

.gh-form-consent span {
    color: inherit;
}

.gh-form-consent a {
    color: var(--gh-accent-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-form-consent a:hover {
    text-decoration: none;
}

.gh-modal-success {
    text-align: center;
    padding: 24px 0;
}

.gh-modal-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gh-badge);
    color: var(--gh-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-modal-success-icon svg {
    width: 28px;
    height: 28px;
}

/* ----- Главная: hero ----- */

.gh-main {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

.gh-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gh-hero {
    background: var(--gh-hero-bg);
    height: 100vh;
    min-height: 640px;
    padding: 72px var(--gh-section-pad-x) 0;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.gh-hero-inner {
    max-width: var(--gh-max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.gh-hero-text {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gh-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gh-badge);
    color: var(--gh-accent-soft);
    font-size: var(--gh-fs-tag);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.gh-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gh-accent-soft);
    animation: gh-pulse 2s infinite;
}

@keyframes gh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.gh-hero h1 {
    font-size: var(--gh-fs-h1);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 20px;
    color: var(--gh-text);
    font-family: var(--gh-font);
}

.gh-footnote-mark {
    font-size: 0.45em;
    vertical-align: super;
    font-weight: 600;
    margin-left: 2px;
    color: var(--gh-accent-soft);
    line-height: 0;
}

.gh-hero-footnote {
    margin: -16px 0 24px;
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.5;
    max-width: 480px;
}

.gh-hero-footnote sup {
    color: var(--gh-accent-soft);
    font-weight: 700;
}

.gh-hero h1 .gh-accent {
    color: var(--gh-accent-soft);
}

.gh-hero-sub {
    font-size: var(--gh-fs-body-lg);
    color: var(--gh-text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
    max-width: 480px;
}

.gh-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.gh-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.gh-hero-stat-num {
    font-size: var(--gh-fs-stat);
    font-weight: 800;
    color: var(--gh-accent-soft);
    line-height: 1;
}

.gh-hero-stat-label {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

.gh-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    position: relative;
    align-self: stretch;
    min-height: 100%;
}

/* Только для варианта без .gh-hero-auto-img (главная с фото главврача):
   даём picture реальную высоту, чтобы у img height:100% сработал и object-fit
   действительно ограничивал кадр. На страницах с авто (.gh-hero-auto-img)
   правило не применяем — там img растёт по интринсик-пропорции (135%×auto). */
.gh-hero-visual:not(:has(.gh-hero-auto-img)) picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.gh-hero-doctor-img {
    width: 100%;
    height: 100%;
    /* contain + bottom right: при сужении экрана врач не обрезается,
       фигура целиком прижата к правому нижнему углу. Свободное место
       заполняется фоном hero. */
    object-fit: contain;
    object-position: bottom right;
    display: block;
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.12));
    margin-bottom: 0;
}

/* Hero-картинка для страниц с автомобилем (Скорая помощь, Дежурства) —
   машина шире кадра, чтобы хватало визуальной массы. */
.gh-hero-auto-img {
    width: 126%;
    height: 120%;
    /* перебиваем cover из .gh-hero-doctor-img — авто должно показываться целиком,
       а не обрезаться. Position bottom right сохраняет старый кадр (авто
       заходит снизу-справа и слегка вылезает за picture-box за счёт 135%/120%). */
    object-fit: contain;
    object-position: bottom right;
    /* Снимаем drop-shadow от .gh-hero-doctor-img — на первом растре Chrome
       оставлял тонкую полосу по нижней границе img-бокса (135%×120%),
       которая исчезала только после repaint. */
    filter: none;
}


.gh-hero-doctor-badge {
    position: absolute;
    bottom: 24px;
    right: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--gh-shadow-card);
}

[data-theme="dark"] .gh-hero-doctor-badge {
    background: rgba(26, 45, 69, 0.5);
}

.gh-hero-doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gh-badge);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.gh-hero-doctor-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gh-text);
    line-height: 1.2;
}

.gh-hero-doctor-role {
    font-size: 12px;
    color: var(--gh-text);
    margin-top: 2px;
    line-height: 1.2;
}

/* ----- Универсальные секции ----- */

.gh-section {
    padding: var(--gh-section-pad-y) var(--gh-section-pad-x);
    background: var(--gh-bg);
}

.gh-section-alt {
    background: var(--gh-section-alt);
}

.gh-section-inner {
    max-width: var(--gh-max-content);
    margin: 0 auto;
}

.gh-section-label {
    font-size: var(--gh-fs-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gh-accent-soft);
    margin-bottom: 12px;
}

.gh-section-title {
    font-size: var(--gh-fs-h2);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0 0 16px;
    color: var(--gh-text);
    font-family: var(--gh-font);
}

.gh-section-sub {
    font-size: var(--gh-fs-body-lg);
    color: var(--gh-text-muted);
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

.gh-text-center {
    text-align: center;
}

/* ----- Преимущества ----- */

.gh-advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.gh-adv-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 36px;
    transition: background 0.2s, transform 0.2s;
}

.gh-adv-card:hover {
    background: var(--gh-bg-card-hover);
    transform: translateY(-2px);
}

.gh-adv-num {
    font-size: var(--gh-fs-decor);
    font-weight: 800;
    color: var(--gh-accent);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 16px;
}

.gh-adv-title {
    font-size: var(--gh-fs-h3);
    font-weight: 700;
    color: var(--gh-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.gh-adv-text {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.6;
}

/* ----- Услуги (аккордеон) ----- */

.gh-services {
    margin-top: 40px;
}

.gh-service-item {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.gh-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    cursor: pointer;
    transition: background 0.2s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--gh-font);
    color: var(--gh-text);
    gap: 16px;
}

.gh-service-header:hover {
    background: var(--gh-bg-card-hover);
}

.gh-service-title {
    font-size: var(--gh-fs-h3);
    font-weight: 700;
    color: var(--gh-text);
    line-height: 1.3;
}

.gh-service-price {
    font-size: var(--gh-fs-body);
    font-weight: 600;
    color: var(--gh-accent-soft);
    margin-top: 6px;
}

.gh-service-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gh-badge);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--gh-accent);
}

.gh-service-item.is-open .gh-service-arrow {
    transform: rotate(180deg);
}

.gh-service-body {
    padding: 0 32px;
    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding-bottom 0.4s ease;
}

.gh-service-item.is-open .gh-service-body {
    max-height: 720px;
    opacity: 1;
    padding-bottom: 28px;
}

.gh-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.gh-service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gh-text-muted);
    line-height: 1.5;
}

.gh-service-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gh-accent-soft);
    flex-shrink: 0;
    margin-top: 6px;
}

.gh-service-order {
    margin-top: 20px;
}

/* ----- Процесс ----- */

.gh-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.gh-step-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.gh-step-num {
    font-size: var(--gh-fs-decor);
    font-weight: 800;
    color: var(--gh-accent);
    opacity: 0.12;
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.gh-step-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: var(--gh-accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gh-step-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.gh-step-text {
    font-size: var(--gh-fs-body);
    color: var(--gh-text-muted);
    line-height: 1.65;
}

.gh-step-text strong {
    color: var(--gh-text);
    font-weight: 700;
}

/* ----- Stats banner ----- */

.gh-stats-banner {
    background: var(--gh-badge);
    border-top: 1px solid var(--gh-border);
    border-bottom: 1px solid var(--gh-border);
    padding: 60px var(--gh-section-pad-x);
}

.gh-stats-inner {
    max-width: var(--gh-max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}

.gh-stats-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.gh-stats-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding-left: 32px;
    border-left: 1px solid var(--gh-border);
}

.gh-stats-cta-text {
    font-size: var(--gh-fs-body-lg);
    font-weight: 700;
    color: var(--gh-text);
    line-height: 1.3;
}

.gh-stats-cta-phone {
    font-size: var(--gh-fs-h3);
    font-weight: 800;
    color: var(--gh-text);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.5px;
}

.gh-stats-cta-phone:hover {
    color: var(--gh-accent);
}

.gh-btn-stats {
    background: var(--gh-accent);
    color: var(--gh-accent-text);
    border: none;
    cursor: pointer;
    padding: 14px 24px;
    border-radius: var(--gh-radius);
    font-weight: 700;
    font-size: var(--gh-fs-body);
    line-height: 1;
    font-family: var(--gh-font);
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}

.gh-btn-stats:hover {
    background: var(--gh-accent-hover);
    transform: translateY(-1px);
}

.gh-stat-n {
    font-size: var(--gh-fs-stat);
    font-weight: 800;
    color: var(--gh-accent-soft);
    line-height: 1;
}

.gh-stat-l {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.3;
}

/* ----- Оборудование ----- */

.gh-equip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 56px;
    align-items: center;
}

.gh-equip-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gh-equip-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
}

.gh-equip-num {
    font-size: var(--gh-fs-h3);
    font-weight: 800;
    color: var(--gh-accent-soft);
    min-width: 32px;
}

.gh-equip-text {
    font-size: var(--gh-fs-body);
    color: var(--gh-text-muted);
    line-height: 1.5;
}

.gh-equip-image {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: calc(var(--gh-radius) * 2);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.gh-equip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- Достижения ----- */

.gh-ach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.gh-ach-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    overflow: hidden;
}

.gh-ach-img {
    height: 160px;
    background: var(--gh-bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 11px;
    color: var(--gh-text-dim);
    overflow: hidden;
}

.gh-ach-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-ach-body {
    padding: 20px;
}

.gh-ach-title {
    font-size: var(--gh-fs-body);
    font-weight: 700;
    color: var(--gh-text);
    margin-bottom: 6px;
}

.gh-ach-text {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.4;
}

/* ----- Отзывы ----- */

.gh-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}

.gh-review-card {
    display: block;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    width: 100%;
    transition: transform 0.2s, border-color 0.2s;
}

.gh-review-card:hover {
    transform: translateY(-2px);
    border-color: var(--gh-accent);
}

.gh-review-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Лайтбокс отзывов ----- */

.gh-review-lightbox {
    position: fixed;
    inset: 0;
    background: var(--gh-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gh-review-lightbox[aria-hidden="true"] {
    display: none;
}

.gh-review-lightbox-inner {
    position: relative;
    max-width: 560px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-review-lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: var(--gh-radius);
    box-shadow: var(--gh-shadow-modal);
    display: block;
    object-fit: contain;
}

.gh-review-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gh-text);
    transition: background 0.2s;
}

.gh-review-lightbox-close:hover {
    background: var(--gh-bg-card-hover);
}

.gh-review-lightbox-close svg {
    width: 20px;
    height: 20px;
}

/* ----- Лицензии ----- */

.gh-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.gh-license-card {
    display: flex;
    flex-direction: column;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.gh-license-card:hover {
    transform: translateY(-2px);
    border-color: var(--gh-accent);
}

.gh-license-img {
    aspect-ratio: 3 / 4;
    background: var(--gh-bg);
    overflow: hidden;
}

.gh-license-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gh-license-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-license-name {
    font-size: var(--gh-fs-body);
    font-weight: 700;
    color: var(--gh-text);
    line-height: 1.4;
}

.gh-license-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gh-accent-soft);
    font-size: var(--gh-fs-small);
    font-weight: 600;
}

.gh-license-action svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   Page hero — компактный заголовок для внутренних страниц.
   В отличие от .gh-hero (на весь экран) занимает только верх.
   ============================================================ */

.gh-page-hero {
    padding: 132px var(--gh-section-pad-x) 60px;
    background: var(--gh-bg);
}

.gh-page-hero--bg {
    background: linear-gradient(135deg, rgba(232, 240, 254, 0.88) 0%, rgba(219, 234, 254, 0.72) 55%, rgba(239, 246, 255, 0.82) 100%), var(--gh-page-hero-bg-img) center / cover no-repeat;
}

[data-theme="dark"] .gh-page-hero--bg {
    background: linear-gradient(135deg, rgba(13, 27, 46, 0.90) 0%, rgba(10, 32, 64, 0.93) 55%, rgba(9, 24, 48, 0.95) 100%), var(--gh-page-hero-bg-img) center / cover no-repeat;
}

.gh-page-title {
    font-size: var(--gh-fs-h1);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 20px;
    color: var(--gh-text);
    font-family: var(--gh-font);
}

.gh-page-sub {
    font-size: var(--gh-fs-body-lg);
    color: var(--gh-text-muted);
    line-height: 1.6;
    max-width: 760px;
    margin: 0;
}

/* ----- About: текст + числа ----- */

.gh-about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    margin-top: 48px;
    align-items: start;
}

.gh-about-text p {
    font-size: var(--gh-fs-body-lg);
    color: var(--gh-text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.gh-about-text p:last-child {
    margin-bottom: 0;
}

.gh-about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gh-about-stat {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 24px;
}

.gh-about-stat-num {
    font-size: var(--gh-fs-stat);
    font-weight: 800;
    color: var(--gh-accent-soft);
    line-height: 1;
    margin-bottom: 8px;
}

.gh-about-stat-label {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.4;
}

/* ----- Doctor section ----- */

.gh-doctor-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 56px;
    margin-top: 48px;
    align-items: center;
}

.gh-doctor-photo {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gh-doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.gh-doctor-info p {
    font-size: var(--gh-fs-body-lg);
    color: var(--gh-text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.gh-doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.gh-doctor-tag {
    font-size: var(--gh-fs-small);
    font-weight: 600;
    color: var(--gh-accent-soft);
    background: var(--gh-badge);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ----- Иконки в .gh-adv-card (вариант с иконкой вместо номера) ----- */

.gh-adv-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--gh-accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gh-adv-icon svg {
    width: 100%;
    height: 100%;
}

/* ----- Партнёрские стационары ----- */

.gh-hospitals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.gh-hospital-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s, transform 0.15s;
}

.gh-hospital-card:hover {
    border-color: var(--gh-accent-soft);
    transform: translateY(-1px);
}

.gh-hospital-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--gh-badge);
    color: var(--gh-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-hospital-icon svg {
    width: 22px;
    height: 22px;
}

.gh-hospital-name {
    font-size: var(--gh-fs-body);
    font-weight: 700;
    color: var(--gh-text);
    line-height: 1.35;
}

/* ----- Реквизиты ----- */

.gh-requisites-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 8px 32px;
    margin-top: 32px;
}

.gh-requisites-list {
    margin: 0;
    padding: 0;
}

.gh-requisite-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gh-border);
}

.gh-requisite-row:last-child {
    border-bottom: none;
}

.gh-requisite-label {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    margin: 0;
}

.gh-requisite-value {
    font-size: var(--gh-fs-body);
    color: var(--gh-text);
    margin: 0;
    font-weight: 500;
}

.gh-requisite-value a {
    color: var(--gh-accent-soft);
    text-decoration: none;
}

.gh-requisite-value a:hover {
    text-decoration: underline;
}

/* ----- Legal document (соглашение, политика и т.п.) ----- */

.gh-legal-inner {
    max-width: 820px;
}

.gh-legal-doc p {
    font-size: var(--gh-fs-body);
    color: var(--gh-text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.gh-legal-doc p:last-child {
    margin-bottom: 0;
}

.gh-legal-h2 {
    font-size: var(--gh-fs-h3);
    font-weight: 700;
    color: var(--gh-text);
    margin: 40px 0 16px;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
}

.gh-legal-h2:first-child {
    margin-top: 0;
}

.gh-legal-doc {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 40px 48px;
}

/* ----- Партнёры -----
   Логотипы партнёров — белые SVG (для тёмного фона). Чтобы они корректно
   читались в обеих темах, делаем карточки партнёров всегда тёмными. */

.gh-partners {
    background: var(--gh-bg);
    padding: 60px var(--gh-section-pad-x);
}

.gh-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.gh-partner-badge {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 16px 28px;
    font-size: var(--gh-fs-body);
    font-weight: 600;
    color: var(--gh-text-muted);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    min-height: 60px;
}

.gh-partner-badge:hover {
    border-color: var(--gh-accent);
    transform: translateY(-1px);
}

.gh-partner-badge img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

/* Лого партнёров — белые SVG. На светлой теме инвертируем в тёмные. */
html[data-theme="light"] .gh-partner-badge img {
    filter: brightness(0) saturate(100%);
}

/* ----- CTA-секция ----- */

.gh-cta {
    background: var(--gh-bg-card);
    border-top: 1px solid var(--gh-border);
    text-align: center;
    padding: var(--gh-section-pad-y) var(--gh-section-pad-x);
}

.gh-cta-label-wrap {
    max-width: var(--gh-max-content);
    margin: 0 auto 12px;
    text-align: left;
}

.gh-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.gh-cta-text {
    font-size: 17px;
    color: var(--gh-text-muted);
    margin: 0 0 36px;
}

.gh-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Consent banner (152-ФЗ + cookie) ----- */

.gh-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--gh-bg-card);
    border-top: 1px solid var(--gh-border);
    box-shadow: 0 -8px 28px rgba(15, 28, 46, 0.08);
    padding: 18px var(--gh-section-pad-x);
}

.gh-consent[hidden] {
    display: none;
}

.gh-consent-inner {
    max-width: var(--gh-max-content);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.gh-consent-text {
    flex: 1 1 auto;
}

.gh-consent-title {
    font-size: var(--gh-fs-body);
    font-weight: 700;
    color: var(--gh-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.gh-consent-body {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.5;
    margin: 0;
}

.gh-consent-body a {
    color: var(--gh-accent-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-consent-body a:hover {
    text-decoration: none;
}

.gh-consent-btn {
    flex-shrink: 0;
    padding: 12px 28px;
}

@media (max-width: 700px) {
    .gh-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .gh-consent-btn {
        width: 100%;
    }
}

/* ============================================================
   /duty — дежурства на мероприятиях (B2B-страница)
   ============================================================ */

/* Hero — chip с ценой под кнопками. */
.gh-duty-hero-price {
    margin-top: 28px;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 22px;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
}

.gh-duty-hero-price-label {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gh-duty-hero-price-value {
    font-size: var(--gh-fs-h3);
    font-weight: 800;
    color: var(--gh-accent-soft);
}

/* Preserved-блок: типы мероприятий (6 пунктов + 2 овальных фото). */
.gh-duty-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
    align-items: start;
}

.gh-duty-types-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gh-duty-point {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 36px;
    transition: border-color 0.2s, transform 0.15s;
}

.gh-duty-point:hover {
    border-color: var(--gh-accent-soft);
    transform: translateY(-1px);
}

.gh-duty-point-num {
    flex-shrink: 0;
    font-size: var(--gh-fs-h3);
    font-weight: 800;
    color: var(--gh-accent-soft);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-duty-point-text {
    font-size: var(--gh-fs-body);
    color: var(--gh-text);
    font-weight: 600;
    line-height: 1.4;
}

/* Фото бригады — оригинальные PNG уже овальные на прозрачном фоне.
   Никаких border-radius / overflow / background — иначе между PNG-овалом
   и обрезкой остаются белые «спайки». */
.gh-duty-photo {
    width: 100%;
}

.gh-duty-photo--bottom {
    margin-top: 8px;
}

.gh-duty-photo--top {
    margin-bottom: 8px;
}

.gh-duty-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Тарифы. */
.gh-tariffs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}

.gh-tariff {
    position: relative;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gh-tariff:hover {
    border-color: var(--gh-accent-soft);
    transform: translateY(-2px);
}

.gh-tariff--featured {
    border-color: var(--gh-accent);
    border-width: 2px;
    background: var(--gh-bg-card);
    box-shadow: var(--gh-shadow-card);
    /* Приподнимаем рекомендованный тариф над соседями. */
    margin-top: -12px;
    padding-bottom: 40px;
}

.gh-tariff-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--gh-accent);
    color: var(--gh-accent-text);
    font-size: var(--gh-fs-small);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.gh-tariff-name {
    font-size: var(--gh-fs-h3);
    font-weight: 700;
    color: var(--gh-text);
    margin-bottom: 14px;
}

.gh-tariff-price {
    font-size: var(--gh-fs-h3);
    font-weight: 800;
    color: var(--gh-accent-soft);
    line-height: 1.15;
    margin-bottom: 22px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.gh-tariff-price-prefix {
    font-size: var(--gh-fs-small);
    font-weight: 600;
    color: var(--gh-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 2px;
}

.gh-tariff-price-unit {
    font-size: var(--gh-fs-small);
    font-weight: 600;
    color: var(--gh-text-muted);
}

.gh-tariff-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1 1 auto;
}

.gh-tariff-list li {
    position: relative;
    padding-left: 22px;
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
}

.gh-tariff-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gh-accent-soft);
}

.gh-tariff-list strong {
    color: var(--gh-text);
}

/* Preserved-блок: этапы работы (4 шага со смещением + кривые стрелки). */
.gh-duty-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
    position: relative;
    align-items: start;
}

.gh-duty-step {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    /* Мягкая капля: больше радиус по горизонтали, меньше по вертикали — текст
       помещается в широкой средней части без упора в кривые углы. */
    border-radius: 50% / 30%;
    padding: 44px 48px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.gh-duty-step:hover {
    border-color: var(--gh-accent-soft);
    transform: translateY(-2px);
}

/* Чередуем вертикальное смещение шагов для волнообразного flow. */
.gh-duty-step--1 { margin-top: 60px; }
.gh-duty-step--2 { margin-top: 120px; }
.gh-duty-step--3 { margin-top: 0; }
.gh-duty-step--4 { margin-top: 100px; }

.gh-duty-step-num {
    font-size: var(--gh-fs-body);
    font-weight: 800;
    color: var(--gh-accent-soft);
    line-height: 1;
    margin-bottom: 6px;
}

.gh-duty-step-title {
    font-size: var(--gh-fs-body-lg);
    font-weight: 700;
    color: var(--gh-accent-soft);
    margin-bottom: 14px;
    line-height: 1.3;
}

.gh-duty-step-text {
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Форма расчёта дежурства — двухколоночная. */
.gh-duty-form-wrap {
    margin-top: 40px;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 36px 40px;
}

.gh-duty-form .gh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gh-form-label {
    display: block;
    font-size: var(--gh-fs-small);
    color: var(--gh-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

select.gh-form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

/* Расширенная модалка под форму расчёта (шире обычной 460px). */
.gh-modal-box--wide {
    max-width: 640px;
}

@media (max-width: 900px) {
    .gh-duty-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gh-tariffs {
        grid-template-columns: 1fr;
    }

    .gh-duty-process {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gh-duty-step,
    .gh-duty-step--1,
    .gh-duty-step--2,
    .gh-duty-step--3,
    .gh-duty-step--4 {
        margin-top: 0;
        border-radius: var(--gh-radius);
        min-height: 0;
    }

    .gh-duty-form-wrap {
        padding: 28px 24px;
    }

    .gh-duty-form .gh-form-row {
        grid-template-columns: 1fr;
    }
}

/* ----- Плавающая кнопка вызова (FAB) -----
   На десктопе скрыта (CTA в шапке справляется). На мобиле — основной CTA,
   так как из шапки кнопку «Вызвать» убрали ради компактности. */

.gh-call-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 145;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--gh-accent);
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15, 28, 46, 0.28);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, bottom 0.25s;
}

.gh-call-fab:hover,
.gh-call-fab:focus-visible {
    background: var(--gh-accent-hover);
    transform: translateY(-2px);
}

.gh-call-fab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gh-call-fab-text {
    color: inherit;
}

@media (max-width: 700px) {
    .gh-call-fab {
        display: inline-flex;
    }

    /* В шапке мобилы CTA «Вызвать» скрываем — её роль выполняет FAB. */
    .gh-header-right .gh-header-cta {
        display: none;
    }

    /* Стрелку «наверх» поднимаем над FAB, чтобы они не перекрывались. */
    .gh-scroll-top {
        bottom: 76px;
    }

    html.gh-consent-visible .gh-call-fab {
        bottom: 152px;
    }

    html.gh-consent-visible .gh-scroll-top {
        bottom: 212px;
    }
}

/* ----- Scroll-to-top ----- */

.gh-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 140;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gh-accent);
    color: var(--gh-accent-text);
    border: none;
    box-shadow: 0 8px 24px rgba(15, 28, 46, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, bottom 0.25s;
}

.gh-scroll-top[hidden] {
    display: none;
}

.gh-scroll-top:hover {
    background: var(--gh-accent-hover);
    transform: translateY(-2px);
}

.gh-scroll-top svg {
    width: 22px;
    height: 22px;
}

/* Когда показан consent-баннер — стрелка поднимается над ним. */
html.gh-consent-visible .gh-scroll-top {
    bottom: 130px;
}

@media (max-width: 700px) {
    .gh-scroll-top {
        width: 40px;
        height: 40px;
        right: 16px;
        bottom: 16px;
    }

    .gh-scroll-top svg {
        width: 18px;
        height: 18px;
    }

    /* Consent-баннер на мобильном выше из-за вертикального layout. */
    html.gh-consent-visible .gh-scroll-top {
        bottom: 200px;
    }
}

/* ----- Утилиты ----- */

.gh-no-scroll {
    overflow: hidden;
}

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

@media (max-width: 900px) {
    :root {
        --gh-section-pad-y: 70px;
        --gh-section-pad-x: 24px;
    }

    /* Компактная мобильная шапка: уменьшаем высоту и прижимаем содержимое
       ближе к краям экрана — на узком экране каждый пиксель горизонтали важен. */
    .gh-header {
        height: 56px;
        padding: 0;
    }

    .gh-header-inner {
        padding: 0 10px;
    }

    .gh-header-right {
        gap: 6px;
    }

    .gh-logo {
        font-size: 20px;
        gap: 6px;
    }

    .gh-logo-icon {
        height: 22px;
    }

    .gh-nav {
        display: none;
    }

    /* Кнопка «Вызвать» из мобильной шапки убрана (вместо неё FAB),
       поэтому место позволяет показать номер целиком — это главный канал
       конверсии для B2C в стрессе. */
    .gh-header-phone {
        height: 32px;
        padding: 0 8px;
        border-radius: 999px;
        background: transparent;
        border: 1px solid var(--gh-border);
        color: var(--gh-accent-soft);
        gap: 0;
        flex-shrink: 0;
        font-size: 16px;
        font-weight: 600;
    }

    /* Иконку прячем — номер сам по себе понятный CTA, важнее уместить
       его в шапку 375px рядом с логотипом и бейджем 24/7. */
    .gh-header-phone-icon {
        display: none;
    }

    .gh-header-phone-text {
        display: inline;
    }

    /* Бейдж режима работы оставляем компактным — это сигнал доверия
       «можно звонить прямо сейчас», важный для срочных заявок. */
    .gh-header-phone-wrap {
        position: relative;
        gap: 0;
    }

    /* На мобиле «24/7» превращаем в badge-точку поверх кнопки телефона —
       компактнее и привлекает внимание к круглосуточности. */
    .gh-header-phone-wrap .gh-header-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        z-index: 2;
        background: #3a72c4;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 999px;
        line-height: 1.3;
        border: 2px solid var(--gh-bg);
        pointer-events: none;
    }

    .gh-header-badge-full {
        display: none;
    }

    /* На мобиле prim CTA "Вызвать" остаётся, theme-toggle убираем —
       место для гамбургера и компактности. */
    .gh-theme-toggle {
        display: none;
    }

    .gh-hamburger {
        display: block;
        padding: 8px 0 8px 6px;
    }

    /* Сокращаем CTA на мобиле — иначе всё содержимое не помещается в 375px. */
    .gh-header-right .gh-btn-primary.gh-btn-sm {
        padding: 8px 14px;
        font-size: 14px;
    }

    .gh-hero {
        height: auto;
        min-height: 480px;
        max-height: none;
    }

    .gh-hero-inner {
        grid-template-columns: 1fr;
        padding: 60px 0;
        gap: 0;
    }

    .gh-hero-text {
        padding: 0;
    }

    /* Фото врача на мобиле скрываем — компоновка с текстом не помещается без визуальных артефактов. */
    .gh-hero-visual {
        display: none;
    }

    .gh-advantages,
    .gh-process,
    .gh-equip-grid {
        grid-template-columns: 1fr;
    }

    .gh-ach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-stats-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gh-stats-numbers {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-stats-cta {
        padding-left: 0;
        padding-top: 24px;
        border-left: none;
        border-top: 1px solid var(--gh-border);
        align-items: center;
        text-align: center;
    }

    .gh-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .gh-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gh-modal-box {
        padding: 32px 24px;
    }

    .gh-equip-image {
        height: 280px;
    }

    .gh-page-hero {
        padding: 100px var(--gh-section-pad-x) 40px;
    }

    .gh-about-grid,
    .gh-doctor-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gh-doctor-photo {
        max-width: 320px;
        margin: 0 auto;
    }

    .gh-hospitals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-requisites-card {
        padding: 4px 20px;
    }

    .gh-requisite-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 560px) {
    .gh-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gh-ach-grid {
        grid-template-columns: 1fr;
    }

    .gh-service-header {
        padding: 20px 22px;
    }

    .gh-service-body {
        padding: 0 22px;
        padding-bottom: 0;
    }

    .gh-service-item.is-open .gh-service-body {
        padding-bottom: 22px;
    }

    .gh-adv-card,
    .gh-step-card {
        padding: 28px 24px;
    }

    .gh-hospitals-grid,
    .gh-about-stats {
        grid-template-columns: 1fr;
    }
}
