/**
 * ForTraders — конкурсы 2026: базовый слой.
 * Токены и примитивы дизайн-кита ui_kits/contests_2026 (claude.ai/design 381da6ba).
 * Область действия — только продуктовый контейнер .ft26; на :root ничего не объявляем,
 * чтобы не задевать остальную тему. Обёртка страницы цепляется через :has(.ft26),
 * потому что тема не выводит body_class() (header.php:249).
 */

/* ── Шрифты ─────────────────────────────────────────────────────── */
/* PF DinDisplay Pro — брендовый шрифт темы, самохост из fonts/.
   Space Grotesk (цифры, --font-data) подключается из css.php ссылкой Google Fonts. */
@font-face {
    font-family: 'PF DinDisplay Pro';
    src: url('../fonts/PFDindisplayproRegMedLight/pfdindisplaypro-light-webfont.woff2') format('woff2'),
         url('../fonts/PFDindisplayproRegMedLight/pfdindisplaypro-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PF DinDisplay Pro';
    src: url('../fonts/PFDindisplayproRegMedLight/pfdindisplaypro-reg-webfont.woff2') format('woff2'),
         url('../fonts/PFDindisplayproRegMedLight/pfdindisplaypro-reg-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PF DinDisplay Pro';
    src: url('../fonts/PFDindisplayproRegMedLight/pfdindisplaypro-med-webfont.woff2') format('woff2'),
         url('../fonts/PFDindisplayproRegMedLight/pfdindisplaypro-med-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ── Токены (на контейнере, не на :root) ────────────────────────── */
.ft26 {
    /* brand amber */
    --amber-500:#F7A600; --amber-400:#FFB800; --amber-300:#FFD748; --amber-700:#E6941A;
    --amber-sun:#F6C343; --amber-tint-100:#FFF3C8; --amber-tint-border:#FFD582;
    --amber-deep:#CC921F; --amber-badge-bg:#FFF7E5; --amber-badge-fg:#9A6B00;
    --amber-chip-bg:#FDF9EF; --amber-chip-fg:#A17200; --amber-pill-fg:#1F1A09;
    /* ink */
    --ink-900:#0B0E11; --ink-850:#161A23; --ink-800:#17181E; --ink-650:#2A2E33; --ink-500:#3A4250;
    /* neutrals */
    --white:#FFFFFF; --gray-50:#F8F9FA; --gray-75:#F6F8FB; --gray-100:#F5F5F5;
    --gray-150:#EEF2F7; --gray-200:#E5E7EB; --gray-250:#E2E8F0; --gray-300:#E6E9F0;
    --gray-350:#CBD5E1; --gray-400:#9AA3B2; --gray-450:#9CA3AF; --gray-550:#6B7280;
    --gray-600:#64748B; --gray-800:#1F2937; --gray-850:#1E293B;
    /* semantic market */
    --up-500:#16C784; --up-600:#11A36A; --up-700:#188653;
    --down-500:#F04438; --link-blue:#146EB3; --link-blue-500:#167AC6;
    /* aliases */
    --brand:var(--amber-500);
    --brand-gradient:linear-gradient(135deg,#F7A600 0%,#FFD748 100%);
    --surface-page:var(--gray-75);
    --surface-card:var(--white);
    --surface-sunken:var(--gray-50);
    --surface-tabs:rgba(242,244,247,0.9);
    --text-heading:var(--gray-850);
    --text-body:var(--gray-800);
    --text-muted:var(--gray-600);
    --text-subtle:var(--gray-400);
    --text-meta-color:var(--gray-550);
    --text-on-brand:var(--ink-800);
    --text-on-dark:#FFFFFF;
    --text-on-dark-muted:#CCC8C8;
    --border-default:var(--gray-250);
    --border-soft:var(--gray-200);
    --border-strong:var(--gray-350);
    --link:var(--link-blue);
    --link-hover:var(--link-blue-500);
    /* typography */
    --font-din:'PF DinDisplay Pro','PT Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
    --font-sans:'PF DinDisplay Pro','Open Sans','PT Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
    --font-grotesk:'Space Grotesk','Inter',system-ui,-apple-system,sans-serif;
    --font-heading:var(--font-din);
    --font-interface:var(--font-sans);
    --font-data:var(--font-grotesk);
    --text-size-3xl:clamp(1.875rem, calc(1.6rem + 1.375vw), 2.5rem);
    /* radii */
    --radius-xs:4px; --radius-sm:8px; --radius-md:10px; --radius-lg:12px;
    --radius-xl:14px; --radius-2xl:18px; --radius-3xl:26px; --radius-pill:999px;
    /* shadows */
    --shadow-xs:0 2px 8px rgba(0,0,0,0.04);
    --shadow-md:0 6px 18px rgba(16,24,40,0.06);
    --shadow-lg:0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl:0 12px 40px rgba(16,24,40,0.08);
    --shadow-hero:0 14px 36px rgba(25,33,43,0.05);
    --shadow-brand:0 4px 12px rgba(247,166,0,0.3);
    --shadow-tab-active:0 6px 18px rgba(16,24,40,0.09);
    --focus-ring:0 0 0 3px rgba(247,166,0,0.35);
    /* v2: тёплая палитра кита bf7e7202 */
    --gray-25:#FCFBF6;
    --gray-500:#8F949C;
    --amber-600:#F59B00;
    --price-up:var(--up-500);
    --price-down:var(--down-500);
    --surface-inset:var(--gray-150);
    --font-body:var(--font-sans);
    --text-size-2xl:clamp(1.5rem, calc(1.3rem + 1vw), 2rem);
    --letter-spacing-chip:0.5px;
    --transition-base:all 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-fast:all 0.2s ease;
    --border-warm:#E6E7E1;
    --surface-warm:#FCFBF6;
    --page-warm:#F7F6F1;
    /* motion */
    --ft26-ease:cubic-bezier(0.16,1,0.3,1);
    /* controls */
    --control-h-sm:32px; --control-h:40px; --control-h-lg:48px;
}

/* ── Обёртка темы на страницах 2026 ─────────────────────────────── */
#top.fx_wrapper:has(.ft26) {
    max-width: 1424px;
    background: #F7F6F1;
}
.fx_wrapper:has(.ft26) .fx_container.fx_bg {
    background: transparent;
}
body:has(.ft26) {
    background-color: #F7F6F1;
}

/* ── Базовая типографика контейнера ─────────────────────────────── */
.ft26 {
    font-family: var(--font-interface);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
}
.ft26 *, .ft26 *::before, .ft26 *::after { box-sizing: border-box; }
.ft26 a { color: var(--link); text-decoration: none; }
.ft26 a:hover { color: var(--link-hover); text-decoration: none; }
.ft26 h1, .ft26 h2, .ft26 h3, .ft26 h4 { margin: 0; text-wrap: pretty; }
.ft26 p { margin: 0; }
.ft26 img { max-width: 100%; height: auto; }
.ft26-num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* Продуктовая колонка: вертикальный ритм кита */
.ft26-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px 0 56px;
    min-width: 0;
}

/* Сетка «контент + продуктовый рейл 330px» */
.ft26-cols {
    display: grid;
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 18px;
    align-items: start;
}
.ft26-cols__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ft26-cols__rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ── Хлебные крошки (nav > ol, microdata сохраняется в шаблонах) ── */
.ft26-crumbs { font-size: 12.5px; color: var(--text-subtle); }
.ft26-crumbs ol {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none; margin: 0; padding: 0;
}
.ft26-crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; float: none; position: static; }
.ft26-crumbs li + li::before { content: "/"; color: var(--gray-350); }
.ft26-crumbs a { color: var(--text-meta-color); }
.ft26-crumbs a:hover { color: var(--text-heading); }
.ft26-crumbs li[aria-current] > span,
.ft26-crumbs .is-current { color: var(--text-heading); font-weight: 600; }

/* ── Карточка ───────────────────────────────────────────────────── */
.ft26-card {
    background: var(--surface-card);
    border: 1px solid var(--border-warm, #E6E7E1);
    border-radius: var(--radius-2xl);
    box-shadow: none;
    padding: 20px;
    min-width: 0;
}
.ft26-card--pad0 { padding: 0; }
.ft26-card--pad16 { padding: 16px; }
.ft26-card--pad24 { padding: 24px; }

/* ── Заголовок секции ───────────────────────────────────────────── */
.ft26-sechead {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.ft26-sechead__title {
    font-family: var(--font-heading);
    font-size: 30px; font-weight: 700; line-height: 1.25;
    color: var(--text-heading);
}
.ft26-sechead__action {
    font-size: 13px; font-weight: 600; color: var(--link); white-space: nowrap;
}
.ft26-sechead--card { margin-bottom: 12px; }
.ft26-sechead--card .ft26-sechead__title {
    font-family: var(--font-interface);
    font-size: 14px; font-weight: 750; letter-spacing: 0.2px;
}
.ft26-sechead__meta { font-size: 13px; font-weight: 400; color: var(--text-subtle); white-space: nowrap; }

/* ── Лейбл (uppercase 11px) ─────────────────────────────────────── */
.ft26-label {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-subtle);
}
.ft26-label--amber { color: var(--amber-deep); }
.ft26-label--ondark { color: var(--text-on-dark-muted); }

/* ── Чипы ───────────────────────────────────────────────────────── */
.ft26-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-interface); line-height: 1.2; white-space: nowrap;
}
.ft26-chip--up { background: rgba(22,199,132,.12); color: var(--up-600); border-radius: var(--radius-md); padding: 4px 10px; font-size: 12px; font-weight: 700; }
.ft26-chip--down { background: rgba(240,68,56,.1); color: var(--down-500); border-radius: var(--radius-md); padding: 4px 10px; font-size: 12px; font-weight: 700; }
.ft26-chip--neutral { background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 2px 7px; font-size: 11px; font-weight: 500; }
.ft26-chip--status { background: var(--amber-chip-bg); color: var(--amber-chip-fg); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 6px 12px; font-size: 12px; font-weight: 500; }
.ft26-chip--badge { background: var(--amber-badge-bg); color: var(--amber-badge-fg); border-radius: var(--radius-md); padding: 6px 10px; font-size: 11px; font-weight: 600; }

/* Статусные пилюли (по ST_TONE кита) — participating / finished / disqualified / quitted */
.ft26-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    border-radius: var(--radius-pill); padding: 2px 9px; white-space: nowrap;
}
.ft26-pill--active { background: rgba(22,199,132,.1); color: var(--up-700); border: 1px solid rgba(22,199,132,.3); }
.ft26-pill--done { background: var(--gray-100); color: var(--text-meta-color); border: 1px solid var(--border-soft); }
.ft26-pill--dq { background: rgba(240,68,56,.07); color: var(--down-500); border: 1px solid rgba(240,68,56,.25); }

