/* ═══════════════════════════════════════════════════════════════
   hallux.ru - ОБЩИЙ ФАЙЛ СТИЛЕЙ
   Единая редакция от 18.10.2026, правка 20.10.2026. Заменяет поле
   «Пользовательские CSS-стили» целиком.

   Правила файла:
   - цвет, шрифт и размер берутся только из токенов раздела 1;
   - новый компонент получает свой раздел, а не «дополнение в конец»;
   - правку существующего компонента вносить в его раздел,
     а не перебивать ниже по файлу;
   - длинное тире не использовать нигде.

   Разделы:
    0. Шрифты
    1. Токены
    2. База
    3. Кнопки
    4. Шапка
    5. Меню разделов
    6. Главная: первый экран, факты, диагнозы, случаи
    7. Главная: как я работаю, об авторе, отзывы, этапы
    8. Главная: образование, FAQ, запись и форма
    9. Страницы диагнозов (hx-path-)
   10. Страница цен (hx-price, hx-num)
   11. Блок цен на главной (#prices)
   12. Плотная страница (hx-dense)
   13. Документы (doc-)
   14. Страницы случаев: крошки и навигация (hx-)
   15. Страницы случаев: система hxc-
   16. Памятка и упражнения (hx-memo), ссылки в тексте
   17. Подвал
   18. Наследие: старые классы вне .hxc

   Порядок разделов важен: памятка и подвал стоят после hxc-
   и hx-dense, иначе их правила для p и a проигрывают.
   ═══════════════════════════════════════════════════════════════ */


/* ═══ 0. ШРИФТЫ ═════════════════════════════════════════════════
   Свои @font-face на загруженные в Tilda файлы. Без них Tilda
   подменяет KazimirText стоковым Kazimir.
   Если файлы шрифтов перезагрузить, адреса сменятся - обновить тут.
   Начертания: KazimirText 400 и 700, курсива нет.
               Inter 400, 500, 600.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: KazimirText;
  src: url("https://static.tildacdn.com/tild3131-6263-4535-a338-633064656666/Kazimir_Text-Regular.woff2") format("woff2"),
       url("https://static.tildacdn.com/tild6562-6533-4437-a236-306138333966/Kazimir_Text-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: KazimirText;
  src: url("https://static.tildacdn.com/tild3664-3630-4739-b331-613234653662/Kazimir_Text-Bold-We.woff2") format("woff2"),
       url("https://static.tildacdn.com/tild3361-3336-4930-a338-323139323237/Kazimir_Text-Bold-We.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("https://static.tildacdn.com/tild6535-3161-4539-b531-386563616631/inter-v20-cyrillic_l.woff2") format("woff2"),
       url("https://static.tildacdn.com/tild6434-6337-4464-a435-306238313936/inter-v20-cyrillic_l.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("https://static.tildacdn.com/tild3465-3964-4466-b936-613863393339/inter-v20-cyrillic_l.woff2") format("woff2"),
       url("https://static.tildacdn.com/tild6261-3935-4636-b530-383562656235/inter-v20-cyrillic_l.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("https://static.tildacdn.com/tild3230-3135-4034-a239-353337393433/inter-v20-cyrillic_l.woff2") format("woff2"),
       url("https://static.tildacdn.com/tild6635-3363-4561-a333-393464366566/inter-v20-cyrillic_l.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ═══ 1. ТОКЕНЫ ═════════════════════════════════════════════════
   Палитра True Winter. Других цветов в файле нет.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* светлый фон */
  --c-white:  #FFFFFF;   /* фон страниц */
  --c-alt:    #EDF1F5;   /* чередующиеся секции, подложки фото */
  --c-nav:    #F7F9FB;   /* полоса меню: светлее --c-alt, чтобы не сливаться */
  --c-ink:    #0E1116;   /* текст и заголовки */
  --c-muted:  #5A6472;   /* подписи, вторичный текст */
  --c-brand:  #23272E;   /* графит: тёмные секции, кнопки */
  --c-line:   #C6CED8;   /* линии и рамки */

  /* акцент */
  --c-accent:      #1B3FA8;                 /* Royal Blue */
  --c-accent-tint: #EEF1FB;                 /* подложка сообщения об ошибке */
  --c-accent-line: rgba(27, 63, 168, 0.35); /* подчёркивание ссылок в тексте */

  /* тёмный фон (графит) */
  --c-dark-text:  rgba(255, 255, 255, 0.82); /* основной текст */
  --c-dark-soft:  rgba(255, 255, 255, 0.72); /* описания */
  --c-dark-muted: rgba(255, 255, 255, 0.55); /* подписи */
  --c-dark-faint: rgba(255, 255, 255, 0.4);  /* служебное: надзаголовки, юридический текст */
  --c-dark-edge:  rgba(255, 255, 255, 0.45); /* контур кнопки, подчёркивание ссылки */
  --c-dark-line:  rgba(198, 206, 216, 0.2);  /* линии и рамки */

  /* поверх контента */
  --c-overlay:    rgba(14, 17, 22, 0.82);    /* подложка лайтбокса */
  --shadow-float: 0 10px 30px rgba(14, 17, 22, 0.18); /* плавающая кнопка */

  /* шрифты */
  --f-head: 'KazimirText', Georgia, serif;   /* веса только 400 и 700 */
  --f-text: 'Inter', system-ui, sans-serif;  /* веса 400, 500, 600 */

  /* кегли */
  --fs-h1:      clamp(28px, 5vw, 52px);
  --fs-h2:      clamp(24px, 2.6vw, 34px);
  --fs-h3:      22px;
  --fs-h4:      19px;   /* заголовки ячеек и аккордеонов */
  --fs-body:    18px;
  --fs-body-s:  17px;   /* второстепенный абзац, на телефоне не меняется */
  --fs-quote:   22px;
  --fs-small:   15px;   /* меню, крошки, навигация между случаями */
  --fs-caption: 14px;   /* подписи, кнопки */
  --fs-note:    13px;   /* мелкие подписи карточек */
  --fs-micro:   12px;   /* надзаголовки прописными */
  --fs-legal:   11px;   /* юридический текст */

  /* сетка */
  --gap-xl:  76px;   /* отступ секции, десктоп */
  --gap-mob: 48px;   /* отступ секции, телефон */
  --wrap:    1240px;
  --pad:     clamp(20px, 5vw, 80px);
}

/* Брейкпоинты сайта (в media-запросах токены не работают):
   1100 / 960 / 900 / 860 / 760 / 720 / 640 / 560 / 480 / 400 */

@media (max-width: 640px) {
  :root { --fs-body: 17px; --fs-quote: 20px; --fs-h3: 20px; }
}


/* ═══ 2. БАЗА ═══════════════════════════════════════════════════ */

.hx-page, .hx-page * { box-sizing: border-box; }
.hx-page input, .hx-page textarea, .hx-page select { font: inherit; }

.hx-page { font-family: var(--f-text); font-size: var(--fs-body); line-height: 1.65; color: var(--c-ink); background: var(--c-white); margin: 0; padding: 0; }

.hx-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.hx-section { padding-top: var(--gap-xl); padding-bottom: var(--gap-xl); }
.hx-section--alt { background: var(--c-alt); }
.hx-section--dark { background: var(--c-brand); color: var(--c-white); }

@media (max-width: 640px) {
  .hx-section { padding-top: var(--gap-mob); padding-bottom: var(--gap-mob); }
}

.hx-rule { border: none; border-top: 1px solid var(--c-line); margin: 0; }

.hx-eyebrow { font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); display: block; margin-bottom: 28px; }
.hx-section--dark .hx-eyebrow { color: var(--c-line); }

h1, h2, h3 { font-family: var(--f-head); letter-spacing: -0.5px; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: var(--fs-h1); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); font-weight: 400; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }


/* ═══ 3. КНОПКИ ═════════════════════════════════════════════════
   Основная кнопка графитовая. Синяя (--accent) - редкое исключение.
   ═══════════════════════════════════════════════════════════════ */

.hx-btn { display: inline-flex; align-items: center; font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 600; padding: 16px 36px; border: 1.5px solid var(--c-brand); background: var(--c-brand); color: var(--c-white); cursor: pointer; border-radius: 2px; transition: background 0.2s, color 0.2s, border-color 0.2s; text-decoration: none; line-height: 1; }
.hx-btn:hover { background: transparent; color: var(--c-brand); }

/* контур */
.hx-btn--outline { background: transparent; color: var(--c-brand); }
.hx-btn--outline:hover { background: var(--c-brand); color: var(--c-white); }

/* белая, для тёмной секции */
.hx-btn--inv { border-color: var(--c-white); background: var(--c-white); color: var(--c-brand); }
.hx-btn--inv:hover { background: transparent; color: var(--c-white); }

/* синяя */
.hx-btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }
.hx-btn--accent:hover { background: transparent; color: var(--c-accent); }

/* светлый контур, для тёмной секции */
.hx-btn--line { background: transparent; border-color: var(--c-dark-edge); color: var(--c-white); }
.hx-btn--line:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-brand); }

/* --- кнопка отправки формы Tilda --------------------------------
   Классы Tilda t-submit и t-btnflex грузятся позже и перебивают
   фон и рамку. Правило возвращает вид .hx-btn.
   ---------------------------------------------------------------- */
.hx-page button.hx-btn,
.hx-page .t-form button.hx-btn,
.hx-page button.hx-btn.t-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 16px 36px !important;
  border: 1.5px solid var(--c-brand) !important;
  border-radius: 2px !important;
  background: var(--c-brand) !important;
  background-image: none !important;
  color: var(--c-white) !important;
  font-family: var(--f-text) !important;
  font-size: var(--fs-caption) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hx-page button.hx-btn:hover,
.hx-page button.hx-btn.t-submit:hover {
  background: transparent !important;
  color: var(--c-brand) !important;
}
/* текст кнопки Tilda кладёт в отдельный span */
.hx-page button.hx-btn .t-btnflex__text {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}
@media (max-width: 480px) {
  .hx-page button.hx-btn,
  .hx-page button.hx-btn.t-submit { width: 100% !important; }
}


