/*
 * Homepage blocks — styled from the tokens in the theme's new.pen design file.
 *
 * Extracted from that file and used below:
 *   container   1440px            (my previous 78ch ≈ 700px was far too narrow)
 *   section gap 60px
 *   card gap    32px
 *   card fill   linear-gradient(#1424c5 → #0d23ff)
 *   surface     #00142c
 *   deep blue   #00007c
 *   soft text   #dee1ff, #afb7ff at 50%
 *   accent      #87ff72 (green), plus the theme's own orange for CTAs
 *   type        18px body · 22/24/28px headings · 38px display
 *
 * Loaded after page-home.css and information.css so it overrides them; no template
 * markup is touched, the ACF sections keep their existing classes.
 */

:root {
	--pen-card-from: #1424c5;
	--pen-card-to: #0d23ff;
	--pen-surface: #00142c;
	--pen-deep: #00007c;
	--pen-text: #ffffff;
	--pen-text-soft: #dee1ff;
	--pen-text-mute: rgba(175, 183, 255, 0.72);
	--pen-green: #87ff72;
	--pen-line: rgba(175, 183, 255, 0.22);

	--pen-accent: var(--button_main_background, #f69104);

	--pen-container: 1440px;
	--pen-section-gap: clamp(2.25rem, 4vw, 3.75rem);  /* 60px at full size */
	--pen-card-gap: 2rem;                              /* 32px */
	--pen-radius: 12px;
}

/* ---------- Container and rhythm ---------- */

.sports > .container,
.events > .container,
.slots > .container,
.bonuses > .container,
.providers > .container,
.question-block > .container,
.information > .container {
	max-width: var(--pen-container);
	margin-inline: auto;
}

.sports,
.events,
.slots,
.bonuses,
.providers,
.question-block,
.information {
	padding-top: var(--pen-section-gap);
}

.information + .information {
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---------- Typography ---------- */

.sports > .container > h2,
.events .inf h2,
.slots .inf h2,
.bonuses .inf h2,
.providers > .container > h2,
.question-block > .container > h2,
.information h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);   /* 28px */
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--pen-text);
}

.sports > .container > h2::after,
.providers > .container > h2::after,
.question-block > .container > h2::after,
.information h2::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 0.55rem;
	border-radius: 2px;
	background: var(--pen-accent);
}

.events .inf h2::after,
.slots .inf h2::after,
.bonuses .inf h2::after {
	display: none;
}

.events .inf,
.slots .inf,
.bonuses .inf {
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--pen-line);
}

/*
 * Body copy sits at 18px with a generous measure. An earlier version capped this at
 * 78ch and centred it, which squeezed the text into half the viewport — the design
 * file puts content on the full 1440px container, so that was wrong.
 */
.information .full,
.information .text-image__box .left {
	max-width: none;
	margin-inline: 0;
	font-size: 1.125rem;      /* 18px */
	line-height: 1.7;
	color: var(--pen-text-soft);
}

.information .full p {
	max-width: 105ch;
	color: var(--pen-text-soft);
}

.information .full h2,
.information .full h3,
.information .full h4 {
	max-width: none;
	margin-inline: 0;
}

.information .full h3 {
	font-size: 1.375rem;      /* 22px */
	font-weight: 600;
	color: var(--pen-text);
}

/* ---------- Cards: the gradient from the design ---------- */

.cat-grid__item,
.sport-grid__item,
.slots .item,
.logo-grid__item,
.events .list-sports .item {
	background: linear-gradient(180deg, var(--pen-card-from) 0%, var(--pen-card-to) 100%);
	border: 1px solid var(--pen-line);
	border-radius: var(--pen-radius);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (any-hover: hover) {
	.cat-grid__item:hover,
	.sport-grid__item:hover,
	.slots .item:hover,
	.logo-grid__item:hover,
	.events .list-sports .item:hover {
		transform: translateY(-3px);
		border-color: rgba(135, 255, 114, 0.5);
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	}
}

/* ---------- Category grid (4 up) ---------- */

/* The spacing lives on the .rail wrapper so it stays outside the slider viewport. */
.rail + .rail {
	margin-top: var(--pen-card-gap);
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--pen-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-grid__item {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 1.25rem 1.25rem;
	min-height: 112px;
	overflow: hidden;
}

.cat-grid__item::before {
	content: none;
}

/* Art anchored to the right edge, behind the label. */
.cat-grid__art {
	position: absolute;
	right: -0.35rem;
	bottom: -0.5rem;
	width: 104px;
	pointer-events: none;
}

.cat-grid__art img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

.cat-grid__name {
	position: relative;
	z-index: 1;
	max-width: 60%;
}

.cat-grid__name {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	color: var(--pen-text);
}

/* ---------- Sport grid ---------- */

.sport-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sport-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 1.1rem 0.75rem;
	text-align: center;
}

.sport-grid__item::before {
	content: none;
}

.sport-grid__icon {
	display: block;
	width: 32px;
}

.sport-grid__icon img {
	display: block;
	width: 100%;
	height: auto;
}

.sport-grid__name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.25;
	text-transform: none;
	color: var(--pen-text);
}