/* ── Кнопки ─────────────────────────────────────────────────────── */
.ft26-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--control-h); padding: 0 20px;
    font-family: var(--font-interface); font-size: 14px; font-weight: 700;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color 160ms var(--ft26-ease), color 160ms var(--ft26-ease), border-color 160ms var(--ft26-ease), box-shadow 160ms var(--ft26-ease), transform 160ms var(--ft26-ease);
}
.ft26-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ft26-btn:active { transform: scale(.97); }
.ft26-btn--primary { background: var(--amber-500); color: var(--text-on-brand); }
.ft26 a.ft26-btn--primary { color: var(--text-on-brand); }
.ft26-btn--primary:hover { background: var(--amber-700); color: var(--text-on-brand); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.ft26-btn--secondary { background: var(--surface-card); color: var(--text-heading); border-color: var(--border-default); font-weight: 650; }
.ft26 a.ft26-btn--secondary { color: var(--text-heading); }
.ft26-btn--secondary:hover { border-color: var(--border-strong); color: var(--text-heading); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ft26-btn--ghost { background: transparent; color: var(--text-muted); }
.ft26-btn--ghost:hover { background: var(--surface-sunken); color: var(--text-heading); }
.ft26-btn--dark { background: var(--ink-800); color: var(--text-on-dark); }
.ft26-btn--dark:hover { background: var(--ink-650); color: var(--text-on-dark); }
.ft26-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.ft26 a.ft26-btn--outline-light { color: #fff; }
.ft26-btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }
.ft26-btn--danger { background: transparent; color: var(--down-500); border-color: rgba(240,68,56,.35); }
.ft26-btn--danger:hover { background: rgba(240,68,56,.06); }
.ft26-btn--sm { height: var(--control-h-sm); padding: 0 14px; font-size: 13px; }
.ft26-btn--lg { height: var(--control-h-lg); padding: 0 28px; font-size: 16px; }
.ft26-btn--block { width: 100%; }
.ft26-btn[disabled], .ft26-btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Медаль места ───────────────────────────────────────────────── */
.ft26-medal {
    display: inline-grid; place-content: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    font-family: var(--font-data); font-size: 12px; font-weight: 700;
    background: transparent; color: var(--text-subtle);
    border: 1px solid var(--border-soft);
}
.ft26-medal--1 { background: linear-gradient(135deg,#F7A600,#FFD748); color: var(--amber-pill-fg); border: none; }
.ft26-medal--2 { background: #E8ECF1; color: #4A5563; border: 1px solid #D5DBE3; }
.ft26-medal--3 { background: #F3E4D3; color: #8A5A2B; border: 1px solid #E6CCAD; }
.ft26-medal--sm { width: 24px; height: 24px; font-size: 10.5px; }
.ft26-medal--md { width: 34px; height: 34px; font-size: 15px; }
.ft26-medal--lg { width: 38px; height: 38px; font-size: 16.5px; }
.ft26-medal--xl { width: 44px; height: 44px; font-size: 19px; }

/* ── KV-строки (информация о конкурсе/счёте) ────────────────────── */
.ft26-kv { display: flex; flex-direction: column; }
.ft26-kv__row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 0; font-size: 13.5px;
}
.ft26-kv__row + .ft26-kv__row { border-top: 1px solid var(--border-soft); }
.ft26-kv__k { color: var(--text-meta-color); }
.ft26-kv__v { font-weight: 600; color: var(--text-heading); text-align: right; }
.ft26-kv__v--num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* ── Метр (горизонтальный прогресс) ─────────────────────────────── */
.ft26-meter {
    background: var(--gray-150); border-radius: var(--radius-pill);
    height: 6px; overflow: hidden;
}
.ft26-meter--h8 { height: 8px; }
.ft26-meter__fill {
    height: 100%; border-radius: var(--radius-pill);
    background: var(--amber-500);
    transform: translateX(-101%);
    transition: transform .9s var(--ft26-ease);
    transition-delay: var(--ft26-d, 0ms);
}
.ft26-meter__fill--ink { background: var(--ink-500); }
.ft26-meter__fill--up { background: var(--up-500); }
.ft26-meter__fill--down { background: var(--down-500); }
.is-in .ft26-meter__fill, .ft26-meter.is-in .ft26-meter__fill { transform: none; }

/* ── Донат-индикатор ────────────────────────────────────────────── */
.ft26-donut { position: relative; flex: none; }
.ft26-donut svg { transform: rotate(-90deg); display: block; }
.ft26-donut__track { fill: none; stroke: var(--gray-150); }
.ft26-donut__val {
    fill: none; stroke: var(--up-500); stroke-linecap: round;
    stroke-dashoffset: var(--ft26-c, 0);
    transition: stroke-dashoffset 1.1s var(--ft26-ease) .1s;
}
.ft26-donut__val--amber { stroke: var(--amber-500); }
.is-in .ft26-donut__val, .ft26-donut.is-in .ft26-donut__val { stroke-dashoffset: var(--ft26-o, 0); }
.ft26-donut__center {
    position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ft26-donut__num { font-family: var(--font-data); font-size: 19px; font-weight: 700; color: var(--text-heading); }
.ft26-donut__sub { font-size: 10px; color: var(--text-subtle); font-weight: 600; }

/* ── Пульс (live-точка) ─────────────────────────────────────────── */
.ft26-pulse {
    position: relative; display: inline-block; flex: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--up-500); color: var(--up-500);
}
.ft26-pulse--down { background: var(--down-500); color: var(--down-500); }
.ft26-pulse::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 1.5px solid currentColor; opacity: 0;
    animation: ft26Ring 2s cubic-bezier(0.16,1,0.3,1) infinite;
}
@keyframes ft26Ring {
    0% { transform: scale(.5); opacity: .7; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { opacity: 0; }
}
.ft26-live {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: var(--up-600);
}

/* ── Countdown ──────────────────────────────────────────────────── */
.ft26-countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.ft26-countdown__cell {
    background: var(--surface-card); border: 1px solid var(--border-soft);
    border-radius: 10px; padding: 8px 0 6px; text-align: center; min-width: 0;
}
.ft26-countdown--dark .ft26-countdown__cell { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.ft26-countdown__num {
    display: block;
    font-family: var(--font-data); font-variant-numeric: tabular-nums;
    font-size: 24px; font-weight: 700; line-height: 1.1;
    color: var(--text-heading);
}
.ft26-countdown--dark .ft26-countdown__num { color: #fff; }
.ft26-countdown__unit {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-subtle);
}
.ft26-countdown--dark .ft26-countdown__unit { color: var(--text-on-dark-muted); }

/* тик смены цифры */
.ft26-tick { animation: ft26Tick .5s cubic-bezier(0.16,1,0.3,1); }
@keyframes ft26Tick {
    from { opacity: .2; transform: translateY(-5px); }
    to { opacity: 1; transform: none; }
}

/* ── Аккордеон ──────────────────────────────────────────────────── */
.ft26-acc { display: flex; flex-direction: column; gap: 8px; }
.ft26-acc__item {
    background: var(--surface-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color .25s var(--ft26-ease);
}
.ft26-acc__item.is-open { border-color: var(--amber-tint-border); }
.ft26-acc__btn {
    display: flex; width: 100%; align-items: center; gap: 10px; justify-content: space-between;
    background: none; border: none; cursor: pointer; text-align: left;
    padding: 13px 16px;
    font-family: var(--font-interface); font-size: 14px; font-weight: 700;
    color: var(--text-heading);
}
.ft26-acc__icon { flex: none; transition: transform .3s var(--ft26-ease); }
.ft26-acc__item.is-open .ft26-acc__icon { transform: rotate(45deg); }
.ft26-acc__panel {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ft26-ease);
}
.ft26-acc__item.is-open .ft26-acc__panel { grid-template-rows: 1fr; }
.ft26-acc__clip { overflow: hidden; min-height: 0; }
.ft26-acc__body {
    padding: 0 16px 14px;
    font-size: 13.5px; line-height: 1.6; color: var(--text-meta-color);
}

/* ── Табы (market pill row) ─────────────────────────────────────── */
.ft26-tabs {
    display: flex; overflow-x: auto;
    background: var(--surface-tabs); border: 1px solid var(--border-default);
    border-radius: var(--radius-xl); padding: 6px; gap: 8px;
}
.ft26-tabs__tab {
    position: relative; display: flex; align-items: center; flex: none;
    padding: 9px 14px; border: none; background: transparent; cursor: pointer;
    font-family: var(--font-interface); font-size: 13px; font-weight: 650;
    color: #616a7a; border-radius: var(--radius-lg);
    white-space: nowrap; line-height: 1.3;
    transition: background-color 180ms var(--ft26-ease), color 180ms var(--ft26-ease), box-shadow 180ms var(--ft26-ease);
}
.ft26-tabs__tab:hover { color: var(--text-heading); }
.ft26-tabs__tab.is-active {
    background: var(--surface-card); color: var(--text-heading);
    box-shadow: var(--shadow-tab-active);
}
.ft26-tabs__tab.is-active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
    height: 2px; border-radius: 2px; opacity: .9;
    background: linear-gradient(90deg,#F6C343,#FFB800);
}
.ft26-tabpanel { min-width: 0; }
.ft26-tabpanel[hidden] { display: none; }

/* ── Таблицы ────────────────────────────────────────────────────── */
.ft26-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ft26-table { width: 100%; border-collapse: collapse; margin: 0; }
.ft26-table th {
    text-align: left; padding: 8px 10px;
    font-family: var(--font-interface);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-subtle);
    border-bottom: 1px solid var(--border-default);
    background: transparent;
    white-space: nowrap;
}
.ft26-table td {
    padding: 11px 10px; font-size: 13.5px;
    border-bottom: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-body);
    white-space: nowrap;
    vertical-align: middle;
}
.ft26-table th.is-num, .ft26-table td.is-num { text-align: right; }
.ft26-table td.is-num, .ft26-table td.is-data {
    font-family: var(--font-data); font-variant-numeric: tabular-nums;
}
.ft26-table tbody tr { transition: background .2s; }
.ft26-table--hover tbody tr:hover > td { background: var(--gray-75); }
.ft26-table tbody tr.is-selected > td { background: var(--amber-badge-bg); }
.ft26-table .is-up { color: var(--up-600); }
.ft26-table .is-down { color: var(--down-500); }

/* Пагинация под таблицей */
.ft26-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.ft26-pages a, .ft26-pages span, .ft26-pages button {
    display: inline-grid; place-content: center;
    min-width: 30px; height: 30px; padding: 0 6px;
    border-radius: 8px; border: 1px solid var(--border-soft);
    background: var(--surface-card); color: var(--text-body);
    font-family: var(--font-data); font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none;
}
.ft26-pages .is-current { background: var(--ink-850); border-color: var(--ink-850); color: #fff; }
.ft26-pages a:hover { border-color: var(--border-strong); color: var(--text-heading); }

/* ── Формы ──────────────────────────────────────────────────────── */
.ft26-field { display: block; min-width: 0; }
.ft26-field__head {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.ft26-field__label { font-size: 12.5px; font-weight: 700; color: var(--text-heading); }
.ft26-field__hint { font-size: 11.5px; color: var(--text-subtle); }
.ft26-input, .ft26-select {
    width: 100%; height: 44px; padding: 0 14px;
    border-radius: 10px; border: 1.5px solid var(--border-default);
    background: var(--surface-card);
    font-family: var(--font-data); font-size: 14.5px; color: var(--text-heading);
    outline: none;
    transition: border-color .2s var(--ft26-ease), box-shadow .2s var(--ft26-ease);
    -webkit-appearance: none; appearance: none;
    box-shadow: none;
}
.ft26-input:focus, .ft26-select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(247,166,0,.15);
}
.ft26-input.is-error, .ft26-select.is-error { border-color: var(--down-500); }
.ft26-input::placeholder { color: var(--text-subtle); }
.ft26-select {
    background-image: linear-gradient(45deg, transparent 50%, #9AA3B2 50%), linear-gradient(135deg, #9AA3B2 50%, transparent 50%);
    background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px;
    background-size: 6px 6px; background-repeat: no-repeat;
    padding-right: 34px;
}
.ft26-seg {
    display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px;
    background: var(--gray-150); border-radius: 10px; padding: 4px;
}
.ft26-seg__btn {
    height: 36px; border: none; border-radius: 8px; cursor: pointer;
    font-family: var(--font-data); font-size: 13.5px; font-weight: 700;
    background: transparent; color: var(--text-meta-color);
    transition: background-color 180ms var(--ft26-ease), color 180ms var(--ft26-ease), box-shadow 180ms var(--ft26-ease);
}
.ft26-seg__btn.is-active {
    background: var(--surface-card); color: var(--text-heading);
    box-shadow: var(--shadow-tab-active);
}
.ft26-form-error {
    margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--down-500);
}
.ft26-note {
    font-size: 12.5px; line-height: 1.6; color: var(--text-meta-color);
    background: var(--amber-badge-bg); border: 1px solid var(--amber-tint-border);
    border-radius: 10px; padding: 10px 12px;
}

/* ── Hero-оболочки ──────────────────────────────────────────────── */
.ft26-hero {
    position: relative; overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-hero);
}
.ft26-hero--dark {
    background: var(--ink-850); border: none; color: #fff;
}
.ft26-hero__glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    top: -140px; right: -120px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(247,166,0,.14), transparent 65%);
}
.ft26-hero--dark .ft26-hero__glow {
    top: -160px; right: 120px; width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(247,166,0,.16), transparent 62%);
}
.ft26-hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, rgba(11,14,17,.4), transparent 55%);
}
.ft26-hero__inner { position: relative; padding: 30px; }

