/* Возмездие — лендинг: полноэкранное видео, герой, док-навигация, футер */
/* Все пути к ресурсам лендинга относительно этой папки nev site — корень задаётся в index.php */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html.site-landing-html {
	height: 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-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: radial-gradient(ellipse 80% 60% at 50% 20%, #2a1810 0%, #0c0806 55%, #050403 100%);
}

.site-hero--has-video {
	background: #080605;
}

/* Герой под шапкой в потоке — большой отступ сверху не нужен */
.site-hero--below-dock {
	padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
}

.site-hero__video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

/*
 * Кадр видео: горизонтальные отступы = --landing-dock-pad-x (как у .site-dock до кнопок).
 * Линии ободка рисует .site-hero__video-frame поверх .site-hero__scrim.
 */
.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;
}

/* Золотая кайма слева/справа: над scrim (z-index 2), те же токены, что у шапки */
.site-hero--has-video .site-hero__video-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);
}

/* Фон: MP4 в Full HD — внутри рамки с отступами, 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 center;
	pointer-events: none;
}

.site-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	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%
	);
	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, #c94a2c 0%, #8f3018 100%);
	color: #fff;
	border-color: rgba(255, 200, 120, 0.35);
}

.site-btn--primary:hover {
	background: linear-gradient(180deg, #d85838 0%, #a03820 100%);
}

.site-btn--secondary {
	background: rgba(20, 16, 12, 0.75);
	color: #f2efe8;
	border-color: rgba(212, 175, 120, 0.5);
	backdrop-filter: blur(6px);
}

.site-btn--secondary:hover {
	background: rgba(40, 32, 24, 0.9);
	border-color: rgba(240, 200, 140, 0.65);
}

/*
 * После подключения 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: #fff !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: #f2efe8 !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;
}

@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;
	text-decoration: none;
}

/* Сильнее, чем `.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: none !important;
}

/* Жёстко от приглушения чужими стилями портала */
#nev-site-nav .site-dock__link {
	display: inline-flex !important;
	color: #e8dcc8 !important;
}

#nev-site-nav .site-dock__link--brand {
	color: #ffd89a !important;
}

#nev-site-nav .site-dock__link--play {
	color: #fff !important;
}

.site-dock-online {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	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: #d8ecff !important;
	text-decoration: none !important;
	background: linear-gradient(180deg, #304d68 0%, #1e3348 100%);
	border: 1px solid rgba(140, 170, 210, 0.45);
	border-radius: 8px;
	white-space: nowrap;
}

.site-dock-online strong {
	font-weight: 700;
	color: #fff;
}

.site-dock--with-online .site-dock-online:hover {
	background: linear-gradient(180deg, #3a5a78 0%, #253a52 100%);
	border-color: rgba(170, 200, 235, 0.55);
	color: #fff !important;
	text-decoration: none !important;
}

.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, #b84328 0%, #7a280f 100%);
	border-color: rgba(255, 180, 100, 0.45);
	color: #fff;
}

.site-landing .site-dock a.site-dock__link--play {
	color: #fff;
}

.site-dock__link--play:hover {
	background: linear-gradient(180deg, #c85030 0%, #903418 100%);
}

/* --- Нижний футер: в потоке, компактный полоска внизу экрана --- */
.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: 5px 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: 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;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.site-landing-html {
		scroll-behavior: auto;
	}

	.site-btn:hover {
		transform: none;
	}
}
