/* «Здоровье»: тот же шрифт, палитра, карточки и состояния, что в остальном REVITA.
   Общая навигация находится в styles.css. Этот файл оформляет только раздел. */

:root { --hl-micro:calc(var(--fs-micro, .6875rem) * var(--font-scale, 1)); --hl-cap:calc(var(--fs-caption, .75rem) * var(--font-scale, 1)); }
.hl-intro { display:flex; flex-direction:column; gap:6px; margin:2px 0 16px; }
.hl-intro .copy { font-size:var(--t-footnote); }
.hl-catalog-meta { color:var(--muted); font-size:var(--hl-cap); font-variant-numeric:tabular-nums; }
.hl-q { display:block; font-family:inherit; font-weight:650; letter-spacing:-.02em; line-height:1.25; color:var(--ink); overflow-wrap:break-word; text-wrap:pretty; }
.hl-label { font-size:var(--t-headline); font-weight:650; line-height:1.3; color:var(--ink); }
.hl-tag,.hl-eyebrow { display:block; font-size:var(--hl-cap); font-weight:600; line-height:1.4; color:var(--accent); }
.hl-tag { letter-spacing:.04em; text-transform:uppercase; }
.hl-section-head { margin-top:24px; margin-bottom:4px; flex-wrap:wrap; }
.hl-section-head .meta { font-variant-numeric:tabular-nums; }
.hl-note { margin-top:24px; padding-top:16px; border-top:1px solid var(--line); font-size:var(--t-footnote); line-height:1.55; color:var(--muted); }

/* Один главный вопрос. Иллюстрация занимает отдельную колонку и не перекрывает текст. */
.hl-ask-new { display:block; width:100%; border-radius:var(--r-lg); text-align:left; background:var(--accent-soft); border-color:transparent; }
.hl-bubble { display:flex; flex-direction:column; gap:14px; padding:18px; }
.hl-feature-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.hl-new-badge { background:var(--surface); color:var(--accent); border-radius:var(--r-pill); padding-inline:10px; }
.hl-feature-category { font-size:var(--hl-cap); font-weight:500; color:var(--accent); }
.hl-feature-main { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:8px; align-items:center; }
.hl-feature-main .hl-q { font-size:var(--t-title); font-weight:700; line-height:1.2; }
.hl-bubble-art { width:112px; height:124px; object-fit:contain; justify-self:end; }
.hl-feature-lead { display:block; max-width:52ch; font-size:var(--t-footnote); line-height:1.5; color:var(--muted); }
.hl-feature-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:2px; }
.hl-answer-cta { flex:none; pointer-events:none; }
.hl-answer-cta .icon { width:16px; height:16px; }
.hl-ask-meta { display:block; color:var(--muted); font-size:var(--hl-cap); line-height:1.45; font-variant-numeric:tabular-nums; }

/* Продолжить: существующие данные чтения, без новой системы сохранения. */
.hl-continue { display:flex; align-items:center; gap:12px; width:100%; padding:14px; margin-bottom:16px; text-align:left; }
.hl-continue-icon,.hl-pro-icon { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:var(--r-sm); background:var(--accent-soft); color:var(--accent); }
.hl-continue-icon .art3d,.hl-pro-icon .art3d { width:28px; height:28px; }
.hl-continue .hl-eyebrow { margin-bottom:4px; }
.hl-continue .row-title { font-size:var(--t-footnote); }
.hl-continue .row-sub { font-size:var(--hl-cap); }

/* Все вопросы целиком видны. Семантика и зоны нажатия — обычные list-row. */
.hl-asks { margin-top:0; }
.hl-ask { display:grid; grid-template-columns:60px minmax(0,1fr) 18px; align-items:center; gap:12px; min-height:104px; padding:14px 12px; }
.hl-ask-copy { display:block; min-width:0; }
.hl-ask .hl-q { font-size:var(--t-body); font-weight:600; line-height:1.35; letter-spacing:-.01em; }
.hl-ask .hl-ask-meta { margin-top:6px; }
.hl-ask-art { width:60px; height:60px; object-fit:contain; }
.hl-ask>.hl-done { width:20px; height:20px; }
.hl-ask:active:not(:disabled):not([aria-disabled="true"]),.hl-row:active:not(:disabled):not([aria-disabled="true"]),.hl-talk:active { background:var(--soft); }

