@charset "UTF-8";

/* ═══════════════════════════════════════════
   PROFIT — marsme.ru reference design
   ═══════════════════════════════════════════ */

:root {
	--font:         'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-display: 'Unbounded', 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
	--nav-h:    64px;
	--radius:   10px;
}

/* ── Theme: dark (default, cinematic) ───────── */
:root,
:root[data-theme="dark"] {
	--bg:       #0A0A0A;
	--bg-2:     #141414;
	--bg-3:     #1b1b1b;
	--bg-rgb:   10, 10, 10;
	--text:     #F5F1E8;
	--text-rgb: 245, 241, 232;
	--muted:    rgba(245, 241, 232, .6);
	--subtle:   rgba(245, 241, 232, .3);
	--border:   rgba(245, 241, 232, .12);
	--accent:   #C8452D;
	--accent-h: #E05838;
	--accent-rgb: 200, 69, 45;
	--shadow-rgb: 0, 0, 0;
	/* Content surfaces (article-body, film-info-col): сливаются с фоном */
	--surface:        var(--bg-2);
	--surface-text:   var(--text);
	--surface-muted:  var(--muted);
	--surface-border: var(--border);
}

/* ── Theme: light (A24-style ecru) ──────────── */
:root[data-theme="light"] {
	--bg:       #F7F3ED;
	--bg-2:     #EFEAE0;
	--bg-3:     #E5DFD2;
	--bg-rgb:   247, 243, 237;
	--text:     #1A1A1A;
	--text-rgb: 26, 26, 26;
	--muted:    rgba(26, 26, 26, .55);
	--subtle:   rgba(26, 26, 26, .3);
	--border:   rgba(26, 26, 26, .12);
	--accent:   #B34A2A;
	--accent-h: #C85B37;
	--accent-rgb: 179, 74, 42;
	--shadow-rgb: 0, 0, 0;
	/* Content surfaces: белая карточка на экрю-фоне */
	--surface:        #FFFFFF;
	--surface-text:   #111111;
	--surface-muted:  rgba(0, 0, 0, .6);
	--surface-border: rgba(0, 0, 0, .08);
}

/* ── Reset / Base ──────────────────────────── */

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: clamp(14px, 2vw, 24px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	height: auto;
	overflow-x: clip;
}

/* ── Display-шрифт для заголовков ──────────── */
.page-title,
.section-title,
.film-section-title,
.movies-section-title,
.soaps-section-title,
.hero-slide-title,
.article-body h2 {
	font-family: var(--font-display);
}

a {
	color: var(--text);
	text-decoration: none;
	transition: color .2s, opacity .2s;
}

a:hover { color: var(--accent); text-decoration: none; }

img { max-width: 100%; }

/* ── Admin bar ─────────────────────────────── */

.admin-bar {
	background: var(--accent);
	padding: 4px 16px;
	font-size: 12px;
	position: relative;
	z-index: 1031;
	font-weight: 600;
	text-align: center;
}

.admin-bar a { color: #fff; }

/* Admin mode: sticky navbar flows after admin-bar instead of fixed */
body.is-admin .site-header {
	position: sticky;
	top: 0;
	z-index: 1030;
}

body.is-admin .site-navbar {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
}

body.is-admin #workarea { padding-top: 0; }

/* Pull hero/film content up behind the sticky navbar so transparent overlay works */
body.is-admin.is-hero-page #workarea,
body.is-admin.is-film-page #workarea {
	margin-top: calc(-1 * var(--nav-h));
}

body.is-admin .site-navbar:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

/* ── Navbar ────────────────────────────────── */

.site-header { position: relative; z-index: 1030; }

.site-navbar {
	height: var(--nav-h);
	background: transparent;
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1030;
	transition: background .25s ease, box-shadow .25s ease;
	border-bottom: 1px solid transparent;
}

.site-navbar.is-scrolled {
	background: rgba(var(--bg-rgb), .96);
	border-bottom-color: var(--border);
	box-shadow: 0 1px 24px rgba(var(--shadow-rgb), .6);
}

/* Непрозрачный навбар на всех страницах кроме главной (is-hero-page) */
body:not(.is-hero-page) .site-navbar,
body:not(.is-hero-page) .site-navbar.is-scrolled {
	background: var(--bg) !important;
	border-bottom-color: var(--border) !important;
}

/* Logo */
.site-logo {
	position: relative;
	padding: 6px 12px;
	margin: -6px -12px;
	flex-shrink: 0;
}

.logo-img {
	height: 48px;
	width: auto;
	max-width: 100%;
	display: block;
	object-fit: contain;
}

:root[data-theme="light"] .site-logo::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: #0a0a0a5c;
	border-radius: 12px;
	filter: blur(6px);
	z-index: 0;
}

:root[data-theme="light"] .site-logo > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 767px) {
	:root { --nav-h: 64px; }
	.logo-img { height: calc(var(--nav-h) - 16px); }
	.site-navbar { align-items: center; }
	.site-logo { min-width: 0; }
}

/* Custom hamburger */
.site-toggler {
	border: none;
	padding: 6px;
	background: transparent;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.site-toggler:focus { outline: none; box-shadow: none; }

.site-toggler span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--text);
	transition: transform .3s, opacity .3s;
}

/* Nav links */
.site-navbar .navbar-nav { min-width: 0; }

.site-navbar .navbar-nav .nav-item .nav-link {
	color: var(--muted);
	font-size: clamp(12px, 2vw, 18px);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: .4rem .9rem;
	transition: color .2s, opacity .2s;
	white-space: nowrap;
}

.site-navbar .navbar-nav .nav-item .nav-link:hover,
.site-navbar .navbar-nav .nav-item.active .nav-link {
	color: var(--text);
}

/* Desktop hover dropdowns */
@media (min-width: 992px) {
	.site-navbar .dropdown:hover > .dropdown-menu { display: block; }
	.site-navbar .dropdown > .dropdown-toggle { pointer-events: none; }
	.site-navbar .dropdown > .dropdown-toggle::after { display: none; }
}

/* Dropdown menu */
.site-navbar .dropdown-menu {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 0;
	padding: .5rem 0;
	min-width: 200px;
	margin-top: 0 !important;
	box-shadow: 0 8px 32px rgba(var(--shadow-rgb),.5);
	z-index: 1040;
}

.site-navbar .dropdown-item {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: .55rem 1.25rem;
	transition: color .15s, background .15s;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
	background: rgba(var(--accent-rgb), .08);
	color: var(--text);
}

/* Mobile nav */
@media (max-width: 991px) {
	.site-navbar.is-scrolled + * ,
	.site-navbar { background: rgba(var(--bg-rgb),.97) !important; }
	.site-navbar .navbar-collapse {
		background: var(--bg-2);
		border-top: 1px solid var(--border);
		padding: 1rem 0;
	}
	.site-navbar .navbar-nav { width: 100%; text-align: center; }
	.site-navbar .navbar-nav .nav-item .nav-link {
		font-size: 18px;
		padding: .75rem 1rem;
		text-align: center;
	}
	.site-navbar .dropdown-menu {
		background: var(--bg-3);
		border: none;
		padding-left: 0;
		text-align: center;
	}
	.site-navbar .dropdown-item {
		font-size: 16px;
		padding: .7rem 1.25rem;
		text-align: center;
	}
	.site-navbar .nav-lang { width: 100%; padding: .5rem 1.25rem 0; margin-left: 0; position: relative; }
	.site-navbar .lang-switcher { width: 100%; justify-content: space-between; }
	.site-navbar .lang-item { border-right: none; padding: 0; }
	.site-navbar .nav-lang .theme-toggle {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		margin: 0;
	}
}

