.sr-language-switcher {
	position: relative;
	z-index: 70;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-family: var(--font-heading);
}

.sr-language-switcher__button {
	display: inline-flex;
	min-width: 92px;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-button);
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 8px 24px rgb(18 59 63 / 5%);
	color: var(--color-brand-950);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition:
		color 220ms ease,
		border-color 220ms ease,
		background-color 220ms ease,
		box-shadow 220ms ease,
		transform 220ms var(--ease-brand);
}

.sr-language-switcher__button:hover,
.sr-language-switcher__button:focus-visible,
.sr-language-switcher.is-open .sr-language-switcher__button {
	border-color: rgb(22 143 130 / 45%);
	background: var(--color-brand-50);
	color: var(--color-brand-600);
	box-shadow: 0 14px 30px rgb(18 59 63 / 10%);
}

.sr-language-switcher__button:hover {
	transform: translateY(-1px);
}

.sr-language-switcher__flag {
	display: inline-flex;
	width: 20px;
	height: 15px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid rgb(18 59 63 / 12%);
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgb(18 59 63 / 8%);
}

.sr-language-switcher__flag img {
	display: block;
	width: 20px;
	height: 13px;
	object-fit: cover;
}

.sr-language-switcher__code {
	font-size: 0.78rem;
	font-weight: 800;
}

.sr-language-switcher__chevron {
	width: 16px;
	height: 16px;
	transition: transform 240ms var(--ease-brand);
}

.sr-language-switcher.is-open .sr-language-switcher__chevron {
	transform: rotate(180deg);
}

.sr-language-switcher__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 250px;
	padding: 8px;
	border: 1px solid var(--color-border);
	border-radius: 16px;
	background: rgb(255 255 255 / 98%);
	box-shadow: 0 20px 45px rgb(18 59 63 / 15%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.98);
	transform-origin: top right;
	pointer-events: none;
	transition:
		opacity 220ms ease,
		visibility 220ms ease,
		transform 260ms var(--ease-brand);
}

.sr-language-switcher.is-open .sr-language-switcher__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.sr-language-switcher__list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sr-language-switcher__option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: 44px;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 12px;
	color: var(--color-brand-950);
	text-decoration: none;
	transition:
		color 180ms ease,
		background-color 180ms ease,
		transform 220ms var(--ease-brand);
}

.sr-language-switcher__option:hover,
.sr-language-switcher__option:focus-visible {
	background: var(--color-brand-50);
	color: var(--color-brand-600);
	transform: translateX(2px);
}

.sr-language-switcher__option.is-active {
	background: var(--color-brand-50);
	color: var(--color-brand-700);
}

.sr-language-switcher__option-text {
	display: grid;
	min-width: 0;
	gap: 1px;
}

.sr-language-switcher__name {
	overflow: hidden;
	color: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sr-language-switcher__option-code {
	color: var(--color-muted);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
}

.sr-language-switcher__check {
	display: inline-flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--color-brand-600);
	color: #fff;
	opacity: 0;
	transform: scale(0.82);
	transition:
		opacity 180ms ease,
		transform 220ms var(--ease-brand);
}

.sr-language-switcher__check svg,
.sr-language-switcher__check i {
	width: 14px;
	height: 14px;
}

.sr-language-switcher__option.is-active .sr-language-switcher__check {
	opacity: 1;
	transform: scale(1);
}

.sr-language-switcher--mobile .sr-language-switcher__button {
	min-width: 78px;
	min-height: 44px;
	gap: 7px;
	padding: 0 10px;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgb(18 59 63 / 6%);
}

.sr-language-switcher--mobile .sr-language-switcher__menu {
	top: calc(100% + 8px);
	right: 0;
	width: min(232px, calc(100vw - 32px));
}

.mobile-menu__logo {
	width: clamp(112px, 32vw, 168px);
	height: auto;
	object-fit: contain;
}

@media (max-width: 380px) {
	.sr-language-switcher--mobile .sr-language-switcher__button {
		min-width: 48px;
		padding: 0 8px;
	}

	.sr-language-switcher--mobile .sr-language-switcher__button .sr-language-switcher__code {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sr-language-switcher__button,
	.sr-language-switcher__chevron,
	.sr-language-switcher__menu,
	.sr-language-switcher__option,
	.sr-language-switcher__check {
		transition-duration: 1ms;
	}
}
