.lang-switch {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	padding: 2px;
	border-radius: 999px;
	background: rgba(118, 118, 128, 0.14);
	border: 1px solid currentColor;
	color: #1a1a1a;
	font-size: 0.59rem;
	line-height: 1;
	user-select: none;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.lang-switch-slider {
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 2px;
	width: calc(50% - 2px);
	border-radius: 999px;
	background: #8cc9f0;
	box-shadow: 0 1px 3px rgba(126, 195, 238, 0.55);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.lang-switch[data-active="ru"] .lang-switch-slider {
	transform: translateX(100%);
}

.lang-switch-btn {
	position: relative;
	z-index: 1;
	border: none;
	background: transparent;
	padding: 0.28em 0.72em;
	min-width: 2.5em;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #6e6e73;
	cursor: inherit;
	transition: color 0.28s ease;
	line-height: 1.35;
	pointer-events: none;
}

.lang-switch-btn.is-active {
	color: #ffffff;
}

.lang-switch--light {
	background: rgba(118, 118, 128, 0.12);
	color: #1a1a1a;
}

.legal-lang-content[hidden] {
	display: none !important;
}

#nav .nav-lang-item {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

#nav .nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	padding-right: 4.4em;
	box-sizing: border-box;
}

#nav .nav-inner > ul {
	flex: 1;
}

#nav .lang-switch--nav {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	color: #1a1a1a;
}

@media screen and (max-width: 736px) {
	#nav .nav-inner {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 0.45em;
		padding-bottom: 0.15em;
		padding-right: 0;
	}

	#nav .lang-switch--nav {
		position: static;
		transform: none;
		margin-left: 0.35em;
	}
}
