/* NEXT Video Slider – frontend.
   Farby a písmo preberá z globálov Elementoru (--e-global-*), s rezervnými hodnotami.
   Mobile-first; rozloženie sa riadi šírkou kontajnera (container queries),
   takže funguje rovnako v úzkom aj plnom Elementor kontajneri. */

/* ---------- Základ ---------- */

.nvs {
	/* Farby a písmo z Elementor globálov (Site Settings). Rezervné hodnoty platia mimo Elementoru. */
	--nvs-white: var(--e-global-color-e439237, #fff);
	--nvs-dark: var(--e-global-color-f0d5575, #212223);
	--nvs-ink: var(--e-global-color-text, #3d3d3f);
	--nvs-mist: var(--e-global-color-738e9cd, #f6f7f7);
	--nvs-base: var(--e-global-color-d581970, #49664d);
	--nvs-heading-font: var(--e-global-typography-primary-font-family, inherit);
	--nvs-heading-weight: var(--e-global-typography-primary-font-weight, 500);
	--nvs-ui-weight: var(--e-global-typography-accent-font-weight, 500);
	--nvs-overlay: .6;
	--nvs-vh: 88;
	--nvs-min: 620px;
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: clamp(var(--nvs-min), calc(var(--nvs-vh) * 1vh), 1000px);
	height: clamp(var(--nvs-min), calc(var(--nvs-vh) * 1svh), 1000px);
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--nvs-base);
	color: var(--nvs-white);
	text-align: left;
	font-size: 16px;
	line-height: 1.5;
	container: nvs / inline-size;
	-webkit-font-smoothing: antialiased;
}

.nvs *,
.nvs *::before,
.nvs *::after { box-sizing: border-box; }

/* ---------- Médiá ---------- */

.nvs__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.nvs__slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
}
.nvs__slide.is-active {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	transition: opacity 1.2s ease;
}
.nvs__slide.is-leaving {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}
.nvs .nvs__poster,
.nvs .nvs__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
}
.nvs .nvs__video {
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}
.nvs__slide.is-ready .nvs__video { opacity: 1; }

/* Prekryv zaručuje čitateľnosť bieleho textu na akomkoľvek zábere. */
.nvs__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(33, 34, 35, .32), transparent 85%),
		linear-gradient(0deg, rgba(33, 34, 35, .28), transparent 55%),
		rgba(33, 34, 35, var(--nvs-overlay));
	transform: translate3d(0, 0, 0);
}
@supports (background: color-mix(in srgb, red 50%, transparent)) {
	.nvs__shade {
		background:
			linear-gradient(90deg, color-mix(in srgb, var(--nvs-dark) 32%, transparent), transparent 85%),
			linear-gradient(0deg, color-mix(in srgb, var(--nvs-dark) 28%, transparent), transparent 55%),
			color-mix(in srgb, var(--nvs-dark) calc(var(--nvs-overlay) * 100%), transparent);
	}
}

/* ---------- Obsah ---------- */

.nvs__inner {
	--nvs-pad: 20px;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 40px;
	height: 100%;
	padding: 48px var(--nvs-pad) 24px;
}
.nvs__copy { min-width: 0; }

.nvs .nvs__title {
	max-width: 1100px;
	margin: 0 0 28px;
	padding: 0;
	color: var(--nvs-white);
	font-family: var(--nvs-heading-font);
	font-size: clamp(36px, 9cqw, 60px);
	font-weight: var(--nvs-heading-weight);
	line-height: 1.1;
	letter-spacing: -.05em;
	text-transform: none;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
	text-wrap: balance;
	overflow-wrap: break-word;
}

/* Tlačidlo (CTA) – odolné voči štýlom šablóny/Elementoru */
.nvs .nvs__cta,
.nvs .nvs__cta:hover,
.nvs .nvs__cta:focus,
.nvs .nvs__cta:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 18px 25px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: var(--nvs-white);
	color: var(--nvs-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: var(--nvs-ui-weight);
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .25s, transform .25s;
}
.nvs .nvs__cta:hover,
.nvs .nvs__cta:focus { background: var(--nvs-mist); }
.nvs .nvs__cta:active { transform: translateY(1px); }