/* ── Lang switcher ─────────────────────────── */

.nav-lang { display: flex; align-items: center; flex-shrink: 0; }

.lang-switcher { display: flex; align-items: center; }

.lang-item {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .45;
	transition: opacity .3s ease;
	padding: 0 5px;
	color: var(--text) !important;
	border-right: 1px solid var(--border);
}

.lang-item:last-child { border-right: none; }

.lang-item:hover { opacity: 1; }

.lang-item.lang-active { opacity: .85; }

/* ── Theme toggle (sun/moon) ─────────────────── */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: .75rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--text);
	opacity: .45;
	cursor: pointer;
	transition: opacity .3s ease;
	flex-shrink: 0;
}
.theme-toggle:hover,
.theme-toggle:focus-visible { opacity: 1; outline: none; }
.theme-toggle svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}
/* dark → show sun (click to switch to light) */
.theme-toggle .theme-icon-sun  { display: block; }
.theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .theme-icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
@media (max-width: 991px) {
	.theme-toggle { margin-left: 0; }
}

/* ── Workarea / page scaffold ──────────────── */

#workarea { padding-top: var(--nav-h); }

#content {
	background: var(--bg);
	min-height: calc(100vh - var(--nav-h) - 280px);
	padding-bottom: 4rem;
}

body.is-tag-page #content,
body:not(.is-news-detail-page):has(.news-page) #content {
	--tag-page-fade-width: clamp(140px, 18vw, 320px);
	--tag-page-fade-offset: clamp(-320px, -18vw, -140px);
	--tag-page-fade-soft: clamp(32px, 4vw, 72px);
	--tag-page-fade-mid: clamp(82px, 10vw, 186px);
	background: transparent;
	overflow: visible;
	position: relative;
	z-index: 0;
}

body.is-tag-page #content::before,
body:not(.is-news-detail-page):has(.news-page) #content::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: var(--tag-page-fade-offset);
	right: var(--tag-page-fade-offset);
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(var(--bg-rgb), 0) 0,
		rgba(var(--bg-rgb), .18) var(--tag-page-fade-soft),
		rgba(var(--bg-rgb), .58) var(--tag-page-fade-mid),
		var(--bg) var(--tag-page-fade-width),
		var(--bg) calc(100% - var(--tag-page-fade-width)),
		rgba(var(--bg-rgb), .58) calc(100% - var(--tag-page-fade-mid)),
		rgba(var(--bg-rgb), .18) calc(100% - var(--tag-page-fade-soft)),
		rgba(var(--bg-rgb), 0) 100%
	);
}

body.is-tag-page #content > *,
body:not(.is-news-detail-page):has(.news-page) #content > * {
	position: relative;
	z-index: 1;
}

/* Mobile: expand workarea to full width, reduce content padding */
@media (max-width: 767px) {
	#workarea { width: 100%; }
	#content { padding-left: 1rem; padding-right: 1rem; }
	body.is-tag-page #content,
	body:not(.is-news-detail-page):has(.news-page) #content { background: var(--bg); }
	body.is-tag-page #content::before,
	body:not(.is-news-detail-page):has(.news-page) #content::before { content: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
	#workarea { width: 90vw; }
}

/* ── Page header / breadcrumb ──────────────── */

.page-header-area {
	padding-top: 5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2.5rem;
}

.bx-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin-bottom: .75rem;
}

.bx-breadcrumb-item {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.bx-breadcrumb-item a { color: var(--subtle); }
.bx-breadcrumb-item a:hover { color: var(--text); }
.bx-breadcrumb-item span { color: var(--subtle); }
.bx-breadcrumb-item .fa { color: var(--border); font-size: 10px; }

.page-title {
	font-size: clamp(22px, 3vw, 36px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text);
	margin: 0;
}

/* ── Section titles ────────────────────────── */

.section-title {
	font-size: clamp(18px, 2.6vw, 28px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text);
	margin-bottom: 1.5rem;
}

.section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--accent);
	margin-bottom: .5rem;
}

/* ── News list — horizontal (marsme.ru style) ─ */

.news-list-h {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.news-row {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--border);
	transition: background .2s;
}

.news-row:first-child { border-top: 1px solid var(--border); }

.news-row-thumb {
	flex: 0 0 220px;
	width: 220px;
	height: 160px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var(--bg-3);
	display: block;
	border-radius: var(--radius);
	transition: opacity .25s;
}

.news-row-thumb--empty { background: var(--bg-3); }

.news-row:hover .news-row-thumb { opacity: .85; }

.news-row-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.news-row-date {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
}

.news-row-title {
	font-size: clamp(15px, 1.5vw, 20px);
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--text);
}

.news-row-title a {
	color: var(--text);
	transition: color .2s;
}

.news-row-title a:hover { color: var(--accent); }

.news-row-excerpt {
	font-size: clamp(13px, 1.2vw, 15px);
	color: var(--muted);
	line-height: 1.6;
	margin: 0;
}

.news-row-more {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--accent);
	margin-top: .25rem;
	transition: color .2s, gap .2s;
	gap: .25rem;
}

.news-row-more:hover { color: var(--accent-h); }

/* Планшет: thumb уменьшен, row-layout сохраняется */
@media (min-width: 768px) and (max-width: 991px) {
	.news-row { gap: 1.5rem; padding: 1.5rem 0; }
	.news-row-thumb { flex: 0 0 180px; width: 180px; height: 135px; }
}

/* Малый планшет / mobile landscape */
@media (min-width: 576px) and (max-width: 767px) {
	.news-row { gap: 1.25rem; padding: 1.25rem 0; }
	.news-row-thumb { flex: 0 0 160px; width: 160px; height: 120px; }
}

/* Мобильный: thumb перелетает наверх, column layout */
@media (max-width: 575px) {
	.news-row { flex-direction: column; gap: 1rem; padding: 1.25rem 0; }
	.news-row-thumb { width: 100%; height: 200px; flex: none; }
}

/* ── News page container — full-bleed аналогично .movies-page ── */
body:has(.main-news-section) #workarea {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
body:has(.main-news-section) #content {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body:has(.main-news-section) #content {
	padding-bottom: 0 !important;
}
/* На главной блок новостей — витрина из 5 элементов, пагинация не нужна */
.main-news-section .news-pager { display: none; }
/* .main-news-section — мягкая подложка как на /news/ */
.main-news-section {
	--main-news-fade-width: clamp(140px, 18vw, 320px);
	--main-news-fade-soft: clamp(32px, 4vw, 72px);
	--main-news-fade-mid: clamp(82px, 10vw, 186px);
	position: relative;
	z-index: 0;
	overflow: visible;
	background: transparent;
}

