/* RPT Language Switcher — панель языков вверху страницы */
.rpt-lang-bar {
	position: relative;
	z-index: 100000;
	display: flex;
	justify-content: flex-end;
	padding: 6px 16px;
	background: #14171c;
	direction: ltr; /* кнопки всегда в порядке RU · EN · AR */
}
.rpt-lang-switch {
	display: inline-flex;
	gap: 4px;
	padding: 2px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
}
.rpt-lang-btn {
	display: inline-block;
	min-width: 40px;
	padding: 5px 10px;
	border-radius: 6px;
	font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none !important;
	color: rgba(255, 255, 255, 0.75) !important;
	transition: background-color 0.15s, color 0.15s;
}
.rpt-lang-btn:hover,
.rpt-lang-btn:focus-visible {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.14);
	outline: none;
}
.rpt-lang-btn.is-active {
	color: #14171c !important;
	background: #fff;
}

/* Админ-панель WordPress (для вошедших) не должна перекрывать кнопки */
body.admin-bar .rpt-lang-bar { margin-top: 0; }

/* Арабский: шрифт и направление письма */
html[lang="ar"] body,
html[lang="ar"] body button,
html[lang="ar"] body input,
html[lang="ar"] body select,
html[lang="ar"] body textarea,
html[lang="ar"] body h1,
html[lang="ar"] body h2,
html[lang="ar"] body h3,
html[lang="ar"] body h4,
html[lang="ar"] body h5,
html[lang="ar"] body h6 {
	font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
	letter-spacing: 0 !important;
}
html[dir="rtl"] body {
	text-align: right;
}
html[dir="rtl"] .rpt-lang-btn {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
/* Телефоны, e-mail и цифры оставляем слева направо */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"] {
	direction: ltr;
	unicode-bidi: embed;
	display: inline-block;
}