/* Видео: существующие портреты, ясное время и переход во внешний канал. */
.hl-talk { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:84px; padding:14px 12px; color:inherit; text-decoration:none; }
.hl-talk-face { position:relative; display:block; width:48px; height:48px; align-self:start; margin-top:2px; }
.hl-talk-face img { width:48px; height:48px; border-radius:var(--r-pill); object-fit:cover; object-position:center 18%; background:var(--soft); }
.hl-talk-play { position:absolute; right:-3px; bottom:-3px; display:grid; place-items:center; width:22px; height:22px; border-radius:var(--r-pill); background:var(--primary); color:var(--on-primary); box-shadow:0 0 0 2px var(--surface); }
.hl-talk-play .icon { width:12px; height:12px; }
.hl-talk .row-title { font-size:var(--t-body); line-height:1.35; word-break:normal; }
.hl-talk .row-sub { font-size:var(--hl-cap); line-height:1.45; margin-top:4px; }
.hl-talk-kind { display:block; margin-top:4px; color:var(--muted); font-size:var(--hl-cap); }
.hl-talk-time { align-self:start; padding-top:2px; font-size:var(--hl-cap); line-height:1.5; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.hl-more { margin-top:8px; }
.hl-more summary,.hl-pro-details summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; font-size:var(--t-footnote); font-weight:600; color:var(--accent); cursor:pointer; list-style:none; border-radius:var(--r-xs); }
.hl-more summary { padding:8px 12px; background:var(--soft); border-radius:var(--r-sm); }
.hl-more summary::-webkit-details-marker,.hl-pro-details summary::-webkit-details-marker { display:none; }
.hl-more summary .chevron,.hl-pro-details summary .chevron { color:var(--accent); transform:rotate(90deg); transition:transform var(--t-press) var(--ease-out); }
.hl-more[open] summary .chevron,.hl-pro-details[open] summary .chevron { transform:rotate(-90deg); }
.hl-more[open]>.hl-talks { margin-top:8px; }
.hl-talk-note { margin-top:10px; font-size:var(--hl-cap); }

/* REVITA PRO — без впечатления, что будущие материалы уже можно купить. */
.hl-pro-badge { display:inline-flex; align-items:center; gap:4px; flex:none; min-height:24px; padding:4px 8px; border-radius:var(--r-pill); background:var(--accent-soft); color:var(--accent); font-size:var(--hl-micro); font-weight:650; line-height:1.2; }
.hl-pro-badge .icon { width:12px; height:12px; stroke-width:2; }
.hl-pro-card { display:flex; align-items:flex-start; gap:12px; width:100%; padding:16px; margin-top:24px; text-align:left; }
.hl-pro-card strong { font-size:var(--t-headline); font-weight:650; line-height:1.3; }
.hl-pro-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.hl-pro-description { display:block; margin-top:6px; color:var(--muted); font-size:var(--t-footnote); line-height:1.5; }
.hl-pro-more { display:flex; align-items:center; gap:4px; margin-top:10px; font-size:var(--t-footnote); font-weight:600; color:var(--accent); }
.hl-pro-more .chevron { width:16px; height:16px; color:inherit; }
.hl-pro-card.is-member { background:var(--soft); border-color:transparent; }
.hl-pro-block { margin-top:24px; padding:16px; }
.hl-pro-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hl-pro-head h3 { font-size:var(--t-headline); }
.hl-pro-block>.caption { margin-top:8px; }
.hl-pro-details { margin-top:8px; }
.hl-pro-details ul { list-style:none; margin:0 0 12px; padding:0; display:grid; gap:10px; }
.hl-pro-details li { position:relative; padding-left:16px; color:var(--muted); font-size:var(--t-footnote); line-height:1.5; }
.hl-pro-details li::before { content:""; position:absolute; left:2px; top:.6em; width:5px; height:5px; background:var(--accent); border-radius:var(--r-pill); }
.hl-pro-block>.button { margin-top:8px; }
.hl-pro-sheet-intro { display:grid; gap:12px; }
.hl-pro-sheet-intro .badge { justify-self:start; }
.hl-pro-list { list-style:none; padding:0; margin:20px 0 0; display:grid; gap:14px; }
.hl-pro-list li { display:flex; gap:10px; align-items:flex-start; font-size:var(--t-body); line-height:1.4; }
.hl-pro-list .icon { width:20px; height:20px; margin-top:1px; color:var(--accent); }

