/* ============================================================
   ПАЛИТРА (тёмная тема, акцент — красный «REC»)
   ============================================================ */
:root {
	color-scheme: dark;

	--bg: #0a0a0b;
	--surface: #121214;
	--line: #26262b;
	--line-hover: #4a4a52;
	--text: #f5f5f7;
	--text-muted: #8e8e96;
	--text-faint: #5a5a62;

	--rec: #ff2b2b;
	--rec-soft: rgba(255, 43, 43, 0.55);
	--rec-glow: rgba(255, 30, 30, 0.6);

	--mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Liberation Mono',
		monospace;

	--radius-frame: 18px;
	--radius-page: 14px;
	--maxw: 1040px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family:
		'Inter',
		'SF Pro Display',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		system-ui,
		sans-serif;
	font-weight: 300;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* Мягкий красный свет по бокам страницы (фиксированный фон) */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 34% 70% at 0% 40%, rgba(255, 43, 43, 0.2), transparent 70%),
		radial-gradient(ellipse 34% 70% at 100% 60%, rgba(255, 43, 43, 0.2), transparent 70%),
		radial-gradient(ellipse 26% 40% at 0% 100%, rgba(255, 43, 43, 0.1), transparent 70%),
		radial-gradient(ellipse 26% 40% at 100% 0%, rgba(255, 43, 43, 0.1), transparent 70%);
}

.page {
	position: relative;
	z-index: 1;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px 96px;
	border-radius: var(--radius-page);
}

/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ: ЛОГОТИП + ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
   ============================================================ */
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0 0;
}

/* --- ЛОГОТИП: сейчас текст. Для финального логотипа замените
       содержимое .logo на <img>/<svg>, поправьте height ниже. --- */
.logo {
	display: inline-flex;
	align-items: center;
	height: 28px;
	color: var(--text);
	text-decoration: none;
}

.logo__text {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}

.logo img,
.logo svg {
	height: 100%;
	width: auto;
	display: block;
}

.logo:focus-visible,
.lang__btn:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--rec);
	outline-offset: 3px;
	border-radius: 6px;
}

/* --- переключатель RU / EN --- */
.lang {
	display: inline-flex;
	padding: 3px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.lang__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--text-muted);
	font: 500 0.75rem/1 var(--mono);
	letter-spacing: 0.06em;
	padding: 7px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition:
		color 0.25s ease,
		background-color 0.25s ease;
}

.lang__btn:hover {
	color: var(--text);
}

.lang__btn[aria-pressed='true'] {
	color: var(--text);
	background: rgba(255, 43, 43, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 43, 43, 0.45);
}

/* ============================================================
   HUD МОНТАЖКИ (декор)
   ============================================================ */
.hud {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	color: var(--text-faint);
	user-select: none;
}

.hud__left,
.hud__right {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.hud__rec {
	color: var(--rec);
	font-weight: 600;
}

.hud__right span:first-child {
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}

.rec-dot {
	display: inline-block;
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rec);
	box-shadow: 0 0 8px var(--rec-soft);
}

.rec-dot--pulse {
	animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
	0% {
		box-shadow:
			0 0 8px var(--rec-soft),
			0 0 0 0 rgba(255, 43, 43, 0.55);
	}
	70% {
		box-shadow:
			0 0 8px var(--rec-soft),
			0 0 0 8px rgba(255, 43, 43, 0);
	}
	100% {
		box-shadow:
			0 0 8px var(--rec-soft),
			0 0 0 0 rgba(255, 43, 43, 0);
	}
}

.hud .rec-dot {
	animation: rec-blink 1.6s steps(2, jump-none) infinite;
}

@keyframes rec-blink {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.25;
	}
	100% {
		opacity: 1;
	}
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
	padding: 88px 0 56px;
	text-align: center;
}