.main-news-section::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: 50%;
	width: min(1380px, 92vw);
	padding-left: var(--main-news-fade-width);
	padding-right: var(--main-news-fade-width);
	box-sizing: content-box;
	transform: translateX(-50%);
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(var(--bg-rgb), 0) 0,
		rgba(var(--bg-rgb), .18) var(--main-news-fade-soft),
		rgba(var(--bg-rgb), .58) var(--main-news-fade-mid),
		var(--bg) var(--main-news-fade-width),
		var(--bg) calc(100% - var(--main-news-fade-width)),
		rgba(var(--bg-rgb), .58) calc(100% - var(--main-news-fade-mid)),
		rgba(var(--bg-rgb), .18) calc(100% - var(--main-news-fade-soft)),
		rgba(var(--bg-rgb), 0) 100%
	);
}

.main-news-section > * {
	position: relative;
	z-index: 1;
}

.news-page,
body:has(.news-page) .page-header-area,
.main-news-header,
.main-news-section #news-ajax-container,
.catalog-hero-content {
	padding-left: 40px;
	padding-right: 40px;
	max-width: 1380px;
	margin-left: auto;
	margin-right: auto;
}
.news-page { padding-top: 0; }

/* Заголовок «Новости» — визуально в духе страницы фильмов (и на /news/, и в блоке на главной) */
body:has(.news-page) .page-header-area,
.main-news-header {
	padding-top: 6rem;
	padding-bottom: 2rem;
	border-bottom: none;
	margin-bottom: 0;
}
body:has(.news-page) .page-title,
.main-news-header .page-title {
	position: relative;
	z-index: 2;
	width: max-content;
	max-width: 100%;
	margin: 0;
}

@media (max-width: 991px) {
	.news-page,
	body:has(.news-page) .page-header-area,
	.main-news-header,
	.main-news-section #news-ajax-container,
	.catalog-hero-content {
		padding-left: 30px;
		padding-right: 30px;
	}
	body:has(.news-page) .page-header-area,
	.main-news-header { padding-top: 5.5rem; }
}
@media (max-width: 767px) {
	body:has(.news-page) .page-header-area,
	.main-news-header {
		padding-top: 5rem;
		padding-bottom: 1.5rem;
	}
	.main-news-section { background: var(--bg); }
	.main-news-section::before { content: none; }
}
@media (max-width: 575px) {
	.news-page,
	body:has(.news-page) .page-header-area,
	.main-news-header,
	.main-news-section #news-ajax-container,
	.catalog-hero-content {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* ── Scroll-hint: «Ещё ↓» — fixed-пилюля внизу viewport ──
   Общий стиль для всех подсказок: .scroll-hint (generic), .news-scroll-hint
   (news.list), .movies-scroll-hint (catalog). Логика показа/пропадания —
   в /js/scroll-hint.js. */
.scroll-hint,
.news-scroll-hint,
.movies-scroll-hint {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 72px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 14px;
	z-index: 50;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.scroll-hint.is-visible,
.news-scroll-hint.is-visible,
.movies-scroll-hint.is-visible { opacity: 1; }
.scroll-hint-label,
.news-scroll-hint-label,
.movies-scroll-hint-label {
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: rgba(0,0,0,.65);
	padding: .5rem .9rem;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}
.scroll-hint-arrow,
.news-scroll-hint-arrow,
.movies-scroll-hint-arrow {
	display: inline-block;
	line-height: 1;
	font-size: 14px;
}
@keyframes scroll-hint-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
	.scroll-hint-label,
	.news-scroll-hint-label,
	.movies-scroll-hint-label { animation: none; }
}

/* ── News cards ────────────────────────────── */

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.news-card {
	background: var(--bg-3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .3s ease;
	border-radius: var(--radius);
}

.news-card:hover { transform: translateY(-4px); }

.news-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
}

.news-card-link:hover { color: inherit; }

.news-card-image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-2);
}

.news-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
	display: block;
}

.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-body {
	padding: 1.25rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-card-date {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	display: block;
	margin-bottom: .5rem;
}

.news-card-title {
	font-size: clamp(14px, 1.4vw, 17px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--text);
	margin: 0 0 .75rem;
}

.news-card-excerpt {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.55;
	margin: 0;
	flex: 1;
}

/* Pager */
.news-pager {
	margin-top: 2.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	align-items: center;
	padding-bottom: 37px;
}

.news-pager a,
.news-pager b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 .75rem;
	border-radius: 9999px;
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	background: transparent;
	transition: border-color .2s, color .2s, background .2s;
	text-decoration: none;
}

.news-pager a:hover { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), .06); }
.news-pager b { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ── Orange paginator ──────────────────────── */
.system-nav-orange .nav-title {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: .75rem;
}

.system-nav-orange .nav-pages {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	align-items: center;
}

.system-nav-orange .nav-pages noindex {
	display: contents;
}

.system-nav-orange .nav-pages a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 .75rem;
	border-radius: 9999px;
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	background: transparent;
	transition: border-color .2s, color .2s, background .2s;
	text-decoration: none;
}

.system-nav-orange .nav-pages a:hover {
	border-color: var(--accent);
	color: var(--text);
	background: rgba(var(--accent-rgb), .06);
}

.system-nav-orange .nav-current-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 .75rem;
	border-radius: 9999px;
	border: 1px solid var(--accent);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: var(--accent);
	color: #fff;
}

/* ── Mobile pager: simplified ─────────────── */
@media (max-width: 767px) {
	/* Hide counter and "все" link */
	.system-nav-orange .nav-title { display: none; }
	.system-nav-orange .nav-pages noindex { display: none; }

	/* Kill bare text nodes ("|", "&nbsp;") via font-size trick,
	   force single row */
	.system-nav-orange .nav-pages {
		font-size: 0;
		gap: .3rem;
		justify-content: center;
		flex-wrap: nowrap;
	}

	/* Compact pill buttons for single row */
	.system-nav-orange .nav-pages a,
	.system-nav-orange .nav-current-page {
		font-size: 11px;
		min-width: 32px;
		height: 30px;
		padding: 0 .5rem;
	}

	/* Center the pager block */
	.news-pager { justify-content: center; }
}

/* ── Article detail ────────────────────────── */

.article-detail {
	/*max-width: 860px;*/
}

.article-head {
	margin-bottom: 1.75rem;
}

.article-lead {
	font-size: clamp(15px, 1.6vw, 18px);
	color: rgba(var(--text-rgb),.65);
	line-height: 1.7;
	margin-bottom: 2rem;
	font-style: italic;
}

.article-hero {
	margin-bottom: 2rem;
	overflow: hidden;
}

.article-hero img {
	width: 100%;
	height: auto;
	display: block;
}

.article-date {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	display: block;
	margin-bottom: .75rem;
}

.article-title {
	font-size: clamp(20px, 2.8vw, 32px);
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 1.5rem;
}

.article-body {
	color: rgba(var(--text-rgb),.8);
	font-size: clamp(14px, 1.5vw, 16px);
	line-height: 1.75;
}

.article-body h2,
.article-body h3 {
	font-weight: 700;
	margin-top: 2rem;
}

.article-body p,
.article-body span,
.article-body div,
.article-body li,
.article-body td { margin-bottom: 1.25rem; }

.article-body img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
}

.article-body a { color: var(--accent); }
.article-body a:hover { color: var(--accent-h); }

/* ── Buttons ───────────────────────────────── */

.btn-pill {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	border-radius: 9999px;
	padding: .55em 1.5em;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
	text-decoration: none;
}

