/* =================================================================
   x2bet.ru — спортивно-аналитическое издание
   Дизайн-прототип. Светлая редакционная схема.
   Палитра: графит на белом, «полевой» зелёный (primary),
   янтарь (только коэффициенты/verdict). Без внешних зависимостей.
   ================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Neutrals */
  --paper:        #ffffff;
  --surface:      #f5f7f8;
  --surface-2:    #eef2f1;
  --ink:          #15191c;
  --ink-2:        #3a4248;
  --muted:        #5b6470;
  --line:         #e3e7ea;
  --line-strong:  #d2d8dc;

  /* Brand — глубокий «полевой» зелёный */
  --green:        #0e5a3a;
  --green-700:    #0a4a30;
  --green-600:    #0f7a4d;
  --green-tint:   #e7f1ec;
  --green-tint-2: #d6e7df;

  /* Accent — янтарь (только коэффициенты / verdict) */
  --amber:        #f2a50c;
  --amber-700:    #c4810a;
  --amber-tint:   #fdf3dc;
  --amber-line:   #f0d79a;

  /* Семантика ставок */
  --win:          #0f7a4d;   /* П1/П2 победа */
  --total:        #1f6f9c;   /* тотал/фора — нейтрально-синий */
  --total-tint:   #e4eff5;
  --risk:         #c0492b;   /* риск / архивность / 18+ */
  --risk-tint:    #fbe9e4;

  /* Виды спорта — акцент только в иконке/бейдже */
  --sp-football:   #0f7a4d;
  --sp-tennis:     #6ba515;
  --sp-hockey:     #2563a8;
  --sp-basketball: #d97316;
  --sp-mma:        #c0392b;

  /* Geometry */
  --maxw:        1200px;
  --maxw-read:   720px;
  --radius:      14px;
  --radius-sm:   9px;
  --radius-pill: 999px;
  --gutter:      clamp(16px, 4vw, 32px);

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(20,30,25,.05), 0 1px 1px rgba(20,30,25,.04);
  --shadow-2: 0 4px 14px rgba(16,40,28,.08), 0 1px 3px rgba(16,40,28,.06);
  --shadow-3: 0 18px 48px rgba(12,40,28,.16), 0 6px 16px rgba(12,40,28,.10);

  /* Type */
  --serif: Georgia, "PT Serif", "Times New Roman", "Noto Serif", serif;
  --sans:  "Trebuchet MS", "Segoe UI", "Helvetica Neue", -apple-system,
           BlinkMacSystemFont, "PT Sans", "Roboto", Arial, sans-serif;
  --mono:  "DejaVu Sans Mono", "SF Mono", ui-monospace, "Consolas", monospace;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 88% -8%, rgba(14,90,58,.06), transparent 60%),
    var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-600); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: .1px;
  overflow-wrap: break-word;
  hyphens: auto;
}

p { overflow-wrap: break-word; }

::selection { background: var(--green-tint-2); color: var(--green-700); }

:focus-visible {
  outline: 2.5px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color:#fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark { width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink);
  letter-spacing: .2px;
}
.brand__name b { color: var(--green); font-weight: 700; }
.brand__tag { font-size: 11px; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 13px; border-radius: 9px;
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: background .16s, color .16s;
}
.nav-link:hover, .nav-item:focus-within .nav-link { background: var(--green-tint); color: var(--green-700); }
.nav-link .sport-ico { width: 18px; height: 18px; }
.nav-link[aria-current="page"] { color: var(--green-700); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav-link .caret { width: 9px; height: 9px; margin-left: -1px; opacity: .55; transition: transform .18s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

/* Mega-menu */
.mega {
  position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 14px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega::before { content:""; position:absolute; top:-9px; left:0; right:0; height:9px; }
.mega__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  padding: 2px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.mega__link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
}
.mega__link:hover { background: var(--surface); color: var(--green-700); }
.mega__link .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega__all { display:block; margin-top: 8px; padding: 9px 10px; border-radius: 8px; background: var(--green-tint); color: var(--green-700); font-weight: 600; font-size: 14px; text-align:center; }
.mega__all:hover { background: var(--green-tint-2); }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-tint); }
.icon-btn svg { width: 19px; height: 19px; }