/* Тема: вопрос, краткий ответ и три шага в привычной карточке. */
.hl-sheet { margin-top:8px; padding:16px; border-radius:var(--r-lg); }
.hl-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; }
.hl-sheet-head time { font-size:var(--hl-cap); line-height:1.4; color:var(--muted); }
.hl-sheet-top { display:grid; grid-template-columns:minmax(0,1fr) 80px; gap:12px; align-items:center; margin-top:16px; }
.hl-sheet-top .hl-q { font-size:var(--t-title); font-weight:700; line-height:1.25; }
.hl-sheet-top img { width:80px; height:80px; object-fit:contain; }
.hl-sheet-topic { margin-top:8px; font-size:var(--t-footnote); line-height:1.45; color:var(--muted); }
.hl-answer { margin:20px 0; padding-top:16px; border-top:1px solid var(--line); }
.hl-answer .hl-label { color:var(--accent); }
.hl-sheet-answer { margin-top:8px; font-size:var(--t-body); line-height:1.6; color:var(--ink); text-wrap:pretty; }
.hl-steps { list-style:none; margin:8px 0 0; padding:0; counter-reset:hl; }
.hl-steps li { position:relative; counter-increment:hl; padding:12px 0 12px calc(24px * var(--font-scale, 1) + 12px); font-size:var(--t-footnote); line-height:1.55; color:var(--ink); }
.hl-steps li+li { border-top:1px solid var(--line); }
.hl-steps li::before { content:counter(hl); position:absolute; left:0; top:12px; display:grid; place-items:center; width:calc(24px * var(--font-scale, 1)); height:calc(24px * var(--font-scale, 1)); border-radius:var(--r-pill); background:var(--soft); color:var(--accent); font-size:var(--hl-cap); font-weight:650; font-variant-numeric:tabular-nums; }
.hl-brief { margin-top:16px; }
.hl-brief.done .icon { width:18px; height:18px; color:var(--accent); }
.hl-brief-caption { margin-top:8px; color:var(--muted); text-align:center; font-size:var(--hl-cap); line-height:1.45; }

/* Подробный разбор. Счётчик относится только к статьям непосредственно под ним. */
.hl-list-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; margin:24px 0 12px; }
.hl-list-head h2 { font-size:var(--t-headline); font-weight:650; }
.hl-list-head .meta { font-variant-numeric:tabular-nums; }
.hl-reading-meter { margin:-2px 0 12px; }
.hl-row { display:grid; grid-template-columns:calc(28px * var(--font-scale, 1)) minmax(0,1fr) auto; align-items:center; gap:10px; min-height:80px; padding:14px 12px; }
.hl-num { display:grid; place-items:center; width:calc(28px * var(--font-scale, 1)); height:calc(28px * var(--font-scale, 1)); align-self:start; margin-top:2px; border-radius:var(--r-xs); background:var(--soft); font-size:var(--hl-cap); font-weight:650; color:var(--accent); font-variant-numeric:tabular-nums; }
.hl-row .row-title { font-size:var(--t-body); line-height:1.4; font-weight:600; word-break:normal; text-wrap:pretty; }
.hl-row .row-sub { margin-top:6px; font-size:var(--hl-cap); line-height:1.4; }
.hl-done { display:grid; place-items:center; width:24px; height:24px; flex:none; border-radius:var(--r-pill); background:var(--accent); color:var(--on-accent); }
.hl-done .icon { width:14px; height:14px; stroke-width:2.3; }