.btn-pill-accent {
	background: var(--accent);
	color: #fff;
	border: 1px solid var(--accent);
}

.btn-pill-accent:hover {
	background: var(--accent-h);
	border-color: var(--accent-h);
	color: #fff;
}

.btn-pill-outline {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-pill-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ── Feedback form ─────────────────────────── */

.mfeedback {
	max-width: 560px;
}

.mfeedback .mf-name,
.mfeedback .mf-email,
.mfeedback .mf-message,
.mfeedback .mf-captcha {
	margin-bottom: 1.25rem;
}

.mfeedback .mf-text {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--muted);
	margin-bottom: .4rem;
}

.mfeedback .mf-req { color: var(--accent); margin-left: 2px; }

.mfeedback input[type="text"],
.mfeedback textarea {
	width: 100%;
	background: var(--bg-3);
	border: 1px solid var(--border);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	padding: .7rem 1rem;
	transition: border-color .2s;
	outline: none;
	resize: vertical;
}

.mfeedback input[type="text"]:focus,
.mfeedback textarea:focus { border-color: var(--accent); }

.mfeedback input[type="submit"] {
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 9999px;
	padding: .6em 2em;
	font-family: var(--font);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	cursor: pointer;
	transition: background .2s;
}

.mfeedback input[type="submit"]:hover { background: var(--accent-h); }

.mf-ok-text {
	background: rgba(var(--accent-rgb), .1);
	border: 1px solid rgba(var(--accent-rgb), .3);
	padding: .75rem 1rem;
	font-size: 14px;
	margin-bottom: 1rem;
}

/* ── Footer ────────────────────────────────── */

.site-footer {
	background: var(--bg);
	border-top: 1px solid var(--border);
	padding: 0 1rem 2rem;
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 3rem 0 3rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1.5rem;
}

.footer-logo {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	margin: -6px -12px;
}

.footer-logo img {
	height: 48px;
	width: auto;
	display: block;
}

:root[data-theme="light"] .footer-logo::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: #0a0a0a5c;
	border-radius: 12px;
	filter: blur(6px);
	z-index: 0;
}

:root[data-theme="light"] .footer-logo > * {
	position: relative;
	z-index: 1;
}

/*.footer-logo:hover img { opacity: 1; }*/

@media (max-width: 767px) {
	.footer-top {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 1rem;
		padding: 1.5rem 0;
	}
	.footer-logo {
		margin-right: auto;
	}
	.footer-logo img { height: 48px; }
	.footer-socials { margin-left: auto; }
	.footer-nav { order: 3; width: 100%; }
	.footer-nav .navbar-nav { justify-content: center; }
}

/* Footer nav — horizontal pill list */
.footer-nav .navbar-nav {
	flex-direction: row;
	flex-wrap: wrap;
	gap: .25rem;
}

.footer-nav .nav-item .nav-link {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--subtle);
	padding: .3rem .65rem;
	transition: color .2s;
}

.footer-nav .nav-item .nav-link:hover { color: var(--text); }

/* Socials */
.footer-socials {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.social-link {
	display: flex;
	color: var(--subtle);
	transition: color .2s;
}

.social-link:hover { color: var(--accent); }

/* Bottom row */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

.footer-copy {
	font-size: 12px;
	color: var(--subtle);
}

.footer-address {
	font-size: 12px;
	color: var(--subtle);
}

.footer-address a { color: var(--subtle); }
.footer-address a:hover { color: var(--text); }

/* ── About us — stats infographic ──────────── */

.about-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 3rem;
	border: 1px solid var(--border);
}

.about-stat-item {
	flex: 1 1 0;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1.5rem;
	text-align: center;
	border-radius: var(--radius);
	border-right: 1px solid var(--border);
	transition: background .2s;
}

.about-stat-item:last-child { border-right: none; }

.about-stat-item:hover { background: var(--bg-3); }

.about-stat-num {
	display: block;
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 800;
	line-height: 1;
	color: var(--accent);
	letter-spacing: -.02em;
	margin-bottom: .5rem;
}

.about-stat-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--muted);
}

.about-text {
	font-size: clamp(14px, 1.4vw, 17px);
	line-height: 1.8;
	color: rgba(var(--text-rgb),.8);
}

.about-text p { margin-bottom: 1.25rem; }

@media (max-width: 767px) {
	.about-stat-item {
		flex: 1 1 45%;
		border-right: none;
		border-bottom: 1px solid var(--border);
	}
	.about-stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
	.about-stat-item:last-child      { border-bottom: none; }
}

/* ── Person detail (direction) ──────────────── */

.person-detail {
	display: flex;
	gap: 3.5rem;
	align-items: flex-start;
}

.person-photo-wrap {
	flex: 0 0 280px;
	max-width: 280px;
}

.person-photo {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 8px 40px rgba(var(--shadow-rgb),.8);
}

.person-body { flex: 1; min-width: 0; }

.person-name {
	font-size: clamp(22px, 3.5vw, 44px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--text);
	margin: 0 0 .5rem;
	line-height: 1.15;
}

.person-position {
	font-size: clamp(12px, 1.2vw, 14px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--accent);
	margin-bottom: 1.25rem;
}

.person-divider {
	width: 80px;
	height: 4px;
	background: var(--accent);
	margin-bottom: 1.75rem;
}

.person-bio {
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.8;
	color: rgba(var(--text-rgb),.8);
}

.person-bio p { margin-bottom: 1rem; }

@media (max-width: 767px) {
	.person-detail { flex-direction: column; gap: 1.5rem; }
	.person-photo-wrap { flex: 0 0 auto; max-width: 200px; }
}

/* ── Film / serial detail page ─────────────── */

body.is-film-page #workarea {
	padding-top: 0;
}

/* На детальной фильма/сериала сайдбара нет — отдаём почти всю ширину
   контенту, иначе на планшете (default #workarea = 66vw) карточка и
   таблица свойств сжимаются в узкую колонку. */
@media (min-width: 768px) {
	body.is-film-page #workarea { width: 92vw; }
}

body.is-film-page .page-header-area,
body.is-person-page .page-header-area {
	display: none;
}

body.is-film-page #content {
	--film-page-fade-width: clamp(140px, 18vw, 320px);
	--film-page-fade-soft: clamp(32px, 4vw, 72px);
	--film-page-fade-mid: clamp(82px, 10vw, 186px);
	background: transparent;
	overflow: visible;
}

.film-hero {
	width: 100vw;
	position: relative;
	z-index: 1;
	left: 50%;
	transform: translateX(-50%);
	height: 70vh;
	min-height: 400px;
	background-size: cover;
	background-position: center 20%;
	background-repeat: no-repeat;
	margin-bottom: -6rem;
	-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 96px), rgba(0, 0, 0, .65) calc(100% - 48px), transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 96px), rgba(0, 0, 0, .65) calc(100% - 48px), transparent 100%);
}

.film-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,.15) 0%,
		rgba(0,0,0,.6)  60%,
		rgba(0,0,0,.25) 100%
	);
}

.film-detail {
	position: relative;
	z-index: 1;
	padding: 37px;
}

/* Блок longform (Аннотация + longread + awards + tag-block) вынесен из
   .film-detail: news-like контейнер поверх body-bg.
   Вырываемся из узкого #workarea (92vw на десктопе) на всю ширину viewport,
   затем центрируем контент в 1380px с боковыми 40/30/20px как у .news-page. */
