/* TARK 24, блоки четвёртого круга (29.10.2026): мониторинг без обрывов текста, плитки, события рынка,
   «Чего ждать от стратегии». Отдельный файл, чтобы tark24.css не рос за порог размера. */
/* Мониторинг (Саша 29.10): заметки под графиками и вводные шли узкой колонкой 720-900 px и обрывались посреди экрана
   рядом с графиками во всю ширину. Теперь на всю колонку, последняя строка без висячего слова. */
.example, .day-note, .how-lead { max-width: none; text-wrap: pretty; }
#risk .s-pane .sec-head, #risk .s-pane .sec-head .lead { max-width: none; }
#risk .s-pane .risk-list { max-width: none; }
/* плитки показателей без мелких подписей */
.kpi-n:empty { display: none; }

/* События рынка: переключатель в заголовке панели капитала, список под графиками, подсказка с пояснением */
.chart-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chart-h h3 { margin: 0; }
.ev-tgl { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: var(--mute);
  font: inherit; font-size: 12px; letter-spacing: .02em; cursor: pointer; white-space: nowrap; }
.ev-tgl:hover, .ev-tgl[aria-pressed="true"] { color: var(--ink); }
.ev-sw { position: relative; flex: none; width: 28px; height: 16px; border: 1px solid currentColor; border-radius: 8px; }
.ev-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor; transition: transform .15s ease; }
.ev-tgl[aria-pressed="true"] .ev-sw { background: var(--accent); border-color: var(--accent); }
.ev-tgl[aria-pressed="true"] .ev-sw::after { transform: translateX(12px); background: var(--bg-hi); }
.ev-tgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ev-sw::after { transition: none; } }
.chart-pair #events-note { margin-top: 16px; }
.chart-pair #events-note h3 { font-family: inherit; font-size: 10px; font-weight: 400; text-transform: uppercase;
  letter-spacing: .2em; margin-bottom: 8px; }
.chart-pair #events-note .small { color: var(--mute); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.events .ev-t b { display: block; font-weight: 500; }
.events .ev-t span { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; line-height: 1.45; }
.events .ev-r { line-height: 1.6; }
.events .ev-r b { font-weight: 500; }
.events .ev-r b.up { color: var(--ink); }
.events .ev-r b.down { color: var(--down-ink); }
.tip .ev-x { display: block; max-width: 280px; white-space: normal; line-height: 1.45; margin: 2px 0 4px; }

/* «Чего ждать от стратегии»: выделенный абзац в «Сначала разобраться» на главной (Саша 29.10) */
.t24-expect { margin-top: 48px; padding: 28px 32px; border-left: 2px solid var(--accent); background: var(--bg-hi); }
.t24-expect h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.t24-expect p { max-width: none; margin: 0 0 10px; color: var(--ink-2, var(--ink)); font-size: 16px; line-height: 1.6; }
.t24-expect p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .t24-expect { margin-top: 32px; padding: 20px 18px; } .t24-expect h3 { font-size: 19px; } }
@media (max-width: 600px) {
  .tip.is-ev { transform: translate(4px, 4px) !important; width: calc(100% - 8px); max-width: none; }
  .tip.is-ev .ev-x { max-width: none; }
}

/* Шестой круг (Саша 29.10): переключатель RU/EN без тяжёлой плашки, как пункты меню: текущий язык подчёркнут,
   второй приглушён, между ними волосяная черта; знак из трёх линий снова в логотипе шапки (основа прятала его). */
.lang-sw { display: inline-flex; align-items: center; height: 40px; margin-right: 14px; font-size: 12px; font-weight: 500;
  letter-spacing: .14em; line-height: 1; }
.lang-sw > * { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 9px 0 calc(9px + .07em);
  color: inherit; text-decoration: none; }
.lang-sw > * + *::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px;
  background: currentColor; opacity: .32; }
.lang-sw > [aria-current]::after { content: ""; position: absolute; left: calc(9px + .07em); right: calc(9px + .07em); bottom: 10px;
  height: 1px; background: currentColor; }
.lang-sw > a { opacity: .55; transition: opacity .15s ease; }
.lang-sw > a:hover { opacity: 1; }
.lang-sw > a:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; opacity: 1; }
@media (max-width: 900px) { .lang-sw { height: 38px; margin-right: 6px; } .lang-sw > * { padding: 0 7px 0 calc(7px + .07em); }
  .lang-sw > [aria-current]::after { left: calc(7px + .07em); right: calc(7px + .07em); } }
@media (prefers-reduced-motion: reduce) { .lang-sw > a { transition: none; } }
.tark-dark .hdr .brand > svg { display: block; flex: none; }

