:root {
	--fusion-mega-color-primary: #0d4d73;
	--fusion-mega-color-primary-dark: #093450;
	--fusion-mega-color-primary-hover: #0f4669;
	--fusion-mega-color-accent: #ef6c00;
	--fusion-mega-color-text: #17324a;
	--fusion-mega-color-muted: #5f6f7e;
	--fusion-mega-color-border: #d9e2ea;
	--fusion-mega-color-surface: #ffffff;
	--fusion-mega-color-panel: #f7f9fb;
	--fusion-mega-shadow: 0 18px 42px rgba(8, 31, 51, 0.18);
	--fusion-mega-toggle-bg: #093450;
	--fusion-mega-toggle-hover: #0f4669;
	--fusion-mega-toggle-icon: #ffffff;
	--fusion-mega-toggle-icon-hover: #ffffff;
	--fusion-mega-menu-bg: #0d4d73;
	--fusion-mega-menu-text: #ffffff;
	--fusion-mega-menu-text-hover: #ffffff;
	--fusion-mega-menu-item-bg: transparent;
	--fusion-mega-menu-item-hover: rgba(255, 255, 255, 0.12);
	--fusion-mega-image-size: 20px;
}

.fusion-mega-menu {
	position: relative;
	width: 100%;
	font-size: 14px;
}

.fusion-mega-menu *,
.fusion-mega-menu *::before,
.fusion-mega-menu *::after {
	box-sizing: border-box;
}

.fusion-mega-menu__bar {
	position: relative;
	display: flex;
	align-items: stretch;
	background: var(--fusion-mega-menu-bg);
	border: 0;
}

.fusion-mega-menu__toggle {
	flex: 0 0 auto;
}

.fusion-mega-menu__items {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
}

.fusion-mega-item {
	position: relative;
}

.fusion-mega-menu button,
.fusion-mega-menu a {
	-webkit-appearance: none;
	appearance: none;
	outline: 0;
	box-shadow: none;
}

.fusion-mega-menu__bar > .fusion-mega-item,
.fusion-mega-menu__items > .fusion-mega-item {
	position: static;
}

.fusion-mega-menu .fusion-mega-item__button,
.fusion-mega-menu .fusion-mega-item__button:visited,
.fusion-mega-menu .fusion-mega-item__button:hover,
.fusion-mega-menu .fusion-mega-item__button:focus,
.fusion-mega-menu .fusion-mega-item__button:active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 60px;
	padding: 0 18px;
	border: 0;
	background: var(--fusion-mega-menu-item-bg);
	color: var(--fusion-mega-menu-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.22s ease, color 0.22s ease;
	border-radius: 0;
}

.fusion-mega-menu .fusion-mega-item__button:hover,
.fusion-mega-menu .fusion-mega-item__button:focus-visible,
.fusion-mega-menu .fusion-mega-item__button:active,
.fusion-mega-menu .fusion-mega-item.is-open > .fusion-mega-item__button {
	color: var(--fusion-mega-menu-text-hover);
	background: var(--fusion-mega-menu-item-hover);
	box-shadow: none;
}

.fusion-mega-menu .fusion-mega-item__button--toggle,
.fusion-mega-menu .fusion-mega-item__button--toggle:visited,
.fusion-mega-menu .fusion-mega-item__button--toggle:hover,
.fusion-mega-menu .fusion-mega-item__button--toggle:focus,
.fusion-mega-menu .fusion-mega-item__button--toggle:active {
	background: var(--fusion-mega-toggle-bg);
	color: var(--fusion-mega-toggle-icon);
}

.fusion-mega-menu .fusion-mega-item__button--toggle:hover,
.fusion-mega-menu .fusion-mega-item__button--toggle:focus-visible,
.fusion-mega-menu .fusion-mega-item__button--toggle:active,
.fusion-mega-menu .fusion-mega-item.is-open > .fusion-mega-item__button--toggle {
	background: var(--fusion-mega-toggle-hover);
	color: var(--fusion-mega-toggle-icon-hover);
	box-shadow: none;
}

.fusion-mega-item__icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 18px;
}

.fusion-mega-item__icon span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.fusion-mega-item__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--fusion-mega-image-size);
	height: var(--fusion-mega-image-size);
	flex: 0 0 var(--fusion-mega-image-size);
}

.fusion-mega-item__image {
	display: block;
	width: var(--fusion-mega-image-size);
	height: var(--fusion-mega-image-size);
	object-fit: cover;
	border-radius: 3px;
}

.fusion-mega-item__mobile-toggle {
	display: none;
}

.fusion-mega-item__label--mobile {
	display: none;
}

.fusion-mega-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	width: min(1280px, 100vw - 24px);
	background: var(--fusion-mega-color-surface);
	border: 1px solid var(--fusion-mega-color-border);
	box-shadow: var(--fusion-mega-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(14px);
	transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.fusion-mega-item.is-open > .fusion-mega-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.fusion-mega-panel__grid,
.fusion-mega-all-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px 24px;
	padding: 26px 24px 28px;
}

.fusion-mega-all-section__grid--single {
	grid-template-columns: minmax(180px, 260px);
}

.fusion-mega-card__title {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--fusion-mega-color-primary);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.fusion-mega-card__title:hover,
.fusion-mega-card__title:focus-visible,
.fusion-mega-card__list a:hover,
.fusion-mega-card__list a:focus-visible {
	color: var(--fusion-mega-color-accent);
}

.fusion-mega-card__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fusion-mega-card__list li + li {
	margin-top: 10px;
}

