/* ==========================================================================
   Hungry Mega Menu
   Farby prichádzajú z nastavení ako :root premenné (--hmm-accent, --hmm-dark,
   --hmm-text, --hmm-link). Tu sú len zálohy.
   ========================================================================== */

.hmm,
.hmm-drawer,
.hmm-backdrop {
	--hmm-accent-fb: var(--hmm-accent, #E63323);
	--hmm-dark-fb: var(--hmm-dark, #151515);
	--hmm-text-fb: var(--hmm-text, #151515);
	--hmm-link-fb: var(--hmm-link, #151515);
	--hmm-tint: color-mix(in srgb, var(--hmm-accent-fb) 9%, #fff);
	--hmm-hover: #f5f3f0;
	--hmm-line: rgba(21, 21, 21, .07);
	--hmm-ease: cubic-bezier(.2, .7, .2, 1);
	box-sizing: border-box;
}
.hmm *, .hmm *::before, .hmm *::after,
.hmm-drawer *, .hmm-drawer *::before, .hmm-drawer *::after { box-sizing: border-box; }

.hmm {
	position: relative;
	display: flex;
	align-items: center;
	font-family: inherit;
}

.hmm-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.hmm-burger,
.hmm-drawer-head,
.hmm-drawer-foot,
.hmm-backdrop { display: none; }

.hmm svg { display: block; flex: none; }

/* ---------- Lišta (desktop) ---------- */

.hmm-list {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmm-item { position: static; margin: 0; padding: 0; list-style: none; }
.hmm-item::before, .hmm-item::marker { content: none; }

.hmm-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--hmm-link-fb) !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .2s var(--hmm-ease), color .2s;
}
.hmm-link:hover,
.hmm-item.is-open > .hmm-link {
	background: color-mix(in srgb, var(--hmm-link-fb) 6%, transparent);
}
.hmm-link:focus-visible {
	outline: 2px solid var(--hmm-accent-fb);
	outline-offset: 2px;
}
.hmm-item.is-current > .hmm-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 5px; height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--hmm-accent-fb);
}
.hmm-chev {
	width: 15px; height: 15px;
	opacity: .55;
	transition: transform .3s var(--hmm-ease), opacity .2s, color .2s;
}
.hmm-item.is-open > .hmm-link .hmm-chev {
	transform: rotate(180deg);
	opacity: 1;
	color: var(--hmm-accent-fb);
}

/* ---------- Dropdown panel ---------- */

.hmm-panel {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 9999;
	width: min(1100px, calc(100vw - 32px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(calc(-50% + var(--hmm-x, 0px)), 10px) scale(.985);
	transform-origin: top center;
	transition:
		opacity .2s var(--hmm-ease),
		transform .3s var(--hmm-ease),
		visibility 0s linear .3s;
}
/* neviditeľný „mostík“, aby sa panel nezavrel pri prechode myšou */
.hmm-panel::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: -16px;
	height: 16px;
}
.hmm-item.is-open > .hmm-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(calc(-50% + var(--hmm-x, 0px)), 0) scale(1);
	transition-delay: 0s;
}

.hmm-panel-inner {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 10px;
	padding: 10px;
	border-radius: 22px;
	background: #fff;
	color: var(--hmm-text-fb);
	box-shadow:
		0 0 0 1px var(--hmm-line),
		0 2px 6px rgba(21, 21, 21, .04),
		0 34px 80px -24px rgba(21, 21, 21, .32);
	text-align: left;
}

/* Úvodná karta */
.hmm-intro {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 28px 26px 26px;
	border-radius: 16px;
	background: var(--hmm-tint);
	overflow: hidden;
	isolation: isolate;
}
.hmm-intro::after {
	content: "";
	position: absolute;
	right: -70px; bottom: -90px;
	width: 240px; height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--hmm-accent-fb) 30%, transparent) 0%, transparent 70%);
	z-index: -1;
}
.hmm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hmm-accent-fb);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
}
.hmm-eyebrow::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.hmm-intro-title {
	margin: 16px 0 12px;
	color: var(--hmm-text-fb);
	font-size: 27px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.015em;
}
.hmm-intro-title em {
	display: block;
	color: var(--hmm-accent-fb);
	font-style: normal;
}
.hmm-intro-text {
	margin: 0 0 28px;
	font-size: 14px;
	line-height: 1.55;
	opacity: .72;
}
.hmm-intro-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--hmm-accent-fb) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}
.hmm-intro-cta svg { width: 17px; height: 17px; transition: transform .25s var(--hmm-ease); }
.hmm-intro-cta:hover svg { transform: translateX(4px); }

