:root { --header-h: 92px; --header-h-compact: 68px; }

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--header-h);
	z-index: 100;
	background: color-mix(in oklab, var(--bg) 94%, transparent);
	border-bottom: 1px solid transparent;
	transition: height var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-compact {
	height: var(--header-h-compact);
	background: var(--surface);
	border-bottom-color: var(--line);
	box-shadow: 0 10px 30px -22px oklch(0.24 0.012 260 / 0.45);
}

.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-m);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
	min-width: 0;
}
.brand .logo-mark {
	height: 48px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	flex-shrink: 0;
	transition: height var(--dur-base) var(--ease-out);
}
.site-header.is-compact .brand .logo-mark { height: 40px; }
.brand .logo-mark .logo-bg { fill: var(--accent); transition: fill var(--dur-base) var(--ease-out); }
.brand__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.15;
	letter-spacing: 0.005em;
	text-transform: none;
	color: var(--ink);
	max-width: 230px;
}

.nav-desktop { display: none; }
.nav-desktop ul {
	display: flex;
	align-items: center;
	gap: clamp(1.4rem, 2vw, 2.4rem);
	list-style: none;
}
.nav-desktop a {
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.4em 0;
	position: relative;
	white-space: nowrap;
}
.nav-desktop a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: -2px;
	height: 2px;
	background: var(--accent);
	transition: right var(--dur-base) var(--ease-out);
}
.nav-desktop a:hover::after,
.nav-desktop .current-menu-item > a::after { right: 0; }

.nav-desktop .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 220px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 16px 36px -18px oklch(0.24 0.012 260 / 0.35);
	padding: 0.5rem;
	list-style: none;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.nav-desktop li { position: relative; }
.nav-desktop li:hover > .sub-menu,
.nav-desktop li:focus-within > .sub-menu {
	opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-desktop .sub-menu a { display: block; padding: 0.6em 0.8em; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.header-phone {
	display: none;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}
.header-cta { display: none; }

.burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	cursor: pointer;
	padding: 0;
}
.burger .icon { width: 22px; height: 22px; }
.burger .icon--close { display: none; }
.burger[aria-expanded="true"] .icon--menu { display: none; }
.burger[aria-expanded="true"] .icon--close { display: block; }

/* Mobile drawer — sibling of <header>, direct child of <body>. */
.mobile-drawer {
	position: fixed;
	top: var(--header-h);
	left: 0; right: 0;
	bottom: 0;
	z-index: 90;
	background: var(--surface);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-slow);
}
.mobile-drawer.is-open {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
	transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.mobile-drawer__inner { padding-block: var(--space-m) var(--space-l); }
.mobile-drawer nav ul { list-style: none; display: flex; flex-direction: column; }
.mobile-drawer nav a {
	display: block;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	min-height: 44px;
}
.mobile-drawer .sub-menu { list-style: none; padding-left: 1.25rem; }
.mobile-drawer .sub-menu a { font-size: 1rem; border-bottom-color: var(--line); }
.mobile-drawer__contact { margin-top: var(--space-m); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.mobile-drawer__contact a.header-phone { display: inline-flex; }