/* ═══ 4. ШАПКА ══════════════════════════════════════════════════
   Имя полное на всех экранах. До 720px должность сокращается
   до «к.м.н. · хирург стопы». Мессенджеры Max, Telegram, WhatsApp
   видны всегда, на узком экране - только иконками.
   Кнопка «Записаться» до 640px уходит: внизу висит .hx-sticky-cta.
   ═══════════════════════════════════════════════════════════════ */

.hx-sticky-top { position: sticky; top: 0; z-index: 100; background: var(--c-white); }

.hx-header { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.hx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.hx-header__brand { flex: 1 1 auto; min-width: 0; }

a.hx-header__brand { display: block; text-decoration: none; color: inherit; }
a.hx-header__brand:hover .hx-header__name { color: var(--c-accent); }
a.hx-header__brand:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.hx-header__name { font-family: var(--f-head); font-size: var(--fs-body); font-weight: 400; letter-spacing: -0.5px; color: var(--c-ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-header__role { font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-header__short { display: none; }

.hx-header__right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hx-header__sep { width: 1px; height: 28px; background: var(--c-line); margin: 0 6px; flex-shrink: 0; }

/* --- мессенджер-таблетка (шапка и блок записи) --- */
.hx-msg-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 500; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 2px; padding: 7px 13px 7px 10px; white-space: nowrap; text-decoration: none; line-height: 1; transition: border-color 0.18s, background 0.18s, color 0.18s; background: var(--c-white); }
.hx-msg-pill:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-white); }
.hx-msg-pill:hover .hx-msg-pill__icon { filter: brightness(10); }
.hx-msg-pill__icon { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; transition: filter 0.18s; }
.hx-msg-pill__icon svg { display: block; width: 18px; height: 18px; }
.hx-msg-pill__label { font-size: var(--fs-caption); }

.hx-header__cta { display: inline-flex; align-items: center; font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 600; padding: 9px 20px; border: 1.5px solid var(--c-brand); background: var(--c-brand); color: var(--c-white); border-radius: 2px; text-decoration: none; line-height: 1; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.hx-header__cta:hover { background: transparent; color: var(--c-brand); }

@media (max-width: 1100px) {
  .hx-msg-pill { padding: 6px 10px 6px 8px; }
  .hx-msg-pill__icon { width: 16px; height: 16px; }
  .hx-msg-pill__icon svg { width: 16px; height: 16px; }
}

/* Вне шапки и блока записи таблетки уходят по одной:
   до 900px WhatsApp, до 560px Telegram. Max остаётся всегда. */
@media (max-width: 900px) {
  .hx-msg-pill--wa { display: none; }
}
@media (max-width: 560px) {
  .hx-msg-pill--tg { display: none; }
  .hx-header__sep { display: none; }
}

/* В шапке видны все три на любой ширине. */
.hx-header__right .hx-msg-pill--max,
.hx-header__right .hx-msg-pill--tg,
.hx-header__right .hx-msg-pill--wa { display: inline-flex; }

@media (max-width: 720px) {
  .hx-header__inner { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .hx-header__right { gap: 5px; }
  .hx-header__name { font-size: 16px; }
  .hx-header__role { font-size: var(--fs-note); }
  .hx-header__full { display: none; }
  .hx-header__short { display: inline; }
  .hx-msg-pill__label { display: none; }
  .hx-msg-pill { padding: 8px 9px; }
}

@media (max-width: 640px) {
  .hx-header__cta { display: none; }
  /* на телефоне липкой остаётся только строка с именем,
     меню разделов уезжает вверх при прокрутке */
  .hx-sticky-top { position: static; }
  .hx-header { position: sticky; top: 0; z-index: 100; }
}

@media (max-width: 480px) {
  .hx-header__right { gap: 4px; }
  .hx-msg-pill { padding: 7px 8px; }
}

@media (max-width: 400px) {
  .hx-header__name { font-size: var(--fs-small); letter-spacing: -0.6px; }
  .hx-header__role { font-size: var(--fs-micro); }
}


/* ═══ 5. МЕНЮ РАЗДЕЛОВ ══════════════════════════════════════════
   Ссылки серые, активный пункт графитовый, синий - только наведение.
   ═══════════════════════════════════════════════════════════════ */

.hx-nav { position: relative; background: var(--c-nav); border-bottom: 1px solid var(--c-line); height: 52px; overflow: auto hidden; scrollbar-width: none; }
.hx-nav::-webkit-scrollbar { display: none; }

.hx-nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-wrap: nowrap; align-items: center; height: 100%; gap: 28px; white-space: nowrap; }

/* поля 18px расширяют зону нажатия, отрицательные - гасят их */
.hx-nav__link { font-family: var(--f-text); font-size: var(--fs-small); font-weight: 400; color: var(--c-muted); text-decoration: none; line-height: 1; flex-shrink: 0; transition: color 0.15s; padding: 18px 0; margin: -18px 0; }
.hx-nav__link.is-active { color: var(--c-ink); font-weight: 500; }
.hx-nav__link:hover { color: var(--c-accent); }

.hx-nav__fade { position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, var(--c-nav)); pointer-events: none; z-index: 2; }

.hx-nav__short { display: none; }

@media (max-width: 640px) {
  .hx-nav__link { font-size: var(--fs-caption); }
  .hx-nav__inner { gap: 20px; }
  .hx-nav__full { display: none; }
  .hx-nav__short { display: inline; }
}


/* ═══ 6. ГЛАВНАЯ: ПЕРВЫЙ ЭКРАН, ФАКТЫ, ДИАГНОЗЫ, СЛУЧАИ ═════════ */

/* --- первый экран --- */
.hx-hero { min-height: 76vh; display: grid; grid-template-columns: 1fr 44%; align-items: end; overflow: hidden; background: var(--c-white); padding-top: 0; padding-bottom: 0; }
.hx-hero__content { padding: 80px var(--pad) 80px var(--pad); align-self: center; max-width: 560px; }
.hx-hero__label { font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 24px; }
.hx-hero__title { font-size: clamp(32px, 5vw, 52px); font-family: var(--f-head); font-weight: 400; letter-spacing: -0.5px; line-height: 1.1; color: var(--c-ink); margin: 0 0 28px; text-wrap: balance; }
/* курсива у KazimirText нет: браузер наклоняет прямое начертание,
   на антикве это заметно. Пока курсив не куплен - акцент цветом. */
.hx-hero__title em { font-style: normal; color: var(--c-accent); }
.hx-hero__sub { font-family: var(--f-text); font-size: var(--fs-body); line-height: 1.65; color: var(--c-muted); margin-bottom: 44px; max-width: 440px; }
.hx-hero__photo { height: 100%; min-height: 72vh; overflow: hidden; position: relative; }
.hx-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

@media (max-width: 960px) {
  .hx-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: auto; }
  .hx-hero__photo { order: -1; min-height: 55vw; max-height: 480px; }
  .hx-hero__content { padding: 44px var(--pad) 60px; max-width: 100%; }
}

/* Tilda вешает на картинки свои размеры - возвращаем заполнение */
.hx-hero__photo img, .hx-cases__img img { width: 100% !important; height: 100% !important; min-height: 0 !important; object-fit: cover !important; }

/* --- тёмная полоса с фактами --- */
.hx-facts { padding-top: 0; padding-bottom: 0; background: var(--c-brand); }
.hx-facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hx-facts__item { padding: 48px 40px; border-right: 1px solid var(--c-dark-line); }
.hx-facts__item:last-child { border-right: none; }
.hx-facts__num { font-family: var(--f-head); font-size: var(--fs-h1); font-weight: 400; letter-spacing: -0.5px; color: var(--c-white); line-height: 1; margin-bottom: 8px; }
.hx-facts__label { font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-dark-soft); line-height: 1.5; }

@media (max-width: 760px) {
  .hx-facts__grid { grid-template-columns: 1fr; }
  .hx-facts__item { border-right: none; border-bottom: 1px solid var(--c-dark-line); padding: 36px 32px; }
  .hx-facts__item:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .hx-facts__item { padding: 28px 20px; }
}

/* --- плитки диагнозов --- */
.hx-cond__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); margin-top: 48px; }
.hx-cond__tile { border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 18px 20px; display: flex; align-items: center; cursor: pointer; text-decoration: none; color: var(--c-ink); transition: background 0.28s; }
.hx-cond__tile:hover { background: var(--c-alt); }
.hx-cond__tile-body { display: flex; flex-direction: row; align-items: center; gap: 14px; flex: 1 1 0%; }
.hx-cond__icon-slot { width: 34px; height: 34px; flex-shrink: 0; margin: 0; }
.hx-cond__icon { width: 100%; height: 100%; display: block; overflow: visible; transition: transform 0.28s; }
.hx-cond__title { font-family: var(--f-head); font-size: var(--fs-body-s); font-weight: 400; letter-spacing: -0.4px; line-height: 1.3; }
/* народное название под заголовком плитки */
.hx-cond__note { display: block; margin-top: 5px; font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--c-muted); }
.hx-cond__foot, .hx-creds__foot { margin-top: 22px; }

.hx-cond__tile:hover .hx-cond__icon { transform: scale(1.06); }

/* иконки: графит, при наведении синие; на сенсорных экранах сразу синие */
.hx-cond__icon .ft-acc { stroke: var(--c-brand); fill: none; transition: stroke .28s ease, fill .28s ease; }
.hx-cond__icon .ft-acc--fill { fill: var(--c-brand); stroke: none; }
.hx-cond__tile:hover .hx-cond__icon .ft-acc { stroke: var(--c-accent); }
.hx-cond__tile:hover .hx-cond__icon .ft-acc--fill { fill: var(--c-accent); stroke: none; }

@media (hover: none) {
  .hx-cond__tile:hover .hx-cond__icon { transform: none; }
  .hx-cond__icon .ft-acc { stroke: var(--c-accent); }
  .hx-cond__icon .ft-acc--fill { fill: var(--c-accent); stroke: none; }
}

