/* Hero w szarym panelu. Stary wygląd (.hero) korzysta z dist/style.css i nie zależy od tego pliku. */
/* Panel jest szerszy od kontenera, a treść w środku trzyma się jego szerokości. */
.rs-hero {
	margin-block: 16px 0;
	padding-inline: 8px;
}

.rs-hero__panel {
	max-width: 1560px;
	margin-inline: auto;
	padding: 28px 16px;
	border-radius: 8px;
	background: #f2f3f2;
}

.rs-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin-inline: auto;
}

.rs-hero__text {
	min-width: 0;
}

.rs-hero__title {
	margin: 0 0 16px;
	color: #2e3c40;
	/* Ten sam rozmiar co nagłówki .h1, np. „Najbliższe wydarzenia”. */
	font: 400 51px/1.2 'Bangers', 'Arial Narrow', sans-serif;
	letter-spacing: .015em;
}

.rs-hero__mark {
	position: relative;
	display: inline-block;
	margin-left: .12em;
	white-space: nowrap;
}

.rs-hero__mark svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100% + 18px);
	height: calc(100% + 10px);
	overflow: visible;
	transform: translate(-50%, -50%);
}

.rs-hero__mark path {
	fill: none;
	stroke: #e16521;
	stroke-width: 2.5;
	vector-effect: non-scaling-stroke;
}

.rs-hero__lead {
	margin: 0 0 18px;
	color: #5b6a6c;
	font: 400 16px/1.5 'Poppins', sans-serif;
	letter-spacing: 0;
	text-transform: none;
}

.rs-hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 11px 16px;
	border-radius: 5px;
	background: #e16521;
	color: #172124;
	font: 400 19px/1 'Bangers', 'Arial Narrow', sans-serif;
	letter-spacing: .05em;
	text-decoration: none;
	white-space: nowrap;
	transform: skewX(-5deg);
	transition: background-color .15s ease;
}

.rs-hero__cta:hover,
.rs-hero__cta:focus-visible {
	background: #f7c948;
	color: #172124;
	text-decoration: none;
}

.rs-hero__cta:focus-visible {
	outline: 3px solid #172124;
	outline-offset: 3px;
}

/* Karty: sam plakat z linkiem, szerokość do 550 px jak w dotychczasowym hero. */
.rs-hero__carousel {
	position: relative;
	/* Na telefonie prawie cała szerokość: trochę miejsca zostaje na karty leżące pod spodem. */
	width: calc(100% - 16px);
	max-width: 550px;
	min-width: 0;
	margin-inline: auto;
}

.rs-hero__swiper {
	width: 100%;
}

/* Karty o różnych proporcjach układają się na środku wysokości. */
.rs-hero__swiper .swiper-wrapper {
	align-items: center;
}

/* Styl Swipera ładuje się później, stąd podwójna klasa. */
.rs-hero__swiper .rs-hero__card {
	display: block;
	height: auto;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 14px 0 rgb(37 44 65 / 4%);
	color: #2e3c40;
	text-decoration: none;
}

.rs-hero__card:hover {
	color: #2e3c40;
	text-decoration: none;
}

.rs-hero__card:focus-visible {
	outline: 3px solid #172124;
	outline-offset: -3px;
}

/* Karta ma dokładnie wysokość plakatu, więc nie ma przycięcia ani pustych pól. */
.rs-hero__poster {
	display: block;
	width: 100%;
	height: auto;
}

.rs-hero__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.rs-hero__arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: #e16521;
	cursor: pointer;
	transform: skewX(-5deg);
	transition: background-color .15s ease;
}

.rs-hero__arrow:hover {
	background: #f7c948;
}

.rs-hero__arrow:focus-visible {
	outline: 3px solid #172124;
	outline-offset: 2px;
}

.rs-hero__arrow.swiper-button-disabled,
.rs-hero__arrow.swiper-button-disabled:hover {
	background: #d5dad8;
	cursor: default;
}

.rs-hero__arrow.swiper-button-disabled img {
	opacity: .5;
}

.rs-hero__arrow img {
	display: block;
	width: 18px;
	height: 18px;
}

.rs-hero__arrow--prev img {
	transform: rotate(180deg);
}

/* Podwójna klasa: styl Swipera ładuje się później. */
.rs-hero__nav .rs-hero__dots {
	position: static;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

.rs-hero__nav .swiper-pagination-bullet {
	position: relative;
	width: 14px;
	height: 12px;
	margin: 0;
	border-radius: 2px;
	background: #2e3c40;
	opacity: 1;
	transform: skewX(-5deg);
	transition: width .2s ease, background-color .2s ease;
}

/* Większe pole kliknięcia. */
.rs-hero__nav .swiper-pagination-bullet::before {
	content: "";
	position: absolute;
	inset: -12px -4px;
}

.rs-hero__nav .swiper-pagination-bullet-active {
	width: 36px;
	background: #e16521;
}

.rs-hero__nav .swiper-pagination-bullet:focus-visible {
	outline: 3px solid #172124;
	outline-offset: 3px;
}

@media (min-width: 576px) {
	.rs-hero {
		padding-inline: 16px;
	}

	.rs-hero__panel {
		padding: 36px 32px;
	}

	.rs-hero__lead {
		font-size: 18px;
		margin-bottom: 22px;
	}
}

@media (min-width: 768px) {
	.rs-hero__title {
		font-size: 71px;
	}
}

@media (min-width: 992px) {
	.rs-hero__panel {
		padding: 48px 32px;
	}

}

@media (min-width: 1200px) {
	.rs-hero__inner {
		grid-template-columns: minmax(0, 1fr) 550px;
		gap: 48px;
		max-width: 1116px;
	}

	.rs-hero__carousel {
		width: 100%;
	}
}

@media (min-width: 1400px) {
	.rs-hero {
		padding-inline: 24px;
	}

	.rs-hero__inner {
		max-width: 1296px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rs-hero__cta,
	.rs-hero__arrow,
	.rs-hero__nav .swiper-pagination-bullet {
		transition: none;
	}
}
