/* ZONDA – sekcja otwierająca stronę główną ([zonda_hero]). Kolory z tokens.css (z wartościami awaryjnymi). */

.z-hero {
	--hero-bg: #0B0F10;
	--hero-gutter: clamp(16px, 4vw, 72px);
	--hero-edge: 20%;
	--hero-dur: 5000ms;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(120% 90% at 78% 30%, #263034 0%, rgba(38, 48, 52, 0) 60%),
		linear-gradient(180deg, #11171A 0%, var(--hero-bg) 100%);
	color: #fff;
}

/* Ukośne przejścia w tle – jasne pasy pod kątem jak krawędź zdjęcia. */
.z-hero::before,
.z-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.z-hero::before {
	background: linear-gradient(112deg, transparent 0 34%, rgba(255, 255, 255, 0.035) 34% 47%, transparent 47% 100%);
}
.z-hero::after {
	background: linear-gradient(112deg, transparent 0 47%, rgba(239, 73, 35, 0.07) 47% 49%, transparent 49% 100%);
}

.z-hero__slides {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.z-hero__slide {
	grid-area: 1 / 1;
	min-width: 0;
	position: relative;
	min-height: clamp(560px, 72vh, 760px);
	visibility: hidden;
	z-index: 0;
}
.z-hero__slide.is-active,
.z-hero__slide.is-leaving {
	visibility: visible;
}
.z-hero__slide.is-active {
	z-index: 2;
}
.z-hero__slide.is-leaving {
	z-index: 1;
}

/* Zdjęcie z ukośną lewą krawędzią; nowy slajd „wjeżdża” ukośnym cięciem. */
.z-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 62%;
	clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
	transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.z-hero__slide.is-active .z-hero__media,
.z-hero__slide.is-leaving .z-hero__media {
	clip-path: polygon(var(--hero-edge) 0, 100% 0, 100% 100%, 0 100%);
}
.z-hero .z-hero__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: var(--pos, 50% 50%);
	transform: scale(1.08);
	transition: transform 6s ease-out;
}
.z-hero .z-hero__slide.is-active .z-hero__img {
	transform: scale(1);
}
.z-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(11, 15, 16, 0.55) 0%, rgba(11, 15, 16, 0) 32%),
		linear-gradient(0deg, rgba(11, 15, 16, 0.75) 0%, rgba(11, 15, 16, 0) 38%);
}

/* Treść w tej samej kolumnie co reszta strony (maks. 1600 px). */
.z-hero__wrap {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: 1600px;
	height: 100%;
	margin-inline: auto;
	padding-inline: var(--hero-gutter);
}
.z-hero__slide > .z-hero__wrap {
	display: flex;
	align-items: center;
	min-height: inherit;
	padding-block: 48px 112px;
}
.z-hero__content {
	max-width: 560px;
}
.z-hero__content > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.z-hero__slide.is-active .z-hero__content > * {
	opacity: 1;
	transform: none;
}
.z-hero__slide.is-active .z-hero__content > :nth-child(2) { transition-delay: 0.12s; }
.z-hero__slide.is-active .z-hero__content > :nth-child(3) { transition-delay: 0.24s; }
.z-hero__slide.is-active .z-hero__content > :nth-child(4) { transition-delay: 0.36s; }

