/* Возмездие — лендинг: герой (видео при наличии mp4; без видео — картинка на узких экранах), док-навигация, футер */
/* Подключается из New Version/nev site/index.php; картинки/видео лендинга — из папки nev site */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Портальный main.css задаёт html,body { min-width:1000px } — ломает мобильную вёрстку */
html.site-landing-html {
	height: 100%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	scroll-behavior: smooth;
	/* Общая кайма с панелью навигации (#nev-site-nav .site-dock, critical CSS в index.php) */
	--landing-dock-gold: rgba(200, 160, 90, 0.5);
	--landing-dock-radius: 8px;
	--landing-dock-inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	/* Как у .site-dock: внутри золотой рамки до кнопок / до кадра видео */
	--landing-dock-pad-x: 12px;
	--landing-dock-pad-y: 10px;
	/* От края экрана до золотой рамки — как у .site-dock-inner (герой раньше был 1rem и не совпадал) */
	--landing-dock-outer-pad-x: 10px;
}

body.site-landing {
	margin: 0;
	min-width: 0;
	max-width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-family: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
	color: #f2efe8;
	background: #0c0a09;
}

.site-landing a {
	color: inherit;
	text-decoration: none;
}

.site-landing a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Герой: занимает всё между шапкой-доком и футером (один экран без скролла страницы) --- */
.site-hero {
	position: relative;
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.5rem var(--landing-dock-outer-pad-x) 0.75rem;
	overflow: hidden;
	background-color: #080605;
	background-image:
		radial-gradient(ellipse 110% 75% at 50% -18%, rgba(210, 155, 85, 0.2) 0%, transparent 52%),
		radial-gradient(ellipse 65% 50% at 85% 18%, rgba(120, 65, 38, 0.38) 0%, transparent 48%),
		radial-gradient(ellipse 55% 45% at 12% 55%, rgba(55, 32, 20, 0.45) 0%, transparent 52%),
		radial-gradient(ellipse 90% 62% at 50% 42%, #2e1c12 0%, #181008 45%, #070504 100%);
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

/* Герой под шапкой в потоке — большой отступ сверху не нужен */
.site-hero--below-dock {
	padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
}

/* Картинка фона: только без видео, узкие экраны */
.site-hero__mobile-bg {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.site-hero__mobile-bg {
		display: block;
	}
}

.site-hero__video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.site-hero__video-rim {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	box-sizing: border-box;
	padding: 0 var(--landing-dock-pad-x);
	overflow: hidden;
}

/* cover + привязка к верху: при обрезке по высоте отрезается низ кадра, не верх */
.site-hero__video {
	flex: 1;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	pointer-events: none;
}

/* С видео — сильнее затемнение для читаемости (на всех ширинах) */
.site-hero--has-video .site-hero__scrim {
	background: linear-gradient(
		180deg,
		rgba(6, 4, 3, 0.45) 0%,
		rgba(10, 7, 5, 0.72) 45%,
		rgba(8, 6, 4, 0.88) 100%
	);
}

/* Золотая кайма слева/справа — те же токены, что у шапки (.site-dock) */
.site-hero__frame {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
	border-left: 1px solid var(--landing-dock-gold);
	border-right: 1px solid var(--landing-dock-gold);
	border-radius: var(--landing-dock-radius);
	box-shadow: var(--landing-dock-inset-hi);
}

.site-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(10, 7, 5, 0.25) 0%,
		rgba(14, 10, 7, 0.42) 42%,
		rgba(7, 5, 4, 0.72) 100%
	);
	pointer-events: none;
}

.site-hero__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 42rem;
	width: 100%;
	min-height: 0;
	flex: 0 1 auto;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

/* Один h1 на страницу — только для SEO/ЧВН; комбинация off-screen + clip-path надёжнее одного clip:rect */
.site-hero__sr-only {
	position: absolute !important;
	left: -10000px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.site-hero__logo {
	max-width: min(320px, 72vw);
	max-height: min(28vh, 200px);
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.7));
}

.site-hero__logo-fallback {
	width: min(280px, 70vw);
	height: min(18vh, 120px);
	max-height: 28vh;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(212, 165, 95, 0.45);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.35);
}

.site-hero__logo-fallback-mark {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 3px solid rgba(212, 165, 95, 0.55);
	box-shadow: 0 0 24px rgba(212, 165, 95, 0.25);
}

.site-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	margin-top: clamp(0.5rem, 2vh, 1.25rem);
}

.site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: min(180px, 42vw);
	padding: 0.5rem 1.1rem;
	font-size: clamp(0.9rem, 2.2vw, 1rem);
	font-weight: 700;
	font-family: inherit;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.site-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.site-btn:active {
	transform: translateY(0);
}

.site-btn--primary {
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	color: #ffd89a;
	border-color: rgba(220, 160, 80, 0.45);
}

.site-btn--primary:hover {
	background: rgba(60, 48, 36, 0.85);
	border-color: rgba(200, 160, 100, 0.55);
}

.site-btn--secondary {
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	color: #ffd89a;
	border-color: rgba(220, 160, 80, 0.45);
}

.site-btn--secondary:hover {
	background: rgba(60, 48, 36, 0.85);
	border-color: rgba(200, 160, 100, 0.55);
}

/*
 * После подключения style/opt.css и v2/style/main.css правила вида `a:link { color: #BA0000 }`
 * перебивают цвет текста кнопок — возвращаем явные цвета для героя.
 */
.site-landing .site-hero__actions a.site-btn--primary,
.site-landing .site-hero__actions a.site-btn--primary:link,
.site-landing .site-hero__actions a.site-btn--primary:visited {
	color: #ffd89a !important;
}

.site-landing .site-hero__actions a.site-btn--primary:hover {
	color: #fff !important;
	text-decoration: none !important;
}

.site-landing .site-hero__actions a.site-btn--secondary,
.site-landing .site-hero__actions a.site-btn--secondary:link,
.site-landing .site-hero__actions a.site-btn--secondary:visited {
	color: #ffd89a !important;
}

.site-landing .site-hero__actions a.site-btn--secondary:hover {
	color: #fff !important;
	text-decoration: none !important;
}

/* --- Верхняя навигация: в потоке flex-колонки body (не fixed — иначе часто скрывается под overflow/transform) --- */
.site-landing .site-dock-wrap,
.site-landing #nev-site-nav,
.site-landing .nev-top-bar {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	width: 100%;
	max-width: 100%;
	z-index: 100;
	flex: 0 0 auto;
	display: block;
	margin: 0;
	min-height: 0;
	padding: max(10px, env(safe-area-inset-top, 0px)) 0 12px 0;
	box-sizing: border-box;
	background: linear-gradient(180deg, #14110e 0%, #0a0907 100%);
	border-bottom: 2px solid rgba(196, 160, 96, 0.55);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.site-dock-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 var(--landing-dock-outer-pad-x);
	box-sizing: border-box;
	flex: 0 0 auto;
	min-height: 44px;
	overflow-x: visible;
	overflow-y: visible;
}

.site-dock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	align-content: center;
	gap: 6px;
	row-gap: 8px;
	padding: var(--landing-dock-pad-y) var(--landing-dock-pad-x);
	width: 100%;
	min-height: 44px;
	margin: 0;
	box-sizing: border-box;
	background: rgba(18, 14, 10, 0.96);
	border: 1px solid var(--landing-dock-gold);
	border-radius: var(--landing-dock-radius);
	box-shadow: var(--landing-dock-inset-hi);
}

/* Обычные пункты слева, счётчик онлайна в одной полоске справа */
.site-dock--with-online {
	justify-content: flex-start;
}

.site-dock--with-online .site-dock-online {
	margin-left: auto;
}

.site-dock--with-online .site-dock__link--account {
	margin-left: 0;
	margin-right: 6px;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 900px) {
	.site-dock {
		flex-wrap: nowrap;
		justify-content: space-between;
		max-width: none;
		width: 100%;
	}

	.site-dock--with-online {
		justify-content: flex-start;
	}
}

.site-dock__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	flex-shrink: 0;
	box-sizing: border-box;
	min-width: max-content;
	min-height: 40px;
	padding: 10px 14px;
	text-align: center;
	font-size: clamp(0.78rem, 2vw, 0.9rem);
	line-height: 1.15;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #e8dcc8;
	background: rgba(35, 28, 22, 0.85);
	border: 1px solid rgba(120, 95, 60, 0.45);
	border-radius: 8px;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	-webkit-font-smoothing: antialiased;
}

.site-dock__link:hover {
	background: rgba(60, 48, 36, 0.85);
	border-color: rgba(200, 160, 100, 0.55);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.18), 0 0 0 1px rgba(210, 165, 96, 0.22),
		0 0 12px rgba(210, 165, 96, 0.2);
	text-decoration: underline;
	text-decoration-color: rgba(255, 216, 154, 0.95);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* Сильнее, чем `.site-landing a { color: inherit }` — иначе кнопки дока визуально «пропадают» */
.site-landing .site-dock a.site-dock__link {
	color: #e8dcc8 !important;
	text-decoration: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.site-landing .site-dock a.site-dock__link:hover {
	color: #fff !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(255, 216, 154, 0.95) !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* Жёстко от приглушения чужими стилями портала; 13px — как критический CSS шапки на лендинге */
#nev-site-nav .site-dock__link {
	display: inline-flex !important;
	color: #e8dcc8 !important;
	font-family: "PT Sans", "Segoe UI", Arial, sans-serif !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
}

#nev-site-nav .site-dock__link--brand {
	color: #ffd89a !important;
}

#nev-site-nav .site-dock__link--play {
	color: #fff !important;
}

#nev-site-nav .site-dock__link--account {
	color: #ffd89a !important;
	text-transform: none;
	letter-spacing: 0.02em;
	background: linear-gradient(180deg, rgba(84, 55, 24, 0.92) 0%, rgba(48, 33, 18, 0.96) 100%);
	border-color: rgba(224, 178, 92, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 226, 168, 0.14);
}

#nev-site-nav .site-dock__link--account::before {
	content: "";
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	margin-right: 6px;
	border-radius: 50%;
	border: 1px solid rgba(255, 220, 156, 0.8);
	box-sizing: border-box;
	background: radial-gradient(circle at 50% 30%, rgba(255, 227, 174, 0.95) 22%, rgba(186, 128, 60, 0.92) 70%);
}

#nev-site-nav .site-dock__link--account-user::before {
	display: none;
}

#nev-site-nav .site-dock__link--account-user {
	padding: 8px 12px;
}

#nev-site-nav .site-dock__link--account-user img {
	vertical-align: middle;
}

#nev-site-nav .site-dock__link--account-user .site-dock-account__user,
#nev-site-nav .site-dock__link--account-user .site-dock-account__user:link,
#nev-site-nav .site-dock__link--account-user .site-dock-account__user:visited {
	color: #ffd89a !important;
	text-decoration: none !important;
}

#nev-site-nav .site-dock__link--account-user .site-dock-account__user b {
	font-weight: 700;
}

#nev-site-nav .site-dock__link--account:hover {
	color: #fff !important;
	border-color: rgba(242, 196, 108, 0.72);
	background: linear-gradient(180deg, rgba(110, 70, 30, 0.95) 0%, rgba(64, 41, 20, 0.98) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 229, 168, 0.22), 0 0 0 1px rgba(225, 176, 92, 0.28), 0 0 12px rgba(225, 176, 92, 0.24);
}

.site-dock-online {
	flex: 0 0 auto;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-height: 40px;
	padding: 10px 14px;
	box-sizing: border-box;
	font-family: "PT Sans", "Segoe UI", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.15;
	color: #e8dcc8 !important;
	text-decoration: none !important;
	background: rgba(55, 44, 34, 0.95);
	border: 1px solid rgba(160, 130, 90, 0.6);
	border-radius: 6px;
	white-space: nowrap;
	cursor: default;
}