.film-longform {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 2rem max(40px, calc((100vw - 1380px) / 2 + 40px));
	box-sizing: border-box;
	background: transparent;
	position: relative;
}

.film-longform::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 6rem;
	bottom: 0;
	left: 50%;
	width: min(1380px, 92vw);
	padding-left: var(--film-page-fade-width);
	padding-right: var(--film-page-fade-width);
	box-sizing: content-box;
	transform: translateX(-50%);
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(var(--bg-rgb), 0) 0,
		rgba(var(--bg-rgb), .18) var(--film-page-fade-soft),
		rgba(var(--bg-rgb), .58) var(--film-page-fade-mid),
		var(--bg) var(--film-page-fade-width),
		var(--bg) calc(100% - var(--film-page-fade-width)),
		rgba(var(--bg-rgb), .58) calc(100% - var(--film-page-fade-mid)),
		rgba(var(--bg-rgb), .18) calc(100% - var(--film-page-fade-soft)),
		rgba(var(--bg-rgb), 0) 100%
	);
}

.film-longform > * {
	position: relative;
	z-index: 2;
}

/* Внутри longform .film-main — последний блок в .film-detail, свой margin-bottom
 * 3rem здесь создаёт двойной зазор с .film-detail padding: убираем. */
.film-longform .film-main { margin-bottom: 0; }

@media (max-width: 991px) {
	.film-longform {
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media (max-width: 575px) {
	.film-longform {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Галерея — последний блок, выходит на 100vw; нижние падинги родителей
   (.film-detail и #content) рисуют лишнюю тёмную полосу между лентой и
   футером. Когда галерея есть — прижимаем её к футеру. */
.film-detail:has(.film-gallery-block) {
	padding-bottom: 0;
}

/* На всех film/soap-страницах #content не должен добавлять свой зазор снизу:
   при наличии галереи она сама упирается в футер, без галереи остаётся только
   внутренний padding .film-detail. */
body.is-film-page #content {
	padding-bottom: 0;
}

.film-main {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
	margin-bottom: 3rem;
}

.film-poster-col {
	flex: 0 0 260px;
	max-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.film-poster { display: block; position: relative; }

.film-poster img {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 8px 40px rgba(var(--shadow-rgb),.8);
	border-radius: var(--radius);
}

.film-age-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, .9);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	letter-spacing: .02em;
	pointer-events: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.film-info-col {
	flex: 1;
	min-width: 0;
	background: var(--surface);
	padding: 2rem;
	border-radius: var(--radius);
}

.film-title {
	font-size: clamp(24px, 4vw, 42px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--surface-text);
	margin: 0 0 .75rem;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	max-width: 100%;
}

.film-divider {
	width: 100px;
	height: 4px;
	background: var(--accent);
	margin: 0 0 1.75rem;
}

.film-props { margin-bottom: 1.75rem; }

.film-props p {
	display: flex;
	gap: .75rem;
	margin: 0;
	padding: .6rem 0;
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.5;
	color: var(--surface-text);
	border-bottom: 1px solid var(--surface-border);
}

.film-props p strong {
	flex: 0 0 150px;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--surface-muted);
	padding-top: .15em;
}

.film-props p:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.film-synopsis {
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.75;
	color: var(--surface-text);
	margin-bottom: 1.25rem;
}

.film-synopsis p { margin-bottom: .75rem; }

.film-section-title {
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text);
	padding-bottom: .5rem;
	margin-bottom: 1.25rem;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}

/* ── Longread: DETAIL_TEXT как аккордеон + грид байек ────── */

.film-longread {
	margin: 1.5rem 0 2rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.film-longread-section {
	border: 1px solid var(--surface-border);
	border-left: 3px solid var(--accent);
	background: rgba(var(--text-rgb), .02);
}

.film-longread-section--details {
	padding: 0;
}

.film-longread-section--details .film-longread-summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	transition: background .15s;
}

.film-longread-section--details .film-longread-summary::-webkit-details-marker {
	display: none;
}

.film-longread-section--details .film-longread-summary:hover {
	background: rgba(var(--accent-rgb), .06);
}

.film-longread-title {
	font-family: var(--font-display);
	font-size: clamp(15px, 1.5vw, 18px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--surface-text);
	margin: 0;
}

.film-longread-chevron {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(45deg);
	transition: transform .2s;
	margin-right: .35rem;
}

details[open] > .film-longread-summary .film-longread-chevron {
	transform: rotate(-135deg);
}

.film-longread-content {
	padding: .25rem 1.25rem 1.25rem;
}

.film-longread-lead {
	font-style: italic;
	font-size: clamp(15px, 1.5vw, 17px);
	line-height: 1.55;
	color: var(--accent);
	padding: .25rem 0;
	margin: 0 0 1rem;
}

.film-longread-body,
.film-longread-card-body {
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.75;
	color: var(--surface-text);
}

.film-longread-body p,
.film-longread-card-body p {
	margin: 0 0 .75rem;
}

.film-longread-body p:last-child,
.film-longread-card-body p:last-child {
	margin-bottom: 0;
}

/* Карусель байек (внутри .film-longread-content) */
.film-longread-slides {
	position: relative;
	margin-top: 1rem;
}

.film-longread-slides-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: .25rem 0 .5rem;
	scrollbar-width: none;            /* Firefox */
	-ms-overflow-style: none;         /* IE/legacy Edge */
}
.film-longread-slides-track::-webkit-scrollbar { display: none; }

.film-longread-card {
	flex: 0 0 clamp(280px, 32vw, 420px);
	scroll-snap-align: start;
	background: var(--surface);
	border: 1px solid var(--surface-border);
	border-top: 3px solid var(--accent);
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.film-longread-card-title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--accent);
	margin: 0;
	line-height: 1.3;
}

.film-longread-slides-nav {
	display: flex;
	align-items: center;
	gap: .75rem;
	justify-content: flex-end;
	margin-top: .5rem;
}

.film-longread-slides-btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--surface-border);
	background: transparent;
	color: var(--surface-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	transition: background .2s, border-color .2s, color .2s, opacity .2s;
}

.film-longread-slides-btn:hover:not(:disabled),
.film-longread-slides-btn:focus-visible:not(:disabled) {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	outline: none;
}

.film-longread-slides-btn:disabled {
	opacity: .3;
	cursor: default;
}

.film-longread-slides-btn::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.film-longread-slides-btn--prev::before { transform: rotate(135deg) translate(-1.5px, -1.5px); }
.film-longread-slides-btn--next::before { transform: rotate(-45deg) translate(-1.5px, 1.5px); }

@media (prefers-reduced-motion: reduce) {
	.film-longread-slides-track { scroll-behavior: auto; }
}

@media (max-width: 767px) {
	.film-longread-section--details .film-longread-summary { padding: .85rem 1rem; }
	.film-longread-content { padding: .25rem 1rem 1rem; }
	.film-longread-slides-track { gap: .75rem; }
	.film-longread-card { flex-basis: 85vw; }
	.film-longread-slides-nav { display: none; } /* свайпом, без кнопок */
	.film-longread-body,
	.film-longread-card-body { font-size: 15px; line-height: 1.65; }
	.film-longread-lead { font-size: 15px; }
}

