/* ===== SSP Hero – układ: slider | promocja | komunikaty ===== */

.ssp-hero {
	--ssp-gap: 20px;
	--ssp-height: 480px;
	--ssp-radius: 8px;
	--ssp-promo-bg: #00ffe6;
	--ssp-promo-text: #111111;
	--ssp-notice-bg: #e8e8e8;
	--ssp-notice-text: #111111;

	display: grid;
	grid-template-columns: var(--ssp-grid, repeat(auto-fit, minmax(0, 1fr)));
	gap: var(--ssp-gap);
	margin: 0;
	box-sizing: border-box;
}

.ssp-hero *,
.ssp-hero *::before,
.ssp-hero *::after {
	box-sizing: inherit;
}

.ssp-hero__col {
	min-width: 0;
	height: var(--ssp-height);
}

/* Kafelek ze zdjęciem w tle (slajd, promocja) */

.ssp-cover {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: var(--ssp-radius);
	background: #222;
}

.ssp-cover__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	margin: 0;
}

.ssp-cover__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 24px 24px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0));
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ssp-cover__title {
	margin: 0 0 6px;
	font-size: clamp(2.2rem, 3vw, 3rem);
	line-height: 1.2;
	color: inherit;
}



.ssp-cover__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
}

/* Slider */

.ssp-slider {
	position: relative;
	height: 100%;
}

.ssp-slider__track {
	position: relative;
	height: 100%;
	border-radius: var(--ssp-radius);
	overflow: hidden;
	/* Gest pionowy przewija stronę, poziomy obsługuje slider. */
	touch-action: pan-y;
}

.ssp-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.7s ease;
	pointer-events: none;
}

.ssp-slide.is-active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
}

.ssp-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0);
	color: #fff;
	font-size: 38px;
	line-height: 40px;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s, background 0.2s;
	padding-bottom: 10px;
}

.ssp-slider__arrow--prev {
	left: 12px;
}

.ssp-slider__arrow--next {
	right: 12px;
}

.ssp-slider:hover .ssp-slider__arrow,
.ssp-slider:focus-within .ssp-slider__arrow {
	opacity: 1;
}

.ssp-slider__arrow:hover {
	background: rgba(0, 0, 0, 0);
}

.ssp-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ssp-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.ssp-slider__dot.is-active {
	background: #fff;
	transform: scale(1.2);
}

.ssp-slider.has-dots .ssp-cover__body {
	padding-bottom: 66px;
}

/* Promocja */

.ssp-promo__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px 24px;
	background: var(--ssp-promo-bg);
	color: var(--ssp-promo-text);
}

.ssp-promo__title {
	margin: 0 0 6px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	line-height: 1.2;
}

.ssp-promo__title a {
	color: inherit;
	text-decoration: none;
}

.ssp-promo__title a:hover {
	text-decoration: none;
}

.ssp-promo__text {
	margin: 0 0 10px;
	font-size: 0.95rem;
	line-height: 1.45;
}

.ssp-promo__more {
	display: inline-block;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	padding-bottom: 1px;
}

.ssp-promo__more:hover {
	opacity: 0.8;
}

/* Komunikaty */

.ssp-hero__col--notices {
	display: flex;
	flex-direction: column;
	gap: var(--ssp-gap);
}

.ssp-notice {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
	border-radius: var(--ssp-radius);
	background: var(--ssp-notice-bg);
	color: var(--ssp-notice-text);
	text-decoration: none;
	text-align: center;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.3;
	transition: filter 0.2s, transform 0.2s;
}

.ssp-notice:hover,
.ssp-notice:focus {
	filter: brightness(0.93);
	color: var(--ssp-notice-text);
	text-decoration: none;
}

.ssp-notice__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Responsywność */

@media (max-width: 900px) {
	.ssp-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.ssp-hero__col {
		height: auto;
	}

	.ssp-hero__col--slider,
	.ssp-hero__col--promo {
		height: min(var(--ssp-height), 380px);
	}

	.ssp-notice {
		min-height: 90px;
	}

	/* Na mobile slajdy zmienia się palcem, strzałki tylko zasłaniałyby zdjęcie. */
	.ssp-slider__arrow {
		display: none;
	}

	.ssp-slider__dot {
		width: 12px;
		height: 12px;
	}
}

/* Wpisy oznaczone w panelu jako wyłączone na telefonach */

@media (max-width: 900px) {
	.ssp-hero .ssp-hide-mobile {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssp-slide {
		transition: none;
	}
}
