:root {
	--ff-header-height: 76px;
	--ff-header-bg: rgba(252, 253, 251, 0.86);
	--ff-header-bg-solid: #fcfdfb;
	--ff-header-text: #111827;
	--ff-header-muted: #64748b;
	--ff-header-line: rgba(15, 23, 42, 0.12);
	--ff-header-soft: rgba(15, 23, 42, 0.055);
	--ff-header-accent: #176b5b;
	--ff-header-accent-2: #2f5f9e;
	--ff-header-focus: rgba(47, 95, 158, 0.34);
	--ff-header-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
	--ff-header-radius: 12px;
}

html[data-theme="dark"] {
	--ff-header-bg: rgba(11, 18, 32, 0.84);
	--ff-header-bg-solid: #0b1220;
	--ff-header-text: #f8fafc;
	--ff-header-muted: #a8b3c7;
	--ff-header-line: rgba(226, 232, 240, 0.16);
	--ff-header-soft: rgba(226, 232, 240, 0.08);
	--ff-header-accent: #5ee0c2;
	--ff-header-accent-2: #8bb7ff;
	--ff-header-focus: rgba(139, 183, 255, 0.4);
	--ff-header-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.ff-skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	transform: translateY(-140%);
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--ff-header-text);
	color: var(--ff-header-bg-solid) !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
	transition: transform 160ms ease;
}

.ff-skip-link:focus {
	transform: translateY(0);
}

body.astra-child-premium-header .site-header {
	display: none !important;
}

body.astra-child-premium-header {
	padding-top: var(--ff-header-height);
}

body.astra-child-premium-header.archive .site-content,
body.astra-child-premium-header.blog .site-content,
body.astra-child-premium-header.search .site-content,
body.astra-child-premium-header.archive.ast-separate-container .site-content,
body.astra-child-premium-header.blog.ast-separate-container .site-content,
body.astra-child-premium-header.search.ast-separate-container .site-content {
	padding-top: 34px !important;
}

.ff-premium-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	color: var(--ff-header-text);
	background: var(--ff-header-bg);
	border-bottom: 1px solid var(--ff-header-line);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body.admin-bar .ff-premium-header {
	top: 32px;
}

.ff-premium-header.is-scrolled {
	background: color-mix(in srgb, var(--ff-header-bg-solid) 92%, transparent);
	box-shadow: var(--ff-header-shadow);
}

.ff-premium-header__inner {
	width: min(1180px, calc(100% - 32px));
	min-height: var(--ff-header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ff-premium-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	color: var(--ff-header-text) !important;
	text-decoration: none !important;
}

.ff-premium-brand__mark {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	border: 1px solid var(--ff-header-line);
	background: linear-gradient(135deg, var(--ff-header-text), #344256);
	color: var(--ff-header-bg-solid);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0;
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .ff-premium-brand__mark {
	background: linear-gradient(135deg, #f8fafc, #a8b3c7);
	color: #0b1220;
}

.ff-premium-brand__text {
	display: grid;
	gap: 3px;
	line-height: 1.08;
}

.ff-premium-brand__name {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
}

.ff-premium-brand__descriptor {
	color: var(--ff-header-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	white-space: nowrap;
}

.ff-premium-nav {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--ff-header-line);
	background: var(--ff-header-soft);
	border-radius: 999px;
}

.ff-premium-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	color: var(--ff-header-muted) !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none !important;
	border-radius: 999px;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ff-premium-nav__link:hover,
.ff-premium-nav__link:focus-visible,
.ff-premium-nav__link.is-active {
	color: var(--ff-header-text) !important;
	background: var(--ff-header-bg-solid);
}

.ff-premium-nav__link:hover {
	transform: translateY(-1px);
}

.ff-premium-actions,
.ff-premium-switchers {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ff-premium-switchers .vox-lang-switcher {
	display: none !important;
}

.ff-premium-switchers .vox-theme-switcher {
	min-height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid var(--ff-header-line) !important;
	background: var(--ff-header-soft) !important;
	color: var(--ff-header-text) !important;
	font-size: 11px !important;
	letter-spacing: 0 !important;
	border-radius: 999px !important;
}

.ff-premium-cta,
.ff-premium-mobile__cta {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	color: #ffffff !important;
	background: linear-gradient(135deg, #176b5b, #2f5f9e);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0;
	text-decoration: none !important;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(47, 95, 158, 0.2);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.ff-premium-cta:hover,
.ff-premium-mobile__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(47, 95, 158, 0.28);
}

.ff-premium-menu-toggle {
	width: 42px;
	height: 42px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	border: 1px solid var(--ff-header-line);
	background: var(--ff-header-soft);
	color: var(--ff-header-text);
	cursor: pointer;
	border-radius: 12px;
}

.ff-premium-menu-toggle span {
	width: 17px;
	height: 2px;
	display: block;
	background: currentColor;
	border-radius: 999px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.ff-premium-menu-toggle[aria-expanded="true"] span:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.ff-premium-menu-toggle[aria-expanded="true"] span:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

.ff-premium-mobile {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	border-top: 1px solid transparent;
	transition: grid-template-rows 220ms ease, border-color 180ms ease;
}

.ff-premium-mobile.is-open {
	grid-template-rows: 1fr;
	border-top-color: var(--ff-header-line);
}

.ff-premium-mobile__panel {
	min-height: 0;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 12px 0 18px;
	display: grid;
	gap: 8px;
}

.ff-premium-mobile__link {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	color: var(--ff-header-text) !important;
	background: var(--ff-header-soft);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	border: 1px solid var(--ff-header-line);
	border-radius: 14px;
}

.ff-premium-mobile__link.is-active {
	border-color: color-mix(in srgb, var(--ff-header-accent-2) 55%, var(--ff-header-line));
	box-shadow: inset 3px 0 0 var(--ff-header-accent-2);
}

.ff-premium-mobile__cta {
	display: flex;
	margin-top: 4px;
}

.ff-premium-mobile__switchers {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding-top: 4px;
}

.ff-premium-mobile__switchers .vox-lang-switcher {
	display: inline-flex !important;
	margin: 0 !important;
}

.ff-premium-header a:focus-visible,
.ff-premium-header button:focus-visible,
.ff-skip-link:focus-visible {
	outline: 3px solid var(--ff-header-focus);
	outline-offset: 3px;
}

html.ff-premium-menu-open {
	overflow: hidden;
}

@media (min-width: 720px) {
	.ff-premium-cta {
		display: inline-flex;
	}
}

@media (min-width: 1020px) {
	body.astra-child-premium-header {
		--ff-header-height: 82px;
	}

	.ff-premium-nav {
		display: inline-flex;
	}

	.ff-premium-menu-toggle,
	.ff-premium-mobile {
		display: none;
	}

	.ff-premium-switchers .vox-lang-switcher {
		display: inline-flex !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar .ff-premium-header {
		top: 46px;
	}
}

@media (max-width: 520px) {
	.ff-premium-brand__descriptor {
		max-width: 150px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (max-width: 420px) {
	.ff-premium-header__inner,
	.ff-premium-mobile__panel {
		width: min(100% - 20px, 1180px);
	}

	.ff-premium-switchers .vox-theme-switcher {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ff-premium-header,
	.ff-premium-nav__link,
	.ff-premium-cta,
	.ff-premium-mobile,
	.ff-premium-menu-toggle span,
	.ff-skip-link {
		transition: none !important;
	}
}
