.header-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 16px;
	width: 100%;
}

.header-bar .menu {
	margin: 0;
}

.header-bar .navigation {
	flex-shrink: 0;
}

.lang-switcher {
	position: relative;
	flex-shrink: 0;
}

.lang-switcher__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	height: 42px;
	border: 1px solid rgba(255, 138, 0, 0.35);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-switcher__toggle::-webkit-details-marker {
	display: none;
}

.lang-switcher__toggle::marker {
	content: "";
}

.lang-switcher__toggle:hover {
	background: rgba(255, 138, 0, 0.08);
	border-color: rgba(255, 138, 0, 0.6);
}

.lang-switcher__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #8ca89e;
	transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.lang-switcher__toggle:hover .lang-switcher__caret {
	border-top-color: #fff;
}

.lang-switcher[open] .lang-switcher__caret {
	transform: rotate(180deg);
	border-top-color: #ff8a00;
}

.lang-flag {
	display: block;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
	flex-shrink: 0;
}

.lang-switcher__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 176px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: #002223;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	z-index: 1100;
}

.lang-switcher__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher__option:hover {
	background: rgba(255, 138, 0, 0.12);
	color: #ff8a00;
}

@media (min-width: 800px) {
	.header-bar {
		flex: 1;
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: 20px;
		margin-left: 24px;
		width: auto;
	}

	.lang-switcher__menu {
		left: auto;
		right: 0;
		transform: none;
	}
}

@media (max-width: 670px) {
	.header-bar {
		flex-direction: column;
		gap: 12px;
	}

	.header-bar .navigation {
		width: 100%;
	}
}