/* ---------- Provider logo grid ---------- */

.logo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logo-grid__item {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1.15rem 1rem;
	min-height: 92px;
}

.logo-grid__item::before {
	content: none;
}

.logo-grid__img {
	max-width: 100%;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ---------- Events ---------- */

.events .events-box {
	background: var(--pen-surface);
	border: 1px solid var(--pen-line);
	border-radius: var(--pen-radius);
	padding: 1.25rem;
	gap: var(--pen-card-gap);
}

.events .list-sports .top .left,
.events .list-sports .team-box .team-item {
	font-size: 1.0625rem;
}

/* Odds pills — the most-clicked element in the block. */
.events .list-sports .kof .w_1 {
	background: var(--pen-deep);
	border: 1px solid var(--pen-line);
	border-radius: 8px;
	box-shadow: none;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (any-hover: hover) {
	.events .list-sports .kof .w_1:hover {
		background: var(--pen-green);
		color: #00142c;
		transform: translateY(-2px);
	}
}

/* ---------- Slots and live casino ---------- */

.slots .item {
	overflow: hidden;
	padding: 0;
}

.slots .item .icon {
	border-radius: 0;
}

.slots .item img {
	border-radius: 0;
	height: 11rem;
}

.slots .item h3 {
	background: none;
	margin: 0;
	padding: 0.7rem 0.85rem;
	font-size: 0.9rem;
	line-height: 1.3;
}

/* ---------- Bonuses ---------- */

.bonuses .list-sports {
	gap: var(--pen-card-gap);
}

.bonuses .item {
	border-radius: var(--pen-radius);
	border: 1px solid var(--pen-line);
	position: relative;
	overflow: hidden;
}

/* Scrim so the headline stays readable over the artwork behind it. */
.bonuses .item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 20, 44, 0.9) 0%, rgba(0, 20, 44, 0.4) 58%, transparent 100%);
	pointer-events: none;
}

.bonuses .item .inf {
	position: relative;
	z-index: 1;
}

.bonuses .item h3 {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

/* ---------- FAQ ---------- */

.question-block__item {
	margin-bottom: 0.75rem;
	border: 1px solid var(--pen-line);
	border-radius: var(--pen-radius);
	overflow: hidden;
	box-shadow: none;
	background: var(--pen-surface);
}

.question-block__item h3 {
	background: none;
	padding: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--pen-text);
}

.question-block__item .accordion__trigger {
	width: 100%;
	padding: 1rem 1.15rem;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	cursor: pointer;
}

.question-block__item .accordion__trigger .icon {
	flex: 0 0 auto;
	color: var(--pen-accent);
	transition: transform 0.25s ease;
}

.question-block__item .accordion__trigger[aria-expanded='true'] .icon {
	transform: rotate(180deg);
}

/* The panel was white-on-dark, which broke the palette mid-page. */
.question-block__item .description {
	background: none;
	color: var(--pen-text-soft);
	padding: 0 1.15rem 1rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	margin: 0;
}

.question-block__item .description p {
	font-size: inherit;
	margin: 0;
}

.question-block .caption {
	max-width: 105ch;
	text-transform: none;
	color: var(--pen-text-mute);
}

/* ---------- Contents box ---------- */