.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; min-width: 36px; padding: 0 9px; border-radius: 8px;
  background: var(--risk-tint); color: var(--risk);
  font-weight: 800; font-size: 13px; letter-spacing: .3px;
  border: 1px solid #f0cabd;
}

.burger { display: none; }

/* Search panel */
.search-panel {
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: 0; overflow: hidden;
  transition: max-height .26s ease;
}
.search-panel.open { max-height: 120px; }
.search-panel__inner { display: flex; gap: 10px; align-items: center; padding: 14px var(--gutter); }
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 15px;
}
.search-field:focus-within { border-color: var(--green-600); background: #fff; }
.search-field svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.search-field input { flex: 1; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--green-700); color: #fff; box-shadow: var(--shadow-2); }
.btn--ghost { background: var(--paper); color: var(--green-700); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--green-600); background: var(--green-tint); }
.btn--soft { background: var(--green-tint); color: var(--green-700); }
.btn--soft:hover { background: var(--green-tint-2); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: 13.5px; border-radius: 8px; }

/* ---------- 5. Badges / chips / tags ---------- */
.sport-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 8px; border-radius: var(--radius-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.sport-badge .sport-ico { width: 16px; height: 16px; }
.sport-badge--football   .sport-ico { color: var(--sp-football); }
.sport-badge--tennis     .sport-ico { color: var(--sp-tennis); }
.sport-badge--hockey     .sport-ico { color: var(--sp-hockey); }
.sport-badge--basketball .sport-ico { color: var(--sp-basketball); }
.sport-badge--mma        .sport-ico { color: var(--sp-mma); }

.league-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 7px; background: var(--green-tint); color: var(--green-700);
  font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--paper); border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-tint); }
