/* Переключатель языка «РУС | ҚАЗ» (inc/i18n.php). */
.as-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 2px;
	list-style: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.as-lang li {
	margin: 0;
}

.as-lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	transition: background var(--asa-ease, 0.2s ease), color var(--asa-ease, 0.2s ease);
}

.as-topbar .as-lang__item {
	color: rgba(255, 255, 255, 0.72);
}

.as-topbar a.as-lang__item:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.as-lang__item.is-current {
	background: var(--asa-accent, #f6121c);
	color: #fff !important;
	cursor: default;
}

/* В мобильной панели — светлый фон. */
.as-lang--mobile {
	margin: 18px 0 6px;
	background: var(--asa-bg, #f6f6f8);
	border-color: var(--asa-line, #e4e4e9);
}

.as-lang--mobile .as-lang__item {
	min-width: 64px;
	height: 34px;
	font-size: 13px;
	color: var(--asa-text, #1f1f24);
}

.as-lang--mobile a.as-lang__item:hover {
	background: #fff;
}

@media (max-width: 480px) {
	.as-lang--topbar .as-lang__item {
		min-width: 38px;
		padding: 0 8px;
	}
}

/* Узкие экраны: в топбаре остаются язык и кнопка звонка, соцсети — в подвале. */
@media (max-width: 480px) {
	.as-topbar .as-socials {
		display: none;
	}

	.as-topbar__right {
		width: 100%;
		justify-content: space-between;
		gap: 10px;
	}

	.as-topbar__cta {
		white-space: nowrap;
		font-size: 12px;
		padding: 6px 12px;
	}
}

/* Блок цифр: без пустых ячеек, когда пять показателей не делятся на колонки ровно. */
@media (max-width: 1200px) and (min-width: 721px) {
	.as-stats__list {
		grid-template-columns: repeat(6, 1fr) !important;
	}

	.as-stats__item {
		grid-column: span 2;
	}

	.as-stats__item:nth-child(4),
	.as-stats__item:nth-child(5) {
		grid-column: span 3;
	}
}

@media (max-width: 720px) {
	.as-stats__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
