.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	padding: 22px 0;
	background: linear-gradient(180deg, rgba(5, 8, 12, 0.82), rgba(5, 8, 12, 0));
	transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

.site-header.is-scrolled,
.site-header.scrolled {
	padding: 12px 0;
	background: rgba(5, 8, 12, 0.94);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.site-branding {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.site-branding a,
.site-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-logo-link,
.custom-logo-link {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.site-title {
	font-family: "Cormorant Garamond", serif;
	font-size: 32px;
	line-height: 1;
	letter-spacing: 0.18em;
	color: #ffffff;
	text-transform: uppercase;
}

.custom-logo,
.site-logo,
.site-branding img {
	display: block;
	width: auto;
	max-width: 340px;
	max-height: 96px;
	object-fit: contain;
}

.site-logo-link img,
.custom-logo-link img {
	filter: none;
}

.primary-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 12px 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.25s ease;
}

.primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 4px;
	width: 0;
	height: 1px;
	background: #c6a86a;
	transition: width 0.25s ease;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	color: #c6a86a;
}

.primary-menu a:hover::after,
.primary-menu a:focus::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current-menu-ancestor > a::after {
	width: 100%;
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 240px;
	margin: 0;
	padding: 16px 0;
	list-style: none;
	background: rgba(7, 12, 18, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 14px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.primary-menu .sub-menu a {
	display: flex;
	padding: 10px 22px;
	font-size: 12px;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.primary-menu .sub-menu a::after {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	flex: 0 0 auto;
}

.header-phone {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.82);
	white-space: nowrap;
	text-transform: uppercase;
}

.header-phone:hover,
.header-phone:focus {
	color: #c6a86a;
}

.header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid #c6a86a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #ffffff;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-button:hover,
.header-button:focus {
	background: #c6a86a;
	color: #090909;
}

.menu-toggle {
	display: none;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(198, 168, 106, 0.82);
	border-radius: 4px;
	background: rgba(9, 9, 9, 0.68);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
	background: rgba(198, 168, 106, 0.92);
	border-color: #c6a86a;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 18px rgba(198, 168, 106, 0.2);
	outline: none;
}

.menu-toggle span {
	position: absolute;
	left: 13px;
	width: 24px;
	height: 2px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.32);
	transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, background 0.25s ease;
}

.menu-toggle:hover span,
.menu-toggle:focus span {
	background: #090909;
	box-shadow: none;
}

.menu-toggle span:nth-child(1) {
	top: 16px;
}

.menu-toggle span:nth-child(2) {
	top: 24px;
}

.menu-toggle span:nth-child(3) {
	top: 32px;
}

.menu-toggle.is-active,
.menu-toggle[aria-expanded="true"] {
	background: #c6a86a;
	border-color: #c6a86a;
}

.menu-toggle.is-active span,
.menu-toggle[aria-expanded="true"] span {
	background: #090909;
	box-shadow: none;
}

.menu-toggle.is-active span:nth-child(1),
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	top: 24px;
	transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2),
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active span:nth-child(3),
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	top: 24px;
	transform: rotate(-45deg);
}

body.menu-open {
	overflow: hidden;
}


/* Sprint 07 Mobile Navigation Polish */
@media (max-width: 1100px) {
	.primary-navigation {
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: min(420px, 88vw);
		max-height: none;
		padding: 112px 34px 34px;
		background: linear-gradient(180deg, rgba(7, 12, 18, 0.99), rgba(5, 7, 10, 0.985));
		border-top: 0;
		border-right: 0;
		border-bottom: 0;
		border-left: 1px solid rgba(198, 168, 106, 0.22);
		box-shadow: -36px 0 90px rgba(0, 0, 0, 0.58);
		transform: translateX(100%);
	}

	body.admin-bar .primary-navigation {
		top: 0;
		max-height: none;
		padding-top: 132px;
	}

	.primary-navigation.is-open,
	body.menu-open .primary-navigation {
		transform: translateX(0);
	}

	body.menu-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: rgba(0, 0, 0, 0.62);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}

	.primary-menu a {
		padding: 18px 0;
		font-size: 14px;
		letter-spacing: 0.18em;
	}

	.menu-toggle {
		width: 52px;
		height: 52px;
		border-width: 1px;
		border-color: rgba(198, 168, 106, 0.95);
		background: rgba(5, 8, 12, 0.86);
		box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
	}

	.menu-toggle span {
		left: 13px;
		width: 24px;
		height: 2px;
	}
}

@media (max-width: 560px) {
	.primary-navigation {
		width: min(360px, 90vw);
		padding: 102px 28px 28px;
	}
}

/* Sprint 09 Premium Header */
@media (min-width: 1101px) {
	.site-header {
		padding: 14px 0;
		background: linear-gradient(180deg, rgba(5, 8, 12, 0.92), rgba(5, 8, 12, 0.62));
		border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	}

	.site-header.is-scrolled,
	.site-header.scrolled {
		padding: 8px 0;
		background: rgba(5, 8, 12, 0.96);
	}

	.header-inner {
		gap: 26px;
	}

	.custom-logo,
	.site-logo,
	.site-branding img {
		max-width: 300px;
		max-height: 74px;
	}

	.primary-menu {
		gap: 26px;
	}

	.primary-menu a {
		font-size: 11px;
		letter-spacing: 0.19em;
	}

	.header-button {
		min-height: 42px;
		padding: 0 20px;
	}
}

@media (max-width: 1100px) {
	.custom-logo,
	.site-logo,
	.site-branding img {
		max-width: 220px;
		max-height: 68px;
	}
}

@media (max-width: 560px) {
	.custom-logo,
	.site-logo,
	.site-branding img {
		max-width: 174px;
		max-height: 56px;
	}
}
