/* ==== Base / tokens ==== */
:root {
	--bg: #F5F8FB;
	--card: #FFFFFF;
	--dark: #061430;
	--accent: #2A547A;
	--accent-strong: #153658;
	--accent-soft: #E8F2F8;
	--brand-orange: #F17028;
	--brand-orange-hover: #D95718;
	--brand-orange-soft: #FFF0E6;
	--border: #D7E3EC;
	--line-soft: #EAF1F6;
	--muted: #4D6275;
	--soft: #7890A5;
	--hero-bg: #E9F3F8;
	--hero-border: #B8CDD9;
	--footer-bg: #061430;
	--footer-border: #193A5E;
	--footer-muted: #C5D9E7;
	--footer-soft: #829DB4;
	--green: #0FA36B;
	--amber: #B87200;
	--red: #C23B3B;
	--bar-track: #D7E3EC;
	--bar-track-2: #F17028;
}

* { box-sizing: border-box; }

html {
	height: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--dark);
	font-family: "Golos Text", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.main-content {
	flex: 1 0 auto;
	width: 100%;
}

.site-footer {
	flex-shrink: 0;
}

a {
	color: var(--accent);
	text-decoration: none;
}
a:hover { color: var(--brand-orange-hover); }

.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px 0 0;
}

.section-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}
.section-head h2 {
	margin: 0;
	font-weight: 700;
	font-size: 25px;
	letter-spacing: -0.02em;
}
.section-head .lead {
	font-size: 13px;
	color: var(--muted);
}
.section-head .spacer { flex: 1; }
.section-head .more { font-size: 13px; font-weight: 600; white-space: nowrap; }

.site-logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}
.site-logo img {
	display: block;
	width: 80px;
	height: auto;
}

/* ==== Header (desktop default) ==== */
.site-header {
	flex-shrink: 0;
	background: var(--card);
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: 0 1px 0 rgba(6, 20, 48, 0.08);
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-header .main-nav {
	display: flex;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	flex-wrap: wrap;
}
.site-header .main-nav a {
	padding: 8px 14px;
	color: var(--muted);
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
}
.site-header .main-nav a:hover { color: var(--brand-orange-hover); background: var(--brand-orange-soft); }
.site-header .main-nav a.active { color: var(--accent-strong); background: var(--brand-orange-soft); }

.site-header .spacer { flex: 1; }

/* ==== Внутренние страницы: хлебные крошки + заголовок ==== */
.page-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 0 8px;
	margin-bottom: 20px;
}

.bx-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--soft);
}
.bx-breadcrumb-item {
	display: flex;
	align-items: center;
	gap: 6px;
	float: none;
}
.bx-breadcrumb-item a { color: var(--soft); }
.bx-breadcrumb-item a:hover { color: var(--accent); }
.bx-breadcrumb-item:last-child span { color: var(--muted); }
.bx-breadcrumb-item .fa-angle-right {
	font-size: 11px;
	color: var(--soft);
	opacity: .6;
}

.page-title {
	margin: 0;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -0.02em;
}

/* ==== Hero ==== */
.hero {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 34px;
	background: transparent;
	margin: 0;
	position: relative;
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	z-index: 0;
	background:
		linear-gradient(rgba(233, 243, 248, 0.84), rgba(233, 243, 248, 0.84)),
		url("../images/hero.jfif") center / cover no-repeat;
}
.hero > * {
	position: relative;
	z-index: 1;
}
.hero h1 {
	margin: 0;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.03em;
	max-width: 700px;
}
.hero .hero-text {
	font-size: 15px;
	color: var(--muted);
	max-width: 640px;
	line-height: 1.55;
}

