.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(0, 229, 242, .72);
	background: rgba(7, 14, 25, .965);
	box-shadow: 0 10px 32px rgba(0, 229, 242, .08);
	backdrop-filter: blur(18px) saturate(135%);
}

.site-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent 3%, rgba(0, 229, 242, .92) 18%, rgba(56, 189, 248, .64) 72%, transparent 97%);
	box-shadow: 0 5px 18px rgba(0, 229, 242, .28);
	pointer-events: none;
}

.site-header .header-inner {
	width: min(calc(100% - 64px), 1540px);
	min-height: 80px;
	gap: clamp(22px, 2.2vw, 42px);
}

.site-header .brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	color: #f7fafc;
	font-size: .98rem;
	font-weight: 850;
	letter-spacing: -.025em;
}

.site-header .brand em {
	color: var(--cyan);
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(0, 229, 242, .56);
	border-radius: 7px;
	background: rgba(0, 229, 242, .055);
	color: var(--cyan);
	box-shadow: inset 0 0 18px rgba(0, 229, 242, .06);
}

.brand-mark svg {
	width: 23px;
	height: 23px;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-header .primary-nav {
	min-width: 0;
	margin-left: auto;
}

.site-header .primary-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(16px, 1.45vw, 29px);
}

.site-header .primary-nav li {
	position: relative;
	flex: 0 0 auto;
}

.site-header .primary-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 80px;
	padding: 0;
	color: #e7edf6;
	font-size: .82rem;
	font-weight: 720;
	line-height: 1;
	white-space: nowrap;
	transition: color .18s ease;
}

.site-header .primary-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--cyan);
	box-shadow: 0 0 12px rgba(0, 229, 242, .7);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .18s ease;
}

.site-header .primary-nav a:hover,
.site-header .primary-nav .current-menu-item > a,
.site-header .primary-nav .current-menu-ancestor > a,
.home .site-header .primary-nav li:first-child > a {
	color: #fff;
}

.site-header .primary-nav a:hover::after,
.site-header .primary-nav .current-menu-item > a::after,
.site-header .primary-nav .current-menu-ancestor > a::after,
.home .site-header .primary-nav li:first-child > a::after {
	transform: scaleX(1);
}

.site-header .header-actions {
	flex: 0 0 auto;
	gap: 0;
}

.language-control,
.site-header .account-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
}

.language-control {
	padding-right: 19px;
	border-right: 1px solid rgba(75, 95, 124, .58);
}

.site-header .language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.site-header .language-switcher a {
	padding: 0;
	background: transparent !important;
	color: #aab7c9;
	font-size: .76rem;
	font-weight: 750;
}

.site-header .language-switcher a.active,
.site-header .language-switcher a:hover {
	color: var(--cyan);
}

.site-header .language-switcher > span {
	color: #65758b;
	font-size: .72rem;
}

.site-header .account-link {
	margin-left: 19px;
	padding-right: 19px;
	border-right: 1px solid rgba(75, 95, 124, .58);
	color: #eef4fb;
	font-size: .8rem;
	font-weight: 680;
	white-space: nowrap;
}

.site-header .account-link:hover {
	color: var(--cyan);
}

.header-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	color: currentColor;
}

.header-icon svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-header .header-check-button {
	gap: 9px;
	min-height: 46px;
	margin-left: 20px;
	padding: 9px 18px;
	border-radius: 9px;
	font-size: .78rem;
	white-space: nowrap;
	box-shadow: 0 8px 24px rgba(0, 229, 242, .13);
}

.site-header .header-check-button .header-icon {
	width: 18px;
	height: 18px;
}

@media (max-width: 1280px) {
	.site-header .header-inner {
		width: min(calc(100% - 34px), 1540px);
		gap: 18px;
	}

	.site-header .brand {
		font-size: .9rem;
	}

	.brand-mark {
		display: none;
	}

	.site-header .primary-nav ul {
		gap: 15px;
	}

	.site-header .primary-nav a {
		font-size: .75rem;
	}

	.site-header .header-check-button {
		margin-left: 14px;
		padding-inline: 13px;
	}
}

@media (max-width: 1080px) {
	.site-header .header-check-button {
		display: none;
	}

	.site-header .account-link {
		padding-right: 0;
		border-right: 0;
	}
}

@media (max-width: 900px) {
	.site-header .header-inner {
		width: min(calc(100% - 28px), 1540px);
		min-height: 68px;
	}

	.site-header .brand {
		font-size: .92rem;
	}

	.site-header .menu-toggle {
		order: 3;
		width: 40px;
		height: 40px;
		border-color: rgba(0, 229, 242, .28);
		background: rgba(0, 229, 242, .05);
	}

	.site-header .primary-nav {
		top: 100%;
		left: -14px;
		right: -14px;
		margin: 0;
		padding: 10px 18px 16px;
		border-bottom: 1px solid rgba(0, 229, 242, .3);
		background: rgba(8, 16, 28, .985);
	}

	.site-header .primary-nav ul {
		display: grid;
		gap: 2px;
	}

	.site-header .primary-nav a {
		min-height: 42px;
		width: 100%;
		padding: 0 9px;
		border-radius: 8px;
		font-size: .84rem;
	}

	.site-header .primary-nav a::after {
		left: 9px;
		right: auto;
		bottom: 5px;
		width: 34px;
	}

	.site-header .header-actions {
		margin-left: auto;
	}

	.language-control {
		padding-right: 0;
		border-right: 0;
	}

	.language-control > .header-icon,
	.site-header .account-link {
		display: none;
	}
}

@media (max-width: 520px) {
	.site-header .brand {
		font-size: .78rem;
	}

	.site-header .language-switcher {
		gap: 4px;
	}

	.site-header .language-switcher a {
		font-size: .7rem;
	}
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}
