/* ==========================================================================
   hero.css — A főoldal első blokkja. Csak akkor töltődik be, ha a hero az
   oldalon van (block.json "style" kulcs).
   MÉRT GEOMETRIA (DESIGN-SPEC.md 6.1 és spec-home.png):
     kártya   1200x391, radius 0 0 10px 10px, árnyék rgba(27,146,255,0.05) 0 0 30px 0
     bal      320x391  kategória-panel (.catpanel, a base.css stílusozza)
     jobb     880x391  slider
     slide    padding 44px 41px 27px
     szövegblokk 440x258, padding 30px: sötét cím, mentazöld alcím, kék gomb
   A KÁRTYA MAGA NEM FESTETT, csak elrendezés. A fehér felület, a lekerekítés
   és az árnyék a két GYEREKEN van: a kategória-panelen és a sínen. Ok: a
   banner aránya (3,03-3,22) mellett a kép SOHA nem olyan magas, mint a
   320 pixeles kategória-panel, tehát a kártya alsó sávja üres maradna. Egy
   fehér kártyán ez üres fehér csík, a két festett gyerekkel viszont a sáv az
   oldal háttere, és a lapozó-pontok állnak benne, a kép alatt, középen.
   NULLA ÜRES SOR. Tabulátor behúzás.
   ========================================================================== */
.hero__card {
	position: relative;
	display: flex;
	align-items: stretch;
}
.hero--bare .hero__card {
	align-items: flex-start;
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	background: var(--c-surface);
	box-shadow: var(--sh-panel);
	overflow: hidden;
}
.hero__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}
.hero__slider {
	position: relative;
	flex: 0 0 auto;
	min-width: 0;
}
.hero__track {
	grid-auto-columns: 100%;
	gap: 0;
	padding: 0;
	height: 100%;
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	background: var(--c-surface);
	box-shadow: var(--sh-panel);
}
.hero__slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 320px;
	padding: var(--sp-5);
}
.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__track .hero__slide--image {
	min-height: 0;
	padding: 0;
	justify-content: center;
}
.hero__img--full {
	position: static;
	height: auto;
	object-fit: contain;
}
.hero__link {
	display: block;
	width: 100%;
}
.hero__texts {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 440px;
	max-width: 100%;
	padding: 30px;
	text-align: center;
}
.hero__title {
	width: 100%;
	margin: 0;
	padding: var(--sp-3) var(--sp-5);
	background: var(--c-dark);
	color: #fff;
	font-size: var(--fs-xl);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
}
.hero__sub {
	margin: 0;
	padding: var(--sp-2) var(--sp-5);
	background: var(--c-mint);
	color: var(--c-primary-dark);
	font-size: var(--fs-md);
	line-height: 1.5;
}
.hero__cta {
	margin-top: var(--sp-2);
}
.hero__cta svg {
	width: 14px;
	height: 14px;
}
.hero__dots {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	margin-top: var(--sp-4);
}
.hero--bare .tiles--hero {
	flex: 1 1 auto;
	min-width: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-3);
	padding: var(--sp-3);
}
@media (min-width: 576px) {
	.hero--bare .tiles--hero {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (min-width: 992px) {
	.hero--bare .tiles--hero {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 1fr));
		height: 391px;
		gap: var(--sp-5);
		padding: var(--sp-5);
	}
	.hero--bare .tiles--hero .tile {
		aspect-ratio: auto;
	}
}
@media (min-width: 992px) {
	.hero__card .catpanel {
		align-self: flex-start;
		min-height: 439px;
		border-radius: 0 0 var(--r-lg) var(--r-lg);
		box-shadow: var(--sh-panel);
	}
	.hero--bare .hero__card .catpanel {
		border-radius: 0 0 0 var(--r-lg);
		box-shadow: none;
	}
	.hero__card .catpanel:has(.mega__sub-item:hover > .mega__flyout),
	.hero__card .catpanel:has(.mega__sub-item:focus-within > .mega__flyout) {
		border-bottom-right-radius: 0;
	}
	.hero__track {
		border-radius: 0 0 var(--r-lg) 0;
	}
	.hero__dots {
		margin-top: 0;
	}
	.hero__slide {
		min-height: 391px;
		padding: 44px 41px 27px;
	}
	.hero__track .hero__slide--image {
		min-height: 0;
	}
	.hero__title {
		font-size: var(--fs-3xl);
	}
}
@media (max-width: 575px) {
	.hero__slide {
		min-height: 260px;
		padding: var(--sp-3);
	}
	.hero__texts {
		width: 100%;
		padding: var(--sp-4);
	}
	.hero__title {
		font-size: var(--fs-lg);
	}
	.hero__sub {
		font-size: var(--fs-base);
	}
}
.hero__slider .carousel__arrow--prev {
	left: var(--sp-4);
}
.hero__slider .carousel__arrow--next {
	right: var(--sp-4);
}
@media (max-width: 991px) {
	.hero__main {
		margin-top: 20px;
	}
	.hero__img-bg {
		display: none;
	}
	.hero__slider .carousel__arrow--prev {
		left: -10px;
	}
	.hero__slider .carousel__arrow--next {
		right: -10px;
	}
}
.hero__card:has(.catpanel .mega__sub-item:hover) .hero__slider .carousel__arrow,
.hero__card:has(.catpanel .mega__sub-item:focus-within) .hero__slider .carousel__arrow {
	opacity: 0;
	visibility: hidden;
}
.carousel__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	width: 100%;
	height: 3px;
	overflow: hidden;
	background: rgba(5, 29, 51, 0.12);
	pointer-events: none;
}
.carousel__progress::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: var(--c-primary);
	transform: translateX(-100%);
}
.carousel__progress.is-running::after {
	animation: carousel-progress var(--carousel-delay, 5000ms) linear forwards;
}
.carousel__progress.is-paused::after {
	animation-play-state: paused;
}
@keyframes carousel-progress {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}