/* Огромное слово: белый текст + красный ореол, как горящая кнопка REC */
.hero__word {
	margin: 0;
	font-size: clamp(2.6rem, 13.5vw, 9.5rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #fff;
	text-shadow:
		0 0 12px rgba(255, 255, 255, 0.35),
		0 0 28px var(--rec-glow),
		0 0 64px rgba(255, 30, 30, 0.45),
		0 0 130px rgba(255, 0, 0, 0.3);
	animation: glow-breathe 4.5s ease-in-out infinite;
}

@keyframes glow-breathe {
	0%,
	100% {
		text-shadow:
			0 0 12px rgba(255, 255, 255, 0.35),
			0 0 28px var(--rec-glow),
			0 0 64px rgba(255, 30, 30, 0.45),
			0 0 130px rgba(255, 0, 0, 0.3);
	}
	50% {
		text-shadow:
			0 0 10px rgba(255, 255, 255, 0.3),
			0 0 22px rgba(255, 30, 30, 0.5),
			0 0 50px rgba(255, 30, 30, 0.34),
			0 0 100px rgba(255, 0, 0, 0.2);
	}
}

.hero__eyebrow {
	margin: 0 0 20px;
	font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.hero__role {
	margin: 20px 0 0;
	font-size: clamp(1.125rem, 3vw, 1.5rem);
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

/* --- кнопки --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	border: 1px solid transparent;
	border-radius: 999px;
	text-decoration: none;
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease,
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	color: #fff;
	background: var(--rec);
	border-color: var(--rec);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.06) inset,
		0 8px 30px -8px var(--rec-glow);
}

.btn--primary:hover {
	background: #ff4141;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.1) inset,
		0 12px 40px -6px rgba(255, 30, 30, 0.75);
}

.btn--ghost {
	color: var(--text);
	background: transparent;
	border-color: var(--line-hover);
}

.btn--ghost:hover {
	border-color: var(--text-muted);
	background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   ТАЙМЛАЙН (декор)
   ============================================================ */
.timeline {
	position: relative;
	height: 22px;
	margin: 0 0 56px;
	overflow: hidden;
	user-select: none;
}

.timeline__ruler {
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			90deg,
			var(--line-hover) 0 1px,
			transparent 1px 80px
		) 0 0 / 100% 100% no-repeat,
		repeating-linear-gradient(
			90deg,
			var(--line) 0 1px,
			transparent 1px 16px
		) 0 60% / 100% 40% no-repeat;
	border-bottom: 1px solid var(--line);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.timeline__playhead {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	background: var(--rec);
	box-shadow: 0 0 8px var(--rec-soft);
	animation: scrub 14s linear infinite;
}

.timeline__playhead::before {
	content: '';
	position: absolute;
	top: 0;
	left: -4px;
	border-left: 4.5px solid transparent;
	border-right: 4.5px solid transparent;
	border-top: 7px solid var(--rec);
}

@keyframes scrub {
	from {
		left: 0;
	}
	to {
		left: 100%;
	}
}

/* ============================================================
   СЕКЦИЯ С ВИДЕО
   ============================================================ */
.reel-section {
	padding-bottom: 110px;
}

.niche {
	text-align: center;
	font-weight: 800;
	font-size: 23px;
	text-transform: uppercase;
	margin: 0 0 28px;
}

.row {
	display: grid;
	gap: 24px;
}

.row--three {
	grid-template-columns: repeat(3, 1fr);
}

/* рамка карточки */
.frame {
	position: relative;
	border: 1px solid var(--line);
	border-radius: var(--radius-frame);
	background: var(--surface);
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.35s ease;
}

.frame:hover,
.frame:focus-within {
	border-color: rgba(255, 43, 43, 0.6);
}

.frame:focus-visible {
	outline: 2px solid var(--rec);
	outline-offset: 3px;
}

.frame--vertical {
	aspect-ratio: 9/16;
}

/* Обложка (картинка) внутри плитки */
.frame__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.frame:hover .frame__poster {
	transform: scale(1.03);
}

/* Прозрачный слой поверх обложки с иконкой Play */
.frame::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 48px no-repeat;
	opacity: 0.85;
	transition: opacity 0.3s ease, background-color 0.3s ease;
}

.frame:hover::after {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.1);
}

.item {
	display: flex;
	flex-direction: column;
}

.item .frame {
	flex: 0 0 auto;
}

/* Сообщение, если видео нет */
.empty {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.9375rem;
	margin: 8px 0 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
	max-width: 720px;
	margin: 0 auto;
	padding-bottom: 110px;
}

.faq__list {
	border-top: 1px solid var(--line);
}

.faq__item {
	border-bottom: 1px solid var(--line);
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 4px;
	font-size: clamp(1rem, 2.4vw, 1.125rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	cursor: pointer;
	list-style: none;
	transition: color 0.25s ease;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__item summary:hover {
	color: #fff;
}

.faq__item summary:focus-visible {
	outline: 2px solid var(--rec);
	outline-offset: 2px;
	border-radius: 6px;
}

.faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.faq__icon::before,
.faq__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: var(--rec);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__icon::after {
	transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
	transform: rotate(0deg);
}

.faq__item p {
	margin: 0;
	padding: 0 40px 24px 4px;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.lead {
	margin: 0;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.cta-wrap {
	display: flex;
	justify-content: center;
	padding-top: 16px;
}

.cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	color: #fff;
	background: var(--rec);
	border: 1px solid var(--rec);
	border-radius: 999px;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 8px 30px -8px var(--rec-glow);
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease;
}

.cta svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta span {
	position: relative;
	z-index: 2;
}

.cta::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.22),
		rgba(255, 255, 255, 0.05)
	);
	transform: translateX(-101%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px -6px rgba(255, 30, 30, 0.75);
}

.cta:hover::before {
	transform: translateX(0);
}

.cta:hover svg {
	transform: translateX(2px) rotate(-8deg);
}

.cta:active {
	transform: translateY(0);
}

.cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.colophon {
	margin: 36px 0 0;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--text-faint);
}

/* ============================================================
   ЛАЙТБОКС
   ============================================================ */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
	z-index: 9999;
	padding: 24px;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox__inner {
	width: min(100%, 1100px);
	max-height: 100%;
	display: flex;
	justify-content: center;
}

.lightbox__video {
	width: 100%;
	height: auto;
	max-height: 90vh;
	border-radius: var(--radius-frame);
	background: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	display: block;
}

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
	z-index: 10;
}