/* Dlaždice */
.hmm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
	gap: 6px;
	margin: 0;
	padding: 6px;
	list-style: none;
}
.hmm-tile {
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s var(--hmm-ease), transform .3s var(--hmm-ease);
	transition-delay: 0s;
}
.hmm-tile::before, .hmm-tile::marker { content: none; }
.hmm-item.is-open .hmm-tile {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--i, 0) * 35ms + 50ms);
}
.hmm-tile.is-featured { grid-column: 1 / -1; }

.hmm-tile > a {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	border-radius: 14px;
	color: inherit !important;
	text-decoration: none !important;
	transition: background-color .2s var(--hmm-ease);
}
.hmm-tile > a:hover { background: var(--hmm-hover); }
.hmm-tile > a:focus-visible {
	outline: 2px solid var(--hmm-accent-fb);
	outline-offset: -2px;
	background: var(--hmm-hover);
}
.hmm-tile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--hmm-tint);
	color: var(--hmm-accent-fb);
	transition: transform .3s var(--hmm-ease), background-color .2s, color .2s;
}
.hmm-tile-icon svg { width: 22px; height: 22px; }
.hmm-tile > a:hover .hmm-tile-icon,
.hmm-tile > a:focus-visible .hmm-tile-icon {
	transform: translateY(-2px) rotate(-5deg);
	background: var(--hmm-accent-fb);
	color: #fff;
}
.hmm-tile-body { display: block; min-width: 0; grid-column: 2; }
.hmm-tile-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.hmm-tile-sub {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.45;
	opacity: .62;
}
.hmm-tile.is-current .hmm-tile-title { color: var(--hmm-accent-fb); }
.hmm-tile-arrow {
	grid-column: 3;
	color: var(--hmm-accent-fb);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .2s, transform .25s var(--hmm-ease);
}
.hmm-tile-arrow svg { width: 18px; height: 18px; }
.hmm-tile > a:hover .hmm-tile-arrow,
.hmm-tile > a:focus-visible .hmm-tile-arrow { opacity: 1; transform: none; }

/* Zvýraznená dlaždica */
.hmm-tile.is-featured > a {
	padding: 20px 22px 20px 18px;
	background: var(--hmm-dark-fb);
	color: #fff !important;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.hmm-tile.is-featured > a::after {
	content: "";
	position: absolute;
	right: -40px; top: -60px;
	width: 200px; height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--hmm-accent-fb) 45%, transparent) 0%, transparent 70%);
	opacity: .55;
	z-index: -1;
	transition: opacity .3s, transform .5s var(--hmm-ease);
}
.hmm-tile.is-featured > a:hover::after { opacity: .9; transform: translateX(-20px); }
.hmm-tile.is-featured > a:hover { background: var(--hmm-dark-fb); }
.hmm-tile.is-featured .hmm-tile-icon { background: var(--hmm-accent-fb); color: #fff; }
.hmm-tile.is-featured .hmm-tile-title { font-size: 16px; }
.hmm-tile.is-featured .hmm-tile-sub { opacity: .68; }
.hmm-tile.is-featured .hmm-tile-arrow { opacity: 1; transform: none; color: #fff; }
.hmm-tile.is-featured > a:hover .hmm-tile-arrow { transform: translateX(3px); }

/* Bez ikony – text začína vľavo */
.hmm-tile > a:not(:has(.hmm-tile-icon)) { grid-template-columns: minmax(0, 1fr) 18px; }
.hmm-tile > a:not(:has(.hmm-tile-icon)) .hmm-tile-body { grid-column: 1; }
.hmm-tile > a:not(:has(.hmm-tile-icon)) .hmm-tile-arrow { grid-column: 2; }

/* Užšie desktopy */
@media (max-width: 1240px) {
	.hmm-panel-inner { grid-template-columns: 270px minmax(0, 1fr); }
	.hmm-intro-title { font-size: 23px; }
	.hmm-link { padding: 10px 11px; font-size: 14px; }
}

/* ==========================================================================
   Mobil – trieda .is-mobile (nastavuje JS podľa breakpointu v nastaveniach)
   ========================================================================== */

.hmm.is-mobile .hmm-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hmm-link-fb);
	cursor: pointer;
}
.hmm-burger-lines { display: grid; gap: 5px; width: 22px; }
.hmm-burger-lines span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}
.hmm-burger-lines span:nth-child(2) { width: 70%; justify-self: end; }
.hmm-burger:focus-visible { outline: 2px solid var(--hmm-accent-fb); outline-offset: 2px; }