.fusion-mega-card__list a {
	color: var(--fusion-mega-color-muted);
	text-decoration: none;
}

.fusion-mega-panel--all {
	width: min(1320px, 100vw - 24px);
}

.fusion-mega-panel__all {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	min-height: 480px;
}

.fusion-mega-panel__all-sidebar {
	background: var(--fusion-mega-color-panel);
	border-right: 1px solid var(--fusion-mega-color-border);
	padding: 12px 0;
	max-height: 640px;
	overflow-y: auto;
}

.fusion-mega-menu .fusion-mega-all-trigger,
.fusion-mega-menu .fusion-mega-all-trigger:hover,
.fusion-mega-menu .fusion-mega-all-trigger:focus,
.fusion-mega-menu .fusion-mega-all-trigger:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 22px;
	border: 0;
	border-left: 4px solid transparent;
	background: transparent;
	color: var(--fusion-mega-color-text);
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	border-radius: 0;
}

.fusion-mega-all-trigger::after {
	content: "\203A";
	font-size: 22px;
	line-height: 1;
	color: #a0adb8;
}

.fusion-mega-all-trigger--link::after {
	content: "";
}

.fusion-mega-menu .fusion-mega-all-trigger.is-active,
.fusion-mega-menu .fusion-mega-all-trigger.is-active:hover,
.fusion-mega-menu .fusion-mega-all-trigger.is-active:focus,
.fusion-mega-menu .fusion-mega-all-trigger.is-active:active {
	border-left-color: var(--fusion-mega-color-accent);
	background: rgba(9, 52, 80, 0.04);
	color: var(--fusion-mega-color-text);
}

.fusion-mega-panel__all-content {
	background: #fff;
	position: relative;
}

.fusion-mega-panel__all-content::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	background: var(--fusion-mega-color-border);
}

.fusion-mega-all-section {
	display: block;
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.fusion-mega-all-section.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

@media (max-width: 1024px) {
	.fusion-mega-panel,
	.fusion-mega-panel--all {
		width: min(100vw - 24px, 960px);
	}

	.fusion-mega-panel__all {
		grid-template-columns: 240px minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.fusion-mega-menu__bar {
		flex-direction: column;
		align-items: center;
		padding: 10px 0;
		background: var(--fusion-mega-menu-bg);
	}

	.fusion-mega-menu__items {
		display: none;
	}

	.fusion-mega-item {
		border-top: 1px solid var(--fusion-mega-color-border);
	}

	.fusion-mega-menu__toggle {
		display: flex;
		justify-content: center;
		flex-direction: column;
        align-items: center;
		width: 100%;
		border-top: 0;
	}

	.fusion-mega-item__button,
	.fusion-mega-item__button--toggle {
		width: calc(100% - 54px);
		justify-content: flex-start;
		height: 54px;
	}

	.fusion-mega-menu .fusion-mega-item__button--toggle,
	.fusion-mega-menu .fusion-mega-item__button--toggle:visited,
	.fusion-mega-menu .fusion-mega-item__button--toggle:hover,
	.fusion-mega-menu .fusion-mega-item__button--toggle:focus,
	.fusion-mega-menu .fusion-mega-item__button--toggle:active {
		width: min(70%, 280px);
		height: 58px;
		border: 2px solid rgba(255, 255, 255, 0.9);
		background: transparent;
		justify-content: flex-start;
	}

	.fusion-mega-menu .fusion-mega-item__button--toggle:hover,
	.fusion-mega-menu .fusion-mega-item__button--toggle:focus-visible,
	.fusion-mega-menu .fusion-mega-item__button--toggle:active,
	.fusion-mega-menu .fusion-mega-item.is-open > .fusion-mega-item__button--toggle {
		background: rgba(255, 255, 255, 0.08);
		border-color: #fff;
	}

	.fusion-mega-item__label--desktop {
		display: none;
	}

	.fusion-mega-item__label--mobile {
		display: inline;
	}

	.fusion-mega-item--has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.fusion-mega-menu .fusion-mega-item__mobile-toggle,
	.fusion-mega-menu .fusion-mega-item__mobile-toggle:hover,
	.fusion-mega-menu .fusion-mega-item__mobile-toggle:focus,
	.fusion-mega-menu .fusion-mega-item__mobile-toggle:active {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 54px;
		border: 0;
		border-left: 1px solid var(--fusion-mega-color-border);
		background: transparent;
		color: #fff;
		font-size: 22px;
		font-weight: 700;
		cursor: pointer;
		box-shadow: none;
	}

	.fusion-mega-item.is-open .fusion-mega-item__mobile-toggle span {
		transform: rotate(45deg);
		display: inline-block;
	}

	.fusion-mega-panel,
	.fusion-mega-panel--all {
		position: static;
		width: 100%;
		border: 0;
		box-shadow: none;
		order: 3;
		flex: 0 0 100%;
		max-height: 0;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		transition: max-height 0.28s ease;
	}

	.fusion-mega-item.is-open > .fusion-mega-panel,
	.fusion-mega-item.is-open > .fusion-mega-panel--all {
		max-height: 1200px;
	}

	.fusion-mega-panel__all {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.fusion-mega-panel__all-sidebar {
		max-height: none;
		border-right: 0;
		border-bottom: 1px solid var(--fusion-mega-color-border);
	}

	.fusion-mega-panel__all-content::before {
		display: none;
	}

	.fusion-mega-all-section {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.fusion-mega-all-section.is-active {
		display: block;
	}

	.fusion-mega-panel__grid,
	.fusion-mega-all-section__grid {
		grid-template-columns: 1fr;
	}
}