/* Чтение: системный шрифт, ограниченная длина строки, спокойный вертикальный ритм. */
.hl-article { max-width:680px; margin-inline:auto; padding-top:12px; }
.hl-title { margin-top:12px; font-family:inherit; font-size:var(--t-large); font-weight:700; line-height:1.2; letter-spacing:-.025em; text-wrap:pretty; overflow-wrap:break-word; }
.hl-subtitle { margin-top:12px; font-size:var(--t-headline); line-height:1.5; color:var(--muted); text-wrap:pretty; }
.hl-byline { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-top:16px; padding-bottom:20px; border-bottom:1px solid var(--line); font-size:var(--hl-cap); color:var(--muted); }
.hl-byline>span { display:flex; gap:6px; align-items:center; }
.hl-byline .icon,.hl-byline .inline-art { width:16px; height:16px; }
.hl-body { font-size:var(--t-headline); line-height:1.7; color:var(--ink); overflow-wrap:break-word; }
.hl-body p { margin-top:20px; line-height:inherit; text-wrap:pretty; }
.hl-body h3 { margin-top:28px; font-size:var(--t-title); font-weight:650; line-height:1.3; letter-spacing:-.015em; text-wrap:pretty; }
.hl-body ul,.hl-body ol { margin:16px 0 0; padding-left:24px; }
.hl-body li { margin-top:10px; padding-left:2px; }
.hl-body li::marker { color:var(--accent); font-weight:600; }
.hl-body strong { font-weight:650; }
.hl-body img { max-width:100%; height:auto; border-radius:var(--r-sm); }
.hl-body table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; font-size:var(--t-footnote); }
.hl-body th,.hl-body td { padding:8px; border:1px solid var(--line); }
.hl-body a { text-underline-offset:3px; }
.hl-callout { margin-top:28px; padding:16px; border-radius:var(--r-md); background:var(--accent-soft); }
.hl-body .hl-callout h3 { margin-top:0; font-size:var(--t-headline); }
.hl-callout ul { margin-top:8px; }
.hl-end { display:block; height:1px; }
.hl-next { margin-top:24px; }
.hl-next-card { display:flex; align-items:center; gap:12px; width:100%; min-height:84px; padding:16px; text-align:left; }
.hl-next-label { display:block; margin-bottom:6px; font-size:var(--hl-cap); line-height:1.4; font-weight:600; color:var(--accent); }
.hl-next-card .row-title { font-size:var(--t-headline); line-height:1.35; word-break:normal; }
.hl-next-card .row-sub { font-size:var(--hl-cap); }
.hl-next>.button { margin-top:12px; }

/* Загрузка и ошибка — полноценные состояния, доступные с клавиатуры. */
.hl-loading { max-width:680px; margin:16px auto; }
.hl-skeleton { display:grid; gap:12px; }
.hl-skeleton span { display:block; width:100%; height:14px; border-radius:var(--r-xs); background:var(--soft); animation:hl-pulse 1.5s ease-in-out infinite alternate; }
.hl-skeleton span:first-child { width:36%; height:12px; margin-bottom:8px; }
.hl-skeleton span:nth-child(2) { width:84%; height:36px; margin-bottom:20px; }
.hl-skeleton span:last-child { width:64%; }
.hl-failed { max-width:420px; margin:24px auto; }
.hl-failed>.hl-pro-icon { margin:0 auto 16px; width:48px; height:48px; }
.hl-failed>.hl-pro-icon .art3d { width:34px; height:34px; }
.hl-failed h2 { font-size:var(--t-title); margin-bottom:8px; }
.hl-failed .button+.button { margin-top:10px; }
@keyframes hl-pulse { from { opacity:.45; } to { opacity:1; } }