.hmm-drawer.is-mobile {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	height: 100vh;
	height: 100dvh;
	background: #fff;
	color: var(--hmm-text-fb);
	box-shadow: -30px 0 80px -30px rgba(21, 21, 21, .35);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .4s var(--hmm-ease), visibility 0s linear .4s;
	font-family: inherit;
}
.hmm-drawer.is-mobile.is-drawer-open {
	transform: none;
	visibility: visible;
	transition-delay: 0s;
}

.hmm-drawer.is-mobile .hmm-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 14px 24px;
	border-bottom: 1px solid var(--hmm-line);
}
.hmm-drawer-label {
	color: var(--hmm-accent-fb);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.hmm-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f2f0;
	color: var(--hmm-text-fb);
	cursor: pointer;
}
.hmm-close svg { width: 20px; height: 20px; }

.hmm-drawer.is-mobile .hmm-list {
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 6px 16px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.hmm-drawer.is-mobile .hmm-item { border-bottom: 1px solid var(--hmm-line); }
.hmm-drawer.is-mobile .hmm-link {
	justify-content: space-between;
	width: 100%;
	padding: 18px 8px;
	border-radius: 0;
	background: none;
	color: var(--hmm-text-fb) !important;
	font-size: 19px;
	font-weight: 700;
}
.hmm-drawer.is-mobile .hmm-item.is-open > .hmm-link { color: var(--hmm-accent-fb) !important; }
.hmm-drawer.is-mobile .hmm-item.is-current > .hmm-link::after { left: auto; right: 34px; bottom: 50%; margin: 0 0 -2.5px; }
.hmm-drawer.is-mobile .hmm-chev { width: 20px; height: 20px; }

.hmm-drawer.is-mobile .hmm-panel {
	position: static;
	display: grid;
	grid-template-rows: 0fr;
	width: auto;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: grid-template-rows .35s var(--hmm-ease);
}
.hmm-drawer.is-mobile .hmm-panel::before { content: none; }
.hmm-drawer.is-mobile .hmm-item.is-open > .hmm-panel { grid-template-rows: 1fr; transform: none; }
.hmm-drawer.is-mobile .hmm-panel-inner {
	display: block;
	min-height: 0;
	overflow: hidden;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.hmm-drawer.is-mobile .hmm-intro {
	padding: 0 8px 12px;
	background: none;
	min-height: 0;
}
.hmm-drawer.is-mobile .hmm-intro::after,
.hmm-drawer.is-mobile .hmm-eyebrow,
.hmm-drawer.is-mobile .hmm-intro-title,
.hmm-drawer.is-mobile .hmm-intro-cta { display: none; }
.hmm-drawer.is-mobile .hmm-intro-text { margin: 0; font-size: 14px; }
.hmm-drawer.is-mobile .hmm-grid {
	grid-template-columns: 1fr;
	gap: 2px;
	padding: 0 0 16px;
}
.hmm-drawer.is-mobile .hmm-tile > a {
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 8px;
}
.hmm-drawer.is-mobile .hmm-tile-icon { width: 38px; height: 38px; border-radius: 10px; }
.hmm-drawer.is-mobile .hmm-tile-icon svg { width: 19px; height: 19px; }
.hmm-drawer.is-mobile .hmm-tile-arrow { display: none; }
.hmm-drawer.is-mobile .hmm-tile.is-featured > a { padding: 16px 14px; margin-bottom: 6px; }

.hmm-drawer.is-mobile .hmm-drawer-foot {
	display: block;
	padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--hmm-line);
}
.hmm-drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 20px;
	border-radius: 999px;
	background: var(--hmm-accent-fb);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}
.hmm-drawer-cta svg { width: 18px; height: 18px; }

.hmm-backdrop.is-mobile {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: block;
	background: rgba(21, 21, 21, .45);
	opacity: 0;
	transition: opacity .35s var(--hmm-ease);
}
.hmm-backdrop.is-mobile.is-visible { opacity: 1; }
.hmm-backdrop[hidden] { display: none !important; }

html.hmm-lock, html.hmm-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.hmm *, .hmm-drawer, .hmm-drawer *, .hmm-backdrop {
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}
