/*
 * Liga Pari — современный стиль темы (2024 redesign).
 * Светлая аккуратная тема, крупные карточки, спортивные акценты.
 *
 * Цветовая система задаётся переменными — меняйте в :root.
 */

:root {
	--lp-bg:        #f4f6f9;
	--lp-surface:   #ffffff;
	--lp-surface-2: #f8fafc;
	--lp-text:      #0f172a;
	--lp-muted:     #64748b;
	--lp-border:    #e6eaf0;
	--lp-primary:   #2563eb;
	--lp-primary-d: #1d4ed8;
	--lp-accent:    #16a34a;
	--lp-accent-d:  #15803d;
	--lp-dark:      #0b1220;
	--lp-dark-2:    #111a2e;
	--lp-yellow:    #eab308;
	--lp-red:       #dc2626;
	--lp-radius:    16px;
	--lp-radius-sm: 10px;
	--lp-shadow:    0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	--lp-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
	--lp-container: 1200px;
}

/* ---------- Сброс и база ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--lp-text);
	background: var(--lp-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--lp-primary);
	text-decoration: none;
}

a:hover {
	color: var(--lp-primary-d);
}

h1, h2, h3, h4 {
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.lp-skip-link {
	position: absolute;
	left: -9999px;
}

.lp-skip-link:focus {
	left: 10px;
	top: 10px;
	z-index: 999;
	background: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}

/* ---------- Сетка ---------- */
.lp-container {
	width: 100%;
	max-width: var(--lp-container);
	margin: 0 auto;
	padding: 0 20px;
}

.lp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 32px;
	padding-top: 28px;
	padding-bottom: 48px;
	align-items: start;
}

.lp-content-col {
	min-width: 0;
}

/* ---------- Шапка ---------- */
.lp-site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--lp-dark);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lp-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 68px;
}

.lp-logo-text {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	text-decoration: none;
}

.lp-logo-text span {
	color: var(--lp-accent);
}

.lp-main-nav .lp-menu {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lp-main-nav a {
	display: block;
	color: #b9c4d6;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	transition: background 0.15s, color 0.15s;
}

.lp-main-nav a:hover,
.lp-main-nav .current-menu-item > a {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.lp-mobile-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px;
}

.lp-mobile-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 5px 0;
	transition: 0.2s;
}

.lp-header-inner {
	background: var(--lp-dark-2);
	padding: 12px 0;
}

.lp-header-inner .lp-banner {
	max-width: var(--lp-container);
	margin: 0 auto;
}

/* ---------- Заголовок страницы/архива ---------- */
.lp-archive-title,
.lp-single-title,
.lp-page-title {
	font-size: 32px;
	margin-bottom: 20px;
}

/* ---------- Главный баннер (hero) ---------- */
.lp-hero {
	position: relative;
	background:
		radial-gradient(1000px 400px at 15% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
		radial-gradient(800px 400px at 90% 120%, rgba(22, 163, 74, 0.35), transparent 55%),
		linear-gradient(160deg, #0b1220 0%, #101b31 70%, #0b1220 100%);
	color: #fff;
	padding: 64px 0 56px;
	margin-bottom: 8px;
	overflow: hidden;
}

.lp-hero-title {
	font-size: 44px;
	font-weight: 800;
	margin-bottom: 14px;
	max-width: 760px;
	letter-spacing: -0.03em;
}

.lp-hero-sub {
	font-size: 18px;
	color: #b9c4d6;
	max-width: 640px;
	margin-bottom: 28px;
}

.lp-hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---------- Кнопки ---------- */
.lp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	text-decoration: none;
	transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.lp-btn-primary {
	background: var(--lp-accent);
	color: #fff;
	box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.lp-btn-primary:hover {
	background: var(--lp-accent-d);
	color: #fff;
	transform: translateY(-2px);
}

.lp-btn-ghost {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.lp-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* ---------- Секции ---------- */
.lp-section {
	margin-bottom: 40px;
}

.lp-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 18px;
}

.lp-section-title::before {
	content: "";
	width: 5px;
	height: 22px;
	border-radius: 3px;
	background: var(--lp-accent);
}

/* ---------- Хлебные крошки ---------- */
.lp-breadcrumbs {
	font-size: 13px;
	color: var(--lp-muted);
	margin-bottom: 18px;
}

.lp-breadcrumbs a {
	color: var(--lp-muted);
	text-decoration: none;
}

.lp-breadcrumbs a:hover {
	color: var(--lp-primary);
}

.lp-breadcrumbs span {
	margin: 0 5px;
}

/* ---------- Посты (карточки) ---------- */
.lp-posts {
	display: grid;
	gap: 22px;
}

.lp-post-card {
	display: grid;
	grid-template-columns: 280px 1fr;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	overflow: hidden;
	box-shadow: var(--lp-shadow);
	transition: transform 0.18s, box-shadow 0.18s;
}

.lp-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--lp-shadow-lg);
}

.lp-post-thumb img {
	height: 100%;
	min-height: 160px;
	object-fit: cover;
}

.lp-post-body {
	padding: 22px 24px;
}

.lp-post-title {
	font-size: 21px;
	margin-bottom: 8px;
}

.lp-post-title a {
	color: var(--lp-text);
	text-decoration: none;
}

.lp-post-title a:hover {
	color: var(--lp-primary);
}

.lp-post-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--lp-muted);
	margin-bottom: 10px;
}

