:root {
	--rpt-blue: #0f2233;
	--rpt-red: #c62828;
	--rpt-white: #ffffff;
	--rpt-light: #f5f5f5;
	--rpt-text: #1f2933;
}

html {
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--rpt-light);
	color: var(--rpt-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

a {
	color: var(--rpt-red);
}

.site-container {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.site-header {
	background: var(--rpt-blue);
	color: var(--rpt-white);
	border-bottom: 0;
	box-shadow: 0 8px 24px rgba(15, 34, 51, 0.18);
}

.site-footer {
	background: var(--rpt-blue);
	color: var(--rpt-white);
}

.pr-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(48px, 7vw, 96px);
	padding: 22px 0;
}

.pr-header-left,
.pr-header-right {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	min-width: 0;
}

.pr-header-left {
	justify-content: flex-end;
	padding-right: 18px;
}

.pr-header-center {
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
}

.pr-header-right {
	justify-content: flex-start;
	padding-left: 18px;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.site-title a,
.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.site-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-logo--header {
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--rpt-white);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.site-logo--header img {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 84px;
	object-fit: contain;
}

.site-logo--hero {
	padding: 16px;
	border-radius: 28px;
	background: var(--rpt-white);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.site-logo--hero img {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 180px;
	object-fit: contain;
}

.site-logo--hero.site-logo--fallback {
	width: 132px;
	height: 132px;
	padding: 12px;
	border: 3px solid var(--rpt-white);
	border-radius: 50%;
	background: var(--rpt-red);
	color: var(--rpt-white);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	box-shadow: none;
}

.site-description {
	display: none;
	margin: 4px 0 0;
	color: rgba(15, 34, 51, 0.68);
}

.site-navigation {
	width: 100%;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(28px, 4vw, 54px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 4px;
	color: var(--rpt-white);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu a:focus {
	color: var(--rpt-red);
	text-decoration: underline;
	text-decoration-color: var(--rpt-red);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.site-main {
	padding: 28px 0 32px;
}

.home .site-main,
.blog .site-main {
	padding-top: 0;
}

.page-content,
.front-page-content,
.content-card {
	background: var(--rpt-white);
	padding: 24px;
}

.content-list {
	display: grid;
	gap: 20px;
}

.entry-title {
	margin-top: 0;
	color: var(--rpt-blue);
	line-height: 1.2;
}

.site-footer {
	padding: 32px 0 20px;
}

.site-footer p {
	margin: 0;
	text-align: center;
}

.site-footer__social {
	display: flex;
	justify-content: center;
	margin: 0 0 14px;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: var(--rpt-red);
	color: var(--rpt-white);
	transition: background 180ms ease, transform 180ms ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus {
	background: #a91f1f;
	color: var(--rpt-white);
	transform: translateY(-1px);
}

.site-footer__social-icon {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.site-footer__credit {
	font-size: 0.9rem;
	line-height: 1.45;
}

.site-sponsors {
	margin: 0 0 28px;
}

.site-sponsors h2 {
	margin: 0 0 18px;
	color: var(--rpt-white);
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

.site-sponsors__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.site-sponsors__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
}

.site-sponsors__item img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 140px;
	object-fit: contain;
}

.pr-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid var(--rpt-red);
	background: var(--rpt-red);
	color: var(--rpt-white);
	font-weight: 700;
	text-decoration: none;
}

.pr-button:hover,
.pr-button:focus {
	background: #a91f1f;
	border-color: #a91f1f;
	color: var(--rpt-white);
}

.pr-button--secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.8);
}

.pr-button--secondary:hover,
.pr-button--secondary:focus {
	background: var(--rpt-white);
	border-color: var(--rpt-white);
	color: var(--rpt-blue);
}

.pr-section {
	margin: 0 0 32px;
	scroll-margin-top: 24px;
}

.pr-section__header {
	margin-bottom: 14px;
}

.pr-section__header h2 {
	margin: 0;
	color: var(--rpt-blue);
	font-size: 1.7rem;
	line-height: 1.2;
}

.pr-section__footer {
	margin-top: 20px;
	text-align: center;
}

.pr-upcoming-hero {
	position: relative;
	display: flex;
	align-items: center;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-top: 0;
	padding: 56px 20px 52px;
	overflow: hidden;
	background-image: url("../img/padel-bg.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.pr-upcoming-hero {
	background-image: image-set(
		url("../img/padel-bg.webp") type("image/webp"),
		url("../img/padel-bg.jpg") type("image/jpeg")
	);
}

.pr-upcoming-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	margin: 0 auto;
}

.pr-upcoming-hero .pr-section__header h2 {
	margin-top: 0;
	margin-bottom: 28px;
	color: var(--rpt-white);
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.pr-upcoming-hero .pr-match-card {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.pr-upcoming-hero .pr-public-upcoming.pr-matches-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.pr-upcoming-hero .pr-public-upcoming.pr-matches-slider.pr-slider-ready {
	overflow: visible;
}

.pr-upcoming-hero .pr-matches-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

.pr-upcoming-hero .pr-match-list.pr-matches-track {
	display: flex;
	flex-wrap: nowrap;
	grid-template-columns: none;
	gap: 18px;
	will-change: transform;
	transition: transform 600ms ease;
}

.pr-upcoming-hero .pr-match-slide {
	flex: 0 0 calc((100% - 36px) / 3);
	min-width: 0;
}

@media screen and (min-width: 1024px) {
	.pr-upcoming-hero {
		min-height: 520px;
		padding-top: 90px;
		padding-bottom: 90px;
	}
}

@media screen and (max-width: 1024px) {
	.pr-upcoming-hero .pr-match-slide {
		flex-basis: calc((100% - 18px) / 2);
	}

	.site-sponsors__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 768px) {
	.pr-upcoming-hero .pr-match-slide {
		flex-basis: 100%;
	}

	.pr-slider-controls {
		position: static;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin-top: 20px;
		pointer-events: auto;
	}

	.pr-slider-arrow {
		position: static;
		width: 34px;
		height: 34px;
		font-size: 1.25rem;
		transform: none;
	}

	.pr-slider-arrow:hover,
	.pr-slider-arrow:focus {
		transform: none;
	}

	.pr-slider-dots {
		position: static;
		gap: 10px;
		transform: none;
	}

	.pr-slider-dot {
		width: 10px;
		height: 10px;
	}
}

.pr-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	color: var(--rpt-blue);
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.pr-slider-arrow:hover,
.pr-slider-arrow:focus {
	background: var(--rpt-white);
	color: var(--rpt-red);
	transform: translateY(-50%) scale(1.04);
}

.pr-slider-arrow--prev {
	left: -58px;
}

.pr-slider-arrow--next {
	right: -58px;
}

.pr-slider-arrow[hidden] {
	display: none;
}

.pr-slider-controls {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pr-slider-controls .pr-slider-arrow {
	pointer-events: auto;
}

.pr-slider-dots {
	position: absolute;
	left: 50%;
	bottom: -34px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	pointer-events: auto;
	transform: translateX(-50%);
}

.pr-slider-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid rgba(15, 34, 51, 0.22);
	border-radius: 999px;
	background: var(--rpt-white);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}

.pr-slider-dot:hover,
.pr-slider-dot:focus,
.pr-slider-dot--active {
	background: var(--rpt-red);
	transform: scale(1.18);
}

.pr-slider-dots[hidden] {
	display: none;
}

.pr-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.pr-card {
	background: var(--rpt-white);
	padding: 22px;
	box-shadow: 0 14px 34px rgba(15, 34, 51, 0.1);
}

.pr-card h3 {
	margin: 0;
	color: var(--rpt-blue);
	font-size: 1.1rem;
	line-height: 1.35;
}

.pr-card__meta {
	margin: 0 0 10px;
	color: var(--rpt-red);
	font-weight: 700;
}

.pr-ranking-table {
	width: 100%;
	border-collapse: collapse;
}

.pr-ranking-table th,
.pr-ranking-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #e7e7e7;
	text-align: center;
}

.pr-ranking-table th.pr-col-pair,
.pr-ranking-table td.pr-col-pair {
	text-align: left;
}

.pr-ranking-table th {
	color: var(--rpt-blue);
	font-weight: 800;
}

.pr-ranking-table tr:last-child td {
	border-bottom: 0;
}

.pr-result-card__score {
	margin: 12px 0 0;
	color: var(--rpt-red);
	font-size: 1.45rem;
	font-weight: 800;
}

.pr-rules-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding-left: 20px;
}

.pr-rules-list li::marker {
	color: var(--rpt-red);
}

.pr-playoffs-format {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid #e7e7e7;
}

.pr-playoffs-format__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	margin-top: 18px;
	border-radius: 8px;
}

.pr-empty-message {
	margin: 0;
	color: rgba(15, 34, 51, 0.72);
	font-weight: 700;
}

.pr-empty-message + p {
	margin-bottom: 0;
}

@media screen and (max-width: 700px) {
	.pr-header {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		padding: 18px 0;
		gap: 10px 12px;
	}

	.pr-header-left,
	.pr-header-right {
		display: flex;
		flex: 0 1 auto;
		justify-content: center;
		width: auto;
		padding: 0;
	}

	.pr-header-center {
		display: flex;
		flex: 0 0 100%;
		align-items: center;
		justify-content: center;
		order: -1;
	}

	.primary-menu {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
	}

	.primary-menu a:first-child {
		padding-left: 3px;
	}

	.primary-menu a:last-child {
		padding-right: 3px;
	}

	.page-content,
	.front-page-content,
	.content-card {
		padding: 18px;
	}

	.site-logo--header img {
		max-width: 220px;
		max-height: 104px;
	}

	.site-logo--header {
		padding: 12px 16px;
	}

	.primary-menu a {
		min-height: 32px;
		padding: 4px 1px;
		font-size: 0.66rem;
		letter-spacing: 0.01em;
		white-space: nowrap;
	}

	.site-logo--hero img {
		max-width: 170px;
		max-height: 140px;
	}

	.site-logo--hero {
		padding: 12px;
		border-radius: 22px;
	}

	.site-logo--hero.site-logo--fallback {
		width: 112px;
		height: 112px;
	}

	.pr-button {
		width: 100%;
	}

	.pr-upcoming-hero {
		padding: 38px 16px 36px;
		background-position: center center;
	}

	.pr-upcoming-hero .pr-section__header h2 {
		margin-bottom: 20px;
	}

	.pr-upcoming-hero .pr-match-list.pr-matches-track {
		gap: 14px;
	}

	.pr-upcoming-hero .pr-match-slide {
		flex-basis: 100%;
	}

	.pr-slider-controls {
		position: static;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin-top: 20px;
		pointer-events: auto;
	}

	.pr-slider-arrow {
		position: static;
		width: 34px;
		height: 34px;
		font-size: 1.25rem;
		transform: none;
	}

	.pr-slider-arrow:hover,
	.pr-slider-arrow:focus {
		transform: none;
	}

	.pr-slider-dots {
		position: static;
		gap: 10px;
		transform: none;
	}

	.pr-slider-dot {
		width: 10px;
		height: 10px;
	}

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

	.pr-card {
		padding: 18px;
	}

	.site-sponsors__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.site-sponsors__item {
		min-height: 150px;
		margin: 0;
		padding: 0;
	}

	.site-sponsors__item img {
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: none;
	}

	.pr-ranking-table,
	.pr-ranking-table thead,
	.pr-ranking-table tbody,
	.pr-ranking-table tr,
	.pr-ranking-table th,
	.pr-ranking-table td {
		display: block;
		width: 100%;
	}

	.pr-ranking-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	.pr-ranking-table tr {
		padding: 10px 0;
		border-bottom: 1px solid #e7e7e7;
	}

	.pr-ranking-table tr:last-child {
		border-bottom: 0;
	}

	.pr-ranking-table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		border-bottom: 0;
	}
}

.pr-public-ranking .pr-ranking-table th,
.pr-public-ranking .pr-ranking-table td {
	text-align: center;
}

.pr-public-ranking .pr-ranking-table th.pr-col-pair,
.pr-public-ranking .pr-ranking-table td.pr-col-pair {
	text-align: left;
}

@media screen and (max-width: 768px) {
	.pr-public-ranking .pr-ranking-table {
		display: table;
		width: 100%;
		min-width: 620px;
		table-layout: auto;
		border-collapse: separate;
		border-spacing: 0;
	}

	.pr-public-ranking .pr-ranking-table thead {
		display: table-header-group;
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	.pr-public-ranking .pr-ranking-table tbody {
		display: table-row-group;
		width: auto;
	}

	.pr-public-ranking .pr-ranking-table tr {
		display: table-row;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.pr-public-ranking .pr-ranking-table th,
	.pr-public-ranking .pr-ranking-table td {
		display: table-cell;
		width: auto;
		padding: 8px 4px;
		border-bottom: 1px solid #e3e8ef;
		font-size: inherit;
		text-align: center;
		vertical-align: middle;
		white-space: nowrap;
	}

	.pr-public-ranking .pr-ranking-table th.pr-col-pair,
	.pr-public-ranking .pr-ranking-table td.pr-col-pair {
		width: 1%;
		min-width: max-content;
		padding-right: 30px;
		padding-left: 8px;
		text-align: left;
		white-space: nowrap;
	}

	.pr-public-ranking .pr-ranking-table th.pr-col-pos,
	.pr-public-ranking .pr-ranking-table td.pr-col-pos {
		padding-right: 3px;
		padding-left: 3px;
	}
}