/* Spodná lišta */
.nvs__bar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .33);
}
.nvs__caption {
	display: grid;
	gap: 6px;
	min-width: 0;
	font-size: 16px;
	font-weight: var(--nvs-ui-weight);
	line-height: 1.4;
}
.nvs__caption--empty { display: none; }
.nvs__caption-label { font-size: .875rem; font-weight: var(--nvs-ui-weight); }
.nvs__caption-name { display: block; }
.nvs__caption-sub:not(:empty)::before {
	content: "/ ";
	content: "/ " / "";
	margin-left: 8px;
}
.nvs__caption-sub { font-weight: var(--nvs-ui-weight); }

.nvs__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.nvs__tabs { display: flex; gap: 12px; }

/* Resety tlačidiel – šablóny často štýlujú všetky <button> */
.nvs .nvs__tab,
.nvs .nvs__tab:hover,
.nvs .nvs__tab:focus,
.nvs .nvs__tab:active,
.nvs .nvs__pause,
.nvs .nvs__pause:hover,
.nvs .nvs__pause:focus,
.nvs .nvs__pause:active {
	margin: 0;
	background: none;
	box-shadow: none;
	color: var(--nvs-white);
	font-family: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.nvs .nvs__tab,
.nvs .nvs__tab:hover,
.nvs .nvs__tab:focus,
.nvs .nvs__tab:active {
	display: grid;
	gap: 10px;
	width: 48px;
	min-height: 44px;
	padding: 8px 0;
	border: 0;
	border-radius: 0;
	font-size: .875rem;
	font-weight: var(--nvs-ui-weight);
	text-align: left;
	align-content: center;
}
.nvs__tab-bar {
	display: block;
	height: 2px;
	width: 100%;
	background: rgba(255, 255, 255, .42);
}
.nvs__tab.is-active .nvs__tab-bar {
	background: linear-gradient(to right, var(--nvs-white) var(--nvs-p, 100%), rgba(255, 255, 255, .42) var(--nvs-p, 100%));
}

.nvs .nvs__pause,
.nvs .nvs__pause:hover,
.nvs .nvs__pause:focus,
.nvs .nvs__pause:active {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--nvs-white);
	border-radius: 50%;
}
.nvs .nvs__pause:hover { background: rgba(255, 255, 255, .16); }
.nvs__pause-icon {
	display: block;
	width: 9px;
	height: 12px;
	border-left: 2px solid var(--nvs-white);
	border-right: 2px solid var(--nvs-white);
}
.nvs.is-paused .nvs__pause-icon {
	width: 0;
	height: 0;
	margin-left: 3px;
	border: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 9px solid var(--nvs-white);
}

/* Bez JavaScriptu nie sú ovládacie prvky funkčné */
.nvs:not(.is-js) .nvs__controls { display: none; }

/* Fokus: viditeľný na svetlom aj tmavom podklade */
.nvs a:focus-visible,
.nvs button:focus-visible {
	outline: 3px solid var(--nvs-white);
	outline-offset: 4px;
	box-shadow: 0 0 0 3px var(--nvs-dark);
}

/* ---------- Väčšie kontajnery ---------- */

@container nvs (min-width: 481px) {
	.nvs__bar {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 24px;
		padding-top: 23px;
	}
	.nvs__controls { gap: 24px; }
	.nvs__tabs { flex-shrink: 0; }
}

@container nvs (min-width: 681px) {
	.nvs__inner {
		--nvs-pad: clamp(24px, 4.5cqw, 82px);
		padding-top: 64px;
		padding-bottom: 30px;
	}
	.nvs .nvs__title {
		margin-bottom: 36px;
		font-size: clamp(48px, 5.4cqw, 88px);
		line-height: 1.08;
		letter-spacing: -.058em;
	}
	.nvs__caption { gap: 10px; }
}

/* ---------- Pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
	.nvs__slide.is-active { transition: none; }
	.nvs .nvs__video { transition: none; }
	.nvs .nvs__cta { transition: none; }
}
