.top-bar-nav .lex-service-menu-item {
	position: static !important;
}

.top-bar-nav .lex-mega-menu__trigger {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 2.25rem 0.9375rem;
	border: 0;
	background: transparent;
	color: #a3a3a3;
	cursor: pointer;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1;
	transition: color 160ms ease;
}

.top-bar-nav .lex-mega-menu__trigger:hover,
.top-bar-nav .lex-mega-menu__trigger[aria-expanded="true"] {
	color: #baa061;
}

.lex-mega-menu__chevron {
	display: block;
	width: 0.48rem;
	height: 0.48rem;
	margin-top: -0.2rem;
	border-right: 0.1rem solid currentColor;
	border-bottom: 0.1rem solid currentColor;
	transform: rotate(45deg);
	transition: transform 160ms ease;
}

.lex-mega-menu__trigger[aria-expanded="true"] .lex-mega-menu__chevron {
	margin-top: 0.2rem;
	transform: rotate(225deg);
}

.lex-mega-menu[hidden] {
	display: none !important;
}

.lex-mega-menu {
	position: absolute !important;
	top: 100% !important;
	left: 50% !important;
	right: auto !important;
	z-index: 999;
	width: min(76rem, calc(100vw - 2rem));
	max-height: calc(100vh - 7rem);
	max-height: calc(100dvh - 7rem);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #e8e2d3;
	border-top: 0.2rem solid #baa061;
	box-shadow: 0 1.15rem 2.8rem rgba(24, 33, 43, 0.17);
	text-align: left;
}

.lex-mega-menu__surface {
	padding: clamp(1rem, 2.3vw, 1.65rem) clamp(1rem, 3vw, 2rem) 1.25rem;
}

.lex-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem clamp(1.25rem, 3vw, 2.75rem);
}

.lex-mega-menu__group {
	min-width: 0;
}

.lex-mega-menu__heading {
	margin: 0 0 0.45rem;
	color: #7a642f;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.lex-mega-menu__links {
	margin: 0;
	padding: 0;
	background: transparent !important;
	list-style: none;
}

.lex-mega-menu__links > li {
	display: block !important;
	margin: 0 !important;
	border: 0 !important;
}

.lex-mega-menu__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	min-height: 2.65rem;
	padding: 0.52rem 0.55rem;
	border-bottom: 1px solid #eee9de;
	color: #26323b !important;
	font-size: 0.95rem;
	font-weight: 500 !important;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.lex-mega-menu__links li:last-child a {
	border-bottom-color: transparent;
}

.lex-mega-menu__links a:hover,
.lex-mega-menu__links a:focus-visible {
	background: #faf7ef;
	color: #755f2b !important;
}

.lex-mega-menu__arrow {
	flex: 0 0 auto;
	color: #baa061;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 160ms ease;
}

.lex-mega-menu__links a:hover .lex-mega-menu__arrow,
.lex-mega-menu__links a:focus-visible .lex-mega-menu__arrow {
	transform: translateX(0.2rem);
}

.lex-mega-menu__group--cooperation {
	grid-column: 1 / -1;
	padding-top: 1rem;
	border-top: 1px solid #ddd4bf;
}

.lex-mega-menu__group--other {
	grid-column: 1 / -1;
}

.lex-mega-menu__group--cooperation .lex-mega-menu__links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 1rem;
}

.top-bar-nav .lex-mega-menu__trigger:focus-visible,
.lex-mega-menu__links a:focus-visible,
#off-canvas.off-canvas .lex-service-menu-item > a:focus-visible,
#off-canvas.off-canvas .lex-service-menu-link > a:focus-visible {
	outline: 0.2rem solid #765a16 !important;
	outline-offset: 0.15rem;
}

#off-canvas.off-canvas {
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
}

#off-canvas.off-canvas .lex-service-menu-item > a,
#off-canvas.off-canvas .lex-service-menu-link > a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
}

#off-canvas.off-canvas .lex-service-menu-link--cooperation-first {
	margin-top: 0.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

@media screen and (min-width: 48rem) and (max-width: 65.625rem) {
	.lex-mega-menu__surface {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.lex-mega-menu__grid {
		gap: 1rem;
	}

	.lex-mega-menu__group--cooperation .lex-mega-menu__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 47.9375rem) {
	.lex-mega-menu,
	.lex-mega-menu__trigger {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.top-bar-nav .lex-mega-menu__trigger,
	.lex-mega-menu__chevron,
	.lex-mega-menu__links a,
	.lex-mega-menu__arrow {
		transition: none !important;
	}
}