.home-toc {
	max-width: none;
	margin-inline: 0;
	border-left-color: var(--pen-accent);
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.events .inf,
	.slots .inf,
	.bonuses .inf {
		flex-wrap: wrap;
	}

	.slots .item img {
		height: 8.5rem;
	}

	.information .full,
	.information .text-image__box .left {
		font-size: 1.0625rem;
	}

	.question-block__item .accordion__trigger {
		padding: 0.85rem 0.95rem;
	}

	.question-block__item .description {
		padding: 0 0.95rem 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sports .list-category .item,
	.sports .list-sports .item,
	.slots .item,
	.providers .list-sports .item,
	.events .list-sports .item,
	.events .list-sports .kof .w_1,
	.question-block__item .accordion__trigger .icon {
		transition: none;
	}

	.sports .list-category .item:hover,
	.sports .list-sports .item:hover,
	.slots .item:hover,
	.providers .list-sports .item:hover,
	.events .list-sports .item:hover,
	.events .list-sports .kof .w_1:hover {
		transform: none;
	}
}

/* ---------- Benefits strip ---------- */
/*
 * From the "блок Vip program" frame in new.pen: four 336px cards, 32px gap, each on a
 * diagonal glow. The gradient stops are taken from the file —
 * #0f0f0f00 at 32% → #283bf8 at 58% → #c9ceff at 70%, applied at 70% opacity.
 */

.benefits {
	padding-top: var(--pen-section-gap);
}

.benefits > .container {
	max-width: var(--pen-container);
	margin-inline: auto;
}

.benefits__title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--pen-text);
}

.benefits__title::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 0.55rem;
	border-radius: 2px;
	background: var(--pen-accent);
}

.benefits__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--pen-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.benefits__card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	padding: 1.6rem 1.5rem 1.5rem;
	border: 1px solid var(--pen-line);
	border-radius: var(--pen-radius);
	background: var(--pen-surface);
	transition: transform 0.28s ease, border-color 0.28s ease;
}

/* The glow itself — angled, sitting behind the content. */
.benefits__card::before {
	content: '';
	position: absolute;
	top: -55%;
	right: -35%;
	width: 115%;
	height: 150%;
	z-index: -1;
	opacity: 0.55;
	border-radius: 50%;
	background: radial-gradient(
		closest-side,
		#c9ceff 0%,
		#283bf8 42%,
		rgba(40, 59, 248, 0) 72%
	);
	filter: blur(6px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Scrim so the copy stays legible where the glow is brightest. */
.benefits__card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(200deg, rgba(0, 20, 44, 0) 0%, rgba(0, 20, 44, 0.72) 55%, rgba(0, 20, 44, 0.92) 100%);
}

@media (any-hover: hover) {
	.benefits__card:hover {
		transform: translateY(-4px);
		border-color: rgba(135, 255, 114, 0.5);
	}

	.benefits__card:hover::before {
		opacity: 0.8;
		transform: translate(-6%, 6%);
	}
}

.benefits__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 1rem;
	border-radius: 14px;
	background: rgba(0, 23, 255, 0.85);
	border: 1px solid rgba(201, 206, 255, 0.35);
	color: #fff;
}

.benefits__icon .icon {
	width: 26px;
	height: 26px;
}

.benefits__name {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pen-text);
	text-transform: none;
}

.benefits__text {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--pen-text-soft);
}

@media (max-width: 767px) {
	.benefits__card {
		padding: 1.3rem 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.benefits__card,
	.benefits__card::before {
		transition: none;
	}

	.benefits__card:hover {
		transform: none;
	}

	.benefits__card:hover::before {
		transform: none;
	}
}

/* ---------- Events: grid instead of a horizontal scroller ---------- */
/*
 * The decorative product shot is gone from the markup, so the cards get the whole box.
 * They were in an overflow-x rail where the third card was clipped mid-way; a wrapping
 * grid shows all of them at any width.
 */

.events .events-box {
	display: block;
	padding: 0;
	background: none;
	border: 0;
}

.events .list-sports .item {
	width: auto;
	flex: initial;
	padding: 1.1rem 1.15rem 1.25rem;
	text-decoration: none;
}

/* The ball watermark was a 90px decorative blob on every card. */
.events .list-sports .item::after {
	display: none;
}

.events__star {
	color: var(--pen-accent);
	width: 16px;
	height: 16px;
}

.events .list-sports .kof {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: 1rem;
}

.events .list-sports .kof .w_1 {
	width: auto;
	padding: 0.6rem 0.5rem;
	text-align: center;
}

/* ---------- Slots: even grid, no rail ---------- */

.slots .list-sports .swiper-slide .item {
	width: 100%;
	flex: initial;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.slots .list-sports .swiper-slide .item .icon {
	overflow: hidden;
}

.slots .list-sports .swiper-slide .item h3 {
	margin-top: auto;
}

/* ---------- Bonuses: even grid ---------- */

.bonuses .list-sports {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--pen-card-gap);
}

.bonuses .item {
	width: auto;
	flex: initial;
	height: auto;
	min-height: 150px;
	padding: 1.4rem;
	position: relative;
	background-size: cover;
	background-position: right center;
}

.bonuses .item .inf {
	max-width: 100%;
}

/* ---------- Slot / live-casino card footer ---------- */
/*
 * The footer put the game name, the stake range and the star in one row with
 * space-between, so names like "Blackjack VIP 1" and "250 - 10000 EUR" fought for the
 * same line and wrapped mid-phrase. Name on its own line, range under it, star pinned.
 */

.slots .item h3 {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 0.15rem 0.6rem;
	padding: 0.7rem 0.85rem 0.8rem;
}

.slots .item h3 .left {
	grid-column: 1;
	display: block;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pen-text);
}