.chip .count {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface); padding: 1px 7px; border-radius: 20px; font-variant-numeric: tabular-nums;
}
.chip:hover .count { color: var(--green-700); background: #fff; }
.chip--active { background: var(--green); border-color: var(--green); color: #fff; }
.chip--active .count { background: rgba(255,255,255,.2); color:#fff; }

.tag {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.tag::before { content: "#"; color: var(--muted); margin-right: 3px; }
.tag:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-tint); }

/* bet-type tag */
.bet-type {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 7px;
  font-size: 13px; font-weight: 800; letter-spacing: .3px; white-space: nowrap;
  border: 1px solid transparent;
}
.bet-type--win   { background: var(--green-tint);  color: var(--win);   border-color: var(--green-tint-2); }
.bet-type--total { background: var(--total-tint);  color: var(--total); border-color: #cfe2ed; }
.bet-type--fora  { background: var(--total-tint);  color: var(--total); border-color: #cfe2ed; }

/* odds chip — янтарь */
.odds-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 11px; border-radius: 8px;
  background: var(--amber-tint); border: 1px solid var(--amber-line);
  color: var(--amber-700); font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.odds-chip__label { font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; opacity: .85; }
.odds-chip__value { font-size: 16px; }
.odds-chip--lg .odds-chip__value { font-size: 22px; }
.odds-chip--archived { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }

/* archive notice / pill */
.archive-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: var(--radius-pill);
  background: var(--risk-tint); border: 1px solid #f0cabd;
  color: var(--risk); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.archive-pill svg { width: 14px; height: 14px; }

.archive-notice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; border-radius: var(--radius-sm);
  background: var(--risk-tint); border: 1px solid #f0cabd; border-left: 4px solid var(--risk);
}
.archive-notice svg { width: 22px; height: 22px; color: var(--risk); flex-shrink: 0; margin-top: 1px; }
.archive-notice strong { color: var(--risk); display: block; font-size: 14.5px; margin-bottom: 2px; }
.archive-notice p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------- 6. Match prediction card (ядро) ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }

.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media-badges {
  position: absolute; left: 10px; top: 10px; right: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card__media .sport-badge { background: rgba(255,255,255,.94); backdrop-filter: blur(4px); box-shadow: var(--shadow-1); }
.card__media .archive-pill { box-shadow: var(--shadow-1); }

/* placeholder media state */
.card__media--ph { background: var(--green); display: grid; place-items: center; }
.card__media--ph .ph-art {
  width: 100%; height: 100%; object-fit: cover; opacity: .96;
}

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 15px 16px 16px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.card__date { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.card__date svg { width: 13px; height: 13px; opacity: .7; }
.card__title {
  font-family: var(--serif); font-size: 18px; line-height: 1.28; font-weight: 700;
  color: var(--ink); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card__title { color: var(--green-700); }
.card__title a { color: inherit; }

.card__verdict {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
}
.card__verdict .vl { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 700; width: 100%; margin-bottom: -3px; }

.card__cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 700; color: var(--green-700);
}
.card__cta svg { width: 15px; height: 15px; transition: transform .16s; }
.card:hover .card__cta svg { transform: translateX(3px); }
.card__foot { display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-top: 2px; }

/* ui-kit toggle: force placeholder media state on the whole card */
.card--ph .card__media { background: var(--green); }
.card--ph .card__media img { object-fit: cover; filter: none; }

/* archived card treatment */
.card--archived { }
.card--archived .card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,25,28,.0), rgba(20,25,28,.22));
}
.card--archived .card__media img { filter: saturate(.82) contrast(.97); }

/* card layout variants */
.card--row { flex-direction: row; }
.card--row .card__media { width: 200px; flex-shrink: 0; aspect-ratio: auto; }
.card--row .card__body { padding: 14px 16px; }

/* featured (Прогноз дня) */
.card--feature { display: grid; grid-template-columns: 1.15fr 1fr; }
.card--feature .card__media { aspect-ratio: auto; min-height: 320px; }
.card--feature .card__body { padding: 26px 28px; gap: 14px; justify-content: center; }
.card--feature .feature-eyebrow {
  display:inline-flex; align-items:center; gap:7px;
  font-size: 12px; letter-spacing: .8px; text-transform: uppercase; font-weight: 800; color: var(--amber-700);
}
.card--feature .feature-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.card--feature .card__title { font-size: clamp(24px, 3vw, 32px); -webkit-line-clamp: 4; }
.card--feature .card__excerpt { color: var(--ink-2); font-size: 16px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 7. Grids / sections ---------- */
.section { padding: clamp(36px, 5vw, 60px) 0; }
.section--tight { padding: clamp(24px, 3vw, 36px) 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 22px;
}
.section-head__titles { display: flex; flex-direction: column; gap: 4px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .9px; text-transform: uppercase; font-weight: 800; color: var(--green-600);
}
.section-eyebrow .sport-ico { width: 17px; height: 17px; }
.section-eyebrow--football   .sport-ico { color: var(--sp-football); }
.section-eyebrow--tennis     .sport-ico { color: var(--sp-tennis); }
.section-eyebrow--hockey     .sport-ico { color: var(--sp-hockey); }
.section-eyebrow--basketball .sport-ico { color: var(--sp-basketball); }
.section-eyebrow--mma        .sport-ico { color: var(--sp-mma); }
.section-title { font-size: clamp(22px, 2.6vw, 28px); }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.section-link svg { width: 15px; height: 15px; transition: transform .16s; }
.section-link:hover svg { transform: translateX(3px); }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-row { grid-template-columns: 1.55fr 1fr; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 8. Hero ---------- */
.hero { padding: clamp(30px, 4vw, 48px) 0 0; }
.hero__intro { max-width: 760px; margin-bottom: 26px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; font-weight: 800; color: var(--green-600);
  margin-bottom: 14px;
}
.hero__kicker .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600);
  box-shadow: 0 0 0 0 rgba(15,122,77,.5); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,122,77,.45); }
  70% { box-shadow: 0 0 0 8px rgba(15,122,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,122,77,0); }
}
.hero__title { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.2px; }
.hero__title em { font-style: normal; color: var(--green); }
.hero__lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 620px; }