/* стрелка на плитках, у которых есть своя страница */
.hx-cond__tile.is-linked .hx-cond__tile-body::after { content: "→"; margin-left: auto; padding-left: 12px; flex-shrink: 0; font-family: var(--f-text); font-size: 16px; line-height: 1; color: var(--c-accent); opacity: 0.55; transition: opacity .2s, transform .2s; }
.hx-cond__tile.is-linked:hover .hx-cond__tile-body::after { opacity: 1; transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .hx-cond__tile, .hx-cond__icon { transition: none; }
  .hx-cond__tile:hover .hx-cond__icon { transform: none; }
  .hx-cond__tile.is-linked .hx-cond__tile-body::after { transition: none; }
  .hx-cond__tile.is-linked:hover .hx-cond__tile-body::after { transform: none; }
}

@media (max-width: 1100px) {
  .hx-cond__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hx-cond__grid { grid-template-columns: 1fr; margin-top: 32px; }
  .hx-cond__tile { padding: 14px 16px; }
  .hx-cond__icon-slot { width: 30px; height: 30px; }
  .hx-cond__title { font-size: 16px; }
}

/* --- карусель случаев --- */
.hx-cases__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.hx-cases__header-left { flex: 1 1 0%; }
.hx-cases__nav { display: flex; gap: 8px; flex-shrink: 0; padding-top: 8px; }

.hx-cases__btn { width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, opacity 0.2s; flex-shrink: 0; padding: 0; }
.hx-cases__btn svg { display: block; width: 18px; height: 18px; color: var(--c-ink); transition: color 0.2s; }
.hx-cases__btn.is-disabled { border-color: var(--c-line); cursor: default; opacity: 0.45; pointer-events: none; }
.hx-cases__btn.is-disabled svg { color: var(--c-line); }
.hx-cases__btn:not(.is-disabled):hover { border-color: var(--c-ink); }

.hx-cases__grid { display: flex; flex-wrap: nowrap; overflow: auto hidden; gap: 24px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.hx-cases__grid::-webkit-scrollbar { display: none; }
.hx-cases__card { flex: 0 0 auto; width: calc(29.8507% - 21.4925px); scroll-snap-align: start; display: flex; flex-direction: column; }

/* Плитка режет коллаж под 4/3. Когда все коллажи будут на холсте
   1600x1356 - заменить 4 / 3 на 1600 / 1356, обрезка исчезнет. */
.hx-cases__img { width: 100%; aspect-ratio: 4 / 3; background: var(--c-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden; position: relative; }
.hx-cases__img-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--c-muted); font-size: var(--fs-micro); font-family: var(--f-text); text-align: center; }
.hx-cases__img-label span { display: flex; align-items: center; gap: 8px; font-size: var(--fs-micro); letter-spacing: 0.4px; text-transform: uppercase; }
.hx-cases__img-label span::before, .hx-cases__img-label span::after { content: ""; display: block; height: 1px; width: 32px; background: var(--c-line); }

/* подписи «до / после» под снимком */
.hx-cases__labels { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -14px 0 16px; font-family: var(--f-text); font-size: var(--fs-micro); letter-spacing: 0.4px; color: var(--c-muted); text-align: center; }
.hx-cases__labels span { display: block; }

.hx-cases__age { font-family: var(--f-text); font-size: var(--fs-micro); color: var(--c-muted); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 8px; }
.hx-cases__desc { font-size: var(--fs-caption); line-height: 1.55; color: var(--c-ink); margin-bottom: 16px; flex: 1 1 0%; }

/* ссылка-подчёркивание прописными: общий вид «текстовой ссылки» сайта */
.hx-cases__link { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-accent); border-bottom: 1px solid var(--c-accent); display: inline-block; padding-bottom: 2px; align-self: flex-start; transition: color 0.15s, border-color 0.15s; }
.hx-cases__link:hover { color: var(--c-brand); border-color: var(--c-brand); }

.hx-cases__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.hx-cases__counter { font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-muted); line-height: 1; }
.hx-cases__all-link { font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 500; color: var(--c-accent); line-height: 1; transition: opacity 0.15s; }
.hx-cases__all-link:hover { opacity: 0.7; }

@media (max-width: 1100px) {
  .hx-cases__card { width: calc(62.5% - 15px); }
  .hx-cases__nav { display: none; }
}
@media (max-width: 640px) {
  .hx-cases__card { width: calc(100% - 40px); }
  .hx-cases__header { margin-bottom: 28px; }
}


/* ═══ 7. ГЛАВНАЯ: КАК Я РАБОТАЮ, ОБ АВТОРЕ, ОТЗЫВЫ, ЭТАПЫ ═══════ */

/* --- как я работаю ---
   Абзацы прямым начертанием: синяя черта и линейки между абзацами
   уже выделяют блок. На страницах диагнозов .hx-how__para не ставить. */
.hx-how__inner { display: grid; grid-template-columns: 38% 1fr; gap: 60px; align-items: start; margin-top: 56px; }
.hx-how__photo { width: 100%; aspect-ratio: 4 / 5; background: var(--c-alt); overflow: hidden; }
.hx-how__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-how__column { width: 100%; }
.hx-how__para { display: flex; gap: 28px; align-items: flex-start; }
.hx-how__para-bar { flex-shrink: 0; width: 2px; background: var(--c-accent); align-self: stretch; min-height: 1em; }
.hx-how__para-text { font-family: var(--f-head); font-size: var(--fs-h4); font-style: normal; font-weight: 400; line-height: 1.6; letter-spacing: -0.3px; color: var(--c-ink); margin: 0; flex: 1 1 0%; }
.hx-how__divider { border: none; border-top: 1px solid var(--c-line); margin: 26px 0; }
.hx-how__signature { font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-muted); margin-top: 40px; display: block; }

@media (max-width: 860px) {
  .hx-how__inner { grid-template-columns: 1fr; gap: 32px; }
  .hx-how__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 780px) {
  .hx-how__para { gap: 20px; }
}
@media (max-width: 640px) {
  .hx-how__para-text { font-size: 18px; }
}

/* --- об авторе --- */
.hx-about__layout { display: grid; grid-template-columns: 1fr 640px; gap: 80px; align-items: start; }
.hx-about__media { position: sticky; top: 110px; }
.hx-about__text { max-width: 640px; }
.hx-about__text h2 { margin-bottom: 36px; }
.hx-about__text p { color: var(--c-ink); font-size: var(--fs-body); }
.hx-about__player { width: 100%; position: relative; overflow: hidden; }
.hx-about__player-caption { font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-muted); margin-top: 10px; display: block; }

/* выделенная цитата: синяя черта слева */
.hx-about__pull { display: flex; gap: 24px; align-items: flex-start; margin: 0 0 1.2em; }
.hx-about__pull-bar { flex-shrink: 0; width: 2px; background: var(--c-accent); align-self: stretch; min-height: 1em; }
.hx-about__pull-text { font-family: var(--f-head); font-size: var(--fs-quote); font-style: italic; font-weight: 400; line-height: 1.55; color: var(--c-ink); margin: 0; flex: 1 1 0%; }

@media (max-width: 1100px) {
  .hx-about__layout { grid-template-columns: 1fr; gap: 48px; }
  .hx-about__media { position: static; max-width: 680px; }
  .hx-about__text { max-width: 100%; }
}

/* --- отзывы ---
   Наверху одна фраза крупно (__lead), полный текст ниже мелким. */
.hx-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); margin-top: 56px; }
.hx-reviews__card { padding: 40px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); display: flex; flex-direction: column; background: var(--c-white); }
.hx-reviews__quote-mark { font-family: var(--f-head); font-size: var(--fs-h1); line-height: 1; color: var(--c-accent); opacity: 0.18; margin-bottom: 4px; margin-left: -4px; display: block; user-select: none; }
.hx-reviews__lead { font-family: var(--f-head); font-size: 21px; font-weight: 400; font-style: normal; letter-spacing: -0.3px; line-height: 1.35; color: var(--c-ink); margin: 0 0 18px; text-wrap: balance; }
.hx-reviews__body { position: relative; flex: 1 1 0%; }
.hx-reviews__body--collapsed { max-height: 126px; overflow: hidden; }
.hx-reviews__body--collapsed::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 52px; background: linear-gradient(rgba(255, 255, 255, 0) 0%, var(--c-white) 100%); pointer-events: none; }
.hx-reviews__text { font-family: var(--f-text); font-style: normal; font-size: var(--fs-caption); line-height: 1.6; color: var(--c-muted); margin: 0; }

.hx-reviews__toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-accent); transition: color 0.15s; align-self: flex-start; }
.hx-reviews__toggle:hover { color: var(--c-brand); }
.hx-reviews__toggle-icon { display: inline-block; transition: transform 0.25s; font-style: normal; }
.hx-reviews__toggle--open .hx-reviews__toggle-icon { transform: rotate(180deg); }

.hx-reviews__meta { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.hx-reviews__phone { display: block; font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 600; color: var(--c-ink); margin-bottom: 5px; }
.hx-reviews__source { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-accent); opacity: 0.7; }
.hx-reviews__source::before { content: ""; display: inline-block; width: 16px; height: 1px; background: currentcolor; flex-shrink: 0; }

.hx-reviews__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.hx-reviews__foot-text { font-family: var(--f-text); font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); max-width: 560px; }
.hx-reviews__foot-link { font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-accent); border-bottom: 1px solid var(--c-accent); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.hx-reviews__foot-link:hover { color: var(--c-brand); border-color: var(--c-brand); }

@media (max-width: 960px) {
  .hx-reviews__grid { grid-template-columns: 1fr; border-left: none; border-right: none; }
  .hx-reviews__card { border-right: none; padding: 32px 0; }
  .hx-reviews__card:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .hx-reviews__card { padding: 28px 0; }
  .hx-reviews__lead { font-size: var(--fs-h4); }
}

/* --- фотополоса --- */
.hx-strip { width: 100%; background: var(--c-alt); }
.hx-strip img { width: 100%; height: 380px; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .hx-strip img { height: 220px; }
}