.site-dock-online strong,
.site-dock-online__value {
	font-weight: 700;
	color: inherit;
	font-size: inherit;
}

.site-dock__link--brand {
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	border-color: rgba(220, 160, 80, 0.45);
	color: #ffd89a;
}

.site-landing .site-dock a.site-dock__link--brand {
	color: #ffd89a;
}

.site-dock__link--play {
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	border-color: rgba(220, 160, 80, 0.45);
	color: #ffd89a;
}

.site-landing .site-dock a.site-dock__link--play {
	color: #ffd89a;
}

.site-dock__link--play:hover {
	background: rgba(60, 48, 36, 0.85);
	border-color: rgba(200, 160, 100, 0.55);
	color: #fff;
}

.site-dock__link:focus-visible {
	outline: none;
	border-color: rgba(220, 172, 98, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.2), 0 0 0 1px rgba(210, 165, 96, 0.25),
		0 0 14px rgba(210, 165, 96, 0.3);
}

/* --- Телефоны и планшеты: кнопка «Меню» — разделы, Играть, онлайн --- */
.site-dock-inner--mobile {
	display: none;
}

.site-mobile-nav {
	width: 100%;
	position: relative;
}

.site-mobile-nav__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 44px;
	padding: 10px 14px;
	cursor: pointer;
	font-family: inherit;
	font-size: clamp(0.82rem, 2.2vw, 0.95rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #e8dcc8;
	background: rgba(35, 28, 22, 0.85);
	border: 1px solid var(--landing-dock-gold);
	border-radius: var(--landing-dock-radius);
	box-shadow: var(--landing-dock-inset-hi);
	list-style: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

.site-mobile-nav__summary::-webkit-details-marker {
	display: none;
}

.site-mobile-nav__summary::marker {
	content: "";
}

.site-mobile-nav__summary::after {
	content: "";
	width: 0.5em;
	height: 0.5em;
	margin-left: auto;
	border-right: 2px solid rgba(255, 216, 154, 0.9);
	border-bottom: 2px solid rgba(255, 216, 154, 0.9);
	transform: rotate(45deg) translateY(-0.1em);
	transition: transform 0.18s ease;
	flex-shrink: 0;
}

.site-mobile-nav[open] .site-mobile-nav__summary::after {
	transform: rotate(225deg) translateY(0.05em);
}

.site-mobile-nav__summary:hover {
	background: rgba(60, 48, 36, 0.85);
	border-color: rgba(200, 160, 100, 0.55);
	color: #fff;
}

.site-mobile-nav__summary:focus-visible {
	outline: none;
	border-color: rgba(220, 172, 98, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.2), 0 0 0 1px rgba(210, 165, 96, 0.25),
		0 0 14px rgba(210, 165, 96, 0.3);
}

.site-mobile-nav__panel {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
	padding: 10px var(--landing-dock-pad-x);
	background: rgba(18, 14, 10, 0.98);
	border: 1px solid rgba(200, 160, 100, 0.45);
	border-radius: var(--landing-dock-radius);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), var(--landing-dock-inset-hi);
}

.site-mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	box-sizing: border-box;
	text-align: center;
	font-size: clamp(0.8rem, 2.1vw, 0.92rem);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #e8dcc8 !important;
	text-decoration: none !important;
	background: rgba(35, 28, 22, 0.85);
	border: 1px solid rgba(120, 95, 60, 0.45);
	border-radius: 8px;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	-webkit-font-smoothing: antialiased;
}

.site-mobile-nav__link:hover {
	background: rgba(60, 48, 36, 0.85);
	border-color: rgba(200, 160, 100, 0.55);
	color: #fff !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(255, 216, 154, 0.95) !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.18), 0 0 0 1px rgba(210, 165, 96, 0.22),
		0 0 12px rgba(210, 165, 96, 0.2);
}

.site-mobile-nav__link--brand {
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	border-color: rgba(220, 160, 80, 0.45);
	color: #ffd89a !important;
}

.site-mobile-nav__link:focus-visible {
	outline: none;
	border-color: rgba(220, 172, 98, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.2), 0 0 0 1px rgba(210, 165, 96, 0.25),
		0 0 14px rgba(210, 165, 96, 0.3);
}

#nev-site-nav .site-mobile-nav__link--brand {
	color: #ffd89a !important;
}

#nev-site-nav .site-mobile-nav__link {
	font-family: "PT Sans", "Segoe UI", Arial, sans-serif !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
}

#nev-site-nav .site-mobile-nav__online {
	font-family: "PT Sans", "Segoe UI", Arial, sans-serif !important;
	font-size: 13px !important;
	line-height: 1.15 !important;
	font-weight: 700 !important;
}

.site-mobile-nav__link--play {
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	border-color: rgba(220, 160, 80, 0.45);
	color: #fff !important;
}

.site-mobile-nav__link--play:hover {
	color: #fff !important;
}

.site-mobile-nav__link--account {
	color: #ffd89a !important;
	text-transform: none;
	letter-spacing: 0.02em;
	background: linear-gradient(180deg, rgba(84, 55, 24, 0.92) 0%, rgba(48, 33, 18, 0.96) 100%);
	border-color: rgba(224, 178, 92, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 226, 168, 0.14);
}

.site-mobile-nav__link--account::before {
	content: "";
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	margin-right: 6px;
	border-radius: 50%;
	border: 1px solid rgba(255, 220, 156, 0.8);
	box-sizing: border-box;
	background: radial-gradient(circle at 50% 30%, rgba(255, 227, 174, 0.95) 22%, rgba(186, 128, 60, 0.92) 70%);
}

.site-mobile-nav__link--account:hover {
	color: #fff !important;
	border-color: rgba(242, 196, 108, 0.72);
	background: linear-gradient(180deg, rgba(110, 70, 30, 0.95) 0%, rgba(64, 41, 20, 0.98) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 229, 168, 0.22), 0 0 0 1px rgba(225, 176, 92, 0.28), 0 0 12px rgba(225, 176, 92, 0.24);
}

.site-mobile-nav__online {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-height: 44px;
	padding: 10px 14px;
	box-sizing: border-box;
	font-size: clamp(0.78rem, 2vw, 0.88rem);
	font-weight: 700;
	line-height: 1.15;
	color: #e8dcc8 !important;
	background: rgba(55, 44, 34, 0.95);
	border: 1px solid rgba(160, 130, 90, 0.6);
	border-radius: 8px;
	white-space: nowrap;
	cursor: default;
}

.site-mobile-nav__online strong,
.site-mobile-nav__online-value {
	font-weight: 700;
	color: inherit;
	font-size: inherit;
}

@media (max-width: 1024px) {
	.site-dock-inner--desktop {
		display: none !important;
	}

	.site-dock-inner--mobile {
		display: block !important;
	}

	.site-hero__logo {
		max-width: min(280px, 88vw);
		max-height: min(24vh, 170px);
	}

	.site-hero__actions {
		row-gap: 0.65rem;
	}
}

/* --- Нижний футер: в потоке, компактный полоска внизу экрана --- */
.site-footer {
	position: relative;
	z-index: 5;
	flex: 0 0 auto;
	background: #080605;
	border-top: 1px solid rgba(120, 90, 50, 0.35);
	min-height: 0;
	padding: 2px 12px;
}

.site-footer__inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 1;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0;
	margin-bottom: 0;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(40, 32, 26, 0.9);
	border: 1px solid rgba(160, 130, 90, 0.35);
	transition: transform 0.15s ease, background 0.15s ease;
}

.site-footer__social a:hover {
	transform: scale(1.06);
	background: rgba(70, 55, 40, 0.95);
	text-decoration: none;
}

.site-footer__social svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	color: #e0c9a0;
}

@media (max-width: 1024px) {
	.site-footer {
		/* не больше 2px, кроме safe-area у выреза/home indicator */
		padding-bottom: max(2px, env(safe-area-inset-bottom, 0px));
	}

	/* Регистрация: соцсети только на большом экране */
	body.site-landing.site-register-page .site-footer {
		display: none;
	}

	/* Лендинг: в мобильном «Меню разделов» без «Играть» и «Онлайн» (вход/регистрация — в герое) */
	body.site-landing .site-mobile-nav__link--play,
	body.site-landing .site-mobile-nav__online {
		display: none;
	}
}

/* Регистрация: футер соцсетей прижат к низу окна на ПК */
body.site-landing.site-register-page .site-footer {
	margin-top: auto;
	flex-shrink: 0;
}

/* --- Модальные окна авторизации / восстановления пароля: только лендинг; без PNG-спрайтов из v2 — чистый CSS --- */
body.site-landing .b-popup-shader {
	background: rgba(5, 4, 3, 0.78);
	opacity: 1;
	backdrop-filter: blur(5px);
}

body.site-landing #authPopup.b-common-popup,
body.site-landing #recoveryPasswordStep1.b-common-popup,
body.site-landing #errorForm.b-common-popup {
	width: min(520px, calc(100vw - 1.5rem)) !important;
	max-height: min(90vh, 640px);
	overflow: visible;
	box-sizing: border-box;
}

/* Для окна авторизации убираем верхний заголовок (раньше там было "Авторизация"). */
body.site-landing #authPopup .b-common-block__header {
	display: none !important;
}

body.site-landing .b-common-popup .b-common-block.b-common-block__auth {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-top: 0;
	border-radius: var(--landing-dock-radius);
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
	background: #0f0d0b !important;
	border: 1px solid var(--landing-dock-gold);
}

body.site-landing .b-common-popup .b-common-block__l,
body.site-landing .b-common-popup .b-common-block__r,
body.site-landing .b-common-popup .b-common-block__t,
body.site-landing .b-common-popup .b-common-block__t_2,
body.site-landing .b-common-popup .b-common-block__b,
body.site-landing .b-common-popup .b-common-block__tl,
body.site-landing .b-common-popup .b-common-block__tr,
body.site-landing .b-common-popup .b-common-block__bl,
body.site-landing .b-common-popup .b-common-block__br,
body.site-landing .b-common-popup .b-common-block__decor-tl,
body.site-landing .b-common-popup .b-common-block__decor-tr,
body.site-landing .b-common-popup .b-common-block__decor-bl,
body.site-landing .b-common-popup .b-common-block__decor-br,
body.site-landing .b-common-popup .b-common-block__decor-tl-2,
body.site-landing .b-common-popup .b-common-block__decor-tr-2,
body.site-landing .b-common-popup .b-common-block__decor-bl-2,
body.site-landing .b-common-popup .b-common-block__decor-br-2 {
	display: none !important;
}

body.site-landing .b-common-popup .b-common-block__header {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	z-index: 2;
}

body.site-landing .b-common-popup .b-common-block__header-inner {
	display: block !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 42px 12px 16px !important;
	background: linear-gradient(180deg, rgba(42, 32, 24, 0.98) 0%, rgba(22, 17, 13, 0.98) 100%) !important;
	border-bottom: 1px solid var(--landing-dock-gold);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #ffd89a !important;
	box-shadow: var(--landing-dock-inset-hi);
}

body.site-landing .b-common-popup .b-common-block__header-inner span {
	position: static !important;
	top: auto !important;
	color: inherit !important;
}