@media (hover:hover) {
 .hl-ask:hover:not(:disabled):not([aria-disabled="true"]),.hl-row:hover:not(:disabled):not([aria-disabled="true"]),.hl-talk:hover { background:var(--soft); }
 .hl-ask-new:hover:not(:disabled):not([aria-disabled="true"]) { background:color-mix(in srgb, var(--accent) 12%, var(--accent-soft)); border-color:color-mix(in srgb, var(--accent) 30%, var(--line)); }
 button.hl-pro-card:hover:not(:disabled):not([aria-disabled="true"]),.hl-continue:hover:not(:disabled):not([aria-disabled="true"]),.hl-next-card:hover:not(:disabled):not([aria-disabled="true"]) { border-color:var(--line-strong); background:color-mix(in srgb, var(--soft) 40%, var(--surface)); }
 .hl-more summary:hover { background:color-mix(in srgb, var(--accent-soft) 55%, var(--soft)); color:var(--ink); }
 .hl-pro-details summary:hover { color:var(--ink); }
}
@media (max-width:360px) {
 .hl-bubble { padding:16px; gap:12px; }
 .hl-feature-main { grid-template-columns:minmax(0,1fr) 88px; }
 .hl-bubble-art { width:88px; height:104px; }
 .hl-feature-bottom { align-items:flex-start; }
 .hl-ask { grid-template-columns:48px minmax(0,1fr) 18px; gap:10px; padding-inline:10px; }
 .hl-ask-art { width:48px; height:48px; }
 .hl-sheet { padding:14px; }
 .hl-sheet-top { grid-template-columns:minmax(0,1fr) 64px; gap:8px; }
 .hl-sheet-top img { width:64px; height:64px; }
 .hl-row { grid-template-columns:24px minmax(0,1fr) auto; gap:8px; padding-inline:10px; }
 .hl-num { width:24px; height:24px; }
 .hl-talk { gap:10px; padding-inline:10px; }
 .hl-pro-card { padding:14px; gap:10px; }
}
@media (min-width:650px) {
 .hl-intro { flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
 .hl-bubble { padding:24px; gap:16px; }
 .hl-feature-main { grid-template-columns:minmax(0,1fr) 160px; gap:24px; }
 .hl-feature-main .hl-q { max-width:22ch; font-size:var(--t-large); }
 .hl-bubble-art { width:160px; height:144px; }
 .hl-feature-bottom { justify-content:flex-start; gap:24px; }
 .hl-sheet,.hl-list-head,.hl-articles,.hl-pro-block,.hl-reading-meter,.hl-sheet~.hl-note { max-width:760px; margin-inline:auto; }
 .hl-sheet { padding:24px; }
 .hl-sheet-top { grid-template-columns:minmax(0,1fr) 112px; gap:24px; }
 .hl-sheet-top .hl-q { font-size:var(--t-large); }
 .hl-sheet-top img { width:112px; height:112px; }
 .hl-sheet .hl-brief { max-width:380px; }
 .hl-sheet .hl-brief-caption { max-width:380px; text-align:left; }
 .hl-steps li { font-size:var(--t-body); }
}
@media (min-width:1024px) {
 .hl-asks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hl-ask { min-height:120px; padding:16px; }
 .hl-ask:nth-child(-n+2) { border-top:0; }
 .hl-ask:nth-child(odd) { border-right:1px solid var(--line); }
 .hl-talks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hl-talk:nth-child(-n+2) { border-top:0; }
 .hl-talk:nth-child(odd) { border-right:1px solid var(--line); }
 /* Нечётный последний элемент занимает строку целиком, а не оставляет пустую ячейку. */
 :is(.hl-ask,.hl-talk):last-child:nth-child(odd) { grid-column:1/-1; border-right:0; }
}
:is(:root[data-theme="dark"], .dark) :is(.hl-ask-art, .hl-bubble-art, .hl-sheet-top img, .hl-talk-face img, .hl-body img) { filter:brightness(.88) contrast(.96) saturate(.92); }
:is(:root[data-theme="dark"], .dark) :is(.hl-continue-icon, .hl-pro-icon) { background:color-mix(in srgb, var(--accent-soft) 76%, var(--surface)); }
:is(:root[data-theme="dark"], .dark) :is(.hl-ask-new, .hl-pro-card.is-member) { border-color:var(--line); }
@media (prefers-reduced-motion:reduce) {
 .hl-skeleton span { animation:none; }
 .hl-more summary .chevron,.hl-pro-details summary .chevron { transition:none; }
 button:is(.hl-ask-new,.hl-pro-card,.hl-continue,.hl-next-card):active { transform:none; }
}
