/* Hallmark · macrostructure: Ecosystem Index (главный материал · свежие · указатель по видам спорта) · genre: editorial
 * theme: custom (brand) — paper #fcfcfb · ink #13213a · accent = цвет вида спорта (7 тонов, один на страницу) · Fira Sans Extra Condensed + Fira Sans
 * nav: N6 masthead (знак + поиск, строка видов спорта) · footer: Ft1 mast-headed · enrichment: фото Commons, без фото — схема площадки
 * Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · contrast: pass (40–41) · tokens: pass (48) · mobile: pass (34, 49–51)
 * Аудит hallmark 20.10.2026 — находки и правки в wco.ru/PROGRESS.md.
 */

/*
 * WCO. Авторские статьи о семи видах спорта.
 * Главный приём — схемы площадок: поле, хоккейная коробка, баскетбольная площадка, корт, ринг, овал крикета,
 * площадка кабадди — тонкими линиями на цвете вида спорта. У каждой статьи своя точка на площадке.
 * Цвет вида спорта — единственный яркий цвет на странице; всё остальное — белый и тёмно-синий «чернильный».
 * Шрифты: Fira Sans Extra Condensed — заголовки (спортивный плакат, но строчными), Fira Sans — текст и интерфейс.
 */

:root {
	--ink: #13213a;
	--ink-2: #4b5669;      /* вторичный текст: 7.3:1 на белом */
	--ink-3: #616a7c;      /* подписи: 5.3:1 на --bg (было #6b7486 — 4.6:1, впритык) */
	--ink-hover: #22345a;  /* наведение на тёмную кнопку */
	--line: #dde1e7;
	--bg: #fcfcfb;         /* бумага чуть теплее чистого белого */
	--bg-2: #f1f3f6;
	--on-sport: #ffffff;
	--on-sport-2: rgba(255, 255, 255, 0.92); /* подписи на цвете вида спорта: ≥ 4.9:1 даже на баскетбольном */
	--on-sport-line: rgba(255, 255, 255, 0.5);
	--foot-text: #c5cdda;  /* текст в подвале на --ink: 10:1 */
	--foot-muted: #a9b3c3; /* мелкий текст в подвале: 7.6:1 */
	--foot-rule: rgba(255, 255, 255, 0.16);
	--prose-max: 680px;    /* ~70 знаков в строке при 18 px */
	--err: #a3242c;        /* ошибки формы: 7.4:1 на белом, 6.6:1 на --err-bg */
	--err-bg: #fbeff0;
	--ok: #1d6b45;         /* рамка «сообщение отправлено»: 6.5:1 на белом */
	--ok-bg: #edf5f0;

	--futbol: #1d6b45;
	--hokkey: #1f5687;
	--basketbol: #a4511f;
	--tennis: #4a4597;
	--edinoborstva: #a3242c;
	--kriket: #6b5a1e;
	--kabaddi: #0d7070;

	--sport: var(--ink);

	--f-head: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f-text: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--fs-xs: 0.8125rem;
	--fs-s: 0.9375rem;
	--fs-m: 1.0625rem;
	--fs-l: 1.25rem;
	--fs-xl: 1.5625rem;
	--fs-2xl: clamp(1.75rem, 1.35rem + 1.4vw, 2.25rem);
	--fs-3xl: clamp(2.125rem, 1.4rem + 2.8vw, 3.375rem);
	--fs-hero: clamp(2.375rem, 1.4rem + 3.8vw, 4.25rem);

	--gutter: 16px;
	--max: 1240px;
	--r-s: 4px;
	--r-m: 6px;
	--r-l: 10px;
	--z-skip: 30;
	--z-totop: 20;
}

.sport-futbol { --sport: var(--futbol); }
.sport-hokkey { --sport: var(--hokkey); }
.sport-basketbol { --sport: var(--basketbol); }
.sport-tennis { --sport: var(--tennis); }
.sport-edinoborstva { --sport: var(--edinoborstva); }
.sport-kriket { --sport: var(--kriket); }
.sport-kabaddi { --sport: var(--kabaddi); }

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 var(--fs-m)/1.55 var(--f-text);
	overflow-wrap: break-word;
	overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--f-head); font-weight: 700; line-height: 1.08; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: var(--z-skip); background: var(--bg); color: var(--ink); padding: 10px 16px; border: 2px solid var(--ink); border-radius: var(--r-s); }