.lp-post-excerpt {
	color: #334155;
	margin-bottom: 14px;
}

.lp-read-more {
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Пагинация ---------- */
.lp-pagination {
	margin-top: 28px;
}

.lp-pagination .page-numbers {
	display: inline-block;
	padding: 9px 15px;
	margin-right: 6px;
	border: 1px solid var(--lp-border);
	border-radius: 10px;
	color: var(--lp-text);
	background: var(--lp-surface);
	font-weight: 600;
	text-decoration: none;
}

.lp-pagination .page-numbers.current {
	background: var(--lp-primary);
	color: #fff;
	border-color: var(--lp-primary);
}

/* ---------- Сайдбар ---------- */
.lp-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.lp-sidebar .widget {
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	padding: 20px;
	box-shadow: var(--lp-shadow);
}

.widget-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--lp-surface-2);
}

.lp-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lp-sidebar .widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--lp-surface-2);
}

.lp-sidebar .widget ul li:last-child {
	border-bottom: 0;
}

.lp-sidebar .widget a {
	color: var(--lp-text);
	text-decoration: none;
}

.lp-sidebar .widget a:hover {
	color: var(--lp-primary);
}

/* ---------- Прогнозы ---------- */
.lp-prediction-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

/* ---------- Сетки команд/сущностей ---------- */
.lp-teams-grid,
.lp-entities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 18px;
}

.lp-team-card,
.lp-entity-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	padding: 24px 16px;
	color: var(--lp-text);
	text-decoration: none;
	box-shadow: var(--lp-shadow);
	transition: transform 0.18s, box-shadow 0.18s;
}

.lp-team-card:hover,
.lp-entity-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--lp-shadow-lg);
	color: var(--lp-text);
}

.lp-team-card-logo img,
.lp-entity-card-photo img {
	width: 68px;
	height: 68px;
	object-fit: contain;
}

.lp-entity-card-photo img {
	border-radius: 12px;
	object-fit: cover;
}

.lp-team-card-placeholder,
.lp-entity-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--lp-dark), #1e3a8a);
	color: #fff;
	font-size: 26px;
	font-weight: 800;
}

.lp-team-card-name,
.lp-entity-card-name {
	font-weight: 700;
	text-align: center;
	font-size: 15px;
}

.lp-entity-card-sub {
	font-size: 13px;
	color: var(--lp-muted);
	text-align: center;
}

/* ---------- Шапка сущности ---------- */
.lp-entity-header {
	display: flex;
	gap: 26px;
	align-items: center;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	padding: 26px;
	margin-bottom: 32px;
	box-shadow: var(--lp-shadow);
}

.lp-entity-header-logo img,
.lp-entity-header-photo img {
	width: 110px;
	height: 110px;
	object-fit: contain;
	border-radius: 14px;
}

.lp-entity-header-photo img {
	object-fit: cover;
}

.lp-entity-logo-placeholder,
.lp-entity-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 110px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--lp-dark), #1e3a8a);
	color: #fff;
	font-size: 42px;
	font-weight: 800;
}

.lp-entity-photo-placeholder--person {
	background: linear-gradient(135deg, #334155, #1e293b);
}

.lp-entity-photo-placeholder--stadium {
	background: linear-gradient(135deg, #166534, #14532d);
}

.lp-entity-header-info h1 {
	font-size: 28px;
	margin-bottom: 6px;
}

.lp-entity-subtitle {
	color: var(--lp-muted);
	font-size: 16px;
	margin-bottom: 12px;
}

.lp-entity-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
	font-size: 14.5px;
}

.lp-entity-facts span {
	color: var(--lp-muted);
}

.lp-player-bignumber {
	display: inline-block;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	background: var(--lp-primary);
	padding: 3px 12px;
	border-radius: 999px;
	margin-bottom: 8px;
}

/* ---------- Сетка игроков ---------- */
.lp-players-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}

.lp-player-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius-sm);
	color: var(--lp-text);
	text-decoration: none;
	box-shadow: var(--lp-shadow);
	transition: transform 0.15s, box-shadow 0.15s;
}