.slots .item h3 .code,
.slots .item h3 span:not(.left):not(.icon) {
	grid-column: 1;
	font-size: 0.8rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.72);
	border-left: 0;
	padding: 0;
}

.slots .item h3 svg,
.slots .item h3 .icon {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	flex: 0 0 auto;
	opacity: 0.75;
}

/* ================= HERO ================= */
/*
 * Asymmetric split: a narrow dark panel on the left carrying a kicker, a short pitch and
 * an outline link, and a wide artwork panel on the right with the headline and the primary
 * CTA laid over it. The note sits under the artwork.
 *
 * Replaces a single full-width background with one centred glass box.
 */

.hero {
	padding-top: 1.25rem;
}

.hero > .container {
	max-width: var(--pen-container);
	margin-inline: auto;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(240px, 22%) 1fr;
	grid-template-areas:
		'aside panel'
		'note  note';
	gap: 1.25rem;
	align-items: start;
}

/* ---------- Left panel ---------- */

.hero__aside {
	grid-area: aside;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem 1.5rem;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(20, 36, 197, 0.35) 0%, rgba(0, 20, 44, 0.9) 100%);
	border: 1px solid var(--pen-line);
}

.hero__kicker {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pen-text-mute);
}

.hero__aside-text {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--pen-text);
}

/*
 * Colour, radius and hover come from assets/css/buttons.css so the hero matches every
 * other button on the site. Only the placement inside the aside card lives here.
 */
.hero__ghost {
	align-self: flex-start;
	margin-top: auto;
}

/* ---------- Artwork panel ---------- */

.hero__panel {
	grid-area: panel;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 18px;
	min-height: clamp(280px, 26vw, 380px);
	background-color: var(--pen-card-to);
	background-size: cover;
	background-position: 78% 30%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: clamp(1.5rem, 3vw, 2.75rem);
}

/* Readability scrim, heaviest where the headline sits. */
.hero__panel::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(0, 20, 44, 0.9) 0%, rgba(0, 20, 44, 0.6) 32%, rgba(0, 20, 44, 0.05) 66%);
}

.hero__panel-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	max-width: 26ch;
	text-align: left;
}

.hero__title {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	color: #fff;
	text-wrap: balance;
}

.hero__title-lead {
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.hero__title-sub {
	font-size: clamp(0.95rem, 1.5vw, 1.2rem);
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pen-text-soft);
}

/* Pill CTA, matching the reference. */
/* Primary button, same as the header and the article CTAs — see buttons.css. */
.hero__cta {
	padding: 0.9rem 2.25rem;
}

.hero__apps {
	display: flex;
	gap: 0.6rem;
}

.hero__app img {
	display: block;
	width: 36px;
	height: 36px;
}

/* ---------- Note ---------- */

.hero__note {
	grid-area: note;
	margin: 0;
	padding: 1.1rem 1.35rem;
	border-radius: 14px;
	background: var(--pen-surface);
	border: 1px solid var(--pen-line);
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--pen-text-soft);
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
	.hero__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			'panel'
			'aside'
			'note';
	}

	.hero__aside {
		flex-direction: column;
	}

	.hero__ghost {
		margin-top: 0;
	}

	.hero__panel {
		justify-content: flex-start;
		background-position: center 22%;
	}

	.hero__panel::before {
		background: linear-gradient(0deg, rgba(0, 20, 44, 0.9) 0%, rgba(0, 20, 44, 0.5) 55%, rgba(0, 20, 44, 0.1) 100%);
	}

	.hero__panel-inner {
		align-items: flex-start;
		text-align: left;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__cta,
	.hero__ghost {
		transition: none;
	}

	.hero__cta:hover {
		transform: none;
	}
}

/* ---------- Slider (Swiper) ---------- */
/*
 * Used where a grid leaves an orphan row: events had 5 cards on a 4-up grid, so the fifth
 * sat alone next to half a row of empty space. A slider carries any number of items at
 * any width and keeps the section height predictable.
 *
 * Init is data-driven — see [data-swiper] in assets/js/main.js.
 */

