/* =====================================================================
   SportAI · иерархия текста (18.11). Подключается последней на всех страницах портала.
   Меняет только текст: размеры, межстрочный, межбуквенный, уровни заголовков. Раскладка и цвета — исходные.

   H1        64 / 40 · 800 — один на странице
   H2        40 / 28 · 800 — раздел
   H3        24 / 20 · 700 — блок, карточка
   H4        16      · 700 — подзаголовок карточки, подпись графика
   Lead      18 · 120 %    — вводный абзац под H1
   Body      15 · 100 % · −1 % — весь основной текст
   Small     14            — таблицы, мета
   Label     12 · 700 caps — метки; меньше 12 px текста нет
   Цифра XL  56 / 40 · 800; цифра L 32 / 26 · 800
   ===================================================================== */
:root {
  --t-h1: 64px; --t-h2: 40px; --t-h3: 24px; --t-h4: 16px;
  --t-lead: 18px; --t-body: 15px; --t-small: 14px; --t-label: 12px;
  --t-num-xl: 56px; --t-num-l: 32px;
}
@media (max-width: 760px) {
  :root { --t-h1: 40px; --t-h2: 28px; --t-h3: 20px; --t-num-xl: 40px; --t-num-l: 26px; }
}

/* ---------- body: 15 / 100 % / −1 % ---------- */
body { font-size: var(--t-body); line-height: 1; letter-spacing: -0.01em; }
main p, main li, main dd, main dt, main td, main th, main summary, main small, main label, main span, main a, main button {
  line-height: 1 !important; letter-spacing: -0.01em !important;
}
main p:where(:not(.eyebrow, .lead, .label, .hero-note, .directory-head > p)), main li, main td,
.section-intro, .match-offer-notes > p, .factor > p:not(.metric):not(.sample), .analysis-link > p,
.league-intro, .audit-context, .partner-option > p:not(.partner-api-note), .earning-steps > li {
  font-size: var(--t-body) !important;
}
main p + p { margin-top: 10px; }

/* ---------- заголовки ---------- */
main h1, main .match-head h1, main .directory-head h1 {
  font-size: var(--t-h1) !important; line-height: 1.02 !important; font-weight: 800 !important; letter-spacing: -.04em !important;
}
main h2, main .directory-subhead, main .comparison-heading h2, main .section-head h2, main .desk-heading h2,
main .partner-option h2, main .partner-results h2, main .match-first-outcome h2 {
  font-size: var(--t-h2) !important; line-height: 1.05 !important; font-weight: 800 !important; letter-spacing: -.035em !important;
}
main h3, main .factor h3, main .match-offer-copy h3, main .spotlight-match h3, main .analysis-grid h3, main .editorial-pick h3 {
  font-size: var(--t-h3) !important; line-height: 1.1 !important; font-weight: 700 !important; letter-spacing: -.02em !important;
}
main h4, main .forecast h3, main .comparison-chart-heading h3, main .earning-example-head h3,
main .favorite-feed-group h3, main .line-table-heading h3 {
  font-size: var(--t-h4) !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: -.01em !important;
}
/* все H2 — один размер, в том числе в узких колонках главной */
/* название карточки прогноза дня на главной — H3 */
.portal-home .spotlight-match h2 { font-size: var(--t-h3) !important; line-height: 1.1 !important; letter-spacing: -.02em !important; }

/* ---------- вводный абзац ---------- */
.directory-head > p, .comparison-lede, .hero-copy .lead {
  font-size: var(--t-lead) !important; line-height: 1.2 !important; letter-spacing: -0.01em !important;
}

/* ---------- мелкое ---------- */
.sample, .publication, .comparison-provenance, .directory-note, .league-sample, .match-info, .rank-tools time, .comparison-note { font-size: var(--t-small) !important; }
.eyebrow, .stage-label, .label { font-size: var(--t-label) !important; font-weight: 700 !important; letter-spacing: .09em !important; line-height: 1.3 !important; }

/* ---------- цифры ---------- */
.metric b, .match-money-heading b, .spotlight-return strong, .editorial-pick aside b {
  font-size: var(--t-num-xl) !important; line-height: 1 !important; font-weight: 800 !important; letter-spacing: -.045em !important;
}
.directory-kpis dd, .spotlight-pick strong { font-size: var(--t-num-l) !important; line-height: 1 !important; font-weight: 800 !important; letter-spacing: -.035em !important; }
.match-money-heading span, .spotlight-return span { font-size: var(--t-small) !important; line-height: 1.2 !important; }

/* =====================================================================
   Обложка главной — статичная, на всю ширину: фото, заголовок, одна кнопка, надпись на фото
   ===================================================================== */