/* --- этапы: синяя линия с точками --- */
.hx-steps__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 64px; border-top: 2px solid var(--c-accent); position: relative; }
.hx-steps__step { padding-top: 32px; padding-right: 24px; position: relative; }
.hx-steps__step::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); }
.hx-steps__num { font-family: var(--f-head); font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.5px; color: var(--c-accent); line-height: 1; margin-bottom: 12px; }
.hx-steps__title { font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 600; color: var(--c-ink); margin-bottom: 8px; }
.hx-steps__desc { font-size: var(--fs-caption); color: var(--c-muted); line-height: 1.6; }
.hx-steps__note { max-width: 720px; margin: 14px 0 0; font-family: var(--f-text); font-size: var(--fs-caption); line-height: 1.6; color: var(--c-muted); }
/* две ссылки под блоком «Как проходит операция» */
.hx-steps__foot { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; }

@media (max-width: 960px) {
  .hx-steps__track { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hx-steps__track { grid-template-columns: 1fr; }
  .hx-steps__step { padding-bottom: 28px; border-bottom: 1px solid var(--c-line); }
  .hx-steps__step::before { display: none; }
  .hx-steps__foot { margin-top: 24px; }
}


/* ═══ 8. ГЛАВНАЯ: ОБРАЗОВАНИЕ, FAQ, ЗАПИСЬ И ФОРМА ══════════════ */

/* --- аккордеон «Образование и наука» --- */
.hx-creds__accordion { margin-top: 56px; border-top: 1px solid var(--c-line); }
.hx-creds__acc-item { border-bottom: 1px solid var(--c-line); }
.hx-creds__acc-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--f-head); font-size: var(--fs-h4); font-weight: 400; letter-spacing: -0.4px; color: var(--c-ink); line-height: 1.3; transition: color 0.15s; }
.hx-creds__acc-header:hover { color: var(--c-accent); }
.hx-creds__acc-icon { flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--c-accent); font-weight: 400; font-family: var(--f-text); width: 24px; text-align: center; transition: transform 0.2s; }
.hx-creds__acc-content { overflow: hidden; max-height: 0; transition: max-height 0.35s; }
.hx-creds__acc-list { list-style: none; padding: 0; margin: 0 0 28px; }
.hx-creds__acc-list li { font-size: var(--fs-caption); line-height: 1.6; padding: 12px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.hx-creds__acc-list li:last-child { border-bottom: none; }

/* --- FAQ ---
   Скрипт в HEAD переключает aria-expanded, класс не ставит.
   Поэтому раскрытое состояние описано через [aria-expanded="true"]. */
.hx-faq__list { margin-top: 56px; border-top: 1px solid var(--c-line); }
.hx-faq__item { border-bottom: 1px solid var(--c-line); }
.hx-faq__question { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: var(--f-head); font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.5px; color: var(--c-ink); }
.hx-faq__question:hover { color: var(--c-accent); }
.hx-faq__question[aria-expanded="true"] { color: var(--c-accent); }

.hx-faq__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; color: var(--c-muted); }
.hx-faq__icon::before, .hx-faq__icon::after { content: ""; position: absolute; background: currentcolor; border-radius: 1px; transition: transform 0.25s, opacity 0.25s; }
.hx-faq__icon::before { width: 20px; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.hx-faq__icon::after { width: 1.5px; height: 20px; left: 50%; top: 0; transform: translateX(-50%); }
.hx-faq__question[aria-expanded="true"] .hx-faq__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.hx-faq__answer { overflow: hidden; max-height: 0; transition: max-height 0.35s; }
.hx-faq__answer-inner { padding-bottom: 28px; font-size: var(--fs-body); line-height: 1.7; color: var(--c-muted); max-width: 780px; }

/* --- блок записи --- */
.hx-booking__photo { width: 100%; aspect-ratio: 16 / 6; background: var(--c-alt); overflow: hidden; margin-bottom: 40px; }
.hx-booking__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-booking__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.hx-booking__form-wrap h2 { margin-bottom: 36px; }
.hx-booking__info { padding-top: 12px; }
.hx-booking__addr-name { font-family: var(--f-head); font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.5px; margin-bottom: 6px; }
.hx-booking__addr-text { font-size: var(--fs-caption); color: var(--c-muted); line-height: 1.55; margin-bottom: 16px; }

.hx-booking__map-area { width: 100%; aspect-ratio: 12 / 7; background: var(--c-alt); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; margin-bottom: 8px; }
.hx-booking__map-area img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-booking__map-link-wrap { display: block; text-decoration: none; margin-bottom: 8px; }
.hx-booking__map-link-wrap .hx-booking__map-area { margin-bottom: 0; }
.hx-booking__map-placeholder { font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-muted); text-align: center; padding: 16px; }
.hx-booking__map-link { display: inline-block; font-family: var(--f-text); font-size: var(--fs-caption); color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 32px; }
.hx-booking__map-link:hover { opacity: 0.75; }
.hx-booking__info-sep { border: none; border-top: 1px solid var(--c-line); margin: 32px 0; }

/* строка мессенджеров под формой: все три и всегда с подписями */
.hx-booking__msgs { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.hx-booking__msgs-label { display: block; max-width: 460px; margin-bottom: 14px; font-family: var(--f-text); font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); }
.hx-booking__msgs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-booking__msgs .hx-msg-pill,
.hx-booking__msgs .hx-msg-pill--max,
.hx-booking__msgs .hx-msg-pill--tg,
.hx-booking__msgs .hx-msg-pill--wa { display: inline-flex !important; padding: 10px 16px 10px 12px; }
.hx-booking__msgs .hx-msg-pill__label { display: inline !important; }

@media (max-width: 960px) {
  .hx-booking__layout { grid-template-columns: 1fr; gap: 56px; }
}

/* --- форма --- */
.hx-form { font-family: var(--f-text); }
.hx-form input, .hx-form textarea, .hx-form select { font: inherit; }

.vb-input-group { margin-bottom: 20px; position: relative; }
.vb-input-group label { display: block; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 8px; font-family: var(--f-text); }
.vb-input-group input, .vb-input-group textarea { width: 100%; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 2px; padding: 14px 18px; font-size: var(--fs-caption); color: var(--c-ink); outline: none; transition: border-color 0.15s; font-family: var(--f-text); }
.vb-input-group input:focus, .vb-input-group textarea:focus { border-color: var(--c-accent); }
.vb-input-group textarea { resize: vertical; min-height: 100px; }

/* ошибки на сайте синие, красного в палитре нет */
.t-input-error { font-size: var(--fs-micro); color: var(--c-accent); margin-top: 4px; min-height: 18px; font-family: var(--f-text); }

/* подпись группы полей */
.hx-form__ch-label { font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 8px; }

/* выбор мессенджера: текстовые пилюли, выбранная - графит */
.hx-form__ch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hx-form__ch-item { position: relative; display: inline-flex; }
.hx-form__ch-item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hx-form__ch-face { display: inline-flex; align-items: center; padding: 11px 20px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 2px; font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 500; line-height: 1; color: var(--c-muted); white-space: nowrap; transition: background 0.18s, border-color 0.18s, color 0.18s; }
.hx-form__ch-item:hover .hx-form__ch-face { border-color: var(--c-ink); color: var(--c-ink); }
.hx-form__ch-item input:checked + .hx-form__ch-face { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-white); }
.hx-form__ch-item input:focus-visible + .hx-form__ch-face { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* галочки: согласие и «позвоните» - одна механика */
.hx-form__consent { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 28px; cursor: pointer; }
.hx-form__pref { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 24px; cursor: pointer; }

.hx-form__consent input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; border: 1.5px solid var(--c-line); border-radius: 2px; appearance: none; cursor: pointer; margin-top: 2px; position: relative; background: var(--c-white); transition: border-color 0.15s, background 0.15s; }
.hx-form__pref input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 0; border: 1.5px solid var(--c-line); border-radius: 2px; appearance: none; background: var(--c-white); cursor: pointer; position: relative; transition: border-color 0.15s, background 0.15s; }

.hx-form__consent input[type="checkbox"]:checked,
.hx-form__pref input[type="checkbox"]:checked { background: var(--c-accent); border-color: var(--c-accent); }

.hx-form__consent input[type="checkbox"]:checked::after,
.hx-form__pref input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 6px; height: 10px; border: solid var(--c-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hx-form__consent-text,
.hx-form__pref-text { font-size: var(--fs-caption); color: var(--c-muted); line-height: 1.55; font-family: var(--f-text); }
.hx-form__consent-text a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

/* сообщения Tilda после отправки */
.js-successbox { background: var(--c-alt); border: 1px solid var(--c-line); border-radius: 2px; padding: 24px 28px; font-size: var(--fs-body); line-height: 1.6; color: var(--c-accent); font-family: var(--f-text); }
.js-errorbox-all { background: var(--c-accent-tint); border: 1px solid var(--c-accent); border-radius: 2px; padding: 16px 20px; margin-bottom: 16px; font-size: var(--fs-caption); color: var(--c-accent); font-family: var(--f-text); }


/* ═══ 9. СТРАНИЦЫ ДИАГНОЗОВ (/patologii/...) ═══════════════════
   Префикс hx-path-. Эталон - страница невромы Мортона.
   ═══════════════════════════════════════════════════════════════ */

/* --- шапка страницы --- */
.hx-path-head { max-width: 820px; }
.hx-path-head h1 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 24px; }
.hx-path-lead { font-family: var(--f-text); font-size: var(--fs-quote); line-height: 1.55; color: var(--c-muted); margin: 0 0 36px; }

/* --- текстовая колонка --- */
.hx-path-body { max-width: 780px; }

/* --- список с синим штрихом --- */
.hx-path-list { list-style: none; padding: 0; margin: 0; max-width: 780px; }
.hx-path-list li { position: relative; padding-left: 26px; margin-bottom: 14px; line-height: 1.65; }
.hx-path-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--c-accent); }
.hx-path-list li:last-child { margin-bottom: 0; }