.z-hero__eyebrow {
	margin: 0 0 18px;
	font-family: var(--f-body, 'Barlow', system-ui, sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-yellow, #FFF94F);
}
.z-hero__title {
	margin: 0 0 22px;
	font-family: var(--f-display, 'Barlow Condensed', sans-serif);
	font-size: clamp(48px, 5.6vw, 96px);
	font-weight: 800;
	line-height: 0.92;
	text-transform: uppercase;
	color: #fff;
}
.z-hero__title span {
	display: block;
}
.z-hero__accent {
	color: var(--c-orange, #EF4923);
}
.z-hero__text {
	max-width: 46ch;
	margin: 0 0 32px;
	font-family: var(--f-body, 'Barlow', system-ui, sans-serif);
	font-size: 18px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}
.z-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.z-hero .z-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-family: var(--f-display, 'Barlow Condensed', sans-serif);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.z-hero .z-hero__btn--primary {
	background: var(--c-orange, #EF4923);
	color: var(--c-black, #040809);
	box-shadow: 4px 4px 0 var(--c-yellow, #FFF94F);
}
.z-hero .z-hero__btn--primary:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--c-yellow, #FFF94F);
}
.z-hero .z-hero__btn--ghost {
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
}
.z-hero .z-hero__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
}
.z-hero .z-hero__btn:focus-visible,
.z-hero button.z-hero button.z-hero__dot:focus-visible,
.z-hero button.z-hero__detail:focus-visible,
.z-hero button.z-hero__spot:focus-visible {
	outline: 3px solid var(--c-yellow, #FFF94F);
	outline-offset: 3px;
}

/* Punkty „+” na zdjęciu. Pozycję liczy hero.js (zdjęcie jest przycięte przez object-fit). */
.z-hero button.z-hero__spot {
	position: absolute;
	display: block;
	color: inherit;
	z-index: 2;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background:
		linear-gradient(#040809, #040809) center / 12px 2px no-repeat,
		linear-gradient(#040809, #040809) center / 2px 12px no-repeat,
		var(--c-orange, #EF4923);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.4s ease 0.6s, transform 0.2s ease;
}
.z-hero button.z-hero__spot.is-placed {
	opacity: 1;
}
.z-hero button.z-hero__spot::after {
	content: "";
	position: absolute;
	inset: -6px;
	border: 2px solid var(--c-orange, #EF4923);
	border-radius: 50%;
	opacity: 0;
}
.z-hero button.z-hero__spot.is-active::after {
	animation: z-hero-pulse 1.6s ease-out infinite;
}
.z-hero button.z-hero__spot:hover,
.z-hero button.z-hero__spot.is-active {
	transform: scale(1.12);
}
@keyframes z-hero-pulse {
	0% { opacity: 0.9; transform: scale(0.8); }
	100% { opacity: 0; transform: scale(1.7); }
}
.z-hero__tip {
	position: absolute;
	top: 50%;
	left: 44px;
	width: 230px;
	padding: 12px 14px;
	border-radius: 6px;
	background: rgba(11, 15, 16, 0.92);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--f-body, 'Barlow', system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transform: translate(-6px, -50%);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.z-hero button.z-hero__spot.is-flip .z-hero__tip {
	left: auto;
	right: 44px;
	transform: translate(6px, -50%);
}
.z-hero__tip strong {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 15px;
}
.z-hero button.z-hero__spot.is-active .z-hero__tip,
.z-hero button.z-hero__spot:hover .z-hero__tip,
.z-hero button.z-hero__spot:focus-visible .z-hero__tip {
	opacity: 1;
	transform: translate(0, -50%);
}

/* Pasek szczegółów na dole (jak lista części pod produktem): miniatura z fragmentu zdjęcia + opis. */
.z-hero__details {
	position: absolute;
	right: var(--hero-gutter);
	bottom: 32px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 260px);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.z-hero__details li {
	margin: 0;
}
.z-hero button.z-hero__detail {
	position: relative;
	min-height: 76px;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 12px 12px 16px;
	border: 0;
	border-radius: 6px;
	background: rgba(11, 15, 16, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.72);
	font: inherit;
	text-align: left;
	white-space: normal;
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.2s ease;
}
.z-hero button.z-hero__detail:hover,
.z-hero button.z-hero__detail.is-active {
	background: rgba(11, 15, 16, 0.9);
}
.z-hero__thumb {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 4px;
	background-size: 420%;
	background-repeat: no-repeat;
}
.z-hero__detail-text {
	font-family: var(--f-body, 'Barlow', system-ui, sans-serif);
	font-size: 13px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.z-hero__detail-text strong {
	display: block;
	margin-bottom: 2px;
	color: #fff;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.z-hero__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0;
	background: var(--c-orange, #EF4923);
}
.z-hero button.z-hero__detail.is-active .z-hero__bar {
	width: 100%;
}
.z-hero.is-playing button.z-hero__detail.is-active .z-hero__bar {
	width: 0;
	animation: z-hero-progress var(--hero-dur) linear forwards;
}
@keyframes z-hero-progress {
	to { width: 100%; }
}

/* Stałe elementy nad slajdami: linia zaufania (dół, lewa) i kropki slajdów (lewa krawędź). */
.z-hero__wrap--static {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}
.z-hero__trust {
	position: absolute;
	left: var(--hero-gutter);
	bottom: 44px;
	margin: 0;
	font-family: var(--f-body, 'Barlow', system-ui, sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6FE39A;
}
.z-hero__dots {
	position: absolute;
	top: 50%;
	left: calc(var(--hero-gutter) / 2 - 14px);
	display: flex;
	flex-direction: column;
	gap: 6px;
	transform: translateY(-50%);
	pointer-events: auto;
}
.z-hero button.z-hero__dot {
	display: flex;
	color: inherit;
	box-shadow: none;
	border-radius: 0;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.z-hero button.z-hero__dot span {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.4);
	font-size: 0;
	transition: height 0.3s ease, background-color 0.3s ease;
}
.z-hero button.z-hero__dot:hover span {
	background: rgba(255, 255, 255, 0.8);
}
.z-hero button.z-hero__dot.is-active span {
	height: 22px;
	background: var(--c-orange, #EF4923);
}

/* Tablet: pasek szczegółów pod treścią, zdjęcie trochę węższe. */
@media (max-width: 1200px) {
	.z-hero__media { width: 58%; }
	.z-hero__details { grid-auto-columns: minmax(0, 220px); }
}

/* Telefon: zdjęcie na górze z ukośną dolną krawędzią, treść pod nim, szczegóły przewijane w bok. */
@media (max-width: 900px) {
	.z-hero__slide {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}
	.z-hero__media {
		position: relative;
		width: 100%;
		height: clamp(260px, 64vw, 480px);
		clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
	}
	.z-hero__slide.is-active .z-hero__media,
	.z-hero__slide.is-leaving .z-hero__media {
		clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
	}
	.z-hero__media::after {
		background: linear-gradient(0deg, rgba(11, 15, 16, 0.45) 0%, rgba(11, 15, 16, 0) 35%);
	}
	.z-hero__slide > .z-hero__wrap {
		display: block;
		padding-block: 24px 96px;
	}
	.z-hero__title { font-size: clamp(44px, 12vw, 64px); }
	.z-hero__text { font-size: 16px; margin-bottom: 24px; }
	.z-hero__actions { flex-direction: column; }
	.z-hero .z-hero__btn { width: 100%; }
	.z-hero__details {
		position: static;
		grid-auto-columns: 78%;
		margin: 28px calc(var(--hero-gutter) * -1) 0;
		padding: 0 var(--hero-gutter) 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.z-hero__details li { scroll-snap-align: start; }
	.z-hero button.z-hero__detail { background: rgba(255, 255, 255, 0.06); }
	/* Na telefonie opis punktu jest w pasku szczegółów pod tekstem – dymek nie mieściłby się na ekranie. */
	.z-hero__tip { display: none; }
	.z-hero__trust { bottom: 28px; }
	.z-hero__dots {
		top: calc(clamp(260px, 64vw, 480px) - 52px);
		left: auto;
		right: var(--hero-gutter);
		flex-direction: row;
		transform: none;
	}
	.z-hero button.z-hero__dot.is-active span { width: 22px; height: 6px; }
	.z-hero button.z-hero__dot span { transition: width 0.3s ease, background-color 0.3s ease; }
}

@media (prefers-reduced-motion: reduce) {
	.z-hero *,
	.z-hero *::before,
	.z-hero *::after {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}