.hero {
  --gutter: max(44px, calc((100vw - 1280px) / 2));
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: 600px;
  display: grid; align-content: end; overflow: hidden; isolation: isolate; background: #101314; color: #fff;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,11,12,.92) 0, rgba(10,11,12,.7) 40%, rgba(10,11,12,.1) 72%), linear-gradient(0deg, rgba(10,11,12,.75) 0, rgba(10,11,12,0) 45%); }
.hero-copy { max-width: calc(var(--gutter) + 720px); padding: 48px 48px 64px var(--gutter); }
.hero-copy .label { display: block; color: #c9cfcc; text-transform: uppercase; }
.hero-copy h1 { margin: 16px 0 0 !important; color: #fff !important; }
.hero-copy .lead { margin-top: 18px; max-width: 46ch; color: #d3d8d5; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 28px; padding: 0 22px; background: var(--rust); color: #fff !important; font-size: 16px !important; font-weight: 700; text-decoration: none; }
.hero-cta:hover { background: #8a3014; color: #fff; }
.hero-annot { position: absolute; right: var(--gutter); top: 48px; display: flex; align-items: baseline; gap: 14px; padding: 14px 24px 16px;
  background: rgba(10,11,12,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(243,241,234,.18); border-left: 5px solid #ff8a5c; }
.hero-annot span { font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #d3d8d5; }
.hero-annot b { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #ff8a5c; }
.hero-annot::before { content: ""; position: absolute; left: -4px; top: 100%; width: 110px; height: 2px; background: #eef1f3; transform-origin: 0 0; transform: rotate(125deg); }
.hero-annot::after { content: ""; position: absolute; left: -77px; top: calc(100% + 80px); width: 20px; height: 20px; border: 2px solid #ff8a5c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,138,92,.25); }
.hero-note { margin: 12px 0 0; color: var(--muted); font-size: var(--t-label) !important; }
html, body { overflow-x: clip; }
@media (max-width: 1100px) { .hero-annot { top: 28px; } .hero-annot b { font-size: 52px; } }
@media (max-width: 780px) {
  .hero { --gutter: 15px; min-height: 620px; }
  .hero::before { background: linear-gradient(0deg, rgba(10,11,12,.95) 0, rgba(10,11,12,.82) 50%, rgba(10,11,12,.25) 85%); }
  .hero-photo { object-position: 62% 20%; }
  .hero-copy { padding: 24px 15px 40px; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-annot { top: 16px; right: 15px; padding: 8px 14px 10px; gap: 8px; }
  .hero-annot span { font-size: 12px; }
  .hero-annot b { font-size: 36px; }
  .hero-annot::before, .hero-annot::after { display: none; }
}
/* две карточки рядом на «Подключении» — заголовки карточек уровнем H3 */

main .hero-copy p.lead { font-size: var(--t-lead) !important; line-height: 1.2 !important; }
main .hero-copy p.label { font-size: var(--t-label) !important; line-height: 1.3 !important; }
main p.hero-note { font-size: var(--t-label) !important; margin: 12px 0 28px; }

/* H4 по стилям исходных классов (forecast/chart/feed) теперь тегом h4 */
main .forecast h4, main .comparison-chart-heading h4, main .earning-example-head h4, main .favorite-feed-group h4, main .line-table-heading h4 { margin: 0; }
/* выравнивание блоков с H2 40 px в узких колонках */
.portal-home .desk-heading { align-items: baseline; }
main h4 { margin: 0; }
main .forecast h4 { margin-bottom: 3px; }
main .favorite-feed-group h4 { margin-bottom: 6px; }

/* =====================================================================
   Главная: «Игровой день» — отдельный блок на всю ширину; рейтинг и «Как использовать» — ниже, в две колонки
   ===================================================================== */
.portal-home .portal-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0; padding-top: 0; }
.portal-home .games-desk { padding: 32px 0 40px; border-top: 3px solid var(--ink); }
.portal-home .models-desk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 40px; border-top: 1px solid var(--line); }
.portal-home .models-desk > .earning-guide { margin-top: 0; }
.portal-home .game-spotlight { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin: 16px 0 20px; }
.portal-home .spotlight-match { padding: 24px; }
.portal-home .spotlight-pick { padding: 20px 24px; }
@media (max-width: 900px) {
  .portal-home .models-desk { grid-template-columns: minmax(0, 1fr); }
  .portal-home .game-spotlight { grid-template-columns: minmax(0, 1fr); }
}
.comparison-lede { max-width: 760px; margin: 10px 0 4px; color: var(--ink); }
