.header {
	/*position: sticky;*/
	top: 0;
	z-index: 100;
}

.header--homepage {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.header--homepage .header__topbar,
.header--homepage .header__main {
	background-color: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.header--homepage .header__topbar {
	border-bottom-color: rgba(229, 226, 223, 0.5);
}

.header--homepage .header__topbar-item,
.header--homepage .header__topbar-item svg {
	color: var(--color-alabaster-gray-400);
}

.header--homepage .header__nav-link {
	color: var(--color-alabaster-gray-200);
}

.header--homepage .header__lang-current {
	border-color: var(--color-alabaster-gray-200);
	color: var(--color-alabaster-gray-200);
}

.header--homepage .header__lang-switcher.is-open .header__lang-current {
	color: var(--color-vintage-grape-800);
}

.header--homepage .header__burger {
	color: var(--color-alabaster-gray-200);
}

/* ─── Top bar ─────────────────────────────────────────────────────────────── */

.header__topbar {
	background-color: var(--color-alabaster-gray-200);
	border-bottom: 1px solid var(--color-alabaster-gray-500);
}

.header__topbar-inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 40px;
	max-width: var(--contained-width);
	margin: 0 auto;
	padding: 8px 40px;
}

.header__topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-family-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--color-vintage-grape-800);
	text-decoration: none;
}

.header__topbar-item svg {
	flex-shrink: 0;
	color: var(--color-vintage-grape-600);
}

.header__topbar-item svg:nth-of-type(1) {
	width: 14px;
	height: 11px;
}

.header__topbar-item svg:nth-of-type(2) {
	width: 14px;
	height: 14px;
}

/* ─── Main nav ────────────────────────────────────────────────────────────── */

.header__main {
	background-color: var(--color-alabaster-gray-200);
	position: relative;
	z-index: 100;
}

.header__main-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: var(--contained-width);
	margin: 0 auto;
	padding: 0 40px;
	height: 68px;
}

/* ─── Logo ────────────────────────────────────────────────────────────────── */

.header__logo {
	flex-shrink: 0;
}

.header__logo-link {
	display: block;
}

.header__logo-image {
	display: block;
	width: auto;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */

.header__nav {
	flex: 1;
}

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

.header__nav-link {
	font-family: var(--font-family-display);
	font-size: 13px;
	font-weight: 400;
	color: var(--color-vintage-grape-800);
	white-space: nowrap;
}

/* ─── Language switcher ───────────────────────────────────────────────────── */

.header__lang-switcher {
	position: relative;
	flex-shrink: 0;
	margin-left: auto;
}

.header__lang-current {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--color-alabaster-gray-800);
	border-radius: 16px;
	background: none;
	cursor: pointer;
	font-family: var(--font-family-display);
	font-size: 13px;
	font-weight: 400;
	color: var(--color-vintage-grape-800);
}

.header__lang-current svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.header__lang-switcher.is-open .header__lang-current svg {
	transform: rotate(180deg);
}

.header__lang-flag {
	display: block;
	flex-shrink: 0;
	border-radius: 2px;
}

.header__lang-code {
	margin-left: auto;
}

.header__lang-switcher.is-open .header__lang-code {
	margin-left: 0;
}

.header__lang-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background-color: var(--color-alabaster-gray-100);
	border: 1px solid var(--color-alabaster-gray-400);
	border-radius: 8px;
	list-style: none;
	padding: 4px;
	margin: 0;
	display: none;
	min-width: 100%;
}

.header__lang-switcher.is-open .header__lang-dropdown {
	display: block;
}

/* Open state: unified card */

.header__lang-switcher.is-open {
	background-color: var(--color-alabaster-gray-200);
	border: 1px solid var(--color-alabaster-gray-800);
	border-bottom: none;
	border-radius: 16px 16px 0 0;
}

.header__lang-switcher.is-open .header__lang-current {
	border: none;
	border-radius: 0;
	background: transparent;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.header__lang-switcher.is-open .header__lang-current::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 12px;
	right: 12px;
	height: 1px;
	background-color: var(--color-alabaster-gray-800);
}

.header__lang-switcher.is-open .header__lang-dropdown {
	top: 100%;
	left: -1px;
	right: -1px;
	min-width: unset;
	background-color: var(--color-alabaster-gray-200);
	border: 1px solid var(--color-alabaster-gray-800);
	border-top: none;
	border-radius: 0 0 16px 16px;
	padding: 4px 4px 8px;
}

.header__lang-option-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 9px;
	border-radius: 4px;
	font-family: var(--font-family-display);
	font-size: 13px;
	font-weight: 400;
	color: var(--color-vintage-grape-800);
	text-decoration: none;
	white-space: nowrap;
}

.header__lang-option-link:hover {
	background-color: var(--color-alabaster-gray-300);
}

/* ─── Burger (mobile) ─────────────────────────────────────────────────────── */

.header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--color-vintage-grape-800);
	margin-left: auto;
	flex-shrink: 0;
}

.header__burger svg {
	display: block;
}

.header__burger[aria-expanded="true"] .header__burger-icon-open {
	display: none;
}

.header__burger[aria-expanded="false"] .header__burger-icon-close {
	display: none;
}

/* ─── Mobile menu overlay ─────────────────────────────────────────────────── */

.header__mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background-color: var(--color-alabaster-gray-200);
	flex-direction: column;
	overflow-y: auto;
}

.header__mobile-menu.is-open {
	display: flex;
}

.header__mobile-menu-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	height: 60px;
	flex-shrink: 0;
}

.header__mobile-close {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--color-vintage-grape-800);
}

.header__mobile-close svg {
	display: block;
	width: 24px;
	height: 24px;
}

.header__mobile-nav {
	flex: 1;
	padding-top: 16px;
}

.header__mobile-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.header__mobile-nav-link {
	display: block;
	padding: 16px 16px;
	font-family: var(--font-family-display);
	font-size: 28px;
	font-weight: 400;
	color: var(--color-vintage-grape-800);
	text-decoration: underline;
	text-underline-offset: 6px;
	line-height: 1.2;
}

.header__mobile-contact {
	padding: 32px 16px 48px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex-shrink: 0;
}

.header__mobile-contact-label {
	font-family: var(--font-family-body);
	font-size: 14px;
	font-weight: 400;
	color: var(--color-vintage-grape-800);
}

.header__mobile-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-family-body);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-vintage-grape-800);
	text-decoration: none;
}

.header__mobile-contact-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--color-vintage-grape-600);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
	.header__nav-list {
		gap: 24px;
	}
}


@media (max-width: 1100px) {
	.header__topbar-inner {
		padding: 8px 24px;
	}

	.header__main-inner {
		padding: 0 24px;
		gap: 16px;
	}

	.header__burger {
		display: inline-flex;
	}

	.header__nav {
		display: none;
	}

	.header__lang-switcher {
		margin-left: 0;
		width: 90px;
		box-sizing: border-box;
	}

	.header__lang-current {
		border: none;
		width: 100%;
	}

	.header__lang-current .header__lang-flag {
		display: none;
	}

	.header__lang-switcher.is-open .header__lang-current .header__lang-flag {
		display: block;
	}
}

@media (max-width: 600px) {
	.header__topbar-inner {
		gap: 16px;
		padding: 8px 16px;
	}

	.header__main-inner {
		padding: 0 16px;
		height: 60px;
	}

}

@media (max-width: 550px) {
	.header__topbar-inner {
		display: none;
	}
}