/* ---------- 9. Breadcrumbs ---------- */
.crumbs { padding: 18px 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 7px; }
.crumbs li:not(:last-child)::after { content: "›"; color: var(--line-strong); font-size: 15px; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--green-700); }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* ---------- 10. Archive header ---------- */
.archive-header {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); margin-bottom: 26px; position: relative; overflow: hidden;
}
.archive-header::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--green-tint), transparent 70%); pointer-events: none;
}
.archive-header__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.archive-header__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-tint); border: 1px solid var(--green-tint-2); flex-shrink: 0;
}
.archive-header__icon .sport-ico { width: 30px; height: 30px; color: var(--green-600); }
.archive-header h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.archive-header__desc { color: var(--ink-2); font-size: 16.5px; max-width: 760px; margin-top: 10px; position: relative; }
.archive-header__stat { display: inline-flex; align-items:center; gap:6px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- 11. Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 40px; flex-wrap: wrap; }
.page-link {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s, color .15s;
}
.page-link:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-tint); }
.page-link[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
.page-link--disabled { opacity: .4; pointer-events: none; }
.page-link svg { width: 16px; height: 16px; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------- 12. Single (longread) ---------- */
.single-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; padding-top: 8px; }

.match-header { margin-bottom: 22px; }
.match-header__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.match-header__date { display:inline-flex; align-items:center; gap:6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.match-header__date svg { width: 14px; height: 14px; opacity: .7; }
.match-title { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.14; margin: 0 0 16px; }

.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.scoreboard__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.scoreboard__crest {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-family: var(--serif);
  font-weight: 700; font-size: 19px; color: var(--ink-2);
}
.scoreboard__name { font-weight: 700; font-size: 16px; }
.scoreboard__role { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.scoreboard__vs { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.scoreboard__vs .vs { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.scoreboard__vs .final-score { font-family: var(--serif); font-weight:700; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }

.match-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; position: relative; }
.match-figure img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.match-figure--archived img { filter: saturate(.85) contrast(.97); }
.match-figure figcaption { font-size: 12px; color: var(--muted); padding: 9px 14px; background: var(--surface); border-top: 1px solid var(--line); }

/* verdict block */
.verdict {
  border: 1px solid var(--amber-line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--amber-tint), #fff);
  padding: 20px 22px; margin-bottom: 26px;
}
.verdict--archived { border-color: var(--line-strong); background: linear-gradient(180deg, var(--surface), #fff); }
.verdict__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.verdict__head h2 { font-size: 17px; margin: 0; }
.verdict__head .vchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--amber); color: #3a2a02; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
}
.verdict--archived .vchip { background: var(--ink-2); color: #fff; }
.verdict__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verdict__item { display: flex; flex-direction: column; gap: 5px; }
.verdict__item .k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.verdict__item .v { font-weight: 700; font-size: 15px; }
.verdict__divider { width: 1px; align-self: stretch; background: var(--amber-line); }
.verdict--archived .verdict__divider { background: var(--line-strong); }
.verdict__note { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--amber-line); font-size: 12.5px; color: var(--ink-2); display:flex; gap:7px; align-items:flex-start; }
.verdict--archived .verdict__note { border-color: var(--line-strong); }
.verdict__note svg { width: 15px; height: 15px; color: var(--amber-700); flex-shrink: 0; margin-top: 1px; }
.verdict--archived .verdict__note svg { color: var(--muted); }

/* article body */
.article-body { font-size: 17.5px; line-height: 1.72; color: var(--ink); max-width: var(--maxw-read); }
.article-body > * + * { margin-top: 1.05em; }
.article-body p { color: var(--ink-2); }
.article-body .lead { font-size: 19px; color: var(--ink); font-weight: 500; }
.article-body h2 {
  font-size: 24px; margin-top: 1.7em; padding-top: .5em; line-height: 1.22;
  position: relative; padding-left: 16px;
}
.article-body h2::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: .85em;
  background: var(--green); border-radius: 3px;
}
.article-body h3 { font-size: 19px; margin-top: 1.4em; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body .prediction-final {
  background: var(--green-tint); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px; font-size: 17px; color: var(--ink);
}
.article-body .prediction-final strong { color: var(--green-700); }
.article-body figure { margin: 1.4em 0; }
.article-body blockquote {
  border-left: 3px solid var(--line-strong); padding-left: 18px; color: var(--muted); font-style: italic;
}
.h2h-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.h2h-table th, .h2h-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.h2h-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
.h2h-table td { font-variant-numeric: tabular-nums; }
.h2h-table tr:hover td { background: var(--surface); }

.demo-note {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 3px 9px;
  font-weight: 600; letter-spacing: .3px;
}
.demo-note::before { content: "demo"; text-transform: uppercase; font-size: 10px; font-weight: 800; color: var(--green-600); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.widget__title { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 800; margin-bottom: 14px; display:flex; align-items:center; gap:8px; }
.widget__title .bar { width: 4px; height: 15px; background: var(--green); border-radius: 2px; }

.expert-card { display: flex; flex-direction: column; gap: 13px; }
.expert-card__top { display: flex; align-items: center; gap: 13px; }
.expert-card__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
}
.expert-card__name { font-weight: 700; font-size: 15.5px; }
.expert-card__role { font-size: 12.5px; color: var(--muted); }
.expert-card__bio { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.expert-card__stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.expert-card__stat { display:flex; flex-direction: column; }
.expert-card__stat .num { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--green-700); font-variant-numeric: tabular-nums; }
.expert-card__stat .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }

.side-nav { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side-nav a:hover { background: var(--surface); color: var(--green-700); }
.side-nav .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.mini-card { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mini-card:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-card:first-child { padding-top: 0; }
.mini-card__media { width: 76px; height: 56px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.mini-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mini-card__title { font-size: 13.8px; font-weight: 600; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card:hover .mini-card__title { color: var(--green-700); }
.mini-card__meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.widget--guard { background: var(--risk-tint); border-color: #f0cabd; }
.widget--guard .widget__title { color: var(--risk); }
.widget--guard .widget__title .bar { background: var(--risk); }
.widget--guard p { font-size: 13px; color: var(--ink-2); }
.widget--guard .badge-18 { margin-bottom: 10px; }

/* ---------- 13. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .15s;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--green-600); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary:hover { color: var(--green-700); }
.faq .faq__answer { padding: 0 18px 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.62; }

/* ---------- 14. Search results ---------- */
.search-summary { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.search-summary strong { color: var(--ink); }
.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-item {
  display: flex; gap: 16px; padding: 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.result-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.result-item__media { width: 150px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 16/10; }
.result-item__media img { width: 100%; height: 100%; object-fit: cover; }
.result-item__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.result-item__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.result-item__title { font-family: var(--serif); font-size: 19px; line-height: 1.28; color: var(--ink); margin: 0; }
.result-item:hover .result-item__title { color: var(--green-700); }
.result-item__excerpt { font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-item__excerpt mark { background: var(--amber-tint); color: var(--amber-700); padding: 0 2px; border-radius: 3px; }

/* empty state */
.empty-state {
  text-align: center; padding: clamp(40px, 6vw, 70px) 24px;
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty-state__icon { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--line-strong); }
.empty-state h2 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }
.empty-state__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 15. 404 ---------- */
.notfound { text-align: center; padding: clamp(40px, 7vw, 90px) 0; }
.notfound__code { font-family: var(--serif); font-size: clamp(80px, 16vw, 170px); line-height: 1; color: var(--green); letter-spacing: -2px; }
.notfound__code .x { color: var(--amber); }
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 12px; }
.notfound p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; font-size: 17px; }
.notfound__search { max-width: 460px; margin: 0 auto 26px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 16. Disclaimer / Footer ---------- */
.disclaimer-band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclaimer {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px 0;
}
.disclaimer__icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--risk);
}
.disclaimer__icon svg { width: 22px; height: 22px; }
.disclaimer__text { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.disclaimer__text strong { color: var(--ink); }
.disclaimer__text a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.site-footer { background: var(--green-700); color: rgba(255,255,255,.82); padding: 48px 0 26px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name b { color: var(--amber); }
.footer-brand p { font-size: 13.5px; line-height: 1.6; margin-top: 12px; max-width: 320px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; flex-wrap: wrap; }
.footer-bottom__legal { display: flex; align-items: center; gap: 12px; font-size: 12.5px; flex-wrap: wrap; }
.footer-bottom .badge-18 { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.footer-bottom__copy { font-size: 12.5px; }

/* ---------- 17. UI-kit page ---------- */
.kit-nav { position: sticky; top: 66px; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 0; }
.kit-nav__inner { display: flex; gap: 8px; flex-wrap: wrap; }
.kit-nav a { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 7px; background: var(--surface); color: var(--ink-2); }
.kit-nav a:hover { background: var(--green-tint); color: var(--green-700); }
.kit-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.kit-section h2 { font-size: 26px; margin-bottom: 6px; }
.kit-section__desc { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.kit-block { margin-bottom: 30px; }
.kit-block h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 14px; }
.kit-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.swatch__color { height: 72px; }
.swatch__meta { padding: 9px 11px; font-size: 12px; }
.swatch__name { font-weight: 700; color: var(--ink); }
.swatch__hex { color: var(--muted); font-family: var(--mono); font-size: 11px; margin-top: 2px; }
.type-spec { display:flex; flex-direction: column; gap: 18px; }
.type-spec__row { display:flex; align-items: baseline; gap: 18px; border-bottom: 1px dashed var(--line); padding-bottom: 14px; flex-wrap: wrap; }
.type-spec__label { font-size: 12px; color: var(--muted); font-family: var(--mono); width: 130px; flex-shrink: 0; }
.kit-toggle { display:inline-flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 4px; margin-bottom: 18px; }
.kit-toggle button { padding: 7px 14px; border-radius: 6px; border: 0; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.kit-toggle button.active { background: var(--green); color: #fff; }

/* ---------- 18. Animations: staggered reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: reveal .6s cubic-bezier(.22,.61,.36,1) forwards; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
  .stagger > * { opacity: 0; transform: translateY(14px); animation: reveal .55s cubic-bezier(.22,.61,.36,1) forwards; }
  .stagger > *:nth-child(1){animation-delay:.04s}
  .stagger > *:nth-child(2){animation-delay:.10s}
  .stagger > *:nth-child(3){animation-delay:.16s}
  .stagger > *:nth-child(4){animation-delay:.22s}
  .stagger > *:nth-child(5){animation-delay:.28s}
  .stagger > *:nth-child(6){animation-delay:.34s}
  .stagger > *:nth-child(7){animation-delay:.40s}
  .stagger > *:nth-child(8){animation-delay:.46s}
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1040px) {
  .single-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar > .widget { flex: 1 1 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .card--feature .card__media { min-height: 220px; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .burger { display: inline-flex; }
  .header-bar { gap: 12px; }
  .brand__tag { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .result-item { flex-direction: column; }
  .result-item__media { width: 100%; aspect-ratio: 16/9; }
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; aspect-ratio: 16/9; }
  .article-body { font-size: 16.5px; }
  .scoreboard { padding: 16px; gap: 8px; }
  .scoreboard__crest { width: 42px; height: 42px; font-size: 16px; }
  .verdict__row { gap: 10px; }
  .verdict__divider { display: none; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .header-bar { height: 60px; }
  .brand__name { font-size: 19px; }
  .scoreboard { grid-template-columns: 1fr; gap: 12px; }
  .scoreboard__vs { flex-direction: row; gap: 10px; }
}

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 150; visibility: hidden; pointer-events: none;
}
.mobile-drawer__overlay { position: absolute; inset: 0; background: rgba(15,25,20,.5); opacity: 0; transition: opacity .25s; }
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88%, 360px);
  background: var(--paper); box-shadow: var(--shadow-3); transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
.mobile-drawer.open { visibility: visible; pointer-events: auto; }
.mobile-drawer.open .mobile-drawer__overlay { opacity: 1; }
.mobile-drawer.open .mobile-drawer__panel { transform: none; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mobile-drawer__body { overflow-y: auto; padding: 10px 12px 30px; flex: 1; }
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 8px; background: transparent; border: 0; font-weight: 700; font-size: 16px; color: var(--ink); }
.m-acc__head .sport-ico { width: 20px; height: 20px; }
.m-acc__head .left { display:flex; align-items:center; gap: 10px; }
.m-acc__head .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.m-acc.open .chev { transform: rotate(180deg); }
.m-acc__panel { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.m-acc.open .m-acc__panel { max-height: 420px; }
.m-acc__panel ul { list-style: none; padding: 0 8px 12px 38px; display: flex; flex-direction: column; gap: 2px; }
.m-acc__panel a { display: flex; justify-content: space-between; padding: 8px 8px; border-radius: 7px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.m-acc__panel a:hover { background: var(--surface); color: var(--green-700); }
.m-acc__panel .count { font-size: 12px; color: var(--muted); }
.mobile-drawer__foot { padding: 14px 18px; border-top: 1px solid var(--line); display:flex; align-items:center; gap: 10px; }