/* «Чего ждать»: путь на мониторинг прямо из блока (Саша 29.10: «тут надо ещё раз направить на мониторинг») */
.t24-expect p a:not(.text-link) { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.t24-expect p a:not(.text-link):hover { color: var(--accent); }
.t24-expect .t24-expect-go { margin-top: 18px; }

/* список событий под графиком убран (Саша 29.10: «портянка, только на графике»): разметка остаётся, скрипт пишет в неё */
#events-note { display: none !important; }

/* Вводные абзацы, шапки разделов и правовые тексты на всю ширину колонки, как карточки под ними
   (Саша 29.10: «выравнивание кривое, проверь везде такие косяки») */
.s-line, .sec-head, .sec-head .lead, .s-head .lead, .legal-doc > *, #contact .lead { max-width: none; text-wrap: pretty; }

/* Перекрёстные переходы: мониторинг на «Подход», «Подход» на мониторинг (Саша 29.10) */
.how-more, .ap-go { margin-top: 28px; }
/* «Сотрудничество»: две карточки слева, иллюстрация справа; на телефоне друг под другом */
.pt-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.pt-cards { display: grid; gap: 22px; }
.pt-card { padding: 26px 28px; border: 1px solid var(--line); background: var(--bg-hi); }
.pt-card h2 { margin: 0 0 12px; font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.pt-card p { margin: 0 0 10px; max-width: none; font-size: 16px; line-height: 1.65; color: var(--ink-2, var(--ink)); }
.pt-card p:last-child { margin-bottom: 0; }
.pt-fig { margin: 0; }
.pt-fig svg { display: block; width: 100%; height: auto; }
.pt-ln { stroke: var(--mute); stroke-opacity: .45; stroke-width: 1; }
.pt-ln-soft { stroke-opacity: .22; stroke-dasharray: 2 5; }
.pt-orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.pt-hub { fill: var(--bg-hi); stroke: var(--accent); stroke-width: 1.2; }
.pt-mark { fill: var(--ink); }
.pt-node { fill: var(--bg-hi); stroke: var(--accent); stroke-width: 1.5; }
.pt-terms { margin-top: 32px; font-size: 18px; line-height: 1.6; max-width: none; }
.pt-acts { margin-top: 18px; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; gap: 28px; } .pt-fig { max-width: 420px; margin: 0 auto; }
  .pt-card { padding: 20px 18px; } .pt-card h2 { font-size: 21px; } }
/* История рынка: листание и архив выпусков (29.10) */
.s-head-crumbs .story-intro { margin-top: 18px; max-width: none; }
.story-intro-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-intro-link:hover, .story-intro-link:focus-visible { text-decoration-thickness: 2px; }
.story-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.story-pager a { display: grid; gap: 8px; align-content: start; color: var(--ink); text-decoration: none; }
.story-pager .sp-next { grid-column: 2; text-align: right; justify-items: end; }
.story-pager .sp-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-num); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.story-pager .sp-k .arrow { width: 22px; height: 14px; flex: none; }
.story-pager .sp-prev .arrow { transform: scaleX(-1); }
.story-pager .sp-t { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.3; }
.story-pager a:hover .sp-t, .story-pager a:focus-visible .sp-t { color: var(--accent); }
.story-arch .arch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.story-arch .arch-list > li { border-bottom: 1px solid var(--line); }
.story-arch .arch-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 32px; row-gap: 6px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.story-arch time { grid-row: span 2; padding-top: 5px; font-family: var(--font-num); font-size: 13px; letter-spacing: .06em; color: var(--mute); }
.story-arch .arch-t { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.3; }
.story-arch .arch-x { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.story-arch a.arch-row:hover .arch-t, .story-arch a.arch-row:focus-visible .arch-t { color: var(--accent); }
.sec.story-arch { padding-top: clamp(28px, 4vw, 56px); }
.story-arch .is-cur .arch-row { position: relative; }
.story-arch .is-cur .arch-row::before { content: ""; position: absolute; left: -16px; top: 20px; bottom: 20px; width: 2px; background: var(--accent); }
.story-arch .is-cur time { color: var(--accent); }
.story-arch .is-cur .arch-t { color: var(--accent); }
@media (max-width: 720px) {
  .s-head-crumbs .story-intro { margin-top: 14px; font-size: 16px; line-height: 1.6; }
  .story-pager { grid-template-columns: 1fr; gap: 18px; }
  .story-pager .sp-next { grid-column: 1; text-align: left; justify-items: start; }
  .story-arch .arch-row { grid-template-columns: 1fr; padding: 16px 0; }
  .story-arch time { grid-row: auto; padding-top: 0; }
  .story-arch .arch-t { font-size: 19px; }
  .story-arch .is-cur .arch-row::before { left: -11px; top: 16px; bottom: 16px; }
}