.skip:focus { top: 8px; }

/* на цвете вида спорта и в подвале фокус белый */
.hero :focus-visible, .archive-head :focus-visible, .article-head :focus-visible, .tile :focus-visible, .tile__link:focus-visible, .site-foot :focus-visible { outline-color: var(--on-sport); }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 1.25rem;
	background: var(--ink); color: var(--on-sport); border: 0; border-radius: var(--r-s);
	font: 600 var(--fs-m)/1 var(--f-text); cursor: pointer;
}
.btn:hover { background: var(--ink-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn { white-space: nowrap; transition: background-color 120ms ease-out; }

/* ---------- Схема площадки ---------- */
.field { width: 100%; height: 100%; }
.field .l, .field .a, .field .w { fill: none; stroke: var(--on-sport); vector-effect: non-scaling-stroke; }
.field .l { stroke-width: 1.4; stroke-opacity: 0.55; }
.field .w { stroke-width: 1; stroke-opacity: 0.32; }
.field .a { stroke-width: 2.2; stroke-opacity: 0.85; }
.field .d { fill: var(--on-sport); fill-opacity: 0.6; }
.field .t { fill: none; stroke: var(--on-sport); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; stroke-opacity: 0.85; }
.field .m { fill: var(--on-sport); }
.field .m0 { fill: none; stroke: var(--on-sport); stroke-width: 1.4; }

.panel { background: var(--sport); border-radius: var(--r-m); overflow: hidden; }
.panel--card { aspect-ratio: 16 / 9; }
.panel--hero { aspect-ratio: 16 / 10; border-radius: 0; background: transparent; }

/* ---------- Обложки-фото (Wikimedia Commons, свободные лицензии) ----------
 * Фото заменяет схему площадки там, где оно есть; цвет вида спорта остаётся — полосой под фото в карточках
 * и фоном шапки статьи. Схема площадки — запасной вариант для статей без фото и для плиток видов спорта. */
.card__photo, .hero__photo, .cover__frame { display: block; position: relative; overflow: hidden; background: var(--sport); }
.card__photo img, .hero__photo img, .cover__frame img { width: 100%; height: 100%; object-fit: cover; }
.card__photo { aspect-ratio: 16 / 9; border-radius: var(--r-m); }
.card__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--sport); }
.hero__photo { aspect-ratio: 16 / 10; }

.cover { margin: 0; width: 100%; max-width: var(--cover-w, 100%); display: grid; gap: 0.6rem; }
.cover__frame { aspect-ratio: 3 / 2; border-radius: var(--r-m); }
.cover__cap { font-size: var(--fs-xs); line-height: 1.45; color: var(--on-sport-2); }
.cover__cap a { color: var(--on-sport); text-decoration: underline; text-decoration-color: var(--on-sport-line); }
.cover__cap a:hover { text-decoration-color: var(--on-sport); }
.cover__credit { white-space: normal; }

/* ---------- Шапка ---------- */
.stripe { display: grid; grid-template-columns: repeat(7, 1fr); height: 6px; }
.stripe span { background: var(--sport); }

.site-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head__bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; padding-block: 0.5rem; }
.logo { display: inline-flex; align-items: baseline; gap: 0.75rem; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { font: 700 2.125rem/1 var(--f-head); letter-spacing: 0.02em; }
.logo__tag { font-size: var(--fs-s); color: var(--ink-2); display: none; }
@media (min-width: 640px) { .logo__tag { display: inline; } }

.head-search { margin-left: auto; display: flex; align-items: center; flex: 0 1 300px; min-width: 0; position: relative; }
.head-search input {
	width: 100%; min-width: 0; height: 44px; padding: 0 44px 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2);
	font: inherit; font-size: var(--fs-s); color: var(--ink);
}
.head-search input::placeholder { color: var(--ink-3); }
.head-search button { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--r-s); }