/* --- сетка «название + описание» --- */
.hx-path-dl { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); margin-top: 48px; }
.hx-path-dl__item { border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 28px; }
.hx-path-dl__term { font-family: var(--f-head); font-size: var(--fs-h4); font-weight: 400; letter-spacing: -0.4px; line-height: 1.3; margin-bottom: 10px; }
.hx-path-dl__desc { font-size: var(--fs-caption); line-height: 1.6; color: var(--c-muted); }
@media (max-width: 760px) {
  .hx-path-dl { grid-template-columns: 1fr; margin-top: 32px; }
  .hx-path-dl__item { padding: 22px 20px; }
}

/* --- подраздел внутри секции --- */
.hx-path-block { max-width: 780px; padding-top: 36px; }
.hx-path-block:first-of-type { padding-top: 0; }
.hx-path-block + .hx-path-block { border-top: 1px solid var(--c-line); }
.hx-path-block h3 { margin-bottom: 16px; }

/* --- подраздел с вертикальным видео справа ---
   Внутри два текстовых div и aside с видео между ними.
   На компьютере видео стоит справа и прилипает при прокрутке,
   на телефоне встаёт между первым и вторым div. */
.hx-path-block--media { max-width: 1076px; display: grid; grid-template-columns: minmax(0, 780px) 240px; gap: 0 56px; align-items: start; }
.hx-path-block--media > div { min-width: 0; }
.hx-path-block .hx-memo-dose { margin: 0 0 1.2em !important; }
.hx-path-block__media { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 140px; }
@media (max-width: 960px) {
  .hx-path-block--media { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .hx-path-block__media { grid-column: auto; grid-row: auto; position: static; max-width: 260px; margin-bottom: 20px; }
}

/* --- вертикальное видео: плеер Kinescope, VK, Rutube --- */
.hx-path-video { position: relative; width: 100%; aspect-ratio: 9 / 16; background: var(--c-alt); border: 1px solid var(--c-line); }
.hx-path-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hx-path-video__cap { margin: 12px 0 0; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); }

/* --- рисунок: снимок или схема с подписью ---
   Файлы два, через : широкий для компьютера
   и плотный кадр для телефона. На телефоне рисунок
   выходит в край экрана, подпись остаётся в колонке. */
.hx-path-figure { max-width: 780px; margin: 36px 0; }
.hx-path-figure picture { display: block; background: var(--c-brand); }
.hx-path-figure img { display: block; width: 100%; height: auto; }
.hx-path-figure figcaption { margin-top: 12px; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); }
@media (max-width: 640px) {
  .hx-path-figure { margin: 28px calc(-1 * var(--pad)); }
  .hx-path-figure figcaption { padding: 0 var(--pad); }
}

/* --- нумерованные источники --- */
.hx-path-sources { list-style: none; counter-reset: hxsrc; padding: 0; margin: 0; max-width: 880px; }
.hx-path-sources li { counter-increment: hxsrc; position: relative; padding-left: 34px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--c-line); font-size: var(--fs-caption); line-height: 1.6; color: var(--c-muted); }
.hx-path-sources li::before { content: counter(hxsrc); position: absolute; left: 0; top: 0; font-family: var(--f-head); font-size: var(--fs-small); color: var(--c-accent); }
.hx-path-sources li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* --- примечание и дисклеймер --- */
.hx-path-note { max-width: 780px; margin-top: 20px; font-size: var(--fs-caption); line-height: 1.6; color: var(--c-muted); }
.hx-path-legal { max-width: 900px; font-size: var(--fs-micro); line-height: 1.65; color: var(--c-muted); }

/* --- карточка автора --- */
.hx-path-author { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.hx-path-author__photo { width: 100%; aspect-ratio: 4 / 5; background: var(--c-alt); overflow: hidden; }
.hx-path-author__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-path-author__links { margin-top: 24px; display: flex; gap: 20px; flex-wrap: wrap; }
.hx-path-author__links a { font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-accent); border-bottom: 1px solid var(--c-accent); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.hx-path-author__links a:hover { color: var(--c-brand); border-color: var(--c-brand); }
@media (max-width: 760px) {
  .hx-path-author { grid-template-columns: 1fr; gap: 24px; }
  .hx-path-author__photo { max-width: 200px; aspect-ratio: 1 / 1; }
}

/* --- ряд кнопок --- */
.hx-path-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 480px) {
  .hx-path-actions { flex-direction: column; }
  .hx-path-actions .hx-btn { justify-content: center; }
}

/* --- на тёмной секции --- */
.hx-section--dark .hx-path-body,
.hx-section--dark .hx-path-list { color: var(--c-dark-text); }
.hx-section--dark .hx-path-list li::before { background: var(--c-white); }
.hx-section--dark .hx-path-note { color: var(--c-dark-muted); }
.hx-section--dark .hx-path-dl,
.hx-section--dark .hx-path-dl__item { border-color: var(--c-dark-line); }
.hx-section--dark .hx-path-dl__term { color: var(--c-white); }
.hx-section--dark .hx-path-dl__desc { color: var(--c-dark-soft); }
.hx-section--dark .hx-path-dl__desc .hx-path-list li::before { background: var(--c-white); }

/* --- смежные диагнозы собирает скрипт; пустой блок не показываем --- */
#hx-path-related:empty { display: none; }


/* ═══ 10. СТРАНИЦА ЦЕН (/prices) ════════════════════════════════ */

