@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}

.mcg-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 15px rgba(31, 173, 193, 0.1), 0 4px 6px rgba(31, 173, 193, 0.1);
	font-family: "Montserrat", sans-serif;
	backdrop-filter: blur(8px);
}
.mcg-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	width: 100%;
	max-width: 1920px;
	height: 94px;
	margin: 0 auto;
	padding: 10px 32px;
}
.mcg-header__brand {
	display: flex;
	flex: 0 0 293px;
	align-items: center;
	gap: 10px;
	color: #1fadc1;
	text-decoration: none;
}
.mcg-header__logo {
	display: flex;
	flex: 0 0 100px;
	align-items: center;
	justify-content: center;
	height: 58px;
	overflow: hidden;
	border-radius: 14px;
}
.mcg-header__logo .custom-logo-link { display: contents; }
.mcg-header__logo .custom-logo { width: 81px; height: 58px; object-fit: contain; }
.mcg-header__wordmark {
	background: linear-gradient(160deg, #1fadc1 0%, #0e8a9f 100%);
	background-clip: text;
	color: transparent;
	font-size: 24px;
	font-weight: 800;
	line-height: 28px;
	text-transform: uppercase;
}
.mcg-header__navigation { min-width: 0; margin-right: auto; }
.mcg-header__menu, .mcg-header__menu ul { margin: 0; padding: 0; list-style: none; }
.mcg-header__menu { display: flex; align-items: center; gap: 4px; }
.mcg-header__menu > li { position: relative; }
.mcg-header__menu > li > a {
	display: block;
	padding: 6px 12px;
	border-radius: 8px;
	color: #3e3a39;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}
.mcg-header__menu > li > a:hover,
.mcg-header__menu > li > a:focus-visible,
.mcg-header__menu > .current-menu-item > a,
.mcg-header__menu > .current-menu-ancestor > a {
	color: #e83e34;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.mcg-header__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 220px;
	padding: 8px;
	background: #fff;
	box-shadow: 0 10px 20px rgba(62, 58, 57, 0.14);
}
.mcg-header__menu li:hover > .sub-menu, .mcg-header__menu li:focus-within > .sub-menu { display: block; }
.mcg-header__menu .sub-menu a { display: block; padding: 9px 10px; color: #3e3a39; font-size: 14px; font-weight: 600; text-decoration: none; }
.mcg-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.mcg-header__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 101px;
	height: 36px;
	padding: 8px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}
.mcg-header__action--register {
	border: 1px solid transparent;
	background: linear-gradient(121deg, #e83e34 1%, #ea8700 99%);
	box-shadow: 0 4px 3px rgba(232, 62, 52, 0.25), 0 2px 2px rgba(232, 62, 52, 0.25);
	color: #fff;
}
.mcg-header__action--login { border: 1px solid #e83e34; background: #fff; color: #000; }
.mcg-header__toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.mcg-header__toggle > span:not(.screen-reader-text) {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px 0;
	background: #3e3a39;
	transition: transform 160ms ease, opacity 160ms ease;
}

@media (min-width: 1680px) {
	.mcg-header__inner { gap: 67px; }
	.mcg-header__menu > li > a { font-size: 20px; }
}
@media (max-width: 1180px) {
	.mcg-header__inner { height: 72px; padding: 7px 20px; }
	.mcg-header__brand { flex-basis: auto; margin-right: auto; }
	.mcg-header__logo { flex-basis: 72px; height: 48px; }
	.mcg-header__logo .custom-logo { width: 67px; height: 48px; }
	.mcg-header__wordmark { font-size: 18px; line-height: 21px; }
	.mcg-header__toggle { display: block; order: 3; }
	.mcg-header__navigation {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
		padding: 12px 20px 20px;
		background: #fff;
		box-shadow: 0 12px 18px rgba(31, 173, 193, 0.12);
	}
	.mcg-header.is-menu-open .mcg-header__navigation { display: block; }
	.mcg-header__menu { display: block; }
	.mcg-header__menu > li > a, .mcg-header__menu .sub-menu a { padding: 12px; font-size: 16px; }
	.mcg-header__menu .sub-menu { position: static; display: block; padding: 0 0 0 16px; box-shadow: none; }
	.mcg-header.is-menu-open .mcg-header__toggle > span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
	.mcg-header.is-menu-open .mcg-header__toggle > span:nth-of-type(2) { opacity: 0; }
	.mcg-header.is-menu-open .mcg-header__toggle > span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
	.mcg-header__inner { gap: 8px; padding-inline: 12px; }
	.mcg-header__wordmark { display: none; }
	.mcg-header__actions { gap: 8px; }
	.mcg-header__action { min-width: 0; height: 34px; padding: 7px 12px; font-size: 12px; }
	.mcg-header__action--register { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mcg-header__toggle > span:not(.screen-reader-text) { transition: none; }
}