.sports-nav { border-top: 1px solid var(--line); }
@media (max-width: 899px) {
	/* лента видов спорта прокручивается — правый край гаснет, чтобы было видно продолжение */
	.sports-nav__list { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
}
.sports-nav__list {
	display: flex; gap: 0.25rem; list-style: none;
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.sports-nav__list::-webkit-scrollbar { display: none; }
.sports-nav__list li { flex: none; scroll-snap-align: start; }
.sports-nav__list a {
	display: block; padding: 0.8rem 0.75rem 0.7rem; text-decoration: none;
	font: 600 var(--fs-l)/1 var(--f-head); color: var(--ink);
	border-bottom: 3px solid transparent;
}
.sports-nav__list li:first-child a { padding-left: 0; }
.sports-nav__list a:hover { border-bottom-color: var(--sport); }
.sports-nav__list a[aria-current] { border-bottom-color: var(--sport); color: var(--sport); }
.sports-nav__about { margin-left: auto; }
.sports-nav__about a { color: var(--ink-2); font-family: var(--f-text); font-weight: 500; font-size: var(--fs-s); padding-top: 0.95rem; }

/* ---------- Подпись материала ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 1rem; font-size: var(--fs-xs); color: var(--ink-3); }
.meta__sport { color: var(--sport); font-weight: 600; text-decoration: none; }
.meta__sport:hover { text-decoration: underline; }

/* ---------- Главный материал ---------- */
.hero {
	display: grid; background: var(--sport); color: var(--on-sport);
}
.hero .meta, .hero .meta__sport { color: var(--on-sport-2); }
.hero__body { padding: 1.5rem var(--gutter) 2.5rem; display: grid; gap: 1rem; align-content: center; }
.hero__title--long { font-size: var(--fs-3xl); max-width: 22ch; }
.hero__title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.005em; max-width: 20ch; }
.hero__title a { text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.hero__excerpt { font-size: var(--fs-l); line-height: 1.5; max-width: 52ch; color: var(--on-sport-2); }
@media (min-width: 900px) {
	.hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
	}
	.hero__body { order: -1; padding: 2.75rem 2.5rem 3.75rem 0; }
	.hero .panel--hero { aspect-ratio: auto; min-height: 420px; }
	.hero--photo .hero__photo { aspect-ratio: auto; min-height: 440px; margin-block: 2.25rem; border-radius: var(--r-m); }
}

/* ---------- Блоки главной ---------- */
.block { margin-block: 3rem; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 1.25rem; }
.block__title { font-size: var(--fs-2xl); }
.block__title a { text-decoration: none; }
.block__title a:hover { text-decoration: underline; }
.block__note { color: var(--ink-2); font-size: var(--fs-s); }
.block__more { font-size: var(--fs-s); font-weight: 500; color: var(--sport); white-space: nowrap; }

.fresh { display: grid; gap: 2rem; }
.fresh__main { display: grid; gap: 2rem; }
.fresh__list { display: grid; align-content: start; }
@media (min-width: 640px) { .fresh__main { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) {
	.fresh { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; }
}

/* Указатель по видам спорта: семь колонок-рубрик + справка о проекте — сетка 1 / 2×4 / 4×2.
 * Шапка колонки — цвет вида спорта со схемой площадки (знак марки), ниже — материалы, которых не было выше. */
.block--sports { margin-top: 3.5rem; }
.sx { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 640px) { .sx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sx { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }
.sx__col { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.sx__head {
	position: relative; display: grid; align-content: end; gap: 0.1rem; min-height: 7.5rem;
	padding: 0.9rem 1rem; border-radius: var(--r-m); overflow: hidden;
	background: var(--sport); color: var(--on-sport);
}
.sx__head .field { position: absolute; z-index: -1; right: 0.4rem; top: 0.6rem; width: 50%; height: auto; opacity: 0.6; pointer-events: none; }
.sx__name { font-size: var(--fs-2xl); line-height: 1; }
.sx__name a { text-decoration: none; }
.sx__name a::after { content: ""; position: absolute; inset: 0; } /* вся шапка — ссылка на рубрику */
.sx__head:has(a:hover) .sx__name a { text-decoration: underline; text-decoration-thickness: 2px; }
.sx__count { font-size: var(--fs-xs); color: var(--on-sport-2); }
.sx__head { isolation: isolate; } /* схема площадки (z-index: -1) — под текстом, но над фоном шапки */
.sx__head :focus-visible { outline-color: var(--on-sport); }
@media (max-width: 639px) { .sx__head { min-height: 5.5rem; } .sx__head .field { width: 42%; } }
.sx__list { display: grid; }
.sx__list .card--text { padding-block: 0.75rem; }
.sx__list .card--text .card__title { font-size: var(--fs-m); font-weight: 600; line-height: 1.2; }
.sx__list .card--text .meta { order: 2; }
.sx__about { align-content: space-between; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); }
.sx__about-text { font: 600 var(--fs-xl)/1.15 var(--f-head); }
.sx__about-link { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* мини-карточка: фото 4:3 слева, заголовок и дата справа */
.card--mini { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.85rem; align-items: start; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.card--mini .card__panel { border-radius: var(--r-s); }
.card--mini .card__photo, .card--mini .panel { aspect-ratio: 4 / 3; }
.card--mini .card__photo::after { height: 3px; }
.card--mini .card__body { gap: 0.3rem; }
.card--mini .card__title { font-size: var(--fs-l); line-height: 1.12; }
.sx__list .card--mini + .card--text { border-top: 0; }

/* ---------- Карточки ---------- */
.card { display: grid; gap: 0.85rem; align-content: start; }
.card__panel { display: block; border-radius: var(--r-m); }
.card__body { display: grid; gap: 0.45rem; }
.card__title { font-size: var(--fs-xl); font-weight: 600; line-height: 1.12; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__excerpt { color: var(--ink-2); font-size: var(--fs-s); line-height: 1.55; }

.card--text { border-top: 1px solid var(--line); padding-block: 0.9rem; gap: 0; }
.card--text:first-child { border-top: 0; padding-top: 0; }
.card--text .card__title { font-size: var(--fs-l); }

@media (min-width: 640px) {
	.card--row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: center; }
	.card--row .card__title { font-size: var(--fs-2xl); font-weight: 700; }
	.card--row .card__excerpt { font-size: var(--fs-m); }
}

.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.list { display: grid; gap: 2rem; margin-block: 2.5rem; }
.list > .card--row { margin-bottom: 0.5rem; }
@media (min-width: 640px) {
	.list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
	.list > .card--row { grid-column: 1 / -1; }
	.list--rows { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) { .list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .list--rows { grid-template-columns: 1fr; } }

/* ---------- Плитки видов спорта ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; list-style: none; }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.tile__link {
	display: grid; grid-template-rows: auto auto auto; height: 100%;
	background: var(--sport); color: var(--on-sport); text-decoration: none; border-radius: var(--r-l);
	padding: 0.25rem 0.9rem 0.9rem;
}
.tile__link .field { aspect-ratio: 240 / 150; height: auto; }
@media (max-width: 699px) {
	.tile:last-child:nth-child(odd) .tile__link { grid-template-columns: 9rem 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 0.6rem 0.9rem; }
	.tile:last-child:nth-child(odd) .tile__link .field { grid-row: 1 / 3; }
	.tile:last-child:nth-child(odd) .tile__name { align-self: end; }
	.tile:last-child:nth-child(odd) .tile__count { align-self: start; }
}
.tile__name { font: 700 var(--fs-xl)/1.05 var(--f-head); }
.tile__count { font-size: var(--fs-xs); color: var(--on-sport-2); margin-top: 0.15rem; }
.tile__link:hover .tile__name { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Шапки рубрики и статьи ---------- */
.archive-head, .article-head { background: var(--sport); color: var(--on-sport); }
.archive-head--plain { background: var(--bg-2); color: var(--ink); }
.archive-head--plain .archive-head__desc, .archive-head--plain .archive-head__count { color: var(--ink-2); }
.archive-head__grid, .article-head__grid { display: grid; gap: 1.25rem; padding-block: 1.25rem 2rem; }
.archive-head__text, .article-head__text { display: grid; gap: 0.9rem; align-content: center; }
.archive-head__title { font-size: var(--fs-3xl); }
.archive-head__desc { font-size: var(--fs-l); max-width: 52ch; color: var(--on-sport-2); }
.archive-head__count { font-size: var(--fs-s); color: var(--on-sport-2); }
.archive-head__field, .article-head__field { max-width: 480px; }
@media (min-width: 900px) {
	.archive-head__grid, .article-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; padding-block: 1.5rem 2.75rem; }
	.archive-head__field, .article-head__field { justify-self: end; width: 100%; }
}
@media (max-width: 899px) {
	.article-head__field { max-width: 200px; order: 2; }
	.archive-head__field { max-width: 300px; }
}
/* статья с фото: текст и обложка поровну, фото не больше своего размера */
.article-head__photo { min-width: 0; }
@media (min-width: 900px) {
	.article-head--photo .article-head__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; padding-block: 1.5rem 2.25rem; }
	.article-head--photo .article-head__photo { justify-self: end; width: 100%; display: flex; justify-content: flex-end; }
}

.article-head__title { font-size: var(--fs-3xl); line-height: 1.04; max-width: 24ch; }
.article-head__lead { font-size: var(--fs-l); line-height: 1.5; max-width: 56ch; color: var(--on-sport-2); }
.meta--head { font-size: var(--fs-s); color: var(--on-sport-2); }
.meta--head .meta__sport { color: var(--on-sport); }

/* ---------- Хлебные крошки ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; list-style: none; font-size: var(--fs-xs); }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline: 0.5rem; opacity: 0.6; }
.crumbs a { text-decoration: none; display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; } /* зона нажатия ≥ 44 px без сдвига строки */
.crumbs a:hover { text-decoration: underline; }
.archive-head .crumbs, .article-head .crumbs { color: var(--on-sport-2); }
.page-head .crumbs, .archive-head--plain .crumbs { color: var(--ink-2); }
.crumbs span[aria-current] { display: inline-block; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Статья ---------- */
.article__grid { display: grid; gap: 1.5rem; padding-block: 2rem 1rem; }
.article__body { min-width: 0; }
.article:not(.article--toc) .article__body { max-width: var(--prose-max); margin-inline: auto; width: 100%; }
@media (min-width: 1024px) {
	.article--toc .article__grid { grid-template-columns: 260px minmax(0, var(--prose-max)); gap: 4rem; justify-content: center; }
	.article__aside { position: relative; }
	.article__aside .toc { position: sticky; top: 1.25rem; }
}

.toc__box { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); }
.toc__title { padding: 0.85rem 1rem; font: 700 var(--fs-l)/1.1 var(--f-head); cursor: pointer; list-style-position: inside; }
.toc__title::marker { color: var(--ink-3); }
.toc__list { padding: 0 1rem 1rem 2.25rem; display: grid; gap: 0.45rem; font-size: var(--fs-s); line-height: 1.35; }
.toc__list li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc__list a { text-decoration: none; color: var(--ink-2); }
.toc__list a:hover { text-decoration: underline; color: var(--ink); }
.toc__list a[aria-current="true"] { color: var(--sport); font-weight: 600; }

.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2.2em; scroll-margin-top: 1rem; }
.prose h3 { font-size: var(--fs-xl); font-weight: 600; margin-top: 1.8em; scroll-margin-top: 1rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--sport); text-decoration-thickness: 1px; }
.page .prose a, .search-form + * a { color: var(--ink); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--sport); }
.prose blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--sport); font-size: var(--fs-l); color: var(--ink-2); }
.prose strong { font-weight: 600; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.4rem; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--fs-s); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose .lead, .prose > p:first-child.lead { font-size: var(--fs-l); line-height: 1.55; color: var(--ink-2); }

