/* Domov – horná galéria (variant B), inc/hero.php */
.zs-hero {
	--zs-hero-cas: 6s;
	position: relative;
	/* vyššia galéria: na notebooku celá obrazovka, na Full HD ~990 px, na ultra-wide (1440 px výšky) ~1325 px */
	height: min(max(820px, 92vh), 100vh);
	min-height: 600px;
	overflow: hidden;
	color: #fff;
	background: #2a1a0a;
	font-family: Poppins, sans-serif;
}

.zs-hero__foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.2s ease, transform 7s ease-out;
}

.zs-hero__foto.is-on {
	opacity: 1;
	transform: scale(1);
}

.zs-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(20, 12, 4, .78) 0%, rgba(20, 12, 4, .3) 50%, rgba(20, 12, 4, 0) 100%),
		linear-gradient(0deg, rgba(20, 12, 4, .75) 0%, rgba(20, 12, 4, 0) 32%);
}

.zs-hero__text {
	position: absolute;
	z-index: 2;
	left: max(40px, calc((100vw - 1140px) / 2 + 12px)); /* zarovnané s logom (kontajner webu 1140 px) */
	top: 50%;
	transform: translateY(-50%);
	max-width: clamp(600px, 42vw, 980px);
	padding-top: 60px;
}

@media (min-width: 1920px) {
	.zs-hero p.zs-hero__popis { font-size: 22px; }
	.zs-hero__nadtitul { font-size: 14px; }
	.zs-hero a.zs-hero__btn { padding: 17px 32px; font-size: 16px; }
	.zs-hero button.zs-hero__tab { font-size: 14px; padding: 20px 12px 26px; }
}

.zs-hero__nadtitul {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	opacity: .85;
}

.zs-hero p.zs-hero__nadpis {
	margin: 12px 0 14px;
	color: #fff;
	font-size: clamp(64px, 4.4vw, 112px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -1px;
}

.zs-hero p.zs-hero__popis {
	margin: 0 0 30px;
	color: #fff;
	font-size: 19px;
	line-height: 1.5;
	opacity: .92;
}

.zs-hero__nadpis.is-meni,
.zs-hero__popis.is-meni {
	animation: zs-hero-text .7s cubic-bezier(.22, 1, .36, 1);
}

@keyframes zs-hero-text {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.zs-hero a.zs-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 40px;
	background: #fff;
	color: #43290f;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .3s, color .3s;
}

.zs-hero a.zs-hero__btn:hover,
.zs-hero a.zs-hero__btn:focus-visible {
	background: #43290f;
	color: #fff;
}

.zs-hero__taby {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	padding: 0 max(20px, calc((100vw - 1140px) / 2 + 2px));
}

.zs-hero button.zs-hero__tab {
	position: relative;
	padding: 16px 10px 20px;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, .28);
	border-radius: 0;
	background: none;
	color: #fff;
	font: 600 12px/1.3 Poppins, sans-serif;
	letter-spacing: .4px;
	text-align: left;
	cursor: pointer;
	opacity: .62;
	transition: opacity .3s;
}

.zs-hero button.zs-hero__tab span {
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	font-weight: 400;
	opacity: .75;
}

.zs-hero button.zs-hero__tab:hover,
.zs-hero button.zs-hero__tab:focus-visible,
.zs-hero button.zs-hero__tab.is-on {
	opacity: 1;
}

.zs-hero button.zs-hero__tab.is-on::before {
	content: '';
	position: absolute;
	left: 0;
	top: -2px;
	height: 3px;
	width: 100%;
	background: #fff;
	transform-origin: left;
	animation: zs-hero-cas var(--zs-hero-cas) linear forwards;
}

.zs-hero.is-pauza button.zs-hero__tab.is-on::before {
	animation-play-state: paused;
}

@keyframes zs-hero-cas {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@media (max-width: 991px) {
	.zs-hero { height: 640px; }
	/* tablet a mobil: fotka sa oreže do výšky – výrez podľa ťažiska fotky (--fokus v inc/hero.php) */
	.zs-hero__foto { object-position: var(--fokus, 50%) center; transform-origin: var(--fokus, 50%) center; }
	.zs-hero p.zs-hero__nadpis { font-size: 48px; }
	.zs-hero__text { left: 30px; right: 30px; padding-top: 40px; }
	.zs-hero__taby {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
		padding: 0 10px;
	}
	.zs-hero__taby::-webkit-scrollbar { display: none; }
	.zs-hero button.zs-hero__tab { flex: 0 0 auto; min-width: 104px; }
}

/* telefón: fotka hore celá viditeľná (pod hlavičkou), text a tlačidlo pod ňou na tmavom pozadí, kategórie úplne dole */
@media (max-width: 575px) {
	.zs-hero { --zs-hero-foto: min(110vw, 440px); height: auto; min-height: 0; max-height: none; background: #2a1a0a; }
	/* bez približovania – zväčšená fotka presahovala pod prechod a vytvárala svetlý pás */
	.zs-hero__foto, .zs-hero__foto.is-on { bottom: auto; height: var(--zs-hero-foto); transform: none; transition: opacity 1.2s ease; }
	.zs-hero::after {
		bottom: auto;
		height: calc(var(--zs-hero-foto) + 2px);
		background: linear-gradient(0deg, #2a1a0a 0%, #2a1a0a 2%, rgba(42, 26, 10, .6) 18%, rgba(42, 26, 10, 0) 40%);
	}
	.zs-hero__text {
		position: relative;
		left: auto; right: auto; top: auto; bottom: auto;
		transform: none;
		max-width: none;
		margin-top: calc(var(--zs-hero-foto) - 34px);
		padding: 0 20px;
	}
	.zs-hero p.zs-hero__nadpis { font-size: 38px; margin: 8px 0 8px; }
	.zs-hero p.zs-hero__popis { font-size: 16px; margin-bottom: 20px; }
	.zs-hero__taby { position: relative; margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.zs-hero__foto { transition: opacity .4s; transform: none; }
	.zs-hero__foto.is-on { transform: none; }
	.zs-hero__nadpis.is-meni, .zs-hero__popis.is-meni { animation: none; }
}
