.custom-megamenu {
	position: relative;
	overflow: visible;
}

.custom-megamenu__list {
	display: flex;
	align-items: center;
	gap: 25px;
	list-style: none;
	margin: 0;
	padding: 0 16px;
}

.custom-megamenu__item {
	position: relative;
}

.custom-megamenu__link,
.custom-megamenu__toggle {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #364153;
	text-decoration: none;
}

.custom-megamenu__toggle {
	all: unset;
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 2px;
	line-height: 1;
}

.custom-megamenu__link:hover,
.custom-megamenu__link:focus-visible,
.custom-megamenu__toggle:hover,
.custom-megamenu__toggle:focus-visible,
.custom-megamenu__toggle[aria-expanded="true"] {
	color: #0a58ca;
	outline: none;
}

.custom-megamenu__toggle:hover,
.custom-megamenu__toggle:focus-visible,
.custom-megamenu__toggle[aria-expanded="true"] {
	background: #eff6ff;
	box-shadow: 0 0 0 6px #eff6ff;
}

.custom-megamenu__icon {
	display: flex;
}

.custom-megamenu__arrow {
	width: 14px;
	height: 14px;
	fill: currentColor;
	transition: transform 0.25s cubic-bezier(.4, 0, .2, 1);
}

.custom-megamenu__item:hover .custom-megamenu__arrow,
.custom-megamenu__item:focus-within .custom-megamenu__arrow,
.custom-megamenu__toggle[aria-expanded="true"] .custom-megamenu__arrow {
	transform: rotate(180deg);
}

.custom-megamenu__panel {
	position: absolute;
	left: 0;
	top: 100%;
	transform: none;
	display: none;
	padding-top: 12px;
	z-index: 40;
}

.custom-megamenu__item:hover > .custom-megamenu__panel,
.custom-megamenu__item:focus-within > .custom-megamenu__panel {
	display: block;
}

.custom-megamenu__panel-inner {
	display: block;
	width: 1024px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(11, 22, 40, 0.08);
	overflow: hidden;
}

.custom-megamenu__content {
	display: block;
}

@media (min-width: 1400px) {
	.custom-megamenu__panel-inner {
		width: 1280px;
	}
}