.film-trailer-block { margin-bottom: 3rem; }

.film-trailer {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	background: var(--bg-3);
}

.film-trailer iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

@media (max-width: 767px) {
	.film-hero { height: 45vh; margin-bottom: -3rem; }
	.film-main { flex-direction: column; gap: 1.5rem; }
	.film-poster-col { flex: 0 0 auto; width: 100%; max-width: 100%; }
	.film-poster img { max-width: 340px; margin: 0 auto; }
	.film-info-col { width: 100%; max-width: 100%; padding: 1rem; }
	/* На мобилке fitTitle ненадёжен (race с загрузкой постера) — разрешаем
	   перенос заголовка и отключаем клиппинг, чтобы текст был виден всегда */
	.film-title { white-space: normal; overflow: visible; overflow-wrap: break-word; }
	.film-props p { flex-direction: column; gap: .15rem; padding: .5rem 0; font-size: 15px; }
	.film-props p strong { flex: 0 0 auto; }
	.film-synopsis { font-size: 15px; line-height: 1.6; }
	/* Android Chrome часто ломает background-attachment:fixed — переключаем на scroll */
	body { background-attachment: scroll !important; }
	body.is-film-page .film-longform { background: var(--bg); }
	body.is-film-page .film-longform::before { content: none; }
	.film-detail { padding: 24px 16px; }
	.film-detail:has(.film-gallery-block) { padding-bottom: 0; }
}

/* Планшет: постер сверху, инфо-колонка на всю ширину. На 768-991 двухколоночный
   layout сжимает таблицу свойств и аннотацию до нечитаемой ширины. */
@media (min-width: 768px) and (max-width: 991px) {
	.film-main { flex-direction: column; gap: 1.5rem; }
	.film-poster-col { flex: 0 0 auto; width: 100%; max-width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; }
	.film-poster { max-width: 320px; }
	.film-poster img { max-width: 320px; }
	.film-info-col { width: 100%; max-width: 100%; }
	.film-title { white-space: normal; overflow: visible; overflow-wrap: break-word; }
	.film-detail { padding: 24px; }
}

/* ── Film gallery (filmstrip, like .movies-hero) ──── */

.film-gallery-block {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	padding-top: 3rem;
	background: var(--bg);
}

.film-gallery-block .film-section-title {
	max-width: 1200px;
	margin: 0 auto 1.5rem;
	padding: 0 2rem;
}

.film-gallery-filmstrip {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.film-gallery-strip-wrap {
	position: absolute;
	inset: 0;
	background-color: #141414;
}

.film-gallery-strip-wrap:hover .film-gallery-strip,
.film-gallery-strip-wrap:focus-within .film-gallery-strip {
	animation-play-state: paused;
}

.film-gallery-strip-wrap::before,
.film-gallery-strip-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 22px;
	z-index: 2;
	pointer-events: none;
	/* Прямоугольная перфорация ~BH/KS (12×10 в шаге 22px) — см. .movies-hero-strip-wrap */
	background-color: #050505;
	background-image:
		linear-gradient(to right,
			#1b1b1b 0, #1b1b1b 5px,
			transparent 5px, transparent 17px,
			#1b1b1b 17px, #1b1b1b 22px),
		linear-gradient(to bottom,
			#1b1b1b 0, #1b1b1b 6px,
			transparent 6px, transparent 16px,
			#1b1b1b 16px, #1b1b1b 22px);
	background-size: 22px 100%, 100% 100%;
	background-repeat: repeat-x, no-repeat;
}

.film-gallery-strip-wrap::before { top: 0; }
.film-gallery-strip-wrap::after  { bottom: 0; }

.film-gallery-strip {
	position: absolute;
	top: 28px;
	bottom: 28px;
	left: 0;
	display: flex;
	gap: 4px;
	padding: 0 4px;
	animation: film-gallery-slide 90s linear infinite;
	will-change: transform;
}

.film-gallery-frame {
	flex: 0 0 auto;
	aspect-ratio: 3 / 2;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: #222;
	filter: saturate(0.9) brightness(0.85);
	border-radius: 2px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
	transition: filter .25s ease, transform .25s ease, box-shadow .25s ease;
	text-decoration: none;
}

.film-gallery-frame { cursor: zoom-in; }

.film-gallery-frame:hover,
a.film-gallery-frame:focus-visible {
	filter: saturate(1.05) brightness(1);
	transform: scale(1.04);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.6);
	z-index: 1;
}

a.film-gallery-frame:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

@keyframes film-gallery-slide {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(var(--loop-shift, -50%), 0, 0); }
}

.film-gallery-strip.film-gallery-strip--fits {
	animation: none;
	left: 50%;
	transform: translateX(-50%);
}

.film-gallery-strip.film-gallery-strip--fits > span.film-gallery-frame {
	display: none;
}

.film-gallery-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background:
		linear-gradient(to right,
			rgba(10, 10, 10, 0.55) 0%,
			rgba(10, 10, 10, 0.12) 18%,
			rgba(10, 10, 10, 0)    50%,
			rgba(10, 10, 10, 0.12) 82%,
			rgba(10, 10, 10, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
	.film-gallery-strip { animation: none; }
}

@media (max-width: 767px) {
	.film-gallery-block .film-section-title { padding: 0 1rem; }
}

/* ── Homepage hero slider ─────────────────── */

body.is-hero-page #workarea {
	padding-top: 0;
}

body.is-hero-page .page-header-area {
	display: none;
}

body.is-hero-page #content {
	background: transparent;
}




/* Slider breakout (same pattern as .film-hero) */
.hero-slider {
	width: 100vw;
	height: 100vh;
	min-height: 400px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	overflow: hidden;
	margin-bottom: 0;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity .6s ease;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.hero-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 20%;
	background-repeat: no-repeat;
}

@keyframes heroZoomIn {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

.hero-slide.is-active .hero-slide-bg {
	animation: heroZoomIn 8s ease-out both;
}

.hero-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,.1)  0%,
		rgba(0,0,0,.55) 60%,
		rgba(0,0,0,.9)  100%
	);
}

.hero-slide-content {
	position: absolute;
	bottom: 8rem;
	left: 0;
	right: 0;
	padding: 0 4rem;
	color: #fff;
}

.hero-slide-title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
	text-shadow: 0 2px 8px rgba(0,0,0,.5);
	max-width: 60%;
}

.hero-slide-btn {
	display: inline-block;
	padding: .7rem 2rem;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: opacity .2s;
}

.hero-slide-btn:hover {
	opacity: .85;
	color: #fff;
	text-decoration: none;
}

/* Arrows */
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0,0,0,.4);
	border: none;
	color: #fff;
	font-size: 2.5rem;
	line-height: 1;
	padding: .5rem 1rem;
	cursor: pointer;
	transition: background .2s;
}

.hero-arrow:hover {
	background: rgba(0,0,0,.7);
}

.hero-arrow-prev { left:  1.5rem; }
.hero-arrow-next { right: 1.5rem; }

/* Dots */
.hero-dots {
	position: absolute;
	bottom: 2rem;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: .5rem;
	z-index: 10;
}

.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.4);
	cursor: pointer;
	padding: 0;
	transition: background .2s;
}

.hero-dot.is-active {
	background: #fff;
}

