/* Somos Xeneizes. Белая основа, акценты — синий и золотой Boca.
   Один смелый элемент: золотая горизонтальная полоса на синем поле (как на футболке), только в блоке матча. */
:root {
  --azul: #0B2F6B;
  --azul-2: #174A9C;
  --oro: #F2B51C;
  --oro-soft: #FFF4D6;
  --bg: #FFFFFF;
  --ink: #1A2233;
  --muted: #5B6475;
  --line: #E3E7EF;
  --soft: #F5F7FB;
  --win: #1E7A3C;
  --draw: #8A93A6;
  --loss: #C8102E;
  --radius: 6px;
  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-2); text-underline-offset: 3px; }
a:hover { color: var(--azul); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
h1, h2, h3 { font-stretch: 72%; font-weight: 800; line-height: 1.1; color: var(--azul); letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: .2em 0 .35em; }
h2 { font-size: 1.55rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--azul); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--azul);
  font-stretch: 68%; font-weight: 800; font-size: 1.65rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 5px; flex: none;
  background: linear-gradient(var(--azul) 0 38%, var(--oro) 38% 62%, var(--azul) 62%); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 22px 12px 18px; text-decoration: none; color: var(--ink);
  font-stretch: 85%; font-weight: 600; border-bottom: 4px solid transparent; }
.main-nav a:hover { color: var(--azul); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--azul); border-bottom-color: var(--oro); }

/* ---------- сетка ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 24px; padding-bottom: 56px; }
main { min-width: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- блок матча: единственный смелый элемент ---------- */
.hero { position: relative; background: var(--azul); color: #fff; border-radius: 10px; overflow: hidden;
  padding: 22px 24px 24px; margin: 8px 0 28px; }
.hero > * { position: relative; }
.hero-teams::before { content: ""; position: absolute; left: -24px; right: -24px; top: 50%; height: 60px;
  transform: translateY(-50%); background: var(--oro); }