.match-card {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 24px 26px;
	background: var(--card);
	border: 1px solid var(--border);
	align-items: center;
}
.match-card .match-main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 2 1 380px;
	min-width: 0;
}
.match-card .match-tags {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.tag-dark {
	padding: 5px 11px;
	background: var(--dark);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.match-card .match-teams {
	font-weight: 900;
	font-size: 40px;
	line-height: 1.05;
	letter-spacing: -0.035em;
}
.match-card .match-desc {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
	max-width: 460px;
}
.btn {
	display: inline-block;
	padding: 11px 20px;
	background: var(--brand-orange);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border: none;
	cursor: pointer;
}
.btn:hover { background: var(--brand-orange-hover); color: #fff; }
.btn-dark { background: var(--dark); }

.match-card .match-prob {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 260px;
	min-width: 0;
	padding-left: 4px;
}
.eyebrow {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--soft);
}
.prob-value {
	font-weight: 900;
	font-size: 64px;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--accent);
}
.prob-favorite {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--dark);
}
.bar {
	display: flex;
	height: 10px;
	overflow: hidden;
	background: var(--bar-track);
}
.bar .bar-home { background: var(--accent); }
.bar .bar-away { background: var(--brand-orange); }
.bar-legend {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
}
.bar-legend > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: 48%;
	min-width: 0;
}
.bar-legend > span:last-child { align-items: flex-end; text-align: right; }
.bar-legend .prob-team-name,
.prob-nums .prob-team-name {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bar-legend strong { color: var(--dark); font-size: 13px; }

/* ==== Day tabs ==== */
.day-tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.day-tab {
	flex: 0 0 124px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	cursor: pointer;
	background: var(--card);
	border: 1px solid var(--border);
	color: var(--dark);
}
.day-tab .dow {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: .7;
}
.day-tab .date { font-weight: 700; font-size: 16px; }
.day-tab .count { font-size: 11px; font-weight: 500; color: var(--accent); }
.day-tab.is-active {
	background: var(--dark);
	border-color: var(--dark);
	color: #fff;
}
.day-tab.is-active .count { color: #F5944D; }
.day-tab.is-empty { color: var(--soft); }
.day-tab.is-empty .count { color: #A9B2C6; }

.day-title-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}
.day-title-row .title { font-weight: 700; font-size: 18px; }
.day-title-row .subtitle { font-size: 12px; font-weight: 500; color: var(--soft); }

/* ==== Match list ==== */
.match-list {
	background: var(--card);
	border: 1px solid var(--border);
	overflow: hidden;
}
.match-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 18px 22px;
	border-top: 1px solid var(--line-soft);
}
.match-row:first-child { border-top: none; }
.match-row .time { font-weight: 700; font-size: 14px; width: 52px; flex: 0 0 52px; }
.match-row .pair-block {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1 1 190px;
	min-width: 0;
}
.match-row .pair { font-size: 15px; font-weight: 600; }
.match-row .arena { font-size: 12px; font-weight: 600; color: var(--soft); }
.match-row .prob-block {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 240px;
	min-width: 0;
}
.match-row .prob-nums {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.prob-nums > .home,
.prob-nums > .away {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: 48%;
	min-width: 0;
}
.prob-nums > .away { align-items: flex-end; text-align: right; }
.prob-nums .prob-team-name { font-size: 10px; font-weight: 600; }
.prob-nums strong { font-size: 15px; }
.match-row .prob-nums .home { color: var(--accent); }
.match-row .prob-nums .away { color: var(--soft); }
.match-row .bar { height: 8px; }
.match-row .details-link { font-size: 12px; font-weight: 600; white-space: nowrap; }

.empty-day {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 30px 26px;
	background: var(--card);
	border: 1px dashed #C9D5EE;
}
.empty-day .empty-main { display: flex; flex-direction: column; gap: 5px; flex: 1 1 300px; }
.empty-day .empty-title { font-weight: 700; font-size: 17px; }
.empty-day .empty-hint { font-size: 13px; color: var(--muted); }

/* ==== Разборы ==== */
.reviews-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.review-featured {
	flex: 2 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 28px;
	background: var(--card);
	border: 1px solid var(--border);
	color: var(--dark);
}
.review-featured:hover { border-color: var(--brand-orange); }
.review-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--soft);
}
.review-meta .pill {
	padding: 5px 11px;
	background: var(--brand-orange-soft);
	color: var(--brand-orange-hover);
}
.review-featured .review-title {
	font-weight: 700;
	font-size: 23px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.review-featured .review-lead {
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	line-height: 1.55;
}
.factor-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.factor-pills span {
	padding: 7px 12px;
	background: var(--bg);
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
}
.review-featured .review-cta {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line-soft);
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
}

