/* ==========================================================================
   Шапка сайта: токены, панель, меню, кнопка «Сообщить об инциденте»
   ========================================================================== */
:root {
	--rx-void: #000000;
	--rx-carbon: #0c0c0e;
	--rx-surface: #151518;
	--rx-raised: #1d1d21;
	--rx-line: rgba(255, 255, 255, 0.09);
	--rx-line-strong: rgba(255, 255, 255, 0.18);
	--rx-bone: #f3f2ee;
	--rx-text: #d9d8d3;
	--rx-ash: #8f8e8a;
	--rx-signal: #ffcb05;
	--rx-signal-hi: #ffe066;
	--rx-ember: #ff8a00;
	--rx-ink: #0a0a0a;

	--rx-font: "Proxima Nova RT", "Helvetica Neue", Arial, sans-serif;

	--rx-fs-display: clamp(2.75rem, 1.5rem + 4.6vw, 6.25rem);
	--rx-fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 5rem);
	--rx-fs-h2: clamp(2.125rem, 1.6rem + 2.4vw, 4rem);
	--rx-fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	--rx-fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
	--rx-fs-body: 1.0625rem;
	--rx-fs-small: 0.9375rem;
	--rx-fs-micro: 0.8125rem;

	--rx-gap: clamp(16px, 2vw, 24px);
	--rx-section: clamp(88px, 7vw + 40px, 168px);
	--rx-r-s: 10px;
	--rx-r-m: 18px;
	--rx-r-l: 28px;
	--rx-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--rx-header-h: 76px;
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.rx-header { position: relative; z-index: 1000; }
.rx-bar {
	position: fixed !important;
	inset: 0 0 auto 0;
	z-index: 1000;
	height: var(--rx-header-h);
	display: flex;
	align-items: center;
	background: transparent !important;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
	padding: 0 !important;
	transform: none !important;
}
.rx-bar.is-scrolled {
	background: rgba(0, 0, 0, 0.72) !important;
	border-bottom-color: var(--rx-line);
	-webkit-backdrop-filter: saturate(160%) blur(18px);
	backdrop-filter: saturate(160%) blur(18px);
}
.rx-bar__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	width: 100%;
}
.rx-logo { display: inline-flex; flex: none; color: var(--rx-bone); }
.rx-logo svg { width: 146px; height: 62px; } /* как в исходной теме: 146 / 100 / 87 px */
.rx-nav-main { flex: 1; display: flex; justify-content: center; }
.rx-menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rx-menu .nav-link {
	display: block;
	padding: 10px 14px !important;
	border-radius: 999px;
	color: var(--rx-text) !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}
.rx-menu .nav-link:hover { color: var(--rx-bone) !important; background: rgba(255, 255, 255, 0.06); }
.rx-menu .current-menu-item > .nav-link,
.rx-menu .current-page-ancestor > .nav-link,
.rx-menu .current_page_item > .nav-link {
	color: var(--rx-bone) !important;
	box-shadow: inset 0 -2px 0 var(--rx-signal);
	border-radius: 0;
}
.rx-bar__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.rx-bar__phone {
	color: var(--rx-bone);
	font-weight: 500;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	white-space: nowrap;
}
.rx-bar__phone:hover { color: var(--rx-signal); }

@media (max-width: 1199.98px) {
	.rx-bar__phone { display: none; }
	.rx-menu .nav-link { padding: 10px 10px !important; font-size: 0.875rem !important; }
	.rx-logo svg { width: 100px; height: 42.5px; }
}
@media (max-width: 991.98px) {
	:root { --rx-header-h: 64px; }
	.rx-nav-main { display: none; }
	.rx-bar__inner { justify-content: space-between; }
	.rx-logo svg { width: 87px; height: 37px; }
}

/* шапка читается над любым фоном */
.rx-bar:not(.is-scrolled) { background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)) !important; }
/* оригинальная разделительная линия под шапкой не нужна */
header.rx-header::after { display: none !important; }
.rx-bar { font-family: var(--rx-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.rx-menu .nav-link { letter-spacing: 0.005em !important; text-transform: none !important; }
.rx-bar__phone { font-feature-settings: "kern" 1, "tnum" 1, "lnum" 1; }

/* кнопка в шапке */
.rx-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 20px !important;
	border-radius: 999px !important;
	border: 1px solid var(--rx-signal) !important;
	background: var(--rx-signal) !important;
	color: var(--rx-ink) !important;
	font-family: var(--rx-font) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.005em !important;
	text-transform: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s var(--rx-ease), border-color 0.25s var(--rx-ease), transform 0.25s var(--rx-ease);
}
.rx-btn:hover { background: var(--rx-signal-hi) !important; border-color: var(--rx-signal-hi) !important; }
.rx-btn:active { transform: translateY(1px); }
.rx-skip {
	position: fixed;
	top: -100px;
	left: 12px;
	z-index: 2000;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--rx-signal);
	color: var(--rx-ink);
	font-weight: 600;
	text-decoration: none;
}
.rx-skip:focus { top: 12px; }

/* «Сообщить об инциденте»: форма — как у кнопок сайта (.btn-default), цвет — сигнальный красный */
.rx-bar .rx-incident-btn {
	gap: 10px;
	padding: 13px 18px;
	background: #e5322d;
	color: #fff;
	border: 0;
	font-size: 15px;
	cursor: pointer;
}
.rx-bar .rx-incident-btn:hover { background: #f04a3f; }
.rx-bar .rx-incident-btn:focus-visible { outline: 2px solid #ffcb05; outline-offset: 2px; }
.rx-incident-btn__dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	flex: none;
}
.rx-incident-btn__dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	animation: rx-incident-pulse 1.8s ease-out infinite;
}
@keyframes rx-incident-pulse {
	from { transform: scale(0.6); opacity: 1; }
	to { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .rx-incident-btn__dot::after { animation: none; } }
@media (max-width: 575.98px) {
	.rx-bar .rx-incident-btn { padding: 11px 14px; font-size: 13px; }
}

/* узкие телефоны: полная подпись не помещается рядом с логотипом — короткая «Инцидент» */
.rx-incident-btn__short { display: none; }
@media (max-width: 379.98px) {
	.rx-incident-btn__full { display: none; }
	.rx-incident-btn__short { display: inline; }
	.rx-bar .rx-incident-btn { padding: 11px 16px; }
}

/* пункты меню не переносятся на две строки (логотип вернули к исходным 146px) */
.rx-menu .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1365.98px) {
	.rx-bar__inner { gap: 20px; }
	.rx-menu .nav-link { padding-left: 9px !important; padding-right: 9px !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.rx-bar__inner { gap: 16px; }
	.rx-menu .nav-link { padding-left: 6px !important; padding-right: 6px !important; }
}
