/**
 * Блок «Наше производство» — full-bleed кинематограф.
 */

.production-block {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 0;
	min-height: clamp(480px, 80vh, 780px);
	display: flex;
	align-items: flex-end;
	color: #fff;
}

/* Слой 1: фоновое видео */
.production-block__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.production-block__video-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Слой 2: градиент-затемнение снизу для читаемости текста */
.production-block__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.15) 0%,
			rgba(0, 0, 0, 0.15) 40%,
			rgba(0, 0, 0, 0.75) 85%,
			rgba(0, 0, 0, 0.88) 100%
		);
}

/* Слой 3: контент */
.production-block__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(2rem, 5vw, 4rem) 0;
}

.production-block__inner {
	max-width: var(--container-max, 1280px);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.production-block__title {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(1.5rem, 3.5vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
	max-width: 28ch;
	color: #fff;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.production-block__subtitle {
	margin: 0;
	font-size: clamp(0.95rem, 1.3vw, 1.125rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	max-width: 56ch;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Цифры */
.production-block__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem 1.5rem;
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

@media (min-width: 720px) {
	.production-block__stats {
		grid-template-columns: repeat(4, auto);
		gap: 2.5rem;
	}
}

.production-block__stat {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0;
	border: none;
	background: transparent;
}

.production-block__stat-num {
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 300;
	line-height: 1;
	color: #fff;
	letter-spacing: -0.02em;
}

.production-block__stat-label {
	font-size: 0.8125rem;
	letter-spacing: 0.03em;
	color: rgba(255, 255, 255, 0.75);
	text-transform: none;
	line-height: 1.3;
}

/* CTA */
.production-block__cta {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0.25rem 0 0;
}

.production-block__play-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	cursor: pointer;
}

.production-block__play-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
	transition: transform var(--transition-base, 0.3s), background var(--transition-base, 0.3s);
}

.production-block__play-btn:hover .production-block__play-icon {
	background: rgba(255, 255, 255, 0.28);
	transform: scale(1.08);
}

.production-block__cta-hint {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.02em;
}

/* ---------- Модалка ---------- */
.production-modal[hidden] {
	display: none;
}

.production-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2rem);
	animation: production-modal-fade 0.25s ease-out;
}

@keyframes production-modal-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.production-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(8px);
	cursor: pointer;
}

.production-modal__dialog {
	position: relative;
	width: min(1200px, 100%);
	max-height: 90vh;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	animation: production-modal-scale 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

@keyframes production-modal-scale {
	from { transform: scale(0.94); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}

.production-modal__video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	background: #000;
}

.production-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: background var(--transition-base, 0.2s), transform var(--transition-base, 0.2s);
}

.production-modal__close:hover {
	background: rgba(0, 0, 0, 0.85);
	transform: rotate(90deg);
}

.production-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* visually-hidden (если нет глобального) */
.production-modal .visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* Мобильная адаптация */
@media (max-width: 720px) {
	.production-block {
		min-height: 560px;
	}

	.production-block__overlay {
		background:
			linear-gradient(
				180deg,
				rgba(0, 0, 0, 0.25) 0%,
				rgba(0, 0, 0, 0.3) 30%,
				rgba(0, 0, 0, 0.82) 75%,
				rgba(0, 0, 0, 0.92) 100%
			);
	}
}

/* Уважение prefers-reduced-motion: останавливаем loop */
@media (prefers-reduced-motion: reduce) {
	.production-block__video-bg {
		display: none;
	}

	.production-block {
		background: #111 center / cover no-repeat;
		background-image: var(--production-poster, none);
	}
}