.lp-player-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--lp-shadow-lg);
	color: var(--lp-text);
}

.lp-player-card-photo {
	position: relative;
	height: 140px;
	overflow: hidden;
	background: var(--lp-surface-2);
}

.lp-player-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lp-player-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1e293b, #334155);
	color: #fff;
	font-size: 40px;
	font-weight: 800;
}

.lp-player-card-body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lp-player-card-number {
	font-size: 13px;
	font-weight: 800;
	color: var(--lp-primary);
}

.lp-player-name {
	font-weight: 700;
	font-size: 15px;
}

.lp-player-card-position {
	font-size: 13px;
	color: var(--lp-muted);
}

/* ---------- Статистика ---------- */
.lp-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.lp-stat-box {
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius-sm);
	padding: 18px;
	text-align: center;
	box-shadow: var(--lp-shadow);
}

.lp-stat-value {
	display: block;
	font-size: 30px;
	font-weight: 800;
	color: var(--lp-text);
	line-height: 1.1;
}

.lp-stat-label {
	display: block;
	font-size: 13px;
	color: var(--lp-muted);
	margin-top: 4px;
}

.lp-stat-box--yellow {
	border-top: 3px solid var(--lp-yellow);
}

.lp-stat-box--red {
	border-top: 3px solid var(--lp-red);
}

/* ---------- Фильтры ---------- */
.lp-filter-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius-sm);
	padding: 14px 18px;
	margin-bottom: 22px;
	box-shadow: var(--lp-shadow);
}

.lp-filter-form select {
	padding: 9px 12px;
	border-radius: 9px;
	border: 1px solid #d1d5db;
	background: #fff;
}

/* ---------- Статьи (single) ---------- */
.lp-single-content,
.lp-page-content,
.lp-match-content {
	font-size: 17px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	padding: 28px;
	box-shadow: var(--lp-shadow);
	margin-bottom: 32px;
}

.lp-single-content h2,
.lp-page-content h2 {
	margin-top: 1.3em;
}

.lp-single-thumb {
	margin: 22px 0;
	border-radius: var(--lp-radius);
	overflow: hidden;
}

/* ---------- 404 ---------- */
.lp-404 {
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	padding: 70px 30px;
	text-align: center;
	box-shadow: var(--lp-shadow);
}

.lp-404-code {
	display: block;
	font-size: 100px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Подвал ---------- */
.lp-site-footer {
	background: var(--lp-dark);
	color: #9fb0c7;
	margin-top: 48px;
	padding: 44px 0 24px;
}

.lp-footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 26px 0 30px;
}

.lp-site-footer .widget-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lp-site-footer a {
	color: #c4d0e0;
	text-decoration: none;
}

.lp-site-footer a:hover {
	color: var(--lp-accent);
}

.lp-site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lp-site-footer li {
	padding: 5px 0;
}

.lp-disclaimer {
	font-size: 12px;
	line-height: 1.6;
	color: #7d8ba1;
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--lp-radius-sm);
	padding: 16px;
}

.lp-disclaimer strong {
	color: #ff7a7a;
}

.lp-footer-bottom {
	display: flex;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
	color: #6b7a92;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- Реклама (баннеры) ---------- */
.lp-banner {
	position: relative;
	text-align: center;
	margin: 18px 0;
}

.lp-banner img {
	margin: 0 auto;
	border-radius: var(--lp-radius-sm);
}

.lp-ad-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #9aa4b2;
	margin-bottom: 6px;
}

/* ---------- Пустые состояния ---------- */
.lp-empty {
	color: var(--lp-muted);
	background: var(--lp-surface);
	border: 1px dashed var(--lp-border);
	border-radius: var(--lp-radius-sm);
	padding: 22px;
	text-align: center;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
	.lp-layout {
		grid-template-columns: 1fr;
	}

	.lp-sidebar {
		order: 2;
	}

	.lp-footer-widgets {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.lp-mobile-toggle {
		display: block;
	}

	.lp-main-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 68px;
		background: var(--lp-dark);
		padding: 12px 20px 18px;
		display: none;
		z-index: 100;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	}

	.lp-main-nav.is-open {
		display: block;
	}

	.lp-main-nav .lp-menu {
		flex-direction: column;
		gap: 2px;
	}

	.lp-topbar-inner {
		position: relative;
	}

	.lp-post-card {
		grid-template-columns: 1fr;
	}

	.lp-hero-title {
		font-size: 30px;
	}

	.lp-hero {
		padding: 40px 0;
	}

	.lp-entity-header {
		flex-direction: column;
		text-align: center;
	}

	.lp-entity-facts {
		justify-items: center;
	}

	.lp-single-content {
		padding: 20px;
	}
}