/* тёмные пилюли hero */
.ft26-heropill {
    display: inline-flex; align-items: center; gap: 7px;
    border-radius: var(--radius-pill); padding: 5px 12px;
    font-size: 12px; font-weight: 700;
}
.ft26-heropill--live { background: rgba(22,199,132,.14); border: 1px solid rgba(22,199,132,.35); color: var(--up-500); }
.ft26-heropill--amber { background: rgba(247,166,0,.12); border: 1px solid rgba(247,166,0,.35); color: var(--amber-300); }
.ft26-heropill--muted { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--text-on-dark-muted); }

/* ── KPI-карточка ───────────────────────────────────────────────── */
.ft26-kpi { padding: 16px; }
.ft26-kpi__row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ft26-kpi__val {
    font-family: var(--font-data); font-variant-numeric: tabular-nums;
    font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--text-heading);
}
.ft26-kpi__delta { font-family: var(--font-data); font-size: 13px; font-weight: 700; }
.ft26-kpi__delta.is-up { color: var(--up-600); }
.ft26-kpi__delta.is-down { color: var(--down-500); }
.ft26-kpi__note { margin-top: 4px; font-size: 12px; color: var(--text-meta-color); }

/* ── Моушен-слой ────────────────────────────────────────────────── */
.ft26-reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity .55s var(--ft26-ease), transform .55s var(--ft26-ease);
    transition-delay: var(--ft26-d, 0ms);
}
.ft26-reveal.is-in { opacity: 1; transform: none; }
/* до инициализации JS ничего не прячем */
html.no-js .ft26-reveal, .ft26--noio .ft26-reveal { opacity: 1; transform: none; }