.hero-teams > * { position: relative; }
.hero-label { color: #fff; font-size: 1rem; font-stretch: 85%; font-weight: 600; margin: 0 0 14px; opacity: .85; }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.ht { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ht .mono { filter: drop-shadow(0 0 0 #fff); }
.hn .shortn { display: none; }
.hn { font-stretch: 70%; font-weight: 800; font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.05;
  background: var(--azul); padding: 2px 8px; border-radius: 4px; }
.hs { font-stretch: 62%; font-weight: 800; text-align: center; min-width: 120px; }
.hs .score { display: inline-flex; gap: 10px; font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1;
  background: var(--azul); padding: 4px 16px; border-radius: 8px; }
.hs .score i { font-style: normal; color: var(--oro); }
.hs .kick { display: inline-block; font-size: clamp(2.4rem, 6vw, 3.4rem); background: var(--azul); padding: 4px 14px; border-radius: 8px; }
.hs .state { font-size: 1.4rem; background: var(--azul); padding: 6px 12px; border-radius: 6px; }
.hs .pens { display: block; margin-top: 6px; font-size: .95rem; font-stretch: 85%; font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 0; font-stretch: 90%; }
.hero-meta small { opacity: .75; margin-left: 4px; }
.hero-link { display: table; margin: 14px auto 0; color: var(--azul); background: var(--oro); font-weight: 700;
  text-decoration: none; padding: 9px 18px; border-radius: var(--radius); }
.hero-link:hover { color: var(--azul); background: #FFCB45; }
.match-h1 { margin-bottom: .2em; }

/* ---------- списки матчей ---------- */
.mlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mrow { border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
.mrow.r-W { border-left-color: var(--win); }
.mrow.r-D { border-left-color: var(--draw); }
.mrow.r-L { border-left-color: var(--loss); }
.mrow > a, .mrow > div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px;
  padding: 10px 12px; color: var(--ink); text-decoration: none; }
.mrow > a:hover { background: var(--soft); }
.when { display: flex; flex-direction: column; font-stretch: 85%; font-weight: 700; line-height: 1.2; }
.when small { font-weight: 400; color: var(--muted); }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.t { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-h { justify-content: flex-end; text-align: right; }
.mid { text-align: center; font-stretch: 70%; font-weight: 800; min-width: 64px; }
.mid .score { font-size: 1.35rem; display: inline-flex; gap: 4px; }
.mid .score i { font-style: normal; color: var(--muted); }
.mid .kick { font-size: 1.15rem; color: var(--azul); }
.mid .state { font-size: .9rem; color: var(--loss); }
.mid .pens { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.mono { flex: none; }

/* ---------- панели ---------- */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 12px; }
.panel { background: var(--soft); border-radius: 8px; padding: 16px 18px; }
.panel h2 { font-size: 1.2rem; margin: 0 0 10px; }
.panel .mlist { border-top: 0; }
.panel .mrow > a, .panel .mrow > div { grid-template-columns: 1fr; gap: 4px; padding: 8px 6px 8px 10px; }
.panel .when { flex-direction: row; gap: 8px; align-items: baseline; }
.standings.compact .opt { display: none; }
.panel .mrow:last-child { border-bottom: 0; }
.form { list-style: none; display: flex; gap: 6px; padding: 0; margin: 6px 0 10px; }
.fb { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  font-stretch: 75%; font-weight: 800; font-size: .95rem; }
.fb-W { background: var(--win); } .fb-D { background: var(--draw); } .fb-L { background: var(--loss); }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.min { display: inline-block; min-width: 3.2em; font-stretch: 75%; font-weight: 800; color: var(--azul); }

/* ---------- таблица ---------- */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 700; color: var(--muted); padding: 0 0 8px; font-size: .9rem; }
.standings th, .standings td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.standings thead th { font-stretch: 85%; font-size: .85rem; color: var(--muted); font-weight: 700; }
.standings .team { text-align: left; font-weight: 600; white-space: nowrap; }
.standings th.team .mono { display: inline-block; vertical-align: middle; margin-right: 8px; }
.standings .pos { width: 2.2em; color: var(--muted); }
.standings .pts { font-weight: 800; color: var(--azul); }
.standings tr.zone td.pos { box-shadow: inset 4px 0 0 var(--azul-2); }
.standings tr.me { background: var(--oro-soft); }
.standings tr.me .team { color: var(--azul); font-weight: 800; }
.standings abbr { text-decoration: none; }
.shortn { display: none; }
.legend { font-size: .85rem; color: var(--muted); }
.lz::before { content: ""; display: inline-block; width: 4px; height: 12px; background: var(--azul-2); margin-right: 6px; vertical-align: -1px; }
.squad th, .squad td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.squad thead th { font-size: .85rem; color: var(--muted); }
.squad .num { width: 3.5em; text-align: center; font-stretch: 70%; font-weight: 800; color: var(--azul); font-size: 1.1rem; }
.squad tbody th { font-weight: 600; }

/* ---------- новости ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 20px; }
.card a { text-decoration: none; color: var(--ink); }
.card img { border-radius: var(--radius); aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: 10px; background: var(--azul); }
.card h3 { color: var(--ink); font-size: 1.18rem; }
.card a:hover h3 { color: var(--azul-2); text-decoration: underline; text-decoration-thickness: 2px; }
.card-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.card-lead { font-size: .95rem; color: var(--muted); margin: 0; }
.cards-sm .card h3 { font-size: 1.05rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 3px;
  background: var(--azul); color: #fff; }
.tag-rumour { background: var(--oro); color: var(--azul); }

.article-cover { width: 100%; border-radius: 10px; aspect-ratio: 1200 / 630; object-fit: cover; margin: 6px 0 18px; background: var(--azul); }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.article-meta { color: var(--muted); font-size: .92rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lead { font-size: 1.15rem; font-weight: 500; }
.prose, .article-body { max-width: 68ch; }
.rumour { background: var(--oro-soft); border-left: 4px solid var(--oro); padding: 10px 14px; border-radius: 0 6px 6px 0; font-weight: 600; }
.source { font-size: .95rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 20px 0; }
.links a { font-weight: 600; }
.more { font-weight: 700; }
.archive-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.archive-items { list-style: none; padding: 0; }
.archive-items li { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.archive-items time { color: var(--muted); }
.comp-list { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.comp-card { border: 1px solid var(--line); border-top: 4px solid var(--azul); border-radius: 8px; padding: 16px 18px; }
.comp-card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.comp-card p { margin: 0 0 4px; }
.empty { color: var(--muted); background: var(--soft); padding: 14px 16px; border-radius: 6px; }

/* ---------- сайдбар ---------- */
.sidebar { border-left: 1px solid var(--line); padding-left: 28px; }
.side-news h2 { font-size: 1.25rem; margin: 6px 0 12px; }
.side-news ul { list-style: none; margin: 0 0 12px; padding: 0; }
.side-news li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side-news li a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.side-news li a:hover { color: var(--azul-2); text-decoration: underline; }
.side-news time { color: var(--muted); font-size: .82rem; }

/* ---------- подвал ---------- */
.site-footer { background: var(--azul); color: #DCE3F0; padding: 32px 0 40px; font-size: .92rem; }
.site-footer a { color: #fff; }
.brand-foot { display: flex; align-items: center; gap: 10px; color: #fff; font-stretch: 68%; font-weight: 800; font-size: 1.4rem; }
.brand-foot .brand-mark { background: linear-gradient(#fff 0 38%, var(--oro) 38% 62%, #fff 62%); }
.foot-links { list-style: none; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}
@media (max-width: 720px) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 0; min-height: 0; padding-top: 12px; }
  .main-nav { width: 100%; }
  .main-nav ul { gap: 0 2px; flex-wrap: wrap; }
  .main-nav a { padding: 6px 8px 6px; white-space: nowrap; font-size: .95rem; border-bottom-width: 3px; }
  body { font-size: 16px; }
  .mrow > a, .mrow > div { grid-template-columns: 1fr; gap: 4px; }
  .when { flex-direction: row; gap: 8px; }
  .t .mono { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .standings .opt { display: none; }
  .standings .full { display: none; }
  .standings .shortn { display: inline; }
  .standings th, .standings td { padding: 7px 5px; }
  .hero { padding: 18px 12px; }
  .hero-teams::before { left: -12px; right: -12px; height: 52px; }
  .hn .full { display: none; }
  .hn .shortn { display: inline; }
  .hero-teams { gap: 6px; }
  .ht .mono { width: 52px; height: 52px; }
  .hs { min-width: 0; }
  .archive-items li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- главная ---------- */
.home-h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .25em; }
.season { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 8px; margin: 8px 0 8px; }
.season h2 { margin: 0 0 12px; font-size: 1.35rem; }
.season-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; align-items: start; }
.season-form p { margin: 0 0 4px; }
.unbeaten { font-stretch: 85%; }
.unbeaten b { font-stretch: 62%; font-weight: 800; font-size: 2rem; color: var(--azul); margin-right: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.stat { background: #fff; padding: 10px 12px; display: flex; flex-direction: column; }
.stat b { font-stretch: 62%; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--azul); font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--muted); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile a { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 14px; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--ink); background: #fff; }
.tile a:hover { border-color: var(--azul-2); }
.tile a:hover h3 { text-decoration: underline; }
.tile h3 { margin: 0 0 6px; font-size: 1.25rem; }
.tile p { margin: 0; font-size: .92rem; color: var(--muted); }
.tile .tile-live { margin-top: auto; padding-top: 10px; color: var(--azul); font-weight: 700; font-size: .9rem; }
.comp-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.comp-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; font-size: .95rem; }
.comp-card dd + dt { margin-top: 8px; }
.comp-card dt { color: var(--muted); }
.comp-card dd { margin: 0; font-weight: 600; }
.comp-card dd small { display: block; font-weight: 400; color: var(--muted); }
.side-meta { color: var(--muted); font-size: .82rem; }
.kick.tbd { color: var(--muted); }
@media (max-width: 720px) {
  .season-row { grid-template-columns: 1fr; gap: 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
.panel .t span { white-space: normal; }

/* ---------- вводный абзац, SEO-текст, FAQ ---------- */
.page-intro { font-size: 1.1rem; max-width: 68ch; margin: 18px 0 8px; }
.seo-text { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.seo-text h2 { font-size: 1.4rem; margin: 1.2em 0 .45em; }
.faq { margin-top: 32px; background: var(--soft); border-radius: 10px; padding: 6px 22px 12px; max-width: 76ch; }
.faq > h2 { font-size: 1.4rem; margin: 18px 0 8px; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.faq-item:first-of-type { border-top: 0; }
.faq-item h3 { font-size: 1.08rem; margin: 0 0 4px; color: var(--azul); }
.faq-item p { margin: 0 0 8px; }
.squad-stats { grid-template-columns: repeat(4, 1fr); margin: 6px 0 4px; }
.transfers td, .transfers th { white-space: nowrap; }

/* ---------- картинка страницы ---------- */
.page-banner { margin: 4px 0 18px; border-radius: 10px; overflow: hidden; background: var(--azul); aspect-ratio: 16 / 6; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .page-banner { aspect-ratio: 16 / 8; border-radius: 8px; } }