@media (min-width: 768px) and (max-width: 991px) {
	.hero-slide-content { bottom: 4rem; padding: 0 2.5rem; }
	.hero-slide-title   { max-width: 80%; }
}

@media (max-width: 767px) {
	.hero-slide-content { bottom: 5rem; padding: 0 1.5rem; }
	.hero-slide-title   { font-size: clamp(1.4rem, 5vw, 2rem); max-width: 100%; }
	.hero-arrow         { font-size: 2rem; padding: .4rem .8rem; }
}

/* ── Project catalog sections ──────────────── */

.soaps-catalog,
.movies-catalog { padding-bottom: 3rem; }

.soaps-section-block,
.movies-section-block { margin-bottom: 3rem; }

.soaps-section-title,
.movies-section-title {
	font-size: clamp(16px, 2vw, 22px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding-bottom: .65rem;
	margin-bottom: 1.75rem;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}

.soaps-section-title a,
.movies-section-title a { color: var(--text); transition: color .2s; }

.soaps-section-title a:hover,
.movies-section-title a:hover { color: var(--accent); }

/* ── Project poster grid ───────────────────── */

.projects-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25rem;
}

@media (max-width: 1199px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }
@media (max-width: 479px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

.project-card {
	display: block;
	color: var(--text);
	text-decoration: none;
	transition: transform .3s ease;
}

.project-card:hover {
	color: var(--text);
	transform: translateY(-4px);
}

.project-card-poster {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--bg-3);
	border-radius: var(--radius);
}

.project-card-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.project-card:hover .project-card-poster img { transform: scale(1.06); }

.project-card-no-img {
	width: 100%;
	height: 100%;
	background: var(--bg-3);
}

.project-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.7) 100%);
	opacity: 0;
	transition: opacity .3s ease;
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-body { padding: .6rem 0 0; }

.project-card-title {
	font-size: clamp(12px, 1.1vw, 14px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--text);
	margin-bottom: .3rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	align-items: center;
}

.project-card-year {
	font-size: 11px;
	font-weight: 600;
	color: var(--accent);
}

.project-card-genre {
	font-size: 11px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project-card-year + .project-card-genre::before {
	content: "·";
	margin-right: .3rem;
	color: var(--subtle);
}

/* ── Project / alphabet filters ───────────── */

.projects-filters {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2rem;
}

.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.filter-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 .75rem;
	border-radius: 9999px;
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	background: transparent;
	transition: border-color .2s, color .2s, background .2s;
	text-decoration: none;
}

.filter-pill:hover {
	border-color: var(--accent);
	color: var(--text);
	background: rgba(var(--accent-rgb), .06);
}

.filter-pill.active {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

/* ── Common utilities ──────────────────────── */

.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--muted) !important; }
.bg-surface { background: var(--bg-3) !important; }

/* Errors / notices */
.errortext, .starrequired { color: var(--accent); }

.errortext, .notetext {
	background: rgba(var(--accent-rgb), .07);
	border: 1px solid rgba(var(--accent-rgb), .3);
	padding: .5rem .75rem;
	font-size: 13px;
}

/* Search */
div.search-item { border-color: var(--border); }
div.search-item-meta,
div.search-item-meta a { color: var(--muted); }

div.search-page input.search-query {
	background: var(--bg-3);
	border-color: var(--border);
	color: var(--text);
}

div.search-sorting b { background: var(--bg-3); }

/* Content form */
div.content-form div.form-input input,
div.content-form div.form-input textarea,
div.content-form div.form-input select {
	background: var(--bg-3);
	border-color: var(--border);
	color: var(--text);
}

div.content-form div.field label.field-title { color: var(--muted); }

/* Photogallery admin control buttons (Bitrix hardcodes height:20px, breaks with Manrope) */
div.photo-controls-buttons ul.photo-controls li {
	height: auto !important;
	overflow: visible !important;
	line-height: 1.6 !important;
	padding: 2px 0 !important;
}
div.photo-controls-buttons ul.photo-controls li a {
	height: auto !important;
	line-height: 1.6 !important;
}

/* Photogallery dark theme overrides (gray theme assumes light bg) */
ul.photo-album-list-first-photos .album-name,
ul.photo-album-list-first-photos .album-name a { color: var(--text) !important; }
li.photo-album-item div.photo-album-photos { color: var(--muted) !important; }
div.photo-album-date,
div.photo-photo-date { color: var(--muted) !important; }
div.photo-album-name a { color: var(--text) !important; }
div.photo-album-name a:hover { color: var(--accent) !important; }
.photo-album-item .photo-album-descr { color: var(--muted) !important; }

/* ======================== PAGE TRANSITIONS ======================== */
#pageOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
  z-index: 99999;
  pointer-events: none;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ======================== IMAGE REVEAL EFFECT ======================== */
.reveal-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.reveal-wrap .reveal-cover {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  transform-origin: left;
  z-index: 2;
}

/* ======================== TEXT SPLIT ANIMATIONS ======================== */
.split-lines .split-line {
  display: block;
  overflow: hidden;
}
.split-lines .split-line-inner {
  display: block;
}
.split-chars .split-word {
  display: inline-block;
  white-space: nowrap;
}
.split-chars .split-char {
  display: inline-block;
}

/* ======================== NAV LINK ANIMATED UNDERLINE ======================== */
@media (min-width: 992px) {
  .site-navbar .nav-link {
    position: relative;
  }
  .site-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
  }
  .site-navbar .nav-link:hover::after,
  .site-navbar .nav-item.active .nav-link::after {
    width: 100%;
    left: 0;
  }
}

/* ======================== SOCIAL ICONS HOVER ======================== */
.site-footer .social-link {
  transition: transform 0.25s ease, color 0.25s ease;
}
.site-footer .social-link:hover {
  transform: scale(1.15);
  color: var(--accent);
}

/* ======================== ENHANCED CARD HOVERS ======================== */
.project-card .project-card-poster img {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-card-poster img {
  transform: scale(1.1);
}
.project-card .project-card-overlay {
  opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  transition: opacity 0.4s ease;
}
.project-card:hover .project-card-overlay {
  opacity: 1;
}
.project-card:hover {
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.15);
}

.news-row:hover .news-row-title {
  color: var(--accent);
  transition: color 0.3s ease;
}
.news-row .news-row-thumb {
  transition: transform 0.3s ease;
  overflow: hidden;
}
.news-row:hover .news-row-thumb {
  transform: scale(1.03);
}

.direction-card .direction-photo {
  transition: transform 0.4s ease;
  border-radius: var(--radius);
}
.direction-card:hover .direction-photo {
  transform: scale(1.05);
}
.direction-card .direction-info {
  transition: transform 0.3s ease;
}
.direction-card:hover .direction-info {
  transform: translateY(-4px);
}

/* ── Light theme: lighten hero overlays instead of darkening ── */

:root[data-theme="light"] .hero-slide-overlay {
	background: linear-gradient(
		to bottom,
		rgba(var(--bg-rgb), .15) 0%,
		rgba(var(--bg-rgb), .55) 60%,
		rgba(var(--bg-rgb), .9)  100%
	);
}

:root[data-theme="light"] .hero-slide-content { color: var(--text); }