body.site-landing .b-common-popup .b-common-block__close {
	position: absolute;
	right: 2px;
	top: 2px;
	width: 32px;
	height: 32px;
	background: none !important;
	background-image: none !important;
	border: 1px solid rgba(255, 200, 140, 0.45);
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.site-landing .b-common-popup .b-common-block__close::before {
	content: "\00d7";
	font-size: 22px;
	line-height: 1;
	color: #fff;
	font-family: Arial, "Segoe UI", sans-serif;
	font-weight: 400;
}

body.site-landing .b-common-popup .b-common-block__cont {
	background: linear-gradient(180deg, #1a1612 0%, #100e0c 100%) !important;
	border: none !important;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-height: 0;
}

body.site-landing .b-common-popup .b-common-block__bgl,
body.site-landing .b-common-popup .b-common-block__bgr {
	background: none !important;
	min-height: 0 !important;
	padding: 16px 18px !important;
	width: auto !important;
}

body.site-landing .b-common-popup .b-common-form__table {
	width: 100%;
	border-collapse: collapse;
}

body.site-landing .b-common-popup .b-common-form__label {
	color: #e8dcc8;
	font-size: 0.9rem;
	padding-right: 8px;
}

body.site-landing .b-common-popup .b-common-form__table td {
	padding: 7px 4px;
	vertical-align: middle;
}

body.site-landing #authPopup .b-common-form__table td:first-child {
	width: 92px;
}

body.site-landing .b-common-popup .b-common-form__field,
body.site-landing .b-common-popup .b-common-form__field-inner {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 0;
	background: none !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.site-landing .b-common-popup input[type="text"],
body.site-landing .b-common-popup input[type="password"] {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #9f7a45;
	background: linear-gradient(180deg, rgba(26, 21, 16, 0.98) 0%, rgba(13, 10, 8, 0.98) 100%);
	color: #f6f0e3;
	font-family: inherit;
	font-size: 1.05rem;
	box-shadow: inset 0 1px 0 rgba(255, 229, 178, 0.06);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.site-landing .b-common-popup input[type="text"]:hover,
body.site-landing .b-common-popup input[type="password"]:hover {
	border-color: #b58a50;
	box-shadow: inset 0 1px 0 rgba(255, 229, 178, 0.09);
}

/* Убираем белые плашки автозаполнения и удерживаем единый стиль полей */
body.site-landing .b-common-popup input[type="text"]:-webkit-autofill,
body.site-landing .b-common-popup input[type="text"]:-webkit-autofill:hover,
body.site-landing .b-common-popup input[type="text"]:-webkit-autofill:focus,
body.site-landing .b-common-popup input[type="password"]:-webkit-autofill,
body.site-landing .b-common-popup input[type="password"]:-webkit-autofill:hover,
body.site-landing .b-common-popup input[type="password"]:-webkit-autofill:focus {
	-webkit-text-fill-color: #f2efe8 !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(10, 8, 6, 0.98) inset !important;
	box-shadow: 0 0 0 1000px rgba(10, 8, 6, 0.98) inset !important;
	border: 1px solid #9f7a45 !important;
	caret-color: #f2efe8;
}

body.site-landing .b-common-popup input[type="text"]:autofill,
body.site-landing .b-common-popup input[type="password"]:autofill {
	-webkit-text-fill-color: #f2efe8 !important;
	box-shadow: 0 0 0 1000px rgba(10, 8, 6, 0.98) inset !important;
}

body.site-landing .b-common-popup input[type="text"]:focus,
body.site-landing .b-common-popup input[type="password"]:focus {
	outline: none;
	border-color: #d0a15f;
	box-shadow: inset 0 1px 0 rgba(255, 235, 196, 0.1), 0 0 10px rgba(220, 172, 98, 0.12);
}

body.site-landing .b-news-footer.b-news-footer_soc {
	position: relative;
	background: rgba(35, 28, 22, 0.65) !important;
	border: 1px solid rgba(160, 130, 90, 0.35);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0 0 12px 0;
}

body.site-landing .b-news-footer > span {
	display: none !important;
}

body.site-landing .b-news-footer__cont {
	padding: 0 !important;
	text-align: center !important;
	background: none !important;
}

body.site-landing .b-news-footer__cont b {
	color: #ffd89a;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.site-landing .b-common-popup a.invert {
	color: #f0c878 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.site-landing .b-common-popup a.invert:hover {
	color: #ffe8b8 !important;
}

body.site-landing .b-common-popup .b-divider-4 {
	height: 0 !important;
	margin: 14px 0 !important;
	padding: 0 !important;
	border: none !important;
	border-top: 1px solid rgba(160, 130, 90, 0.35) !important;
	background: none !important;
}

body.site-landing .b-common-popup .text-center {
	color: #e8dcc8;
	font-size: 0.9rem;
}

body.site-landing .b-common-popup .b-button-red-5,
body.site-landing .b-common-popup .b-button-green-5 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 420px;
	min-height: 44px;
	padding: 10px 18px;
	margin: 4px 0;
	border: 1px solid rgba(220, 160, 80, 0.45);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%) !important;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none !important;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
}

body.site-landing .b-common-popup .b-button-red-5__inner {
	display: block;
	padding: 0 !important;
	background: none !important;
	color: #ffd89a !important;
	text-shadow: none !important;
	font-weight: inherit;
}

body.site-landing .b-common-popup .b-button-green-5 {
	margin: 6px 0 0 0;
}

body.site-landing .b-common-popup .b-button-red-5:hover,
body.site-landing .b-common-popup .b-button-green-5:hover {
	background: rgba(60, 48, 36, 0.85) !important;
	border-color: rgba(200, 160, 100, 0.55);
	color: #fff !important;
	text-decoration: none !important;
}

body.site-landing .b-common-popup .b-button-red-5:hover .b-button-red-5__inner,
body.site-landing .b-common-popup .b-button-green-5:hover .b-button-green-5__inner {
	color: #fff !important;
}

body.site-landing .b-common-popup .b-button-green-5__inner {
	display: block;
	padding: 0 !important;
	background: none !important;
	color: #ffd89a !important;
	text-shadow: none !important;
	font-weight: inherit;
}

body.site-landing #errorForm.b-common-popup .b-common-block__bgr {
	min-height: 3rem;
	color: #f2efe8;
	font-size: 0.95rem;
	line-height: 1.45;
}

body.site-landing .landing-popup-error {
	text-align: center;
}

body.site-landing .landing-popup-error__text {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	color: #f2efe8;
	font-size: 0.95rem;
	line-height: 1.45;
}

@media (max-width: 600px) {
	html.site-landing-html {
		--landing-dock-pad-x: 6px;
		--landing-dock-pad-y: 5px;
		--landing-dock-outer-pad-x: 6px;
	}

	.site-dock {
		justify-content: flex-start;
	}

	.site-btn {
		width: 100%;
		min-width: unset;
	}

	/* --- Модалки: вход, напоминание пароля, ошибка (телефоны) --- */
	body.site-landing #authPopup.b-common-popup,
	body.site-landing #recoveryPasswordStep1.b-common-popup,
	body.site-landing #errorForm.b-common-popup {
		width: calc(
			100vw - max(12px, env(safe-area-inset-left, 0px)) - max(12px, env(safe-area-inset-right, 0px))
		) !important;
		max-width: none !important;
		max-height: min(88vh, 88dvh) !important;
		left: 50% !important;
		top: 50% !important;
		margin-left: 0 !important;
		margin-top: 0 !important;
		transform: translate(-50%, -50%) !important;
		box-sizing: border-box !important;
	}

	body.site-landing .b-common-popup .b-common-block.b-common-block__auth {
		max-height: min(88vh, 88dvh);
		overflow: hidden;
	}

	body.site-landing .b-common-popup .b-common-block__cont {
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		min-height: 0;
		flex: 1 1 auto;
	}

	body.site-landing .b-common-popup .b-common-block__bgl,
	body.site-landing .b-common-popup .b-common-block__bgr {
		padding: 12px max(12px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px))
			max(12px, env(safe-area-inset-left, 0px)) !important;
	}

	body.site-landing .b-common-popup .b-common-block__close {
		right: max(2px, env(safe-area-inset-right, 0px)) !important;
		top: max(2px, env(safe-area-inset-top, 0px)) !important;
		width: 28px;
		height: 28px;
		touch-action: manipulation;
	}

	body.site-landing .b-common-popup .b-common-block__close::before {
		font-size: 16px;
	}

	body.site-landing .b-common-popup .b-common-block__header-inner {
		padding: 10px max(34px, calc(env(safe-area-inset-right, 0px) + 24px)) 10px 10px !important;
		font-size: 0.88rem;
	}

	body.site-landing .b-common-popup .b-common-form__table,
	body.site-landing .b-common-popup .b-common-form__table tbody {
		display: block;
		width: 100%;
	}

	body.site-landing .b-common-popup .b-common-form__table tr {
		display: block;
		width: 100%;
		margin-bottom: 10px;
	}

	body.site-landing .b-common-popup .b-common-form__table tr:last-child {
		margin-bottom: 0;
	}

	body.site-landing .b-common-popup .b-common-form__table td {
		display: block;
		width: 100% !important;
		padding: 4px 0 !important;
		box-sizing: border-box;
		text-align: left !important;
	}

	body.site-landing #authPopup .b-common-form__table td:first-child {
		width: 100% !important;
	}

	/* Строки «Я забыл пароль»: скрываем пустую левую ячейку */
	body.site-landing .b-common-popup .b-common-form__table tr:has(> td:nth-child(2)) > td:first-child:not(:has(.b-common-form__label)) {
		display: none !important;
	}

	body.site-landing .b-common-popup .b-common-form__label {
		display: block;
		padding-right: 0;
		margin-bottom: 4px;
		font-size: 0.88rem;
	}

	body.site-landing .b-common-popup input[type="text"],
	body.site-landing .b-common-popup input[type="password"] {
		min-height: 48px !important;
		padding: 12px 14px !important;
		font-size: 16px !important;
	}

	/* Лендинг: подписи E-mail / Пароль только внутри полей (placeholder) */
	body.site-landing #authPopup .b-common-form__table tr:has(#userEmail) > td:first-child,
	body.site-landing #authPopup .b-common-form__table tr:has(#userPassword) > td:first-child {
		display: none !important;
	}

	body.site-landing #authPopup #userEmail::placeholder,
	body.site-landing #authPopup #userPassword::placeholder {
		color: rgba(232, 220, 200, 0.55);
		opacity: 1;
	}

	/* «Напоминание пароля»: подпись только как placeholder */
	body.site-landing #recoveryPasswordStep1 .b-common-form__table tr:has(#sendPasswordEmail) > td:first-child {
		display: none !important;
	}

	body.site-landing #recoveryPasswordStep1 #sendPasswordEmail::placeholder {
		color: rgba(232, 220, 200, 0.55);
		opacity: 1;
	}

	body.site-landing .b-common-popup .b-button-red-5,
	body.site-landing .b-common-popup .b-button-green-5 {
		max-width: none !important;
		width: 100%;
		min-height: 48px;
		padding: 12px 16px;
		font-size: 0.95rem;
		touch-action: manipulation;
	}

	body.site-landing .b-news-footer.b-news-footer_soc {
		padding: 10px;
		margin-bottom: 10px;
	}

	body.site-landing .b-news-footer__cont b {
		font-size: 0.92rem;
		line-height: 1.3;
	}

	body.site-landing .b-common-popup a.invert {
		display: inline-block;
		padding: 10px 0;
		min-height: 44px;
		line-height: 1.35;
	}

	/* Вход: «Я забыл пароль» и «Восстановление доступа» — без лишней высоты touch-target */
	body.site-landing #authPopup .b-common-form__table a.invert {
		padding: 2px 0;
		min-height: 0;
		line-height: 1.35;
	}

	body.site-landing #authPopup .b-common-form__table tr:has(a.invert) {
		margin-bottom: 4px;
	}

	body.site-landing #authPopup .b-common-form__table tr:has(.text-center) {
		margin-top: 10px;
	}

	body.site-landing .b-common-popup .b-divider-4 {
		margin: 10px 0 !important;
	}

	body.site-landing #errorForm.b-common-popup .landing-popup-error__text {
		font-size: 0.9rem;
		padding: 0 4px;
	}

	body.site-landing #errorForm.b-common-popup .b-button-red-5 {
		max-width: none !important;
	}
}