.sources { margin-top: 2.5em; padding: 1.25rem 1.25rem 1.35rem; background: var(--bg-2); border-radius: var(--r-m); border-top: 4px solid var(--sport); }
.sources h2 { font-size: var(--fs-xl); margin: 0 0 0.6rem; }
.sources__list { padding-left: 1.4em; font-size: var(--fs-s); line-height: 1.5; display: grid; gap: 0.4rem; }
.sources__list a { color: var(--ink); }
.sources__host { color: var(--ink-3); font-size: var(--fs-xs); white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; margin-top: 2rem !important; }
.tags li + li { margin-top: 0; }
.tags a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); color: var(--ink-2) !important; text-decoration: none; }
.tags a:hover { border-color: var(--ink-2); color: var(--ink) !important; }

.related { border-top: 1px solid var(--line); padding-top: 2.5rem; }

/* ---------- Страницы, поиск, 404 ---------- */
.page-head { background: var(--bg-2); padding-block: 1.25rem 2rem; }
.page-head .wrap { display: grid; gap: 0.9rem; }
.page-head__title { font-size: var(--fs-3xl); }
.page-head__note { color: var(--ink-2); font-size: var(--fs-m); max-width: 60ch; }
.page__grid { display: grid; gap: 2.5rem; padding-block: 2.25rem 1rem; }
.page__grid .prose { max-width: var(--prose-max); }
.page__aside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; align-content: start; }
.mini { background: var(--sport); border-radius: var(--r-m); aspect-ratio: 5 / 3; }
@media (min-width: 1024px) {
	.page__grid { grid-template-columns: minmax(0, var(--prose-max)) 220px; justify-content: space-between; }
	.page__aside { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) { .page__aside { display: none; } }

/* ---------- Форма обратной связи («Контакты», плагин wco-core/inc/feedback.php) ---------- */
.fb { margin-top: 2.5em; padding: 1.5rem var(--gutter); border: 2px solid var(--ink); border-radius: var(--r-m); font-size: var(--fs-m); line-height: 1.5; scroll-margin-top: 1rem; }
@media (min-width: 640px) { .fb { padding: 2rem; } }
.fb > * + * { margin-top: 1.25rem; }
.prose .fb__title { margin-top: 0; font-size: var(--fs-2xl); }
.fb__note, .fb__hint { color: var(--ink-2); font-size: var(--fs-s); }
.fb__form { display: grid; gap: 1.5rem; }
.fb__field { display: grid; gap: 0.4rem; min-width: 0; }
.fb__field > label { font-weight: 600; }
.fb input[type="text"], .fb input[type="email"], .fb select, .fb textarea {
	width: 100%; min-height: 48px; padding: 0.65rem 0.85rem;
	border: 2px solid var(--ink-3); border-radius: var(--r-s);
	background: var(--bg); color: var(--ink); font: inherit;
}
.fb textarea { min-height: 11rem; resize: vertical; }
.fb select {
	appearance: none; padding-right: 2.75rem; cursor: pointer;
	background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2313213a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 20px;
}
.fb input:hover, .fb select:hover, .fb textarea:hover { border-color: var(--ink-2); }
.fb input:focus-visible, .fb select:focus-visible, .fb textarea:focus-visible { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 2px; }
.fb input[aria-invalid="true"], .fb select[aria-invalid="true"], .fb textarea[aria-invalid="true"] { border-color: var(--err); }
.fb__err { color: var(--err); font-size: var(--fs-s); font-weight: 600; display: flex; gap: 0.45rem; align-items: baseline; }
.fb__err::before { content: ""; flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--err); transform: translateY(-0.05em); }
.fb__check { grid-template-columns: 26px minmax(0, 1fr); column-gap: 0.75rem; align-items: start; }
.fb__check > input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--ink); cursor: pointer; }
.fb__check > label { font-weight: 500; cursor: pointer; }
.fb__check > .fb__hint, .fb__check > .fb__err { grid-column: 2; }
.fb__check.is-invalid > input { outline: 2px solid var(--err); outline-offset: 2px; }
.prose .fb a { color: var(--ink); }
.fb__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fb__submit { justify-self: start; min-width: 12rem; }
@media (max-width: 479px) { .fb__submit { justify-self: stretch; } }
.fb__summary, .fb__done { padding: 1rem 1.1rem; border: 1px solid var(--err); background: var(--err-bg); border-radius: var(--r-s); }
.fb__done { border-color: var(--ok); background: var(--ok-bg); }
.fb__summary:focus, .fb__done:focus { outline: none; }
.fb__summary:focus-visible, .fb__done:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fb__summary > * + *, .fb__done > * + * { margin-top: 0.5rem; }
.fb__summary-h, .fb__done-h { font: 700 var(--fs-xl)/1.15 var(--f-head); }
.fb__summary ul { padding-left: 1.2em; }
.prose .fb__summary a { color: var(--err); font-weight: 600; }