@keyframes ft26In {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ── StatStrip (v2): полоса плиток-показателей ──────────────────── */
.ft26-statstrip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--surface-warm, #FCFBF6);
    border-top: 1px solid var(--border-warm, #E6E7E1);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.ft26-statstrip--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ft26-stattile { text-align: center; min-width: 0; }
.ft26-stattile__label {
    display: block;
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-subtle);
    margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ft26-stattile__value {
    display: block;
    font-family: var(--font-data); font-variant-numeric: tabular-nums;
    font-size: 20px; font-weight: 700; line-height: 1.2;
    color: var(--text-heading);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ft26-stattile__value.is-up { color: var(--up-600); }
.ft26-stattile__value.is-down { color: var(--down-500); }
.ft26-stattile__value.is-amber { color: var(--amber-600); }
@media (max-width: 768px) {
    .ft26-statstrip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── EquityCurve (v2): SVG-кривая доходности, рендер PHP ────────── */
.ft26-curve { min-width: 0; }
.ft26-curve svg { display: block; width: 100%; height: auto; }
.ft26-curve__axis {
    display: flex; justify-content: space-between;
    padding: 6px 2px 0;
    font-family: var(--font-data); font-size: 11px; color: var(--text-subtle);
}

/* ── Нумерованный список правил (v2) ────────────────────────────── */
.ft26-rowlist { display: flex; flex-direction: column; }
.ft26-rowlist__row {
    display: grid;
    grid-template-columns: 34px minmax(120px, 220px) minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    font-size: 13.5px;
    align-items: baseline;
}
.ft26-rowlist__row + .ft26-rowlist__row { border-top: 1px solid var(--border-warm, #E6E7E1); }
.ft26-rowlist__num { font-family: var(--font-data); font-weight: 700; color: var(--amber-600); }
.ft26-rowlist__term { font-weight: 700; color: var(--text-heading); }
.ft26-rowlist__desc { color: var(--text-meta-color); line-height: 1.55; }
@media (max-width: 560px) {
    .ft26-rowlist__row { grid-template-columns: 28px minmax(0, 1fr); }
    .ft26-rowlist__desc { grid-column: 2; }
}

/* ── BannerRail (v2): баннерный сайдбар ─────────────────────────── */
.ft26-brail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ft26-brail__sticky { position: sticky; top: 16px; }
.ft26-brail__card {
    background: var(--surface-card);
    border: 1px solid var(--border-warm, #E6E7E1);
    border-radius: var(--radius-2xl);
    padding: 16px;
}
.ft26-brail__title {
    font-size: 13px; font-weight: 750; color: var(--text-heading);
    margin: 0 0 4px;
}
.ft26-brail__row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 9px 0;
    font-size: 13px;
}
.ft26-brail__row + .ft26-brail__row { border-top: 1px solid var(--border-warm, #E6E7E1); }
.ft26-brail__name {
    color: var(--text-heading); font-weight: 600; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ft26-brail__name:hover { color: var(--amber-deep); }
.ft26-brail__fund { font-family: var(--font-data); font-weight: 700; color: var(--amber-600); flex: none; }

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ft26-reveal { opacity: 1; transform: none; transition: none; }
    .ft26-meter__fill { transform: none; transition: none; }
    .ft26-donut__val { stroke-dashoffset: var(--ft26-o, 0); transition: none; }
    .ft26-pulse::after, .ft26-tick { animation: none; }
    .ft26 *, .ft26 *::before, .ft26 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Адаптив базовых примитивов ─────────────────────────────────── */
@media (max-width: 1100px) {
    .ft26-cols { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
    .ft26-shell { padding: 16px 0 40px; gap: 16px; }
    .ft26-sechead__title { font-size: 24px; }
    .ft26-hero__inner { padding: 20px; }
    .ft26-countdown__num { font-size: 20px; }
}
@media (max-width: 480px) {
    .ft26-card { padding: 16px; }
    .ft26-card--pad0 { padding: 0; }
    .ft26-hero__inner { padding: 16px; }
    .ft26-kpi__val { font-size: 20px; }
}