/* Лендинг на широком экране: текст подписей слева — placeholder в поле скрыт (есть в разметке для телефона) */
@media (min-width: 601px) {
	body.site-landing #authPopup #userEmail::placeholder,
	body.site-landing #authPopup #userPassword::placeholder,
	body.site-landing #recoveryPasswordStep1 #sendPasswordEmail::placeholder {
		color: transparent !important;
		opacity: 1 !important;
	}
}

/* Очень узкие экраны */
@media (max-width: 380px) {
	body.site-landing #authPopup.b-common-popup,
	body.site-landing #recoveryPasswordStep1.b-common-popup,
	body.site-landing #errorForm.b-common-popup {
		width: calc(
			100vw - max(8px, env(safe-area-inset-left, 0px)) - max(8px, env(safe-area-inset-right, 0px))
		) !important;
	}

	body.site-landing .b-common-popup .b-common-block__bgl,
	body.site-landing .b-common-popup .b-common-block__bgr {
		padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
	}
}

/* --- Страница register.php: шапка/футер как у лендинга, форма в герое — страница может быть выше экрана --- */
html.site-register-html {
	overflow-x: hidden;
	overflow-y: auto;
	height: auto;
	min-height: 100%;
	/* Общая ширина блока регистрации (герой + карточка); было ~1120px */
	--site-register-card-max: 885px;
	/* Размер сцены регистрации (синхронно с &width= / &height= в register.php) */
	--reg-canvas-width: 485px;
	--reg-canvas-height: 530px;
}

body.site-landing.site-register-page {
	overflow-x: hidden;
	overflow-y: visible;
	height: auto;
	min-height: 100vh;
	min-height: 100dvh;
	max-height: none;
}

/* Герой на главном лендинге тянется на весь экран (flex:1). На регистрации контент сам по высоте — иначе под формой остаётся чёрная «дыра». Блок соцсетей внизу — только на ПК; на мобильных скрыт. */
body.site-register-page .site-hero.site-hero--register {
	flex: 0 1 auto !important;
	min-height: 0 !important;
	overflow-x: hidden;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	justify-content: flex-start;
	align-items: stretch;
	padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
	padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

.site-hero--register .site-hero__scrim {
	background: linear-gradient(
		180deg,
		rgba(6, 4, 3, 0.55) 0%,
		rgba(10, 7, 5, 0.78) 50%,
		rgba(7, 5, 4, 0.9) 100%
	);
}

.site-hero__content--register {
	max-width: min(var(--site-register-card-max, 885px), 100%);
	width: 100%;
	align-items: center;
	justify-content: center;
	align-self: center;
	text-align: left;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
	flex: 0 1 auto;
	margin-left: auto;
	margin-right: auto;
}

/* Не центрировать карточку по вертикали внутри колонки героя — убирает «полотно» под блоком */
body.site-register-page .site-hero__content.site-hero__content--register {
	justify-content: flex-start !important;
	align-items: stretch !important;
}

body.site-register-page .site-hero__content--register .site-register-panel {
	text-shadow: none;
	width: 100%;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
}

.site-register-panel {
	width: 100%;
	max-width: var(--site-register-card-max, 885px);
	margin-left: auto;
	margin-right: auto;
}

/* Карточка регистрации — тот же визуальный язык, что у #authPopup (тёмный блок, золотая кайма, поля как в модалке) */
body.site-register-page .site-register-panel__form.site-register-card.new-reg-main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100% !important;
	max-width: min(var(--site-register-card-max, 885px), calc(100vw - 2 * var(--landing-dock-outer-pad-x)));
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	border-radius: var(--landing-dock-radius);
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
	background: #0f0d0b !important;
	border: 1px solid var(--landing-dock-gold);
	box-sizing: border-box;
}

body.site-register-page .site-register-card__header {
	padding: 12px 42px 12px 16px;
	background: linear-gradient(180deg, rgba(42, 32, 24, 0.98) 0%, rgba(22, 17, 13, 0.98) 100%);
	border-bottom: 1px solid var(--landing-dock-gold);
	text-align: center;
	box-shadow: var(--landing-dock-inset-hi);
}

body.site-register-page .site-register-card__title {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #ffd89a;
	text-shadow: none;
}

/*
 * Ободок .new-reg-flash: ~2px inset + border вокруг сцены (ширина --reg-canvas-width, высота --reg-canvas-height).
 * Не задаём height:100%/overflow на дочерние узлы Pixi — иначе блок регистрации пропадает.
 */
body.site-register-page .new-reg-flash {
	float: none !important;
	margin: 0 !important;
	margin-right: auto !important;
	padding: 2px;
	width: fit-content;
	max-width: min(100%, 495px);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid rgba(160, 130, 90, 0.35);
	background: rgba(0, 0, 0, 0.28);
	box-shadow: inset 0 1px 0 rgba(255, 229, 178, 0.05);
	display: block;
	box-sizing: border-box;
}

body.site-register-page #canvasReg {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 0;
}

body.site-register-page #canvasReg canvas {
	display: block;
	width: var(--reg-canvas-width, 485px);
	height: var(--reg-canvas-height, 530px);
	max-width: 100%;
	margin: 0 !important;
	padding: 0;
	box-sizing: border-box;
}

body.site-register-page .site-register-card__canvas-col {
	float: none !important;
	max-width: 100%;
	min-width: 0;
	width: auto !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

body.site-register-page .site-register-card__fields-col {
	float: none !important;
	min-width: 0;
	max-width: 420px;
	width: 100%;
	display: block;
}

body.site-register-page .new-reg-form {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.site-register-page .new-reg-form table {
	display: table !important;
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

body.site-register-page .new-reg-form tr.site-register-card__field-row > td {
	padding: 4px 0 !important;
	vertical-align: top;
	width: 100%;
}

body.site-register-page .new-reg-form td.label {
	width: 35%;
	max-width: 160px;
	padding: 6px 12px 6px 0 !important;
	vertical-align: middle;
	font-family: inherit !important;
	font-size: 0.9rem !important;
	line-height: 1.3;
	color: #e8dcc8 !important;
}

body.site-register-page .new-reg-form td.label.label-red {
	color: #ffb088 !important;
}

body.site-register-page .new-reg-form td:not(.label) {
	vertical-align: middle;
	padding: 5px 0 !important;
}

body.site-register-page .new-reg-form .input-wrapper {
	position: relative !important;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	background: none !important;
	background-image: none !important;
	box-sizing: border-box;
	display: block;
	overflow: visible !important;
}

body.site-register-page .new-reg-form .input-wrapper input {
	display: block;
	width: 100% !important;
	margin: 0 !important;
	padding: 9px 12px !important;
	min-height: 40px;
	box-sizing: border-box;
	border-radius: 8px;
	border: 1px solid #9f7a45;
	background: linear-gradient(180deg, rgba(26, 21, 16, 0.98) 0%, rgba(13, 10, 8, 0.98) 100%);
	color: #f6f0e3;
	font-family: inherit !important;
	font-size: 1.05rem !important;
	box-shadow: inset 0 1px 0 rgba(255, 229, 178, 0.06);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.site-register-page .new-reg-form .input-wrapper input::placeholder {
	color: rgba(232, 220, 200, 0.55);
	opacity: 1;
}

body.site-register-page .new-reg-form .input-wrapper input:hover {
	border-color: #b58a50;
	box-shadow: inset 0 1px 0 rgba(255, 229, 178, 0.09);
}

body.site-register-page .new-reg-form .input-wrapper input:focus {
	outline: none;
	border-color: #d4a560;
	box-shadow: inset 0 1px 0 rgba(255, 229, 178, 0.12), 0 0 0 2px rgba(212, 165, 96, 0.2);
}

body.site-register-page .new-reg-form .input-wrapper input:-webkit-autofill,
body.site-register-page .new-reg-form .input-wrapper input:-webkit-autofill:hover,
body.site-register-page .new-reg-form .input-wrapper input:-webkit-autofill:focus {
	box-shadow: inset 0 0 0 48px rgba(26, 21, 16, 0.96) !important;
	-webkit-text-fill-color: #f6f0e3 !important;
	border-color: #9f7a45 !important;
}

body.site-register-page .new-reg-form .input-wrapper--password input {
	padding-right: 44px !important;
}

body.site-register-page .site-register-card__pw-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(200, 170, 120, 0.85);
	cursor: pointer;
	box-sizing: border-box;
	transition: color 0.15s ease, background 0.15s ease;
}

body.site-register-page .site-register-card__pw-toggle:hover {
	color: #f0d9a8;
	background: rgba(255, 220, 160, 0.08);
}

body.site-register-page .site-register-card__pw-toggle:focus {
	outline: none;
}

body.site-register-page .site-register-card__pw-toggle:focus-visible {
	box-shadow: 0 0 0 2px rgba(212, 165, 96, 0.45);
	color: #ffd89a;
}

body.site-register-page .site-register-card__pw-toggle__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

body.site-register-page .site-register-card__pw-toggle__icon svg {
	display: block;
}

body.site-register-page .site-register-card__pw-toggle__icon--eye-off {
	display: none;
}

body.site-register-page .site-register-card__pw-toggle--revealed .site-register-card__pw-toggle__icon--eye {
	display: none;
}

body.site-register-page .site-register-card__pw-toggle--revealed .site-register-card__pw-toggle__icon--eye-off {
	display: flex;
}

body.site-register-page .new-reg-form .error {
	font-family: inherit !important;
	font-size: 0.85rem !important;
	line-height: 1.35;
	color: #ff9a8c !important;
	margin-bottom: 6px;
	min-height: 0;
}

body.site-register-page .new-reg-form .error:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}

body.site-register-page .new-reg-form td.description {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	font-family: inherit !important;
	font-size: 0.82rem !important;
	line-height: 1.45;
	color: #b5a898 !important;
}

body.site-register-page .new-reg-form td.description p {
	margin: 0;
}

body.site-register-page .new-reg-form .nick-examples {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	max-width: 100%;
	margin-top: 10px;
	padding: 10px 12px !important;
	font-family: inherit !important;
	font-size: 0.85rem !important;
	line-height: 1.45;
	color: #e8dcc8 !important;
	background: rgba(40, 32, 24, 0.65) !important;
	border: 1px solid rgba(160, 130, 90, 0.35);
	border-radius: 8px;
	box-sizing: border-box;
}

/* Пустой блок подсказок по нику до первого ответа AJAX — не рисуем «фантомную» рамку */
body.site-register-page .new-reg-form .nick-examples:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	min-height: 0 !important;
	background: none !important;
}

body.site-register-page .new-reg-form .nick-examples .tbl-reg_error,
body.site-register-page .new-reg-form .nick-examples b {
	color: #ffb8a8 !important;
	font-weight: 700;
}

body.site-register-page .new-reg-form .nick-examples a.change_nick {
	color: #f0c878 !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.site-register-page .site-register-card__sep {
	height: 0;
	margin: 2px 0;
	border: none;
	border-top: 1px solid rgba(160, 130, 90, 0.35);
	background: none !important;
}

body.site-register-page .site-register-card__sep-row td {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}

body.site-register-page .site-register-card__refer-hint {
	font-size: 0.82rem !important;
	line-height: 1.4;
	color: #c9b8a0 !important;
	font-family: inherit !important;
}

body.site-register-page .site-register-card__refer-hint p {
	margin: 0.35em 0 0;
}

body.site-register-page .new-reg-agreement {
	clear: both;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	flex: none;
	padding: 8px 12px 10px !important;
	box-sizing: border-box;
	font-family: inherit !important;
	font-size: 0.85rem !important;
	line-height: 1.45;
	color: #b8a994 !important;
	text-align: center;
	border-top: 1px solid rgba(160, 130, 90, 0.28);
	background: rgba(0, 0, 0, 0.15);
}

body.site-register-page .new-reg-agreement a,
body.site-register-page .new-reg-agreement .tbl-mn_news-nextlink {
	color: #f0c878 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.site-register-page .new-reg-agreement a:hover {
	color: #ffe8b8 !important;
}

body.site-register-page .new-reg-agreement__intro {
	margin: 0 0 4px;
	padding: 0;
}

body.site-register-page .new-reg-agreement__list {
	list-style: disc;
	margin: 2px auto 0;
	padding: 0 0 0 1.35em;
	max-width: 22em;
	text-align: left;
	box-sizing: border-box;
}

body.site-register-page .new-reg-agreement__list li {
	margin: 0.2em 0;
	padding: 0;
	text-align: left;
}

body.site-register-page .new-reg-agreement__list li:last-child {
	margin-bottom: 0;
}

body.site-register-page .new-reg-agreement__error {
	margin: 6px 0 0 !important;
	text-align: center;
}

body.site-register-page .new-reg-agreement__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 2px 0 0;
	padding: 0 4px;
	text-align: center;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #d4c4a8 !important;
	cursor: pointer;
	box-sizing: border-box;
}