.review-side {
	flex: 1 1 280px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.review-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--border);
	color: var(--dark);
}
.review-card:hover { border-color: var(--brand-orange); }
.review-card .review-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.review-card .review-lead { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }

/* ==== Раздел "Разборы матчей" (/razbory/) ==== */
.reviews-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.reviews-pager { margin-top: 24px; display: flex; justify-content: center; }
.reviews-pager .modern-page-navigation {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
}
.reviews-pager .modern-page-title { display: none; }
.reviews-pager .modern-page-navigation a,
.reviews-pager .modern-page-navigation span.modern-page-current,
.reviews-pager .modern-page-navigation span.modern-page-dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-left: 1px solid var(--border) !important;
	background: var(--card);
	color: var(--dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.reviews-pager .modern-page-navigation a:hover { border-color: var(--accent); color: var(--accent); }
.reviews-pager .modern-page-navigation span.modern-page-current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.reviews-pager .modern-page-navigation span.modern-page-dots {
	border: none;
	background: none;
	min-width: auto;
	color: var(--soft);
	font-weight: 400;
}
.reviews-pager .modern-page-navigation a.modern-page-previous,
.reviews-pager .modern-page-navigation a.modern-page-next {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
	padding: 0 14px;
}
.reviews-pager .modern-page-navigation a.modern-page-previous:hover,
.reviews-pager .modern-page-navigation a.modern-page-next:hover { color: var(--accent); }

.review-detail { max-width: 760px; }
.review-detail .review-meta { margin-bottom: 16px; }
.review-detail-match { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.review-detail-picture { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.review-detail-text { font-size: 15px; line-height: 1.7; color: var(--dark); }
.review-detail-text p { margin: 0 0 16px; }

/* ==== Турнирная таблица ==== */
.table-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.standings-card, .bracket-card {
	background: var(--card);
	border: 1px solid var(--border);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.standings-card { flex: 2 1 420px; min-width: 0; }
.bracket-card { flex: 1 1 280px; min-width: 0; }

.section-more { margin-top: 5px; text-align: right; }
.section-more-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
}

.conf-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conf-tab {
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	background: var(--bg);
	color: var(--muted);
}
.conf-tab.is-active { background: var(--dark); color: #fff; }
.conf-tabs .spacer { flex: 1; }
.conf-tabs .note { font-size: 11px; font-weight: 500; color: var(--soft); }

.standings-table { overflow-x: auto; }
.standings-head, .standings-row {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) 36px 36px 72px 92px 52px;
	gap: 0 10px;
	min-width: 480px;
}
.standings-head {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--soft);
}
.standings-row {
	align-items: center;
	padding: 9px 0;
	border-top: 1px solid var(--line-soft);
	font-size: 13px;
	font-weight: 600;
}
.standings-row .rank { color: var(--accent); }
.standings-row .team { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings-row .team a { color: inherit; }
.standings-row .team a:hover { color: var(--accent); }
.standings-row .num { text-align: center; color: var(--muted); }
.standings-row .goals { text-align: center; color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 12px; }
.standings-row .goals .diff { margin-left: 4px; font-weight: 700; }
.standings-row .goals .diff.is-positive { color: var(--green); }
.standings-row .goals .diff.is-negative { color: var(--red); }
.standings-row .form { display: flex; gap: 3px; justify-content: center; }
.standings-row .form .form-item {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	border-radius: 4px;
}
.standings-row .form .form-item.is-win { background: var(--green); }
.standings-row .form .form-item.is-loss { background: var(--red); }
.standings-row .pts { text-align: right; font-weight: 700; }

.bracket-card .bracket-title { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.bracket-card .bracket-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.bracket-pair {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 13px 0;
	border-top: 1px solid var(--line-soft);
}
.bracket-pair .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }
.bracket-pair .row.low { font-weight: 400; color: var(--muted); }
.bracket-pair .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-pair .row .pct { color: var(--accent); }
.bracket-pair .bar { height: 6px; margin-top: 2px; }

/* ==== Результаты ==== */
.results-card {
	background: var(--card);
	border: 1px solid var(--border);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.results-datebar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.results-datebar .date-nav {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	color: var(--dark);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.results-date-form input[type="date"] {
	border: 1px solid var(--border);
	background: var(--bg);
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dark);
	font-family: inherit;
}
.results-date-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.results-empty { font-size: 13px; font-weight: 500; color: var(--soft); padding: 20px 0; }

.results-table { overflow-x: auto; }
.results-head, .results-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) 120px;
	align-items: center;
	gap: 0 10px;
	min-width: 420px;
}
.results-head {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--soft);
}
.results-row {
	padding: 12px 0;
	border-top: 1px solid var(--line-soft);
	font-size: 13px;
	font-weight: 600;
}
.results-row .team { font-weight: 500; white-space: normal; word-break: break-word; }
.results-row .team a { color: inherit; }
.results-row .team a:hover { color: var(--accent); }
.results-row .score { text-align: center; font-weight: 700; white-space: nowrap; }
.results-row .score .ot { margin-left: 4px; font-size: 10px; font-weight: 700; color: var(--accent); }
.results-row .status { font-size: 11px; font-weight: 600; color: var(--soft); }
.results-row .status.is-finished { color: var(--green); }
.results-day-table.results-table .results-head,
.results-day-table.results-table .results-row {
	grid-template-columns: 76px minmax(0, 1fr) 88px minmax(0, 1fr) 120px;
	min-width: 520px;
}
.results-day-table .time { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ==== Прогнозы ==== */
.match-row .desc {
	font-size: 12px;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 320px;
}
.predict-hit, .predict-miss { margin-left: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.predict-hit { color: var(--green); }
.predict-miss { color: var(--red); }

.predictions-table.results-table .results-head,
.predictions-table.results-table .results-row {
	grid-template-columns: 56px minmax(180px, 1fr) 220px 120px 80px;
	min-width: 720px;
}
.predictions-table .predict .prob-nums { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; }
.predictions-table .predict .prob-nums .home { color: var(--accent); }
.predictions-table .predict .prob-nums .away { color: var(--soft); }
.predictions-table .predict .bar { height: 6px; margin-top: 4px; }

.prediction-detail-prob { margin-bottom: 20px; }
.prediction-lead { font-weight: 600; }

/* ==== Подборки ==== */
.collections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 14px;
}
.collection-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	background: var(--card);
	border: 1px solid var(--border);
	color: var(--dark);
	min-height: 168px;
}
.collection-card:hover { border-color: var(--brand-orange); }
.collection-card .metric { font-weight: 900; font-size: 32px; color: var(--accent); letter-spacing: -0.03em; }
.collection-card .title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.collection-card .lead { font-size: 12px; color: var(--muted); line-height: 1.5; }
.collection-card .count { margin-top: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }

/* ==== Страница 404 ==== */
.error-404 {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	max-width: 380px;
	margin: 0 auto;
	padding: 8px 0 56px;
}
.error-404-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 900;
	font-size: 26px;
	letter-spacing: -0.02em;
}
.error-404-text {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
}
.error-404 .btn { margin-top: 4px; }