:root[data-theme="light"] .hero-slide-title {
	color: var(--text);
	text-shadow: 0 2px 8px rgba(var(--bg-rgb), .7);
}

:root[data-theme="light"] .hero-arrow {
	background: rgba(var(--bg-rgb), .5);
	color: var(--text);
}
:root[data-theme="light"] .hero-arrow:hover {
	background: rgba(var(--bg-rgb), .85);
}

:root[data-theme="light"] .hero-dot {
	background: rgba(var(--text-rgb), .35);
}
:root[data-theme="light"] .hero-dot.is-active {
	background: var(--text);
}

:root[data-theme="light"] .film-hero-overlay {
	background: linear-gradient(
		to bottom,
		rgba(var(--bg-rgb), .15) 0%,
		rgba(var(--bg-rgb), .6)  60%,
		rgba(var(--bg-rgb), .25) 100%
	);
}

/* Плёнка (.film-gallery-strip-wrap + перфорация) намеренно остаётся тёмной в светлой теме —
   стилистический элемент, не должен светлеть вместе с фоном. */

:root[data-theme="light"] .film-gallery-frame {
	filter: saturate(1) brightness(1.05);
	box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), .18);
}

:root[data-theme="light"] .film-gallery-frame:hover,
:root[data-theme="light"] a.film-gallery-frame:focus-visible {
	filter: saturate(1.05) brightness(1.1);
	box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), .18), 0 6px 20px rgba(var(--shadow-rgb), .25);
}

:root[data-theme="light"] .film-gallery-overlay {
	background:
		linear-gradient(to right,
			rgba(var(--bg-rgb), .55) 0%,
			rgba(var(--bg-rgb), .12) 18%,
			rgba(var(--bg-rgb), 0)   50%,
			rgba(var(--bg-rgb), .12) 82%,
			rgba(var(--bg-rgb), .55) 100%);
}

/* ── Персоны ─────────────────────────────────── */

.person-detail {
	position: relative;
	background: rgba(0, 0, 0, 0.7);
	padding: 37px;
	max-width: 1200px;
	margin: 0 auto 2rem;
}

.person-main {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
	margin-bottom: 3rem;
}

.person-photo-col {
	flex: 0 0 240px;
	max-width: 240px;
}

.person-photo { display: block; }

.person-photo img {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 8px 40px rgba(var(--shadow-rgb), .8);
	border-radius: var(--radius);
}

.person-info-col {
	flex: 1;
	min-width: 0;
	background: var(--surface);
	padding: 2rem;
	border-radius: var(--radius);
}

.person-title {
	font-size: clamp(24px, 4vw, 42px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--surface-text);
	margin: 0 0 .75rem;
	line-height: 1.1;
}

.person-divider {
	width: 100px;
	height: 4px;
	background: var(--accent);
	margin: 0 0 1.5rem;
}

.person-roles {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.25rem;
}

.person-role-badge {
	display: inline-block;
	padding: .3rem .8rem;
	background: rgba(var(--text-rgb), .08);
	border: 1px solid rgba(var(--text-rgb), .15);
	border-radius: 999px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--surface-text);
}

.person-links {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
	margin-bottom: 1.25rem;
}

.person-link {
	display: inline-block;
	padding: .4rem .9rem;
	background: var(--accent);
	color: var(--bg);
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;
	transition: filter .15s ease, transform .15s ease;
}

.person-link:hover,
.person-link:focus-visible {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.person-company {
	font-size: 14px;
	color: var(--surface-muted);
	font-style: italic;
}

.person-bio {
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.75;
	color: var(--surface-text);
	margin-top: 1rem;
}

.person-filmo-block {
	margin-top: 2.5rem;
}

.person-filmo-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: .5rem 1.5rem;
}

.person-filmo-item { border-bottom: 1px solid rgba(var(--text-rgb), .08); }

.person-filmo-link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: .7rem 0;
	color: var(--text);
	text-decoration: none;
	transition: color .15s ease;
}

.person-filmo-link:hover,
.person-filmo-link:focus-visible {
	color: var(--accent);
}

.person-filmo-name { font-size: 15px; }

.person-filmo-year {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--surface-muted);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
	.person-detail { padding: 24px 16px; }
	.person-main { flex-direction: column; gap: 1.5rem; }
	.person-photo-col { flex: 0 0 auto; width: 100%; max-width: 260px; margin: 0 auto; }
	.person-info-col { padding: 1rem; }
	.person-filmo-list { grid-template-columns: 1fr; }
}

/* ── Список персон (/persons/) ──────────────── */

.persons-list-wrap {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 2rem;
}

.persons-list-title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 2rem;
}

.persons-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.5rem;
}

.persons-grid-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.persons-grid-photo {
	display: block;
	width: 100%;
	aspect-ratio: 11 / 13;
	background-size: cover;
	background-position: center;
	background-color: rgba(var(--text-rgb), .08);
	border-radius: var(--radius);
	margin-bottom: .5rem;
	transition: transform .2s ease, filter .2s ease;
}

.persons-grid-link:hover .persons-grid-photo,
.persons-grid-link:focus-visible .persons-grid-photo {
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.persons-grid-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: .15rem;
}

.persons-grid-roles {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--surface-muted);
}

/* ── Ссылки на персон в карточке фильма ───── */

.film-person-link {
	color: var(--surface-text);
	text-decoration: none;
	border-bottom: 1px dashed rgba(var(--text-rgb), .25);
	transition: color .15s ease, border-color .15s ease;
}

.film-person-link:hover,
.film-person-link:focus-visible {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.film-cast-list {
	display: block;
	line-height: 1.7;
}

.film-cast-character {
	font-size: .9em;
	color: var(--surface-muted);
	font-style: italic;
}

.film-awards {
	margin-top: 2rem;
}

.film-awards-value {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1rem;
	align-items: baseline;
	margin-bottom: 1rem;
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.5;
}

.film-awards-year {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .07em;
	color: var(--accent);
}

/* ── Film awards refinement: cards only, keep existing detail layout ───── */

body.is-film-page .film-awards {
	--awards-red: #ff2a0a;
	--awards-red-rgb: 255, 42, 10;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .85rem 1rem;
	margin-top: 2rem;
}

body.is-film-page .film-awards .film-section-title {
	grid-column: 1 / -1;
	display: block;
	width: 100%;
	margin-bottom: .45rem;
	border-bottom-color: var(--awards-red);
	color: var(--text);
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.1;
}

body.is-film-page .film-awards-value {
	position: relative;
	display: block;
	min-height: 104px;
	margin: 0;
	padding: 1.05rem 1.25rem 1.05rem 4.25rem;
	border: 1px solid rgba(var(--text-rgb), .12);
	border-radius: var(--radius);
	background:
		linear-gradient(115deg, rgba(var(--awards-red-rgb), .12), rgba(var(--awards-red-rgb), .035) 32%, transparent 55%),
		rgba(var(--text-rgb), .032);
	color: var(--text);
	font-size: clamp(15px, 1.35vw, 17px);
	line-height: 1.48;
}

body.is-film-page .film-awards-year {
	position: absolute;
	left: 1rem;
	top: 1rem;
	writing-mode: vertical-rl;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .08em;
	color: var(--awards-red);
}

@media (max-width: 767px) {
	body.is-film-page .film-awards {
		grid-template-columns: 1fr;
	}
}