body.site-register-page .new-reg-agreement__check-text {
	flex: 0 1 auto;
	min-width: 0;
}

body.site-register-page .new-reg-agreement__check input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #c9a060;
	cursor: pointer;
	vertical-align: middle;
}

body.site-register-page .site-register-card__auto-pass {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 4px;
	padding: 8px 10px;
	max-width: 100%;
	box-sizing: border-box;
	text-align: left;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #c9b8a0 !important;
	cursor: pointer;
	border-radius: 6px;
	border: 1px solid rgba(160, 130, 90, 0.22);
	background: rgba(40, 32, 24, 0.35);
}

body.site-register-page .site-register-card__auto-pass:hover {
	border-color: rgba(200, 160, 100, 0.35);
}

body.site-register-page .site-register-card__auto-pass input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #c9a060;
	cursor: pointer;
}

body.site-register-page .site-register-card__auto-pass-text {
	flex: 1;
	min-width: 0;
}

body.site-register-page .site-register-card__footer.new-reg-foot {
	position: relative;
	height: auto !important;
	min-height: 0 !important;
	padding: 16px 18px 20px !important;
	margin: 0 !important;
	background: none !important;
	background-image: none !important;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	border-top: 1px solid rgba(160, 130, 90, 0.25);
}

body.site-register-page .site-register-card__footer .site-register-card__submit.b-button-red-5,
body.site-register-page .site-register-card__footer .b-button-red-5 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 420px;
	min-height: 48px;
	padding: 12px 20px;
	margin: 0;
	border: 1px solid rgba(220, 160, 80, 0.45);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%) !important;
	box-shadow: none;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	box-sizing: border-box;
}

body.site-register-page .site-register-card__footer .b-button-red-5__inner {
	display: block;
	padding: 0 !important;
	background: none !important;
	color: #ffd89a !important;
	text-shadow: none !important;
	font-weight: inherit;
}

body.site-register-page .site-register-card__footer .b-button-red-5:hover {
	background: rgba(60, 48, 36, 0.92) !important;
	border-color: rgba(200, 160, 100, 0.55);
}

body.site-register-page .site-register-card__footer .b-button-red-5:hover .b-button-red-5__inner {
	color: #fff !important;
}