/* ==== Footer ==== */
.site-footer {
	padding: 34px 0 26px;
	background-color: var(--footer-bg);
	background-image:
		linear-gradient(rgba(6, 20, 48, 0.92), rgba(6, 20, 48, 0.92)),
		url("../images/footer.jfif");
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	margin-top: 56px;
	border-top: 3px solid var(--brand-orange);
}
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; margin-bottom: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; flex: 0 1 320px; min-width: 0; }
.footer-logo img { width: 180px; }
.footer-brand .footer-desc { font-size: 13px; color: var(--footer-muted); line-height: 1.55; max-width: 320px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
	padding: 8px 14px;
	background: var(--accent-strong);
	font-size: 12px;
	font-weight: 500;
	color: #fff;
}
.footer-social a:hover { background: var(--brand-orange); color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 11px; flex: 1 1 200px; min-width: 0; }
.footer-col .col-title {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--footer-soft);
}
.footer-col a { font-size: 13px; font-weight: 600; color: #E3E8F4; }
.footer-col a:hover { color: #F5944D; }

.footer-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; flex: 0 1 auto; min-width: 0; margin-left: auto; }
.footer-menu .col-title {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--footer-soft);
}
.footer-menu-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.footer-menu-links a { font-size: 13px; font-weight: 600; color: #E3E8F4; }
.footer-menu-links a:hover { color: #F5944D; }

@media (max-width: 640px) {
	.footer-menu { align-items: flex-start; margin-left: 0; }
	.footer-menu-links { justify-content: flex-start; }
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 20px;
	border-top: 1px solid var(--footer-border);
}
.footer-bottom .copy { font-size: 11px; font-weight: 600; color: var(--footer-soft); }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; font-weight: 500; }
.footer-bottom .legal-links a { color: var(--footer-muted); }
.footer-bottom .legal-links a:hover { color: #F5944D; }

/* ==== Mobile tab bar (footer, mobile only) ==== */
.mobile-tabbar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	min-height: 72px;
	padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
	background: rgba(255,255,255,0.95);
	border-top: 1px solid var(--border);
}
.mobile-tabbar a {
	flex: 1 1 0;
	min-width: 0;
	min-height: 55px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 4px 2px;
	color: var(--soft);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
.mobile-tabbar a .dot { height: 2px; width: 22px; background: transparent; }
.mobile-tabbar a.is-active { color: var(--dark); }
.mobile-tabbar a.is-active .dot { background: var(--brand-orange); }

/* ==== Команды ==== */
.teams-page { display: flex; flex-direction: column; gap: 20px; }

.teams-columns { display: flex; flex-wrap: wrap; gap: 16px; }
.teams-conf {
	flex: 1 1 360px;
	min-width: 0;
	background: var(--card);
	border: 1px solid var(--border);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.teams-conf-title { font-size: 19px; font-weight: 700; color: var(--accent); }
.teams-conf-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.teams-table { display: flex; flex-direction: column; }
.teams-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--line-soft);
	color: var(--dark);
}
.teams-row:first-child { border-top: none; }
.teams-row:hover .teams-name { color: var(--accent); }
.teams-logo {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex: 0 0 28px;
}
.teams-name { font-size: 14px; font-weight: 600; }

/* ==== Детальная команды ==== */
.team-detail { display: flex; flex-direction: column; gap: 20px; }
.team-detail-header { display: flex; align-items: center; gap: 16px; }
.team-detail-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.team-detail-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.team-detail-points { font-size: 15px; font-weight: 700; color: var(--accent); }
.team-detail-record { font-size: 13px; font-weight: 600; color: var(--muted); }

.team-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--card);
	border: 1px solid var(--border);
	padding: 18px 24px;
}
.team-facts-item { flex: 1 1 180px; min-width: 0; }
.team-facts-label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.team-facts-value { font-size: 14px; font-weight: 600; color: var(--dark); }

