/* ==========================================================================
   Language selection modal — shared across all language versions
   ========================================================================== */

.lang-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 90;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.lang-modal-overlay.is-open {
	display: flex;
}

.lang-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	padding: 32px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: langModalIn .25s ease-out;
}

@keyframes langModalIn {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.lang-modal__title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 8px;
	text-align: center;
	color: #111;
}

.lang-modal__subtitle {
	font-size: 14px;
	color: #666;
	text-align: center;
	margin: 0 0 24px;
	line-height: 1.4;
}

.lang-modal__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.lang-modal__list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: calc((100% - 42px)/3);
	flex: 1;
}

.lang-modal__label {
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
}

.lang-modal__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid #e5e5e5;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: border-color .15s, transform .1s, box-shadow .15s;
	overflow: hidden;
	font-family: inherit;
}

.lang-modal__btn:hover {
	border-color: #999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-modal__btn:active {
	transform: scale(.94);
}

.lang-modal__btn:focus-visible {
	outline: none;
	border-color: #333;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.lang-modal__btn img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	pointer-events: none;
}

@media (max-width: 480px) {
	.lang-modal { padding: 24px 20px; }
	.lang-modal__title { font-size: 19px; }
	.lang-modal__btn { width: 56px; height: 56px; }
	.lang-modal__list { gap: 12px; }
	.lang-modal__list li {min-width: calc((100% - 24px)/3);flex: 1;}
}