/* --- строка «услуга - цена» --- */
.hx-price { max-width: 780px; border-top: 1px solid var(--c-line); margin: 0 0 28px; }
.hx-price__row { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.hx-price__name { flex: 1 1 auto; font-size: var(--fs-body-s); line-height: 1.5; color: var(--c-ink); }
.hx-price__name em { display: block; font-style: normal; font-size: var(--fs-caption); line-height: 1.5; color: var(--c-muted); margin-top: 4px; }
.hx-price__val { flex: 0 0 auto; font-family: var(--f-head); font-size: 21px; font-weight: 400; letter-spacing: -0.4px; line-height: 1.2; color: var(--c-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-price__val--free { color: var(--c-accent); }

@media (max-width: 560px) {
  .hx-price__row { flex-direction: column; gap: 8px; padding: 16px 0; }
  .hx-price__val { white-space: normal; font-size: 20px; }
}

/* --- нумерованные шаги в кружках --- */
.hx-num { list-style: none; counter-reset: hxnum; padding: 0; margin: 0 0 24px; max-width: 780px; }
.hx-num li { counter-increment: hxnum; position: relative; padding-left: 42px; margin-bottom: 14px; line-height: 1.6; }
.hx-num li::before { content: counter(hxnum); position: absolute; left: 0; top: 0.1em; width: 27px; height: 27px; border: 1px solid var(--c-accent); border-radius: 50%; color: var(--c-accent); font-family: var(--f-text); font-size: var(--fs-note); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.hx-num li:last-child { margin-bottom: 0; }


/* ═══ 11. БЛОК ЦЕН НА ГЛАВНОЙ (#prices) ═════════════════════════
   Тёмная секция. Две ячейки: платно и по ОМС. Сетку и рамки
   берёт у hx-path-dl, ниже - только надбавка. Все правила
   привязаны к #prices и на другие блоки не действуют.
   ═══════════════════════════════════════════════════════════════ */

#prices.hx-section { padding-top: 46px; padding-bottom: 46px; }
#prices .hx-eyebrow { margin-bottom: 14px; }
#prices h2 { margin-bottom: 0; }
#prices .hx-path-dl { margin-top: 24px; }
#prices .hx-path-dl__item { padding: 22px 24px; }
#prices .hx-path-dl__term { margin-bottom: 10px; }
#prices .hx-path-list li { margin-bottom: 7px; line-height: 1.45; }

#prices .hx-price__lead { max-width: 660px; margin: 16px 0 0; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-dark-soft); }
#prices .hx-price { margin-top: 22px; }
#prices .hx-price .hx-path-dl__item { padding: 20px 22px; }
#prices .hx-price .hx-path-dl__term { font-size: var(--fs-body-s); margin-bottom: 2px; }

/* платный путь отмечен сплошной белой линией сверху */
#prices .hx-price__item { border-top: 1px solid transparent; }
#prices .hx-price__item--paid { border-top: 2px solid var(--c-white); }

#prices .hx-price__clinic { font-size: var(--fs-micro); line-height: 1.45; color: var(--c-dark-muted); margin-bottom: 10px; }
#prices .hx-price__sum { font-family: var(--f-head); font-size: 30px; font-weight: 400; letter-spacing: -0.5px; line-height: 1.05; color: var(--c-white); }
#prices .hx-price__note { font-size: var(--fs-micro); line-height: 1.45; color: var(--c-dark-muted); margin-top: 6px; }
#prices .hx-price__head { margin-bottom: 14px; }
#prices .hx-price__head:empty { margin-bottom: 0; }

#prices .hx-price__rows { margin: 0; padding: 0; }
#prices .hx-price__row { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 12px; align-items: baseline; margin: 0; padding: 8px 0; border-top: 1px solid var(--c-dark-line); font-size: var(--fs-caption); line-height: 1.4; }
#prices .hx-price__row dt { margin: 0; color: var(--c-dark-muted); }
#prices .hx-price__row dd { margin: 0; padding: 0; color: var(--c-white); }

/* строки соседних ячеек начинаются на одной высоте */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    #prices .hx-price--2 .hx-price__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    #prices .hx-price--2 .hx-price__item .hx-path-dl__desc { display: contents; }
  }
}

/* подвал блока: текст слева, кнопка справа */
#prices .hx-prices__foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
#prices .hx-prices__foot p { margin: 0; max-width: 540px; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-dark-soft); }
.hx-prices__foot p a { color: var(--c-white); border-bottom: 1px solid var(--c-dark-edge); transition: border-color .15s; }
.hx-prices__foot p a:hover { border-bottom-color: var(--c-white); }

@media (max-width: 640px) {
  #prices.hx-section { padding-top: 34px; padding-bottom: 34px; }
  #prices .hx-path-dl__item { padding: 18px 18px; }
  #prices .hx-prices__foot { flex-direction: column; align-items: stretch; gap: 18px; }
  #prices .hx-prices__foot .hx-btn { justify-content: center; }
  #prices .hx-price .hx-path-dl__item { padding: 18px 18px; }
  #prices .hx-price__sum { font-size: 28px; }
  #prices .hx-price__row { grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; }
}


/* ═══ 12. ПЛОТНАЯ СТРАНИЦА (.hx-page.hx-dense) ══════════════════
   Сжимает вертикаль у длинных справочных страниц: /regiony и т.п.
   ═══════════════════════════════════════════════════════════════ */

.hx-dense .hx-crumbs__inner { padding-top: 12px; padding-bottom: 12px; }
.hx-dense .hx-section { padding-top: 44px; padding-bottom: 44px; }
.hx-dense .hx-eyebrow { margin-bottom: 12px; }
.hx-dense h2 { margin-bottom: 0.35em; }
.hx-dense h3 { margin-bottom: 10px; }
.hx-dense p { margin-bottom: 0.8em; }
.hx-dense .hx-path-head h1 { margin-bottom: 14px; }
.hx-dense .hx-path-lead { margin-bottom: 18px; font-size: 20px; }
.hx-dense .hx-path-list li { margin-bottom: 7px; line-height: 1.5; }
.hx-dense .hx-num li { margin-bottom: 10px; line-height: 1.55; }
.hx-dense .hx-path-block { padding-top: 26px; }
.hx-dense .hx-path-note { margin-top: 14px; }
.hx-dense .hx-path-actions { margin-top: 20px; }
.hx-dense .hx-path-dl { margin-top: 22px; }
.hx-dense .hx-path-dl__item { padding: 20px 22px; }
.hx-dense .hx-path-dl__term { margin-bottom: 8px; }

/* три колонки на широком экране: списки обследований */
@media (min-width: 1000px) {
  .hx-dense .hx-path-dl--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hx-dense .hx-section { padding-top: 32px; padding-bottom: 32px; }
  .hx-dense .hx-path-dl__item { padding: 16px 18px; }
}


/* ═══ 13. ДОКУМЕНТЫ (/documenty) ════════════════════════════════
   Свои классы doc-. Поля и ширина - те же токены, что у всего сайта.
   ═══════════════════════════════════════════════════════════════ */

.doc-page, .doc-page * { box-sizing: border-box; }
.doc-page { background: var(--c-white); font-family: var(--f-text); color: var(--c-ink); margin: 0; padding: 0; }
.doc-page__container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* --- шапка --- */
.doc-page__header { padding-top: 72px; padding-bottom: 76px; }
.doc-page__title { font-family: var(--f-head); font-weight: 700; font-size: 40px; line-height: 1.2; letter-spacing: -0.02em; color: var(--c-ink); margin: 0 0 14px; text-wrap: balance; }
.doc-page__subtitle { font-family: var(--f-text); font-size: var(--fs-body-s); line-height: 1.6; color: var(--c-muted); margin: 0 0 24px; max-width: 65ch; }
.doc-page__intro { font-family: var(--f-text); font-size: var(--fs-body-s); line-height: 1.6; color: var(--c-muted); margin: 0; max-width: 720px; }

/* --- раздел --- */
.doc-section { padding-bottom: 76px; }
.doc-section__heading { font-family: var(--f-head); font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--c-ink); margin: 0 0 20px; text-wrap: balance; border-bottom: 1px solid var(--c-line); padding-bottom: 18px; }
.doc-section__intro { font-family: var(--f-text); font-size: var(--fs-body-s); line-height: 1.6; color: var(--c-ink); margin: 0 0 32px; }

/* --- сетка карточек --- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.doc-card { background: var(--c-alt); border-radius: 2px; cursor: pointer; display: block; text-decoration: none; border: 1px solid var(--c-line); transition: opacity 200ms ease-out; text-align: left; font: inherit; padding: 0; width: 100%; }
.doc-card:hover { opacity: 0.75; }
.doc-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.doc-card__image-wrap { width: 100%; aspect-ratio: 3 / 4; background: var(--c-alt); overflow: hidden; border-radius: 2px 2px 0 0; }
.doc-card__image-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.doc-card__body { padding: 16px 16px 18px; border-top: 1px solid var(--c-line); }
.doc-card__name { font-family: var(--f-text); font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--c-ink); margin: 0 0 6px; }
.doc-card__year { font-family: var(--f-text); font-size: var(--fs-note); line-height: 1.5; color: var(--c-muted); margin: 0 0 4px; }
.doc-card__note { font-family: var(--f-text); font-size: var(--fs-note); line-height: 1.5; color: var(--c-muted); margin: 0; }
.doc-card__meta { font-family: var(--f-text); font-size: var(--fs-note); line-height: 1.55; color: var(--c-muted); border-top: 1px solid var(--c-line); margin: 10px 0 0; padding-top: 10px; }
.doc-card__meta-line { display: block; }
.doc-card__check-link { display: inline-block; font-family: var(--f-text); font-size: var(--fs-note); line-height: 1.55; color: var(--c-accent); text-decoration: none; margin-top: 8px; }
.doc-card__check-link:hover { text-decoration: underline; }

/* --- подвал страницы --- */
.doc-footer { border-top: 1px solid var(--c-line); padding-top: 32px; padding-bottom: 60px; margin-top: 0; }
.doc-footer__text { font-family: var(--f-text); font-size: var(--fs-legal); line-height: 1.7; color: var(--c-muted); margin: 0 0 20px; }
.doc-footer__link { font-family: var(--f-text); font-size: var(--fs-note); color: var(--c-accent); text-decoration: none; font-weight: 500; }
.doc-footer__link:hover { text-decoration: underline; }

/* --- просмотр скана --- */
.doc-lightbox { display: none; position: fixed; inset: 0; z-index: 900; background: var(--c-overlay); align-items: center; justify-content: center; padding: 24px; }
.doc-lightbox.is-open { display: flex; }
.doc-lightbox__inner { position: relative; max-width: 720px; width: 100%; max-height: 90vh; }
.doc-lightbox__img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.doc-lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: opacity 200ms ease-out; }
.doc-lightbox__close:hover { opacity: 0.7; }
.doc-lightbox__close svg { display: block; width: 18px; height: 18px; }

@media (max-width: 960px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-page__header { padding-bottom: 48px; }
  .doc-section { padding-bottom: 48px; }
  .doc-section__heading { font-size: 20px; }
}
@media (max-width: 640px) {
  .doc-page__title { font-size: 26px; }
  .doc-page__header { padding-top: 48px; padding-bottom: 48px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-lightbox__close { top: -12px; right: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-card, .doc-lightbox__close { transition: none; }
}


/* ═══ 14. СТРАНИЦЫ СЛУЧАЕВ: КРОШКИ И НАВИГАЦИЯ (hx-) ════════════
   Крошки .hx-crumbs нужны страницам диагнозов, цен и памятки.
   .hx-case-nav - разметка #hx-path-nav на страницах диагнозов,
   не удалять. .hx-case-photo - старый вид снимка случая.
   ═══════════════════════════════════════════════════════════════ */

.hx-crumbs { border-bottom: 1px solid var(--c-line); }
.hx-crumbs__inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px var(--pad); font-family: var(--f-text); font-size: var(--fs-small); color: var(--c-muted); }
.hx-crumbs a { color: var(--c-muted); transition: color .15s; }
.hx-crumbs a:hover { color: var(--c-accent); }
.hx-crumbs span[aria-hidden] { color: var(--c-line); }
.hx-crumbs span[aria-current] { color: var(--c-ink); }

.hx-case-photo { margin-top: 48px; }
.hx-case-photo__img { width: 100%; aspect-ratio: 4 / 3; background: var(--c-alt); overflow: hidden; }
.hx-case-photo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) {
  .hx-case-photo__img { aspect-ratio: 16 / 8; }
}
.hx-case-photo + .hx-cases__labels, .hx-case-photo .hx-cases__labels { margin-top: 12px; margin-bottom: 0; max-width: 100%; }

/* ссылки на соседние страницы, собираются из HX_CASES / HX_PATHOLOGIES */
.hx-case-nav__empty { display: none; }
.hx-case-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--c-line); gap: 16px; flex-wrap: wrap; }
.hx-case-nav a { font-family: var(--f-text); font-size: var(--fs-small); font-weight: 500; color: var(--c-accent); transition: opacity .15s; }
.hx-case-nav a:hover { opacity: .7; }
@media (max-width: 640px) {
  .hx-case-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .hx-case-nav a { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
  .hx-case-nav a:last-child { border-bottom: none; }
}


/* ═══ 15. СТРАНИЦЫ СЛУЧАЕВ: СИСТЕМА hxc- ════════════════════════
   Корень . Каждое правило прижато к .hxc,
   поэтому одноимённые классы вне корня (раздел 18) не задеты.
   Токены общие, из :root. Свой только --gap.
   ═══════════════════════════════════════════════════════════════ */

.hxc, .hxc *, .hxc ::before, .hxc ::after { box-sizing: border-box; }
.hxc { --gap: clamp(52px, 6.5vw, 88px); font-family: var(--f-text); font-size: var(--fs-body); line-height: 1.65; color: var(--c-ink); background: var(--c-white); display: block; margin: 0; padding: 0; }

.hxc .hxc-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.hxc .hxc-section { padding-top: var(--gap); padding-bottom: var(--gap); }
.hxc .hxc-section--alt { background: var(--c-alt); }
.hxc img { display: block; max-width: 100%; cursor: default; }
.hxc p { margin: 0 0 1.2em; }
.hxc p:last-child { margin-bottom: 0; }
.hxc a { color: inherit; text-decoration: none; }
.hxc .hxc-eyebrow { display: block; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 22px; }

/* --- крошки --- */
.hxc .hxc-crumbs { border-bottom: 1px solid var(--c-line); }
.hxc .hxc-crumbs__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 15px; padding-bottom: 15px; font-size: var(--fs-small); color: var(--c-muted); }
.hxc .hxc-crumbs a { color: var(--c-muted); transition: color 0.15s; }
.hxc .hxc-crumbs a:hover { color: var(--c-accent); }
.hxc .hxc-crumbs__sep { color: var(--c-line); }
.hxc .hxc-crumbs [aria-current] { color: var(--c-ink); }