.team-games-table.results-table .results-head,
.team-games-table.results-table .results-row {
	grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr) 120px;
}
.team-games-table .date { font-size: 12px; font-weight: 600; color: var(--soft); }
.team-games-table .team.is-team { color: var(--accent); }
.team-games-table .team a { color: inherit; }
.team-games-table .team a:hover { color: var(--accent); }
.team-games-table .team.is-winner { font-weight: 700; }
.team-games-table .team.is-winner::after { content: "●"; margin-left: 6px; font-size: 8px; color: var(--green); vertical-align: middle; }
.team-games-table .status.is-win { color: var(--green); }
.team-games-table .status.is-loss { color: var(--red); }

/* ==== Responsive ==== */
@media (max-width: 768px) {
	.wrap { padding: 0; }
	.site-footer .wrap { padding: 0 18px; }

	.site-header-inner {
		padding: 6px 16px;
	}
	.site-header .site-logo img { width: 80px; }
	.site-header .main-nav { display: none; }

	.hero { margin: 0; padding: 22px 16px 20px; }
	.hero h1 { font-size: 24px; }

	.page-head { padding: 16px 16px 4px; }
	.page-title { font-size: 24px; }

	.section { padding: 28px 16px 0; }
	.match-card,
	.reviews-grid > .review-featured,
	.standings-card,
	.bracket-card { padding: 18px; }

	.match-card .match-teams { font-size: 30px; }
	.prob-value { font-size: 46px; }

	body { padding-bottom: 72px; }
	.mobile-tabbar { display: flex; }
}