.lightbox__close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}

.lightbox__close:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

body:has(.lightbox.is-open) {
	overflow: hidden;
}

/* ============================================================
   ПЛАВНОЕ ПОЯВЛЕНИЕ
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	filter: blur(6px);
	transition:
		opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform, filter;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.reveal[data-delay='1'] {
	transition-delay: 0.08s;
}

.reveal[data-delay='2'] {
	transition-delay: 0.16s;
}

.reveal[data-delay='3'] {
	transition-delay: 0.24s;
}

.reveal[data-delay='4'] {
	transition-delay: 0.32s;
}

.reveal[data-delay='5'] {
	transition-delay: 0.4s;
}

.reveal[data-delay='6'] {
	transition-delay: 0.48s;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 900px) {
	.row--three {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 720px) {
	.page {
		padding: 0 20px 72px;
	}
	.hero {
		padding: 64px 0 44px;
	}
	.hero__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 360px;
		margin-left: auto;
		margin-right: auto;
	}
	.reel-section {
		padding-bottom: 72px;
	}
	.faq {
		padding-bottom: 72px;
	}
	.row--three {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.row--three .item {
		max-width: 420px;
		margin: 0 auto;
		width: 100%;
	}
	.niche {
		font-size: 18px;
	}
	.hud {
		font-size: 0.625rem;
	}
	.hud__left,
	.hud__right {
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}
	* {
		transition: none !important;
		animation: none !important;
	}
	html {
		scroll-behavior: auto;
	}
}