body.site-register-page .site-register-card__footer .b-button-red-5:disabled,
body.site-register-page .site-register-card__footer .b-button-red-5[disabled] {
	opacity: 1;
	pointer-events: none;
	cursor: not-allowed !important;
	background: linear-gradient(180deg, #4a4a4a 0%, #353535 100%) !important;
	border-color: rgba(120, 120, 120, 0.45) !important;
	box-shadow: none;
	filter: grayscale(0.35);
}

body.site-register-page .site-register-card__footer .b-button-red-5:disabled .b-button-red-5__inner,
body.site-register-page .site-register-card__footer .b-button-red-5[disabled] .b-button-red-5__inner {
	color: #9a9a9a !important;
}

body.site-register-page .site-register-card__footer .b-button-red-5:disabled:hover,
body.site-register-page .site-register-card__footer .b-button-red-5[disabled]:hover {
	background: linear-gradient(180deg, #4a4a4a 0%, #353535 100%) !important;
	border-color: rgba(120, 120, 120, 0.45) !important;
}

body.site-register-page .site-register-card__footer .b-button-red-5:disabled:hover .b-button-red-5__inner,
body.site-register-page .site-register-card__footer .b-button-red-5[disabled]:hover .b-button-red-5__inner {
	color: #9a9a9a !important;
}

/*
 * Регистрация: раньше тянули face.css + inline #register-tight-layout. Всё в одном месте;
 * префикс html.site-register-html — выше специфичность, чем у мусорных float/width из прочих стилей.
 * Классы tbl-reg_* вешает JS на #nick_examples.
 */
html.site-register-html body.site-register-page form.site-register-card.new-reg-main {
	width: 100%;
	max-width: min(var(--site-register-card-max, 885px), calc(100vw - 2 * var(--landing-dock-outer-pad-x, 10px)));
	min-width: 0;
}

html.site-register-html body.site-register-page .site-register-card__body.new-reg-sides {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	background-image: none !important;
	min-height: 0 !important;
}

/*
 * register.php — порядок внутри карточки:
 * .site-register-card__stage: подложка; колонки | согласия; без старых main-bg/clearfix.
 * .site-register-card__split: grid «канвас слева | поля справа».
 * .site-register-card__agreement: на всю ширину под колонками; кнопка — в .site-register-card__footer вне stage.
 */
html.site-register-html body.site-register-page .site-register-card__stage {
	padding: 4px 6px !important;
	background: linear-gradient(180deg, #1a1612 0%, #100e0c 100%) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	row-gap: 0 !important;
	float: none !important;
	width: 100% !important;
	min-height: 0 !important;
	box-sizing: border-box !important;
}

html.site-register-html body.site-register-page .site-register-card__split {
	display: grid !important;
	grid-template-columns: minmax(0, max-content) minmax(200px, min(420px, 1fr)) !important;
	grid-template-rows: auto !important;
	align-items: start !important;
	justify-items: stretch !important;
	justify-content: start !important;
	column-gap: 12px !important;
	row-gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

/*
 * Сброс глобальных «чужих» правил (AdminLTE .left-side и т.п. не используем).
 */
body.site-register-page .site-register-card__canvas-col,
body.site-register-page .site-register-card__fields-col {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	z-index: auto !important;
	padding-top: 0 !important;
}

html.site-register-html body.site-register-page .site-register-card__canvas-col,
html.site-register-html body.site-register-page .site-register-card__fields-col {
	float: none !important;
	position: relative !important;
}

html.site-register-html body.site-register-page .site-register-card__split .site-register-card__canvas-col {
	grid-column: 1 !important;
	grid-row: 1 !important;
	justify-self: start !important;
	align-self: start !important;
	width: auto !important;
	max-width: min(100%, 501px) !important;
	min-width: 0 !important;
}

html.site-register-html body.site-register-page .site-register-card__split .site-register-card__fields-col {
	grid-column: 2 !important;
	grid-row: 1 !important;
	justify-self: stretch !important;
	align-self: start !important;
	min-width: 0 !important;
	max-width: min(420px, 100%) !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

html.site-register-html body.site-register-page .new-reg-flash {
	margin-left: 0 !important;
	margin-right: auto !important;
}

html.site-register-html body.site-register-page .new-reg-form {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.site-register-page .tbl-reg_error {
	color: #f05252 !important;
	font-weight: 600;
}

body.site-register-page #nick_examples.tbl-reg_bg-light,
body.site-register-page .nick-examples.tbl-reg_bg-light {
	background-color: rgba(55, 46, 38, 0.92);
	background-image: none !important;
	font-family: inherit !important;
	font-size: 0.82rem !important;
	line-height: 1.35;
	padding: 8px 10px !important;
	border-radius: 6px;
	color: #e8dcc8 !important;
}

body.site-register-page #nick_examples.tbl-reg_brd-all,
body.site-register-page .nick-examples.tbl-reg_brd-all {
	border: 1px solid rgba(200, 160, 100, 0.42) !important;
	box-sizing: border-box;
}

body.site-register-page #nick_examples .change_nick {
	color: #f0c878 !important;
	text-decoration: underline;
}

/* Узкий экран — одна колонка; порог ниже, чтобы планшет/узкий десктоп оставались в два столбца */
@media (max-width: 600px) {
	html.site-register-html body.site-register-page .site-register-card__stage {
		row-gap: 10px !important;
		padding: 8px 10px !important;
	}

	html.site-register-html body.site-register-page .site-register-card__split {
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: 0 !important;
		row-gap: 12px !important;
		width: 100% !important;
	}

	html.site-register-html body.site-register-page .site-register-card__split .site-register-card__canvas-col {
		grid-column: 1 !important;
		grid-row: 1 !important;
		justify-self: center !important;
		max-width: 100% !important;
	}

	body.site-register-page .site-register-card__canvas-col {
		align-items: center !important;
	}

	html.site-register-html body.site-register-page .site-register-card__split .site-register-card__fields-col {
		grid-column: 1 !important;
		grid-row: 2 !important;
		max-width: 100% !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	html.site-register-html body.site-register-page .new-reg-flash {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	body.site-register-page .new-reg-flash {
		margin-left: auto !important;
		margin-right: auto !important;
		min-height: 0;
		min-width: 0;
		width: 100%;
		max-width: 100%;
		padding: 2px;
	}

	body.site-register-page #canvasReg canvas {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 485 / 530;
	}
}

@media (max-width: 520px) {
	body.site-register-page .new-reg-form td.label {
		width: 42% !important;
		max-width: none;
		font-size: 0.82rem !important;
		padding-right: 8px !important;
	}

	body.site-register-page .new-reg-form .input-wrapper input {
		font-size: 16px !important;
	}
}

/* --- Форум: лендинг-стиль (чистая разметка .forum-nev-*) --- */
body.forum-nev-page .site-hero {
	padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

body.forum-nev-page .site-hero__scrim {
	background: linear-gradient(180deg, rgba(6, 4, 3, 0.66) 0%, rgba(9, 6, 4, 0.82) 52%, rgba(7, 5, 4, 0.92) 100%);
}

body.forum-nev-page .site-hero__content {
	align-items: stretch;
	justify-content: flex-start;
	padding: 0;
}

body.forum-nev-page .forum-nev-hero-content {
	width: 100%;
	max-width: 1220px;
	margin-inline: auto;
	box-sizing: border-box;
}

body.forum-nev-page .forum-nev-shell {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.forum-nev-page .forum-nev-layout {
	display: grid;
	grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

body.forum-nev-page .forum-nev-sidebar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

body.forum-nev-page .forum-nev-main {
	min-width: 0;
}

body.forum-nev-page .forum-nev-panel {
	background: linear-gradient(180deg, rgba(30, 22, 16, 0.9) 0%, rgba(14, 11, 8, 0.92) 100%);
	border: 1px solid rgba(200, 160, 90, 0.42);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

body.forum-nev-page .forum-nev-panel__title {
	margin: 0;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(200, 160, 90, 0.28);
	font-size: 1rem;
	font-weight: 700;
	color: #f2d8a2;
	line-height: 1.3;
}

/* Шапка «Темы» при открытой теме: кнопка «к началу» слева — только если есть прокрутка блока темы (см. JS) */
body.forum-nev-page .forum-nev-panel__head--topic {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(200, 160, 90, 0.28);
}

body.forum-nev-page .forum-nev-panel__head--topic .forum-nev-panel__title--in-head {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border-bottom: none;
	text-align: center;
}

body.forum-nev-page .forum-nev-scroll-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 10px;
	margin: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	box-sizing: border-box;
}

body.forum-nev-page .forum-nev-scroll-top[hidden] {
	display: none !important;
}

body.forum-nev-page .forum-nev-scroll-top__ico {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
}

body.site-landing.forum-nev-page .forum-nev-scroll-top.site-btn--secondary,
body.site-landing.forum-nev-page .forum-nev-scroll-top.site-btn--secondary:hover {
	color: #ffe8c4 !important;
}

body.forum-nev-page .forum-nev-categories {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}

body.forum-nev-page .forum-nev-cat {
	display: inline-flex;
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	align-items: center;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 8px;
	text-decoration: none !important;
	background: linear-gradient(180deg, rgba(90, 55, 35, 0.9) 0%, rgba(45, 32, 22, 0.95) 100%);
	border: 1px solid rgba(220, 160, 80, 0.42);
	color: #ffd89a !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.forum-nev-page .forum-nev-cat:hover {
	border-color: rgba(240, 195, 120, 0.55);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.forum-nev-page .forum-nev-cat--active {
	color: #fff !important;
	border-color: rgba(240, 185, 100, 0.55);
	background: linear-gradient(180deg, rgba(110, 72, 48, 0.95) 0%, rgba(55, 38, 26, 0.98) 100%);
}

body.forum-nev-page .forum-nev-panel__body {
	padding: 12px;
	min-width: 0;
}

/*
 * Просмотр одной темы: внутренняя прокрутка справа, только если контент выше окна.
 * Высота дорожки скроллбара = высоте видимой области; «ползунок» — как в ОС (доля контента).
 */
body.forum-nev-page.forum-nev-page--topic-view {
	--forum-topic-scroll-max: calc(100vh - 11rem);
	--forum-topic-scroll-max: calc(100dvh - 11rem);
}

@media (max-width: 1024px) {
	body.forum-nev-page.forum-nev-page--topic-view {
		--forum-topic-scroll-max: calc(100vh - 13rem);
		--forum-topic-scroll-max: calc(100dvh - 13rem);
	}
}

body.forum-nev-page.forum-nev-page--topic-view .forum-nev-topic-scroll {
	max-height: var(--forum-topic-scroll-max);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	min-width: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(210, 170, 100, 0.55) rgba(18, 12, 9, 0.55);
}

body.forum-nev-page.forum-nev-page--topic-view .forum-nev-topic-scroll:focus-visible {
	outline: 2px solid rgba(240, 190, 110, 0.65);
	outline-offset: 2px;
}

body.forum-nev-page.forum-nev-page--topic-view .forum-nev-topic-scroll::-webkit-scrollbar {
	width: 10px;
}

body.forum-nev-page.forum-nev-page--topic-view .forum-nev-topic-scroll::-webkit-scrollbar-track {
	background: rgba(18, 12, 9, 0.45);
	border-radius: 8px;
	margin: 4px 0;
}

body.forum-nev-page.forum-nev-page--topic-view .forum-nev-topic-scroll::-webkit-scrollbar-thumb {
	background: linear-gradient(
		180deg,
		rgba(210, 175, 110, 0.55) 0%,
		rgba(165, 125, 65, 0.65) 100%
	);
	border-radius: 8px;
	border: 2px solid rgba(12, 9, 7, 0.35);
}

body.forum-nev-page.forum-nev-page--topic-view .forum-nev-topic-scroll::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(
		180deg,
		rgba(230, 195, 130, 0.65) 0%,
		rgba(185, 140, 75, 0.75) 100%
	);
}

/* Форум: формы ответа / новой темы / редактирования */
body.forum-nev-page .forum-nev-form {
	margin-top: 12px;
	text-align: left;
}

body.forum-nev-page .forum-nev-form--boxed {
	background: linear-gradient(180deg, rgba(26, 19, 14, 0.92) 0%, rgba(12, 10, 8, 0.96) 100%);
	border: 1px solid rgba(200, 160, 90, 0.34);
	border-radius: 10px;
	padding: 12px 14px 14px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

body.forum-nev-page .forum-nev-form__heading {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(200, 160, 90, 0.22);
	font-size: 1.05rem;
	font-weight: 700;
	color: #f2d8a2;
	text-align: left;
}

body.forum-nev-page .forum-nev-form__row {
	display: grid;
	grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
	gap: 10px 14px;
	align-items: start;
	margin-bottom: 10px;
}

body.forum-nev-page .forum-nev-form__row--full {
	grid-template-columns: 1fr;
}

/* Название темы / текст сообщения: плейсхолдер вместо подписи, поле на всю ширину */
body.forum-nev-page .forum-nev-form__row--topic-title,
body.forum-nev-page .forum-nev-form__row--message {
	display: block;
	margin-bottom: 10px;
}

body.forum-nev-page .forum-nev-form__row--topic-title .forum-nev-form__control,
body.forum-nev-page .forum-nev-form__row--message .forum-nev-form__control {
	width: 100%;
	min-width: 0;
}

body.forum-nev-page .forum-nev-sr-only {
	position: absolute !important;
	left: -10000px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

@media (max-width: 560px) {
	body.forum-nev-page .forum-nev-form__row:not(.forum-nev-form__row--full):not(.forum-nev-form__row--message):not(.forum-nev-form__row--topic-title) {
		grid-template-columns: 1fr;
	}
}

body.forum-nev-page .forum-nev-form__label {
	color: rgba(245, 220, 180, 0.9);
	font-size: 0.92rem;
	padding-top: 0;
	font-weight: 600;
}

body.forum-nev-page .forum-nev-form__control {
	min-width: 0;
}

body.forum-nev-page .forum-nev-form__input.gui-input,
body.forum-nev-page .forum-nev-form__textarea.gui-textarea {
	width: 100%;
	box-sizing: border-box;
	border-radius: 8px;
	border: 1px solid rgba(200, 160, 90, 0.35) !important;
	background: rgba(8, 6, 5, 0.75) !important;
	color: #f5e6cc !important;
	font-family: inherit;
	font-size: 0.95rem;
	padding: 10px 12px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.forum-nev-page .forum-nev-form__textarea.gui-textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.45;
}

body.forum-nev-page .forum-nev-form__input.gui-input:focus,
body.forum-nev-page .forum-nev-form__textarea.gui-textarea:focus {
	border-color: rgba(240, 185, 100, 0.55) !important;
	box-shadow: 0 0 0 2px rgba(200, 140, 60, 0.2);
}

body.forum-nev-page .forum-nev-form__input.gui-input::placeholder,
body.forum-nev-page .forum-nev-form__textarea.gui-textarea::placeholder {
	color: rgba(200, 175, 140, 0.55);
	opacity: 1;
}

/* gui_styled оборачивает textarea в .textarea-styled и рисует «старую» рамку из PNG — убираем */
body.forum-nev-page .forum-nev-form .textarea-styled {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	position: relative;
	background: transparent !important;
	box-sizing: border-box;
}

body.forum-nev-page .forum-nev-form .textarea-styled [class*="textarea-styled__"] {
	display: none !important;
}

body.forum-nev-page .forum-nev-form .textarea-styled textarea {
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

body.forum-nev-page .forum-nev-form .textarea-styled.hover textarea,
body.forum-nev-page .forum-nev-form .textarea-styled.focus textarea {
	background: rgba(10, 8, 6, 0.92) !important;
}

/* То же для поля названия темы (.ff__input-wrap из gui/input.png) */
body.forum-nev-page .forum-nev-form .ff__input-wrap,
body.forum-nev-page .forum-nev-form .ff__input-wrap-inner {
	background: none !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: unset !important;
}

body.forum-nev-page .forum-nev-form .ff__input-wrap-input {
	height: auto !important;
	margin: 0 !important;
	position: relative !important;
}

body.forum-nev-page .forum-nev-form .ff__input-wrap input {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	box-sizing: border-box !important;
	height: auto !important;
	min-height: 44px !important;
	padding: 10px 12px !important;
	font: inherit !important;
	font-size: 0.95rem !important;
	color: #f5e6cc !important;
	border-radius: 8px !important;
	border: 1px solid rgba(200, 160, 90, 0.35) !important;
	background: rgba(8, 6, 5, 0.75) !important;
}

body.forum-nev-page .forum-nev-form .ff__input-wrap.hover,
body.forum-nev-page .forum-nev-form .ff__input-wrap.focus {
	background: none !important;
}

body.forum-nev-page .forum-nev-form .ff__input-wrap.hover input,
body.forum-nev-page .forum-nev-form .ff__input-wrap.focus input {
	border-color: rgba(240, 185, 100, 0.55) !important;
	box-shadow: 0 0 0 2px rgba(200, 140, 60, 0.2);
}

body.forum-nev-page .forum-nev-form__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 16px;
	width: 100%;
	box-sizing: border-box;
	margin-top: 2px;
	margin-bottom: 10px;
}

body.forum-nev-page .forum-nev-form__toolbar-bbcode {
	flex: 0 1 auto;
	min-width: 0;
}

body.forum-nev-page .forum-nev-form__toolbar-smiles {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px;
}

body.forum-nev-page .forum-nev-form__toolbar-smiles table,
body.forum-nev-page .forum-nev-form .forum-smiles-grid {
	max-width: 100%;
	margin: 0 !important;
	border: none !important;
	border-collapse: collapse !important;
	background: transparent !important;
}

body.forum-nev-page .forum-nev-form .forum-smiles-grid td {
	border: none !important;
	padding: 3px 4px !important;
	background: transparent !important;
}

body.forum-nev-page .forum-nev-form__toolbar-smiles img {
	vertical-align: middle;
	cursor: pointer;
}

body.forum-nev-page .forum-nev-form__bbcode {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.forum-nev-page .forum-nev-form__bbcode a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid rgba(200, 160, 90, 0.35);
	background: rgba(20, 16, 12, 0.85);
	color: #ffd89a !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.85rem;
}

body.forum-nev-page .forum-nev-form__bbcode a:hover {
	border-color: rgba(240, 185, 100, 0.5);
	color: #fff !important;
}

body.forum-nev-page .forum-nev-form__bbcode .forum-nev-bb--wide {
	min-width: 44px;
	font-size: 0.8rem;
	font-weight: 600;
}

body.forum-nev-page .forum-nev-form__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 10px 14px;
	padding-top: 8px;
	margin-top: 6px;
	border-top: none;
}

body.forum-nev-page .forum-nev-form__counter {
	font-size: 0.78rem;
	color: rgba(210, 185, 145, 0.72);
	max-width: min(100%, 14rem);
	text-align: right;
	line-height: 1.35;
}

body.forum-nev-page .forum-nev-form .site-btn {
	min-width: auto;
}

body.site-landing.forum-nev-page .forum-nev-form .site-btn--primary,
body.site-landing.forum-nev-page .forum-nev-form .site-btn--primary:link,
body.site-landing.forum-nev-page .forum-nev-form .site-btn--primary:visited {
	color: #ffd89a !important;
}

body.site-landing.forum-nev-page .forum-nev-form .site-btn--primary:hover {
	color: #fff !important;
}

@media (max-width: 520px) {
	body.forum-nev-page .forum-nev-form__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	body.forum-nev-page .forum-nev-form__toolbar-smiles {
		justify-content: flex-start;
	}
}

/* Низ темы: «к началу» (при прокрутке блока) + «к списку тем» */
body.forum-nev-page .forum-nev-topic-back {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(200, 160, 90, 0.16);
}

body.forum-nev-page .forum-nev-topic-back .forum-nev-topic-back__link {
	margin-left: auto;
	text-decoration: none !important;
	white-space: nowrap;
}

body.forum-nev-page .forum-nev-scroll-top--footer {
	gap: 6px;
	padding: 0 12px;
	min-height: 40px;
}

body.forum-nev-page .forum-nev-scroll-top--footer .forum-nev-scroll-top__text {
	font-size: 0.88rem;
	font-weight: 600;
}

body.site-landing.forum-nev-page .forum-nev-topic-back .site-btn--secondary,
body.site-landing.forum-nev-page .forum-nev-topic-back .site-btn--secondary:link,
body.site-landing.forum-nev-page .forum-nev-topic-back .site-btn--secondary:visited {
	color: rgba(255, 224, 185, 0.95) !important;
}

body.site-landing.forum-nev-page .forum-nev-topic-back .site-btn--secondary:hover {
	color: #fff !important;
}

@media (max-width: 520px) {
	body.forum-nev-page .forum-nev-topic-back {
		flex-direction: column;
		align-items: stretch;
	}

	body.forum-nev-page .forum-nev-topic-back .forum-nev-topic-back__link {
		margin-left: 0;
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
		text-align: center;
	}

	body.forum-nev-page .forum-nev-scroll-top--footer {
		width: 100%;
		justify-content: center;
	}
}

/* Пагинация под ответом: без второй «карточки» и без фоновых спрайтов pg_v2 */
body.forum-nev-page .forum-nev-pagination-bar {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 6px 0 2px !important;
	margin-top: 4px;
}

body.forum-nev-page .forum-nev-pagination-bar .forum-nev-pagination-bar__inner.b-news-footer {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
}

body.forum-nev-page .forum-nev-pagination-bar .forum-nev-pagination-bar__cont {
	padding: 8px 4px !important;
	text-align: center;
}

body.forum-nev-page .forum-nev-pagination-bar .pg_v2,
body.forum-nev-page .forum-nev-pagination-bar .pg_v2 td {
	height: auto !important;
	min-height: 0 !important;
	background: none !important;
	color: rgba(230, 205, 165, 0.92) !important;
	border: none !important;
	margin: 0 !important;
	vertical-align: middle !important;
}

body.forum-nev-page .forum-nev-pagination-bar .pg_v2-act,
body.forum-nev-page .forum-nev-pagination-bar .pg_v2-inact {
	width: auto !important;
	min-width: 1.75rem;
	margin: 0 2px !important;
	padding: 4px 8px !important;
	background: rgba(25, 18, 14, 0.65) !important;
	border-radius: 6px !important;
	border: 1px solid rgba(200, 160, 90, 0.28) !important;
}

body.forum-nev-page .forum-nev-pagination-bar .pg_v2-act {
	border-color: rgba(220, 170, 90, 0.45) !important;
}

body.forum-nev-page .forum-nev-pagination-bar .pg_v2-act_lnk,
body.forum-nev-page .forum-nev-pagination-bar .pg_v2-inact_lnk {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	color: #f2d8a2 !important;
}

body.forum-nev-page .forum-nev-pagination-bar .pg-v2-str-line {
	display: inline-block;
	height: auto !important;
	padding: 4px 10px 4px 0 !important;
	margin: 0 !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: rgba(200, 175, 135, 0.85) !important;
}

body.forum-nev-page .forum-nev-pagination-bar a.pg-v2-arr-left,
body.forum-nev-page .forum-nev-pagination-bar a.pg-v2-arr-right {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
	width: auto !important;
	height: auto !important;
	min-width: 2rem;
	min-height: 2rem;
	padding: 4px 8px !important;
	background: rgba(25, 18, 14, 0.65) !important;
	border-radius: 6px !important;
	border: 1px solid rgba(200, 160, 90, 0.28) !important;
	background-image: none !important;
}

body.forum-nev-page .forum-nev-pagination-bar a.pg-v2-arr-left img,
body.forum-nev-page .forum-nev-pagination-bar a.pg-v2-arr-right img {
	display: none !important;
}

body.forum-nev-page .forum-nev-pagination-bar a.pg-v2-arr-left::after {
	content: "\2039";
	font-size: 1rem;
	line-height: 1;
	color: #f2d8a2;
}

body.forum-nev-page .forum-nev-pagination-bar a.pg-v2-arr-right::after {
	content: "\203A";
	font-size: 1rem;
	line-height: 1;
	color: #f2d8a2;
}

body.forum-nev-page .b-news-item,
body.forum-nev-page .b-news-footer {
	background: rgba(14, 11, 8, 0.6);
	border: 1px solid rgba(200, 160, 90, 0.26);
	border-radius: 10px;
}

body.forum-nev-page .b-news-item {
	padding: 6px 8px 10px;
}

body.forum-nev-page .b-news-footer {
	padding: 10px 12px;
}

/* Шапка темы: заголовок слева сверху, дата справа сверху, ник под заголовком слева */
body.forum-nev-page .forum-nev-post-head {
	margin: -2px -4px 10px;
	padding: 0;
}

body.forum-nev-page .forum-nev-post-head__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px 12px;
}

body.forum-nev-page .forum-nev-post-head__title {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	line-height: 1.28;
	text-align: left;
	align-self: flex-start;
}

body.forum-nev-page .forum-nev-post-head__datetime.b-news-item__datetime {
	margin: 0 !important;
	flex: 0 0 auto;
	align-self: flex-start;
	max-width: 48%;
}

body.forum-nev-page .forum-nev-post-head__datetime .b-news-item__datetime-inner {
	white-space: nowrap;
}

body.forum-nev-page .forum-nev-post-head__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px 12px;
	margin-top: 6px;
	width: 100%;
	box-sizing: border-box;
}

body.forum-nev-page .forum-nev-post-head__author {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	line-height: 1.35;
}

body.forum-nev-page .forum-nev-post-head__actions {
	flex: 0 0 auto;
	align-self: flex-start;
}

body.forum-nev-page .forum-nev-post-head__actions > div {
	float: none !important;
	display: inline-flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	justify-content: flex-end;
	margin: 0 !important;
}

@media (max-width: 560px) {
	body.forum-nev-page .forum-nev-post-head__top {
		flex-wrap: wrap;
	}

	body.forum-nev-page .forum-nev-post-head__datetime.b-news-item__datetime {
		margin-left: auto !important;
	}

	body.forum-nev-page .forum-nev-post-head__meta {
		flex-wrap: wrap;
	}
}

/* Текст поста: отдельная рамка от шапки темы / строки с ником */
body.forum-nev-page .forum-nev-post-body {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 9px;
	border: 1px solid rgba(200, 160, 90, 0.42);
	background: rgba(4, 3, 2, 0.72);
	box-shadow:
		inset 0 1px 0 rgba(255, 210, 150, 0.07),
		0 2px 12px rgba(0, 0, 0, 0.2);
}

/*
 * Вертикальная прокрутка — только у окна (полоса справа у страницы),
 * чтобы можно было прокрутить ниже длинного текста до формы ответа.
 * Широкие вставки — только горизонтальный overflow внутри блока.
 */
body.forum-nev-page .forum-nev-post-body:not(:has(.forum-nev-form)) {
	overflow-x: auto;
	overflow-y: visible;
	max-height: none;
}

body.forum-nev-page .forum-nev-post-head + .forum-nev-post-body {
	margin-top: 14px;
}

body.forum-nev-page .forum-nev-post-body--excerpt {
	margin-top: 10px;
}

body.forum-nev-page .forum-nev-post-body--reply {
	margin-top: 10px;
	display: flow-root;
}

body.forum-nev-page .forum-nev-reply-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 6px 12px;
}

body.forum-nev-page .forum-nev-reply-meta__nick {
	flex: 1 1 auto;
	min-width: 0;
}

body.forum-nev-page .forum-nev-reply-meta > div[style*="float"] {
	float: none !important;
	display: inline-flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin: 0 !important;
}

body.forum-nev-page .forum-nev-post-body--reply .forum-nev-reply-date {
	float: right;
	margin: 0 0 4px 10px;
	font-size: 0.82rem;
	color: rgba(215, 195, 165, 0.9);
	white-space: nowrap;
}

body.forum-nev-page .forum-nev-post-body__text {
	display: block;
	text-align: left;
}

/* Текст поста и BBCode: вместо тёмно-красного — контрастные «золотые» токены лендинга */
body.forum-nev-page .b-common-typography {
	color: rgba(245, 232, 210, 0.95);
	font-size: 0.95rem;
	line-height: 1.55;
	text-align: left;
}

body.forum-nev-page .b-common-typography center {
	display: block;
	text-align: left;
}

body.forum-nev-page .b-common-typography p {
	margin: 0 0 0.75rem;
}

body.forum-nev-page .b-common-typography img,
body.forum-nev-page .b-news-item img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

body.forum-nev-page .b-common-typography .redd,
body.forum-nev-page .b-common-typography .redd * {
	color: #f0cfa0 !important;
}

body.forum-nev-page .b-common-typography .red,
body.forum-nev-page .b-common-typography .red * {
	color: #ffcf9c !important;
}

body.forum-nev-page .b-common-typography .text-red,
body.forum-nev-page .b-common-typography .text-red * {
	color: #f0cfa0 !important;
}

body.forum-nev-page .b-common-typography strong,
body.forum-nev-page .b-common-typography b {
	color: rgba(255, 245, 228, 0.98);
	font-weight: 700;
}

body.forum-nev-page .b-common-typography i,
body.forum-nev-page .b-common-typography em,
body.forum-nev-page .b-common-typography u,
body.forum-nev-page .b-common-typography s,
body.forum-nev-page .b-common-typography strike,
body.forum-nev-page .b-common-typography del {
	color: rgba(245, 232, 210, 0.95);
}

body.forum-nev-page .b-common-typography blockquote,
body.forum-nev-page .forum-nev-post-body blockquote {
	margin: 0.65rem 0;
	padding: 0.6rem 0.85rem;
	border-left: 3px solid rgba(220, 170, 100, 0.55);
	background: rgba(12, 10, 8, 0.55);
	border-radius: 0 8px 8px 0;
	color: rgba(235, 215, 185, 0.95);
}

body.forum-nev-page .b-common-typography pre,
body.forum-nev-page .forum-nev-post-body pre {
	margin: 0.65rem 0;
	padding: 0.75rem 0.9rem;
	overflow-x: auto;
	background: rgba(6, 5, 4, 0.92);
	border: 1px solid rgba(200, 160, 90, 0.28);
	border-radius: 8px;
	font-size: 0.85rem;
	line-height: 1.45;
}

body.forum-nev-page .b-common-typography pre code,
body.forum-nev-page .forum-nev-post-body pre code {
	font-family: Consolas, "Ubuntu Mono", "Courier New", monospace;
	color: rgba(255, 220, 160, 0.95);
	background: transparent;
	border: none;
	padding: 0;
	white-space: pre;
}

body.forum-nev-page .b-common-typography code:not(pre code),
body.forum-nev-page .forum-nev-post-body code:not(pre code) {
	font-family: Consolas, "Ubuntu Mono", "Courier New", monospace;
	font-size: 0.88em;
	padding: 0.1em 0.35em;
	background: rgba(30, 22, 16, 0.9);
	border-radius: 4px;
}

body.forum-nev-page .b-common-typography h1,
body.forum-nev-page .b-common-typography h2,
body.forum-nev-page .b-common-typography h3,
body.forum-nev-page .b-common-typography h4 {
	color: #f2d8a2;
	font-weight: 700;
	margin: 0.85rem 0 0.45rem;
	line-height: 1.35;
}

body.forum-nev-page .b-news-item .redd,
body.forum-nev-page .b-news-item .redd * {
	color: #f0cfa0 !important;
}

body.forum-nev-page .b-common-typography ul,
body.forum-nev-page .b-common-typography ol {
	text-align: left;
	margin: 0.5rem 0 1rem;
	padding-left: 1.35rem;
}

body.forum-nev-page .b-common-typography center ul,
body.forum-nev-page .b-common-typography center ol {
	display: inline-block;
	text-align: left;
	margin-left: auto;
	margin-right: auto;
}

body.forum-nev-page .text-orange {
	color: #ffc98a !important;
}

body.forum-nev-page .word_ru {
	color: rgba(245, 232, 210, 0.92) !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
}

/* Заголовок темы и ссылка */
body.forum-nev-page .b-news-item__head {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #f2d8a2 !important;
}

body.forum-nev-page .b-news-item__head a,
body.forum-nev-page .b-news-item__head a:link,
body.forum-nev-page .b-news-item__head a:visited {
	color: #f2d8a2 !important;
	text-decoration: none;
}

body.forum-nev-page .b-news-item__head a.forum-nev-topic-link,
body.forum-nev-page .b-news-item__head a.forum-nev-topic-link:link,
body.forum-nev-page .b-news-item__head a.forum-nev-topic-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.48rem;
	padding: 0.22rem 0.6rem 0.24rem 0.52rem;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(96, 63, 30, 0.32) 0%, rgba(43, 29, 16, 0.42) 100%);
	border: 1px solid rgba(210, 164, 90, 0.28);
	box-shadow: inset 0 1px 0 rgba(255, 224, 170, 0.1), 0 1px 3px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

body.forum-nev-page .b-news-item__head a.forum-nev-topic-link::before {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 2px;
	transform: rotate(45deg);
	background: linear-gradient(180deg, rgba(250, 213, 142, 0.96) 0%, rgba(202, 151, 75, 0.98) 100%);
	box-shadow: 0 0 0 1px rgba(80, 53, 25, 0.65), inset 0 1px 0 rgba(255, 240, 205, 0.55);
	flex: 0 0 auto;
}

body.forum-nev-page .b-news-item__head a.forum-nev-topic-link::after {
	content: "\203A";
	font-size: 1.05em;
	line-height: 1;
	color: rgba(242, 216, 162, 0.78);
	transition: transform 0.12s ease, color 0.12s ease;
}

body.forum-nev-page .b-news-item__head a.forum-nev-topic-link:hover,
body.forum-nev-page .b-news-item__head a.forum-nev-topic-link:focus-visible {
	text-decoration: underline;
	text-decoration-color: rgba(242, 216, 162, 0.9);
	text-underline-offset: 2px;
	background: linear-gradient(180deg, rgba(120, 76, 35, 0.42) 0%, rgba(62, 40, 19, 0.55) 100%);
	border-color: rgba(236, 184, 102, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 228, 172, 0.18), 0 0 0 1px rgba(228, 173, 91, 0.22),
		0 0 12px rgba(225, 170, 88, 0.22);
}

body.forum-nev-page .b-news-item__head a.forum-nev-topic-link:hover::after,
body.forum-nev-page .b-news-item__head a.forum-nev-topic-link:focus-visible::after {
	color: rgba(255, 234, 188, 0.98);
	transform: translateX(1px);
}

body.forum-nev-page .b-news-item__head a:hover {
	color: #fff8e8 !important;
	text-decoration: underline;
}

body.forum-nev-page .topic_close,
body.forum-nev-page .topic_close:link,
body.forum-nev-page .topic_close:visited {
	color: rgba(200, 195, 185, 0.9) !important;
}

body.forum-nev-page .b-news-item__head a.forum-nev-topic-link.topic_close::before {
	width: 0.5rem;
	height: 0.38rem;
	border-radius: 2px;
	transform: none;
	background: linear-gradient(180deg, rgba(210, 196, 165, 0.94) 0%, rgba(158, 144, 118, 0.96) 100%);
	box-shadow: 0 0 0 1px rgba(75, 64, 49, 0.72);
}

/* Дата: убираем спрайты пергамента, заменяем на CSS-плашку */
body.forum-nev-page .b-news-item__datetime {
	float: none;
	position: relative;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	background: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	vertical-align: middle;
}

body.forum-nev-page .b-news-item__datetime-inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: auto;
	min-height: 30px;
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.88rem;
	line-height: 1.25;
	color: #f2d8a2 !important;
	background: linear-gradient(180deg, rgba(55, 40, 28, 0.95) 0%, rgba(28, 22, 16, 0.98) 100%) !important;
	border: 1px solid rgba(200, 160, 90, 0.38);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.forum-nev-page .b-news-item__datetime .b-icon-32x32 {
	position: static;
	left: auto;
	bottom: auto;
	flex-shrink: 0;
	opacity: 0.9;
}

/* Посты: убираем рамки из PNG-спрайтов у подвала сообщения */
body.forum-nev-page .b-news-footer {
	margin: 10px 0 0;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
}

body.forum-nev-page .b-news-footer__t,
body.forum-nev-page .b-news-footer__b,
body.forum-nev-page .b-news-footer__tl,
body.forum-nev-page .b-news-footer__tr,
body.forum-nev-page .b-news-footer__bl,
body.forum-nev-page .b-news-footer__br,
body.forum-nev-page .b-news-footer__ct,
body.forum-nev-page .b-news-footer__cb {
	display: none !important;
}

body.forum-nev-page .b-news-footer__cont {
	background: transparent !important;
	padding: 10px 12px;
	font-size: 0.92rem;
	color: rgba(245, 232, 210, 0.94);
}

body.forum-nev-page .forum_last_message {
	color: rgba(220, 200, 170, 0.88);
	font-size: 0.88rem;
	margin-top: 6px;
}

/* Между темами: вместо «ornate» bg-divider-2.png (много полосок) — одна спокойная линия */
body.forum-nev-page .b-divider-2 {
	position: relative;
	overflow: visible;
	clear: both;
	height: auto;
	min-height: 0;
	margin: 14px 0 8px;
	padding: 0;
	font-size: inherit;
	background: none;
	opacity: 1;
}

body.forum-nev-page .b-divider-2__l,
body.forum-nev-page .b-divider-2__r,
body.forum-nev-page .b-divider-2__c,
body.forum-nev-page .b-divider-2__l-inner,
body.forum-nev-page .b-divider-2__r-inner {
	display: none !important;
}

body.forum-nev-page .b-divider-2::after {
	content: "";
	display: block;
	height: 1px;
	margin: 0 2px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(200, 160, 90, 0.22) 20%,
		rgba(200, 160, 90, 0.3) 50%,
		rgba(200, 160, 90, 0.22) 80%,
		transparent 100%
	);
}

/* Кнопки модерации темы/поста: CSS-иконки, подписи в title/aria-label */
body.forum-nev-page .forum-nev-admin-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 5px 6px;
	margin: 0;
	padding: 0;
}

body.forum-nev-page .forum-nev-act-form {
	display: inline;
	margin: 0;
	padding: 0;
}

body.forum-nev-page .forum-nev-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border-radius: 50%;
	background: linear-gradient(180deg, #e4bc3a 0%, #c9a32a 55%, #a88620 100%);
	border: 1px solid rgba(120, 80, 40, 0.5);
	box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.35);
	text-decoration: none;
	line-height: 0;
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

body.forum-nev-page .forum-nev-act:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

body.forum-nev-page .forum-nev-act:focus-visible {
	outline: 2px solid rgba(255, 210, 150, 0.9);
	outline-offset: 2px;
}

body.forum-nev-page .forum-nev-act--danger {
	border-color: rgba(160, 50, 40, 0.55);
	background: linear-gradient(180deg, #d4a04a 0%, #b07040 100%);
}

body.forum-nev-page .forum-nev-act__icon {
	display: block;
	position: relative;
	flex-shrink: 0;
	--forum-act-red: #b01010;
}

/* Закрепить / снять закрепление (двойная стрелка вверх или вниз) */
body.forum-nev-page .forum-nev-act__icon--pin-up,
body.forum-nev-page .forum-nev-act__icon--pin-down {
	width: 12px;
	height: 12px;
}

body.forum-nev-page .forum-nev-act__icon--pin-up::before,
body.forum-nev-page .forum-nev-act__icon--pin-up::after,
body.forum-nev-page .forum-nev-act__icon--pin-down::before,
body.forum-nev-page .forum-nev-act__icon--pin-down::after {
	content: "";
	position: absolute;
	left: 50%;
	margin-left: -3px;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
}

body.forum-nev-page .forum-nev-act__icon--pin-up::before {
	top: 0;
	border-bottom: 4px solid var(--forum-act-red);
}
body.forum-nev-page .forum-nev-act__icon--pin-up::after {
	top: 4px;
	border-bottom: 4px solid var(--forum-act-red);
}

body.forum-nev-page .forum-nev-act__icon--pin-down::before {
	top: 0;
	border-top: 4px solid var(--forum-act-red);
}
body.forum-nev-page .forum-nev-act__icon--pin-down::after {
	top: 4px;
	border-top: 4px solid var(--forum-act-red);
}

/* Замок закрыт / открыт */
body.forum-nev-page .forum-nev-act__icon--lock,
body.forum-nev-page .forum-nev-act__icon--unlock {
	width: 9px;
	height: 6px;
	margin-top: 3px;
	background: var(--forum-act-red);
	border-radius: 0 0 2px 2px;
}

body.forum-nev-page .forum-nev-act__icon--lock::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -6px;
	width: 3px;
	height: 2px;
	border: 2px solid var(--forum-act-red);
	border-bottom: none;
	border-radius: 5px 5px 0 0;
}

body.forum-nev-page .forum-nev-act__icon--unlock::before,
body.forum-nev-page .forum-nev-act__icon--unlock::after {
	content: "";
	position: absolute;
	top: -6px;
	width: 3px;
	height: 3px;
	border: 2px solid var(--forum-act-red);
	border-bottom: none;
}

body.forum-nev-page .forum-nev-act__icon--unlock::before {
	left: 0;
	border-right: none;
	border-radius: 4px 0 0 0;
}

body.forum-nev-page .forum-nev-act__icon--unlock::after {
	right: 0;
	border-left: none;
	border-radius: 0 4px 0 0;
}

/* Карандаш (редактировать) */
body.forum-nev-page .forum-nev-act__icon--edit {
	width: 12px;
	height: 12px;
}

body.forum-nev-page .forum-nev-act__icon--edit::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 1px;
	width: 2.5px;
	height: 9px;
	background: var(--forum-act-red);
	border-radius: 0.5px;
	transform: rotate(-45deg);
	transform-origin: 50% 90%;
}

body.forum-nev-page .forum-nev-act__icon--edit::after {
	content: "";
	position: absolute;
	right: 0.5px;
	bottom: 0.5px;
	border: 2px solid transparent;
	border-top: 2.5px solid var(--forum-act-red);
	border-left: 2.5px solid var(--forum-act-red);
	transform: rotate(10deg);
}

/* Крестик (удалить) */
body.forum-nev-page .forum-nev-act__icon--delete {
	width: 12px;
	height: 12px;
}

body.forum-nev-page .forum-nev-act__icon--delete::before,
body.forum-nev-page .forum-nev-act__icon--delete::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2px;
	margin-left: -6px;
	margin-top: -1px;
	background: var(--forum-act-red);
	border-radius: 1px;
}

body.forum-nev-page .forum-nev-act__icon--delete::before {
	transform: rotate(45deg);
}
body.forum-nev-page .forum-nev-act__icon--delete::after {
	transform: rotate(-45deg);
}

@media (max-width: 1024px) {
	body.forum-nev-page .forum-nev-layout {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.site-landing-html {
		scroll-behavior: auto;
	}

	.site-btn:hover {
		transform: none;
	}
}