.search-form { display: flex; gap: 0.5rem; max-width: 620px; }
.search-form input { flex: 1; min-width: 0; height: 48px; padding: 0 0.9rem; border: 2px solid var(--ink-3); border-radius: var(--r-s); font: inherit; background: var(--bg); color: var(--ink); }
.search-form input:focus-visible { border-color: var(--ink); outline-offset: 0; }

.nf { display: grid; gap: 1.5rem; }
.nf__field { background: var(--sport); border-radius: var(--r-l); max-width: 480px; }
@media (min-width: 900px) { .nf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }

.empty { margin-block: 2.5rem; display: grid; gap: 1.25rem; }
.empty > p { color: var(--ink-2); }

.pager ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-block: 1rem 3rem; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: var(--on-sport); border-color: var(--ink); }
.pager .dots { border: 0; }

/* ---------- Подвал (Ft1: знак и строка, а не карта сайта) ----------
 * Полоса из семи цветов замыкает страницу так же, как открывает её шапка. Рубрики — одна строка с цветной
 * точкой вида спорта, служебные ссылки — в строке с копирайтом. */
.site-foot { background: var(--ink); color: var(--foot-text); margin-top: 4.5rem; font-size: var(--fs-s); }
.site-foot a { color: var(--on-sport); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot { display: grid; gap: 1.75rem; padding-block: 2.5rem 1.5rem; }
.foot__mast { display: grid; gap: 0.5rem; }
.logo--foot { color: var(--on-sport); }
.foot__tag { max-width: 52ch; }
.foot__sports ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot__sports a { display: inline-flex; align-items: center; gap: 0.45rem; font: 600 var(--fs-m)/1.2 var(--f-head); white-space: nowrap; min-height: 44px; }
.foot__sports a::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sport); box-shadow: 0 0 0 2px var(--foot-rule); }
.foot__legal { border-top: 1px solid var(--foot-rule); padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--foot-muted); }
.foot__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot__legal a { display: inline-block; padding-block: 0.6rem; white-space: nowrap; }
@media (min-width: 900px) {
	.foot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 3rem; align-items: start; }
	.foot__sports ul { justify-content: flex-end; }
	.foot__legal { grid-column: 1 / -1; }
}

/* ---------- Кнопка «Вверх» (21.10.2026): появляется после прокрутки на полтора экрана ---------- */
.to-top {
	position: fixed; z-index: var(--z-totop);
	right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding: 0 1rem;
	background: var(--ink); color: #fff; border-radius: var(--r-m);
	font: 600 var(--fs-s, 0.9375rem)/1 var(--f-head, inherit); text-decoration: none;
	box-shadow: 0 2px 10px rgb(19 33 58 / 0.25);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s linear 0.2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.to-top:hover { background: var(--sport, var(--ink)); }
.to-top:focus-visible { outline: 3px solid var(--sport, var(--ink)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-shown { transition: none; transform: none; } }
@media print { .to-top { display: none; } }