/* --- заголовок и метки --- */
.hxc .hxc-head { padding-top: clamp(40px, 5vw, 64px); }
.hxc .hxc-head__inner { max-width: 860px; }
.hxc .hxc-h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.5px; margin: 0; text-wrap: balance; }
.hxc .hxc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hxc .hxc-tag { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); border: 1px solid var(--c-line); border-radius: 2px; padding: 8px 14px; line-height: 1; }

/* --- снимок в рамке --- */
.hxc .hxc-figure { margin: 0; }
.hxc .hxc-frame { background: var(--c-alt); border: 1px solid var(--c-line); padding: 12px; display: flex; align-items: center; justify-content: center; width: 100%; }
.hxc .hxc-frame img { width: 100%; height: auto; max-height: var(--h, 420px); object-fit: contain; }
.hxc .hxc-cap { font-size: var(--fs-small); line-height: 1.55; color: var(--c-muted); margin-top: 14px; }

/* --- главный снимок ---
   __single - один коллаж во всю ширину;
   __dual   - две фигуры, у каждой своя подпись;
   __pair   - две картинки под одной подписью «до / после». */
.hxc .hxc-lead { margin-top: 0; padding-top: clamp(36px, 4.5vw, 56px); }
.hxc .hxc-lead__dual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hxc .hxc-lead__dual .hxc-frame { --h: min(60vh, 520px); }
.hxc .hxc-lead__dual .hxc-cap { text-align: left; }
@media (max-width: 640px) {
  .hxc .hxc-lead__dual { grid-template-columns: 1fr; gap: 32px; }
  .hxc .hxc-lead__dual .hxc-frame { --h: none; padding: 8px; }
}

.hxc .hxc-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); text-align: center; }

/* --- тёмная полоса с тремя короткими фразами --- */
.hxc .hxc-band { background: var(--c-brand); margin-top: clamp(44px, 5.5vw, 72px); }
.hxc .hxc-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hxc .hxc-band__item { padding: clamp(28px, 3.6vw, 44px) clamp(20px, 2.6vw, 40px); border-right: 1px solid var(--c-dark-line); }
.hxc .hxc-band__item:last-child { border-right: none; }
.hxc .hxc-band__text { font-family: var(--f-head); font-weight: 400; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -0.3px; color: var(--c-white); }
@media (max-width: 760px) {
  .hxc .hxc-band__grid { grid-template-columns: 1fr; }
  .hxc .hxc-band__item { border-right: none; border-bottom: 1px solid var(--c-dark-line); padding: 24px clamp(20px, 5vw, 40px); }
  .hxc .hxc-band__item:last-child { border-bottom: none; }
}

/* --- «что было / что сделал / результат» --- */
.hxc .hxc-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); background: var(--c-white); }
.hxc .hxc-facts__item { padding: clamp(26px, 2.8vw, 36px) clamp(22px, 2.4vw, 32px); border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.hxc .hxc-facts__label { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-accent); margin-bottom: 16px; }
.hxc .hxc-facts__text { font-size: var(--fs-body-s); line-height: 1.65; }
@media (max-width: 860px) {
  .hxc .hxc-facts { grid-template-columns: 1fr; }
}

/* --- группы снимков --- */
.hxc .hxc-group + .hxc-group { margin-top: clamp(40px, 5vw, 64px); }
.hxc .hxc-group__head { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-muted); padding-bottom: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 24px; }
.hxc .hxc-grid { display: grid; gap: 20px; }
.hxc .hxc-grid--1 { grid-template-columns: 1fr; }
.hxc .hxc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hxc .hxc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hxc .hxc-grid .hxc-frame { --h: 520px; }
.hxc .hxc-grid--3 .hxc-frame { --h: 360px; }
.hxc .hxc-grid .hxc-cap { text-align: center; }
@media (max-width: 760px) {
  .hxc .hxc-grid { gap: 14px; }
  .hxc .hxc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hxc .hxc-grid .hxc-frame { --h: 280px; padding: 8px; }
  .hxc .hxc-grid--2 .hxc-frame { --h: 360px; }
}
@media (max-width: 480px) {
  .hxc .hxc-grid--2 { grid-template-columns: 1fr; }
  .hxc .hxc-grid--3 { grid-template-columns: 1fr 1fr; }
}

/* --- цитата врача --- */
.hxc .hxc-pull { display: flex; gap: 26px; align-items: stretch; margin: 0; max-width: 820px; }
.hxc .hxc-pull__bar { flex: 0 0 2px; background: var(--c-accent); }
.hxc .hxc-pull__text { font-family: var(--f-head); font-style: italic; font-size: clamp(20px, 2.1vw, 24px); line-height: 1.55; margin: 0; }
.hxc .hxc-sign { display: block; font-size: var(--fs-small); color: var(--c-muted); margin-top: 22px; padding-left: 28px; }
@media (max-width: 640px) {
  .hxc .hxc-pull { gap: 18px; }
  .hxc .hxc-sign { padding-left: 20px; }
}

