:root {
  --ink: #0b1f33;
  --ink-soft: #274158;
  --paper: #f7f5ef;
  --white: #fff;
  --red: #d32f2f;
  --red-dark: #a91e25;
  --gold: #f2b134;
  --sky: #dbeaf4;
  --line: #cbd4da;
  --muted: #667682;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --shadow: 0 18px 55px rgb(11 31 51 / 12%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--red); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 1000; background: var(--white); color: var(--ink); padding: .75rem 1rem; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.shell-narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.page-space { padding-block: clamp(3rem, 8vw, 7rem); }

.site-header { position: relative; z-index: 10; background: var(--ink); color: var(--white); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-copy { display: grid; gap: .2rem; line-height: 1; text-transform: uppercase; }
.brand-copy strong { font: 900 1.25rem/1 var(--display); letter-spacing: .025em; }
.brand-copy em { color: var(--gold); font: 800 .58rem/1 var(--sans); letter-spacing: .12em; }
.custom-logo { max-height: 54px; width: auto; }
.primary-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1rem; background: var(--ink); box-shadow: var(--shadow); }
.primary-nav.is-open { display: block; }
.primary-nav ul { display: grid; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid rgb(255 255 255 / 12%); text-decoration: none; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.menu-toggle { width: 46px; height: 46px; display: grid; align-content: center; gap: 5px; padding: 10px; border: 1px solid rgb(255 255 255 / 35%); background: transparent; color: inherit; cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { width: 100%; height: 2px; background: currentColor; }

.hero { position: relative; overflow: hidden; display: grid; align-items: center; min-height: min(28vh, 220px); padding-block: clamp(2rem, 5vw, 3rem); background: var(--ink); color: var(--white); }
/* Декоративная окружность убрана: на широких экранах от неё оставался
   видимым только фрагмент дуги, читавшийся как случайное пятно. */
.hero-header { position: relative; display: grid; gap: .7rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--red); font-size: .73rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 940px; margin: 0; font: 900 clamp(1.8rem, 4vw, 2.75rem)/1.02 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.section-heading h1, .error-page h1 { margin: 0; overflow-wrap: anywhere; font: 900 clamp(2.4rem, 7vw, 5.5rem)/.92 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.hero-intro { max-width: 48rem; margin: 0; color: #bfcdd7; font-size: clamp(.95rem, 2vw, 1.12rem); }
.lead-layout { position: relative; display: grid; gap: 1.25rem; }
.lead-story { display: grid; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.lead-media, .card-media { min-width: 0; min-height: 230px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #183d5c, #0b1f33 58%, #811b25); text-decoration: none; }
.lead-media img, .card-media img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lead-media:hover img, .card-media:hover img { transform: scale(1.025); }
.placeholder-score { font: 900 clamp(3rem, 9vw, 7rem)/1 var(--display); color: rgb(255 255 255 / 13%); letter-spacing: -.04em; }
.lead-copy { padding: clamp(1.5rem, 4vw, 3.2rem); }
.lead-copy .post-categories, .article-category .post-categories { display: flex; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.lead-copy .post-categories a, .article-category a { color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.lead-copy h2 { margin: 0; font: 900 clamp(2rem, 5vw, 4.6rem)/.94 var(--display); text-transform: uppercase; }
.lead-copy h2 a { text-decoration: none; }
.lead-copy p { color: var(--ink-soft); }
.read-more { display: inline-flex; align-items: center; min-height: 44px; gap: .75rem; color: var(--red); font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.scoreboard { align-self: end; display: grid; justify-items: center; padding: 1.4rem; border: 1px solid rgb(255 255 255 / 22%); background: rgb(255 255 255 / 5%); text-transform: uppercase; }
.scoreboard > span, .scoreboard small { color: #afbec8; font-size: .68rem; letter-spacing: .16em; }
.scoreboard strong { font: 900 4.5rem/1 var(--display); }
.scoreboard strong span { color: var(--red); }

.latest-section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 4px solid var(--ink); }
.section-row h2, .section-heading h1 { margin: 0; font: 900 clamp(2.3rem, 6vw, 4.4rem)/.95 var(--display); text-transform: uppercase; }
.section-row > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--red); font-weight: 800; white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.story-card { display: grid; background: var(--white); box-shadow: 0 7px 24px rgb(11 31 51 / 7%); }
.card-media { min-height: 210px; }
.card-placeholder { width: min(86%, 360px); display: grid; gap: .35rem; color: var(--white); text-align: center; text-transform: uppercase; }
.card-placeholder strong { font: 900 clamp(1.35rem, 3vw, 2rem)/1 var(--display); letter-spacing: .03em; }
.card-placeholder small { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.card-copy { padding: 1.35rem; }
.card-meta { display: flex; gap: .75rem; align-items: center; margin-bottom: .6rem; color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-meta .post-categories { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.card-meta .post-categories a { color: var(--red); text-decoration: none; }
.story-card h2 { margin: 0 0 .75rem; font: 900 clamp(1.55rem, 3vw, 2.05rem)/1.02 var(--display); text-transform: uppercase; }
.story-card h2 a { text-decoration: none; }
.story-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.section-heading { max-width: 900px; margin-bottom: clamp(2rem, 6vw, 4rem); }
.section-heading > p:not(.eyebrow), .page-intro { color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.2rem); }
.page-content { font-size: clamp(1rem, 1.8vw, 1.12rem); }
.page-content h2 { margin: 2.5rem 0 .75rem; font: 900 clamp(1.8rem, 4vw, 2.7rem)/1 var(--display); text-transform: uppercase; }
.page-content h3 { margin: 2rem 0 .5rem; font-size: 1.25rem; }
.page-content p, .page-content ul, .page-content ol { margin-block: 0 1.2rem; }
.breadcrumbs { margin-bottom: 1.5rem; color: var(--muted); font-size: .75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); }
.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: .5rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--white); }

.article-page { padding-block: clamp(3.5rem, 8vw, 7rem); }
.article-header { margin-bottom: 2rem; }
.article-header h1 { margin: 0; font: 900 clamp(2.7rem, 8vw, 6.4rem)/.92 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.article-dek { margin: 1.5rem 0; color: var(--ink-soft); font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.45; }
.article-byline { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; }
.article-content { font-size: clamp(1.02rem, 1.8vw, 1.14rem); }
.article-content > p:first-child { font-size: 1.15em; font-weight: 650; }
.article-content h2 { margin: 2.6rem 0 .7rem; font: 900 clamp(1.9rem, 4vw, 2.8rem)/1 var(--display); text-transform: uppercase; }
.article-content a { color: var(--red-dark); }
.article-byline a { color: inherit; font-weight: 800; }
.related-stories { padding-bottom: clamp(4rem, 8vw, 7rem); }
.source-box { margin-top: 3rem; padding: 1.4rem; border-left: 5px solid var(--gold); background: var(--sky); font-size: .9rem; }
.source-box p { margin: .35rem 0 0; }
.source-box--compact { padding: .8rem 1rem; border-left-width: 3px; color: var(--muted); font-size: .78rem; }
.source-box--compact ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.source-box--compact a { color: inherit; }
.button { min-height: 48px; display: inline-flex; align-items: center; margin-top: 1rem; padding: .65rem 1.1rem; background: var(--red); color: var(--white); font-weight: 800; text-decoration: none; }
.button:hover { background: var(--red-dark); color: var(--white); }

.standings-section { padding-block: clamp(4rem, 9vw, 8rem); background: var(--white); }
.standings-section .section-row small { display: block; color: var(--muted); }
.standings-actions { display: grid; justify-items: end; gap: .35rem; text-align: right; }
.standings-actions a { color: var(--red); font-size: .82rem; font-weight: 800; }
.standings-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.standings-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings-table caption { padding: .8rem; background: #edf2f5; color: var(--ink-soft); font-size: .78rem; font-weight: 800; text-align: left; }
.standings-table th, .standings-table td { height: 48px; padding: .55rem .8rem; border-bottom: 1px solid #e5eaed; text-align: center; }
.standings-table thead th { background: var(--ink); color: var(--white); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.standings-table thead th:nth-child(2), .standings-table tbody th { text-align: left; }
.standings-table tbody tr:last-child > * { border-bottom: 0; }
.standings-table tbody tr > :first-child { border-left: 4px solid transparent; }
.standings-table tbody .zone-champions-league > :first-child { border-left-color: #1769aa; }
.standings-table tbody .zone-europa-league > :first-child,
.standings-table tbody .zone-conference-league > :first-child { border-left-color: #df8d14; }
.standings-table tbody .zone-relegation > :first-child { border-left-color: var(--red); }
.team-cell { display: inline-flex; align-items: center; gap: .7rem; }
.team-cell img { width: 24px; height: 24px; object-fit: contain; }
.zone-label { display: inline-flex; align-items: center; min-height: 22px; margin-left: auto; padding: .1rem .35rem; border: 1px solid currentColor; color: var(--muted); font-size: .57rem; font-weight: 900; letter-spacing: .03em; }
.zone-champions-league .zone-label { color: #1769aa; }
.zone-europa-league .zone-label, .zone-conference-league .zone-label { color: #a65f00; }
.zone-relegation .zone-label { color: var(--red-dark); }
.standings-legend { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; align-items: center; color: var(--muted); font-size: .74rem; }
.standings-legend span { display: inline-block; width: 9px; height: 9px; margin-right: -.85rem; border-radius: 50%; }
.legend-champions { background: #1769aa; }
.legend-europa { background: #df8d14; }
.legend-relegation { background: var(--red); }
.standings-empty { padding: 2rem; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.contact-form { display: grid; gap: 1.1rem; margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--white); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: .4rem; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; padding: .8rem; color: var(--ink); }
.contact-form input { min-height: 48px; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form .button:disabled { cursor: wait; opacity: .65; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-status { min-height: 1.5em; margin: 0; color: var(--muted); }

.site-footer { padding-block: 4rem 1.5rem; background: var(--ink); color: #b9c7d0; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { margin: 0; color: var(--white); font: 900 2.2rem/1 var(--display); text-transform: uppercase; }
.footer-editorial { max-width: 44rem; font-size: .8rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 15%); font-size: .72rem; }

/* Компактная таблица в боковой колонке статьи. На мобильном грид схлопывается
   в одну колонку, и виджет просто встаёт под текстом — прокрутки не будет,
   потому что колонок всего четыре и все узкие. */
.article-aside { margin-block: 2.5rem 0; }
.mini-standings { padding: 1.1rem 1.2rem 1rem; border: 1px solid var(--line); background: var(--white); }
.mini-standings__head h2 { margin: .15rem 0 0; font: 900 1.35rem/1 var(--display); text-transform: uppercase; }
.mini-standings__sub { margin: .3rem 0 .9rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.mini-standings__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini-standings__table thead th { padding: .3rem .4rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.mini-standings__table thead th:nth-child(2) { text-align: left; }
.mini-standings__table td, .mini-standings__table tbody th { padding: .42rem .4rem; border-bottom: 1px solid #eef1f3; font-size: .84rem; text-align: right; }
.mini-standings__table tbody tr:last-child > * { border-bottom: 0; }
.mini-standings__pos { width: 1.6rem; color: var(--muted); font-weight: 700; }
.mini-standings__club { display: flex; gap: .45rem; align-items: center; font-weight: 700; text-align: left !important; }
.mini-standings__club img { width: 18px; height: 18px; object-fit: contain; }
.mini-standings__club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-standings__pts { font-weight: 900; }
.mini-standings tbody tr > :first-child { border-left: 3px solid transparent; }
.mini-standings tbody .zone-champions-league > :first-child { border-left-color: #1769aa; }
.mini-standings tbody .zone-europa-league > :first-child,
.mini-standings tbody .zone-conference-league > :first-child { border-left-color: #df8d14; }
.mini-standings tbody .zone-relegation > :first-child { border-left-color: var(--red); }
.mini-standings__link { display: inline-block; margin-top: .85rem; color: var(--red-dark); font-size: .78rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }

@media (min-width: 720px) {
  .hero { min-height: min(35vh, 320px); }
  .lead-layout { grid-template-columns: minmax(0, 1fr) 180px; }
  .lead-story { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 719px) {
  .section-row { align-items: flex-start; flex-direction: column; }
  .standings-actions { justify-items: start; text-align: left; }
  .standings-table { min-width: 520px; }
}

@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .primary-nav { display: block; position: static; padding: 0; box-shadow: none; }
  .primary-nav ul { display: flex; gap: 1.7rem; align-items: center; }
  .primary-nav a { border: 0; }
  .article-page { width: min(1180px, calc(100% - 3rem)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 2.5rem clamp(2rem, 4vw, 4rem); margin-inline: auto; padding-top: clamp(2.25rem, 4vw, 4rem); }
  .article-header { width: auto; margin: 0; }
  .article-header h1 { max-width: 940px; font-size: clamp(3rem, 3.5vw, 3.75rem); line-height: .98; text-wrap: balance; }
  .article-dek { margin-block: 1rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
  /* Раскладка задана явно. При автоматической курсор грида уходил вперёд
     после виджета и не возвращался в первую колонку — текст статьи падал
     на строку ниже, оставляя слева пустоту во весь экран.
       строка 1: заголовок во всю ширину
       строка 2: текст     | таблица (липкая) */
  .article-header { grid-column: 1 / -1; grid-row: 1; }
  .article-content { grid-column: 1; grid-row: 2; width: 100%; margin: 0; }
  .article-aside { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 1.5rem; margin-block: 0; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-card:first-child:nth-last-child(6) { grid-column: span 2; grid-template-columns: 1.25fr 1fr; }
  .story-card:first-child:nth-last-child(6) .card-media { min-height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