.slider {
	position: relative;
	overflow: hidden;
	padding-bottom: 0;
}

/*
 * Kill the native scrollbar. page-home.css still carries the pre-Swiper drag-scroll rules
 * — .events .list-sports {overflow-x: auto} and .slots .list-sports {overflow: auto} — and
 * those selectors out-specify .slider, so an orange 4px scrollbar was drawn underneath
 * every slider on top of Swiper's own transform. Three classes beats two.
 */
.events .slider.list-sports,
.slots .slider.list-sports,
.sports .slider.list-sports,
.providers .slider.list-sports {
	overflow: hidden;
}

.slider .swiper-slide {
	height: auto;
	display: flex;
}

/*
 * Rails: grid markup that becomes a slider on phones. .rail.swiper is only present while
 * the instance is alive, so every rule below reverts by itself on wider screens.
 *
 * The display override is not optional — .cat-grid and .swiper-wrapper carry the same
 * specificity, and which one wins would otherwise depend on stylesheet order.
 */
.rail {
	position: relative;
}

.rail.swiper {
	padding-bottom: 0;
}

/* The arrows are in the markup for both rails; they only make sense once it is a slider. */
.rail:not(.swiper) .slider__nav {
	display: none;
}

.rail.swiper > ul {
	display: flex;
	gap: 0;
	grid-template-columns: none;
}

/*
 * The <li> is the slide, so it stretches to the tallest card in view on its own — but only
 * with height:auto. Swiper's height:100% resolves against an auto-height wrapper and drops
 * the card back to its own content, which left "Ténis de mesa" taller than "Hóquei".
 */
.rail.swiper .swiper-slide {
	height: auto;
}

.rail.swiper + .rail.swiper {
	margin-top: 0.5rem;
}

.slider .swiper-slide > * {
	width: 100%;
}

/*
 * Card styling has to reach through .swiper-slide now. The gradient rule further up keys
 * off ".events .list-sports .item", and the slider keeps that class for exactly this
 * reason — but the odds grid and paddings need re-stating at the new depth.
 */
/*
 * width:100% is what closes the gap between cards. page-home.css pins .item to a fixed
 * 20.3rem and blocks.css relaxed that to width:auto — inside a 328px slide the card then
 * shrank to its content (221px), leaving 107px of dead air that read as a huge gap.
 * Swiper's spaceBetween was never the problem.
 */
.events .list-sports .swiper-slide .item,
.slots .list-sports .swiper-slide .item {
	width: 100%;
}

.events .list-sports .swiper-slide .item {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.1rem 1.15rem 1.25rem;
	text-decoration: none;
}

.events .list-sports .swiper-slide .item .kof {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
}

.events .list-sports .swiper-slide .item .kof .w_1 {
	width: auto;
	padding: 0.6rem 0.5rem;
	text-align: center;
}

.events .list-sports .swiper-slide .item .top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.events .list-sports .swiper-slide .item .team-box {
	margin-top: 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.events .list-sports .swiper-slide .item .team-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.events .list-sports .swiper-slide .item .team-item img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* Arrows */

.slider__nav {
	position: absolute;
	top: calc(50% - 1.1rem);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--pen-line);
	border-radius: 50%;
	background: rgba(0, 20, 44, 0.92);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.slider__nav:hover {
	background: var(--pen-accent);
	border-color: var(--pen-accent);
	color: #00142c;
}

.slider__prev {
	left: 0;
}

.slider__prev .icon {
	transform: rotate(180deg);
}

.slider__next {
	right: 0;
}

/* Swiper adds this when there is nothing to scroll to. */
.slider__nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Hidden on touch — swiping is the interaction there, and the arrows overlap cards. */
/*
 * The arrows used to be hidden on touch and the dots carried the affordance. The dots are
 * gone, so the arrows stay everywhere — a slider with no visible control reads as a
 * clipped grid.
 */

/* Two short facts in the hero aside — they fill the column that the stretched card
   otherwise left empty above the button. */
.hero__facts {
	margin: 0;
	padding: 0.9rem 0 0;
	list-style: none;
	border-top: 1px solid var(--pen-line);
	display: grid;
	gap: 0.6rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--pen-text-soft);
}

.hero__facts li {
	position: relative;
	padding-left: 0.95rem;
}

.hero__facts li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--pen-accent);
}

.hero__facts strong {
	color: var(--pen-text);
	font-weight: 600;
}