/* --- призыв к записи; кнопка графитовая, как на всём сайте --- */
.hxc .hxc-cta { background: var(--c-alt); padding-top: var(--gap); padding-bottom: var(--gap); }
.hxc .hxc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hxc .hxc-cta__title { font-family: var(--f-head); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.4px; margin-bottom: 12px; }
.hxc .hxc-cta__desc { max-width: 520px; color: var(--c-muted); font-size: var(--fs-body-s); margin: 0; }
.hxc .hxc-btn { display: inline-flex; align-items: center; font-size: var(--fs-caption); font-weight: 600; line-height: 1; padding: 16px 36px; border: 1.5px solid var(--c-brand); background: var(--c-brand); color: var(--c-white); border-radius: 2px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.hxc .hxc-btn:hover { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }

/* --- «предыдущий / все случаи / следующий» ---
   Подписи графитовые, синие при наведении. Заполняет HEAD из HX_CASES. */
.hxc .hxc-cnav { padding-top: clamp(40px, 4.5vw, 60px); padding-bottom: clamp(64px, 7vw, 96px); }
.hxc .hxc-cnav__grid { display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.hxc .hxc-cnav__cell { display: flex; align-items: center; padding: 26px 28px; min-height: 88px; font-size: var(--fs-small); color: var(--c-accent); transition: background 0.2s, color 0.2s; }
.hxc .hxc-cnav__cell:hover { background: var(--c-alt); }
.hxc .hxc-cnav__cell--prev { border-right: 1px solid var(--c-line); }
.hxc .hxc-cnav__cell--next { border-left: 1px solid var(--c-line); justify-content: flex-end; text-align: right; }
.hxc .hxc-cnav__cell--all { color: var(--c-muted); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; padding-left: 32px; padding-right: 32px; }
.hxc .hxc-cnav__cell--all:hover { color: var(--c-ink); }
@media (max-width: 760px) {
  .hxc .hxc-cnav__grid { grid-template-columns: 1fr; }
  .hxc .hxc-cnav__cell { min-height: 0; padding: 20px 0; border-bottom: 1px solid var(--c-line); justify-content: flex-start; text-align: left; border-left: none !important; border-right: none !important; }
  .hxc .hxc-cnav__cell:last-child { border-bottom: none; }
  .hxc .hxc-cnav__cell--all { padding-left: 0; padding-right: 0; }
  .hxc .hxc-cnav__cell:hover { background: transparent; }
}

/* --- плавающая кнопка «Записаться» ---
   Появляется после 480px прокрутки (скрипт в HEAD). На телефоне
   скрыта: там работает .hx-sticky-cta. */
.hxc .hxc-fab { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 150; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.28s, transform 0.28s; }
.hxc .hxc-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hxc .hxc-fab a { display: inline-flex; align-items: center; font-family: var(--f-text); font-size: var(--fs-small); font-weight: 600; line-height: 1; padding: 17px 30px; border: 1.5px solid var(--c-brand); background: var(--c-brand); color: var(--c-white); border-radius: 2px; box-shadow: var(--shadow-float); transition: background 0.2s, color 0.2s; }
.hxc .hxc-fab a:hover { background: transparent; border-color: var(--c-brand); color: var(--c-brand); }
@media (max-width: 640px) {
  .hxc .hxc-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hxc .hxc-fab { transition: none; }
}

/* --- одиночный главный снимок --- */
.hxc .hxc-lead__single .hxc-frame { --h: min(64vh, 560px); }
@media (max-width: 640px) {
  .hxc .hxc-lead__single .hxc-frame { --h: none; padding: 8px; }
}

/* --- пара коллажей в одной рамке и видео --- */
.hxc .hxc-lead__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hxc .hxc-lead__pair .hxc-frame { --h: min(60vh, 560px); width: 100%; margin: 0; }

.hxc .hxc-video { position: relative; background: var(--c-alt); border: 1px solid var(--c-line); }
.hxc .hxc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hxc .hxc-video--vertical { width: 100%; max-width: 270px; aspect-ratio: 9 / 16; margin-left: auto; margin-right: auto; }

/* --- одинаковая высота снимков в одной строке ---
   Высоту держит рамка, картинка вписывается внутрь.
   Ширина у снимков разная, высота одна. */
.hxc .hxc-grid .hxc-frame,
.hxc .hxc-lead__dual .hxc-frame,
.hxc .hxc-lead__pair .hxc-frame { height: var(--h, 420px); }

.hxc .hxc-grid .hxc-frame img,
.hxc .hxc-lead__dual .hxc-frame img,
.hxc .hxc-lead__pair .hxc-frame img { width: 100%; height: 100%; max-height: none; object-fit: contain; }

@media (max-width: 640px) {
  /* на телефоне снимки идут в столбик, равнять нечего */
  .hxc .hxc-lead__dual .hxc-frame { height: auto; }
  .hxc .hxc-lead__dual .hxc-frame img { height: auto; }

  .hxc .hxc-lead__pair { gap: 4px; }
  .hxc .hxc-lead__pair .hxc-frame { --h: 260px; padding: 0; border-left: 0; border-right: 0; }
  .hxc .hxc-lead__pair .hxc-frame img { object-fit: cover; }

  .hxc .hxc-video--vertical { max-width: 220px; }
}

/* --- соседние случаи: подписи графитом, синий при наведении --- */
.hxc .hxc-cnav__cell--prev,
.hxc .hxc-cnav__cell--next { color: var(--c-ink); }
.hxc .hxc-cnav__cell--prev:hover,
.hxc .hxc-cnav__cell--next:hover { color: var(--c-accent); }


/* ═══ 16. ПАМЯТКА И УПРАЖНЕНИЯ (/pamyatka, /uprazhneniya) ═══════
   Корень: .hx-page.hx-memo. Остальное - из hx-path-, hx-steps,
   hx-price, hx-num.
   ═══════════════════════════════════════════════════════════════ */

/* крошки по ширине основной колонки */
.hx-memo .hx-crumbs__inner { max-width: var(--wrap); margin: 0 auto; }

/* переход по якорю не прячет заголовок под липкой шапкой */
.hx-memo [id] { scroll-margin-top: 130px; }
@media (max-width: 640px) { .hx-memo [id] { scroll-margin-top: 76px; } }

/* оглавление под заголовком */
.hx-memo-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hx-memo-toc a { font-family: var(--f-text); font-size: var(--fs-caption); line-height: 1; padding: 11px 15px; border: 1px solid var(--c-line); border-radius: 2px; background: var(--c-white); color: var(--c-ink); transition: border-color .15s, color .15s; }
.hx-memo-toc a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.hx-memo-toc a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.hx-memo-meta { margin: 22px 0 0; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); }

/* строки «анализ - срок» и шкала сроков */
.hx-memo .hx-price { margin: 16px 0 0; }
.hx-memo .hx-price__val { font-size: var(--fs-h4); }
.hx-memo .hx-steps__track { margin-top: 40px; }

/* строка про скорую: единственная плашка на странице */
.hx-memo-alert { max-width: 780px; margin: 24px 0 0; padding: 16px 20px; border-left: 2px solid var(--c-accent); background: var(--c-alt); font-size: var(--fs-body-s); font-weight: 500; line-height: 1.5; }

/* ссылки внутри сплошного текста: синие и подчёркнутые,
   иначе их не отличить от слова */
.hx-memo .hx-path-block p a,
.hx-memo .hx-path-list a,
.hx-memo .hx-path-note a,
.hx-memo .hx-path-sources a,
.hx-faq__answer-inner a,
.hx-how__para-text a { color: var(--c-accent); border-bottom: 1px solid var(--c-accent-line); transition: border-color .15s; }
.hx-memo .hx-path-block p a:hover,
.hx-memo .hx-path-list a:hover,
.hx-memo .hx-path-note a:hover,
.hx-memo .hx-path-sources a:hover,
.hx-faq__answer-inner a:hover,
.hx-how__para-text a:hover { border-bottom-color: var(--c-accent); }

/* упражнения: видео слева прилипает, список справа */
.hx-memo-ex { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.hx-memo-ex__media { position: sticky; top: 140px; }
.hx-memo-video { width: 100%; background: var(--c-white); border: 1px solid var(--c-line); }
.hx-memo-video__cap { margin: 12px 0 0; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); }
.hx-memo-ex__list { max-width: 780px; min-width: 0; }
@media (max-width: 900px) {
  .hx-memo-ex { grid-template-columns: 1fr; gap: 36px; }
  .hx-memo-ex__media { position: static; max-width: 280px; }
}

/* этап и упражнение */
.hx-memo-stage + .hx-memo-stage { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.hx-memo-item { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.hx-memo-item h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hx-memo-item__n { flex-shrink: 0; min-width: 1ch; font-family: var(--f-head); font-weight: 400; color: var(--c-accent); font-variant-numeric: tabular-nums; }

/* условие начала: «только если не стоят спицы» */
.hx-memo-cond { display: inline-block; margin: 0 0 12px !important; padding: 6px 10px; border: 1px solid var(--c-line); border-radius: 2px; background: var(--c-white); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; line-height: 1.3; text-transform: uppercase; color: var(--c-muted); }

/* дозировка: цифры графитом, подписи серым */
.hx-memo-dose { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0 !important; font-size: var(--fs-caption); line-height: 1.5; color: var(--c-muted); }
.hx-memo-dose b { font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.hx-memo-stage > .hx-memo-dose { margin: 4px 0 14px !important; }

.hx-memo-tip { margin: 10px 0 0 !important; font-size: var(--fs-caption); line-height: 1.55; color: var(--c-muted); }

.hx-memo .hx-path-actions + .hx-path-legal { margin-top: 36px; }


/* ═══ 17. ПОДВАЛ ═════════════════════════════════════════════════
   Тёмная секция: текст и линии только из токенов --c-dark-*.
   ═══════════════════════════════════════════════════════════════ */

.hx-footer { background: var(--c-brand); color: var(--c-white); padding: 52px 0 32px; }
.hx-footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; margin-bottom: 36px; }

.hx-footer__name { font-family: var(--f-head); font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.5px; margin-bottom: 8px; }
.hx-footer__role { font-size: var(--fs-caption); color: var(--c-dark-muted); margin-bottom: 18px; font-family: var(--f-text); }
.hx-footer__contact { font-size: var(--fs-caption); margin-bottom: 6px; font-family: var(--f-text); color: var(--c-dark-muted); }
.hx-footer__contact a { color: var(--c-white); opacity: 0.85; }
.hx-footer__contact a:hover { opacity: 1; }

.hx-footer__col-title { font-family: var(--f-text); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--c-dark-faint); margin-bottom: 14px; }
.hx-footer__col-link { display: block; font-size: var(--fs-caption); color: var(--c-dark-soft); font-family: var(--f-text); margin-bottom: 9px; transition: color 0.15s; }
.hx-footer__col-link:hover { color: var(--c-white); }
.hx-footer__addr { font-size: var(--fs-caption); color: var(--c-dark-muted); line-height: 1.6; font-family: var(--f-text); margin-bottom: 16px; }

/* лицензии; на широком экране - в две колонки */
.hx-footer__legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--c-dark-line); font-family: var(--f-text); font-size: var(--fs-legal); line-height: 1.65; color: var(--c-dark-faint); }
.hx-footer__legal p { margin: 0 0 6px; max-width: 900px; }
.hx-footer__legal-head { text-transform: uppercase; letter-spacing: 0.4px; color: var(--c-dark-faint); }
.hx-footer__legal-lead { margin-top: 10px; }
.hx-footer__legal-item { padding-left: 14px; border-left: 1px solid var(--c-dark-line); }

@media (min-width: 900px) {
  .hx-footer__legal { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .hx-footer__legal-head, .hx-footer__legal-lead { grid-column: 1 / -1; }
}

.hx-footer__bottom { border-top: 1px solid var(--c-dark-line); padding-top: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.hx-footer__disclaimer { font-size: var(--fs-caption); color: var(--c-dark-faint); font-family: var(--f-text); line-height: 1.55; max-width: 560px; }
.hx-footer__disclaimer-sub { display: block; font-size: var(--fs-micro); color: var(--c-dark-faint); font-family: var(--f-text); margin-top: 6px; line-height: 1.5; }
.hx-footer__policy { font-size: var(--fs-caption); color: var(--c-dark-muted); font-family: var(--f-text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hx-footer__policy:hover { color: var(--c-dark-text); }

@media (max-width: 860px) {
  .hx-footer__grid { grid-template-columns: 1fr; }
}

/* нижняя липкая кнопка записи, только на телефоне */
.hx-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 12px 20px; background: var(--c-white); border-top: 1px solid var(--c-line); }
.hx-sticky-cta a { display: block; text-align: center; padding: 16px; background: var(--c-brand); color: var(--c-white); font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 600; border-radius: 2px; text-decoration: none; }

@media (max-width: 640px) {
  .hx-sticky-cta { display: block; }
  /* снизу место под липкую кнопку */
  .hx-footer { padding: 40px 0 96px; }
  .hx-footer__grid { gap: 28px; margin-bottom: 26px; }
  .hx-footer__legal { font-size: 10px; }
  .hx-footer__legal-item { padding-left: 10px; }
}


/* ═══ 18. НАСЛЕДИЕ: СТАРЫЕ КЛАССЫ ВНЕ .hxc ══════════════════════
   Те же имена, что в разделе 17, но без корня .hxc. Остались
   от страниц случаев до миграции. Когда на сайте не останется
   страниц случаев на hx-page, раздел удалить целиком.
   ═══════════════════════════════════════════════════════════════ */

.hxc-band { margin-top: clamp(44px, 5.5vw, 72px); }
.hxc-band__text { font-family: var(--f-head); font-weight: 400; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -0.3px; color: var(--c-white); }
.hxc-cta__desc { max-width: 520px; margin: 0 auto 24px; font-size: var(--fs-body-s); line-height: 1.6; color: var(--c-muted); }

.hxc-fab { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 150; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .28s ease, transform .28s ease; }
.hxc-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hxc-fab a { display: inline-flex; align-items: center; font-family: var(--f-text); font-size: var(--fs-caption); font-weight: 600; line-height: 1; padding: 17px 30px; border: 1.5px solid var(--c-brand); background: var(--c-brand); color: var(--c-white); border-radius: 2px; box-shadow: var(--shadow-float); text-decoration: none; transition: background .2s, border-color .2s; }
.hxc-fab a:hover { background: var(--c-accent); border-color: var(--c-accent); }
@media (max-width: 640px) { .hxc-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .hxc-fab { transition: none; } }