/* Спектр благодати — стиль по мотивам Evenings */

:root {
	--bg: #0b0b0d;
	--bg-2: #131317;
	--ink: #f4f1ea;
	--muted: #a19d95;
	--line: rgba(255, 255, 255, .12);
	--gold: #c9a55c;
	--gold-2: #e3c88a;
	--paper: #f6f3ec;
	--dark-ink: #111;
	--f-head: 'Oswald', 'Arial Narrow', sans-serif;
	--f-body: 'Raleway', system-ui, sans-serif;
	--f-label: 'Montserrat', system-ui, sans-serif;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.75 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--gold); }

.label {
	font: 700 12px/1.4 var(--f-label);
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 16px;
}

/* ---------- Прелоадер ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.preloader span { width: 14px; height: 14px; border: 1px solid var(--gold); animation: spin 1.2s linear infinite; }
.loaded .preloader { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: flex; align-items: center; gap: 32px;
	padding: 22px clamp(16px, 4vw, 48px);
	transition: background .35s, padding .35s;
}
.site-header.scrolled { background: rgba(8, 8, 10, .92); backdrop-filter: blur(8px); padding-block: 10px; }
.logo img { height: 84px; width: auto; transition: height .35s; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .5)); }
.scrolled .logo img { height: 54px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a, .panel-nav a {
	font: 700 12px var(--f-label); letter-spacing: .18em; text-transform: uppercase;
	position: relative; padding: 6px 0;
}
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .3s; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }
.socials { display: flex; gap: 14px; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ---------- Баннер ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-bg, .page-hero .hero-bg {
	position: absolute; inset: 0;
	background: var(--hero) 30% 12% / cover no-repeat;
	transform-origin: 30% 20%;
	animation: slowzoom 22s ease-in-out infinite alternate;
}
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; inset: 0; }
.hero-bg::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 100%), radial-gradient(ellipse at 70% 40%, rgba(201,165,92,.12), transparent 60%); }
/* точечный растр, как в Evenings */
.hero-bg::after { background-image: radial-gradient(rgba(0,0,0,.45) 1px, transparent 1.2px); background-size: 3px 3px; opacity: .55; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.07); } }

.hero-content { position: relative; z-index: 2; padding: 140px 16px 220px; }
.hero-content .label { color: var(--ink); }
.hero-content .label::after { content: ''; display: block; width: 46px; height: 1px; background: var(--gold); margin: 16px auto 0; }
.hero-title {
	font-size: clamp(54px, 11.5vw, 168px);
	font-weight: 700;
	letter-spacing: .01em;
	line-height: .95;
	text-shadow: 0 6px 40px rgba(0, 0, 0, .45);
}
.hero-title .accent { display: block; }
@media (min-width: 1000px) {
	.hero { place-items: center end; }
	.hero-content { width: 54%; padding-right: 5vw; }
	.hero-title { font-size: clamp(64px, 8.6vw, 150px); }
	.hero-bg::before { background: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.8) 75%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.85) 100%); }
	.scroll-down { left: 73%; }
}
.hero-sub { font: 700 13px var(--f-label); letter-spacing: .34em; text-transform: uppercase; margin: 22px 0 38px; color: var(--ink); }

.btn {
	display: inline-block; cursor: pointer;
	font: 700 12px var(--f-label); letter-spacing: .24em; text-transform: uppercase;
	color: var(--dark-ink); background: var(--gold);
	border: 1px solid var(--gold); padding: 17px 34px;
	transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--dark-ink); }

/* нижняя скошенная панель */
.hero-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: stretch; min-height: 96px; text-align: left; }
.panel-nav {
	position: relative; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center;
	padding: 18px 90px 18px clamp(16px, 4vw, 48px); color: var(--dark-ink);
}
.panel-nav::before {
	content: ''; position: absolute; inset: 0 0 0 -40px; z-index: -1;
	background: var(--paper); transform: skewX(-24deg); transform-origin: bottom;
}
.panel-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.panel-nav a:hover { color: #8a6a25; }
.panel-nav li:first-child a { color: #8a6a25; }
.panel-note { margin: 6px 0 0; font: 500 11px var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: #555; }
.countdown { margin-left: auto; display: flex; align-items: flex-end; gap: clamp(14px, 3vw, 40px); padding: 14px clamp(16px, 4vw, 48px); background: linear-gradient(90deg, transparent, rgba(0,0,0,.55) 25%); }
.countdown div { text-align: center; }
.countdown b { display: block; font: 600 clamp(30px, 4vw, 50px)/1 var(--f-head); }
.countdown span { font: 700 10px var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.scroll-down { position: absolute; z-index: 3; left: 50%; bottom: 120px; width: 1px; height: 54px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-down span { position: absolute; left: 0; top: -54px; width: 1px; height: 54px; background: var(--gold); animation: drip 2s infinite; }
@keyframes drip { to { top: 54px; } }

/* ---------- Секции ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-title { font-size: clamp(42px, 7vw, 92px); }
.sec-sub { margin: 14px 0 0; font: 700 12px var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.sec-head .label::after { content: ''; display: block; width: 46px; height: 1px; background: var(--gold); margin: 14px auto 0; }

.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-text p { margin: 0 0 1.2em; color: #d6d2ca; }
.link-more { font: 700 12px var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.about-stat { text-align: center; border: 1px solid var(--line); padding: 48px 24px; position: relative; }
.about-stat::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,165,92,.25); pointer-events: none; }
.stat-num { display: block; font: 700 clamp(120px, 16vw, 210px)/1 var(--f-head); color: var(--gold); margin: 8px 0; }
.stat-label { font: 700 12px var(--f-label); letter-spacing: .3em; text-transform: uppercase; }

.ministries { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg-2); padding: 46px 30px; text-align: center; transition: background .35s; }
.card:hover { background: #1b1b21; }
.card svg { width: 46px; height: 46px; stroke: var(--gold); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 24px; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.verse { position: relative; padding: clamp(110px, 16vw, 200px) 16px; text-align: center; overflow: hidden; background: var(--hero) center 35% / cover fixed; }
.verse::before { content: ''; position: absolute; inset: 0; background: rgba(5,5,7,.78); }
.verse-inner { position: relative; max-width: 980px; margin: auto; }
.verse blockquote { margin: 0; font: 300 clamp(28px, 4.4vw, 56px)/1.2 var(--f-head); text-transform: uppercase; }

.steps { background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step-num { position: absolute; right: 0; top: 4px; font: 700 110px/1 var(--f-head); color: rgba(255,255,255,.06); }
.step h3 { font-size: 34px; margin-bottom: 14px; }
.step h3::before { content: ''; display: block; width: 30px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.step p { margin: 0; color: var(--muted); }

.schedule { background: var(--paper); color: var(--dark-ink); }
.schedule .sec-sub { color: #6b665c; }
.schedule .label { color: #8a6a25; }
.schedule-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.schedule-list li { display: grid; grid-template-columns: 1fr 120px 1.6fr; gap: 16px; align-items: baseline; padding: 24px 6px; border-bottom: 1px solid rgba(0,0,0,.12); transition: padding .3s, background .3s; }
.schedule-list li:hover { background: #fff; padding-inline: 20px; }
.s-day { font: 700 12px var(--f-label); letter-spacing: .24em; text-transform: uppercase; }
.s-time { font: 600 34px/1 var(--f-head); color: #8a6a25; }
.s-name { font: 400 22px var(--f-head); text-transform: uppercase; letter-spacing: .04em; }

.news { background: var(--bg-2); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post-thumb { display: block; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 20px; background: #222; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .6s, filter .6s; }
.post-card:hover img { transform: scale(1.06); filter: grayscale(0); }
.post-card .label { margin-bottom: 8px; }
.post-card h3 { font-size: 24px; margin-bottom: 10px; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.news .center, .section .center { margin-top: 56px; }

.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact .sec-title { margin-bottom: 36px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-list span { display: block; font: 700 11px var(--f-label); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label span { display: block; font: 700 11px var(--f-label); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; background: transparent; color: var(--ink); font: 400 16px var(--f-body);
	border: 0; border-bottom: 1px solid rgba(255,255,255,.25); padding: 10px 0; border-radius: 0; outline: none; transition: border-color .3s;
}
.contact-form select option { background: var(--bg-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form .btn { justify-self: start; margin-top: 10px; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin: 0; padding: 14px 18px; border-left: 2px solid; font-size: 15px; }
.form-msg.ok { border-color: var(--gold); background: rgba(201,165,92,.08); }
.form-msg.err { border-color: #d0614f; background: rgba(208,97,79,.08); }

/* ---------- Подвал ---------- */
.site-footer { background: #050506; border-top: 1px solid var(--line); padding: 60px 0 28px; }
.footer-inner { display: flex; align-items: center; gap: 40px; }
.footer-logo img { height: 96px; width: auto; }
.footer-text { flex: 1; color: var(--muted); font-size: 15px; }
.footer-text p { margin: 0; }
.footer-text .label { margin-bottom: 6px; }
.copy { text-align: center; margin: 44px 0 0; font: 500 11px var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: #6d6a64; }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; min-height: 56vh; display: grid; place-items: end center; text-align: center; overflow: hidden; padding: 160px 16px 70px; }
.page-hero-content { position: relative; z-index: 2; }
.page-title { font-size: clamp(40px, 7vw, 96px); }
.entry { font-size: 18px; color: #dcd8d0; }
.entry h2, .entry h3 { margin: 1.6em 0 .6em; color: var(--ink); }
.entry h2 { font-size: 40px; }
.entry a { color: var(--gold); border-bottom: 1px solid currentColor; }
.entry blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--gold); font-style: italic; }
.pagination { margin-top: 60px; text-align: center; font: 700 14px var(--f-label); }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); margin: 0 3px; }
.pagination .current { background: var(--gold); color: var(--dark-ink); border-color: var(--gold); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; transition-delay: calc(var(--d, 0) * 120ms); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { --d: 1; }
.hero .reveal:nth-child(3) { --d: 2; }
.hero .reveal:nth-child(4) { --d: 3; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-bg, .scroll-down span { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.site-header .socials { display: none; }
}
@media (max-width: 900px) {
	.burger { display: block; }
	.main-nav {
		position: fixed; inset: 0; z-index: -1; display: grid; place-items: center;
		background: rgba(5,5,7,.97); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; align-items: center; gap: 26px; }
	.main-nav a { font: 600 30px var(--f-head); letter-spacing: .06em; }
	.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.nav-open .burger span:nth-child(2) { opacity: 0; }
	.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.about-grid, .contact-grid { grid-template-columns: 1fr; }
	.steps-grid, .posts { grid-template-columns: 1fr; }
	.hero-panel { align-self: stretch; width: 100%; min-height: 80px; }
	.panel-nav { padding: 14px 64px 14px 16px; }
	.countdown { margin: 0; justify-content: center; background: rgba(0,0,0,.7); }
	.scroll-down { display: none; }
	.hero { display: flex; flex-direction: column; }
	.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 150px 16px 56px; }
	.hero-panel { position: relative; }
	.hero-bg::before { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.85) 100%); }
	.verse { background-attachment: scroll; }
	.footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
	.logo img { height: 60px; }
	.cards { grid-template-columns: 1fr; }
	.schedule-list li { grid-template-columns: 1fr auto; }
	.s-name { grid-column: 1 / -1; }
	.panel-nav ul { gap: 16px; flex-wrap: wrap; }
	.panel-nav a { letter-spacing: .1em; }
	.hero-sub { letter-spacing: .2em; }
}

/* ======================= v2: языки и разделы ======================= */

.main-nav ul { gap: 24px; }

/* Переключатель языка */
.lang-switch { position: relative; }
.lang-current {
	background: transparent; color: var(--ink); cursor: pointer;
	border: 1px solid rgba(255,255,255,.35); padding: 7px 26px 7px 12px;
	font: 700 12px var(--f-label); letter-spacing: .14em; position: relative;
	transition: border-color .25s, color .25s;
}
.lang-current::after { content: ''; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-70%) rotate(45deg); }
.lang-current:hover, .lang-switch.open .lang-current { border-color: var(--gold); color: var(--gold); }
.lang-list {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
	list-style: none; margin: 0; padding: 8px 0; background: #0f0f12; border: 1px solid var(--line);
	box-shadow: 0 18px 40px rgba(0,0,0,.5);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.lang-switch.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a { display: flex; gap: 12px; padding: 9px 18px; font-size: 15px; }
.lang-list b { font: 700 11px/1.9 var(--f-label); letter-spacing: .14em; color: var(--muted); width: 22px; }
.lang-list a:hover, .lang-list .is-current { background: rgba(201,165,92,.1); color: var(--gold); }
.lang-list .is-current b { color: var(--gold); }

.narrow-wide { width: min(940px, 100% - 32px); }
.empty { text-align: center; color: var(--muted); font-size: 17px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 60px 0 0; }
.contact-text { color: #cfcac1; margin: 0 0 24px; max-width: 460px; }
.contact .socials { margin-top: 26px; }
.contact .socials svg { width: 22px; height: 22px; }
.back-link { margin-top: 48px; }
.back-link a { border-bottom: 1px solid var(--gold); }

/* Аудио-треки */
.podcast { background: var(--bg-2); }
.worship { background: var(--bg); }
.tracks { border-top: 1px solid var(--line); }
.track {
	display: grid; grid-template-columns: 58px 1fr auto auto; gap: 22px; align-items: center;
	padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .3s;
}
.track:hover, .track.is-playing { background: rgba(201,165,92,.05); }
.track-play {
	width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold); background: transparent;
	display: grid; place-items: center; cursor: pointer; color: var(--gold); transition: background .25s, color .25s;
}
.track-play svg { width: 22px; height: 22px; fill: currentColor; }
.track-play .i-pause, .track.is-playing .i-play { display: none; }
.track.is-playing .i-pause { display: block; }
.track-play:hover, .track.is-playing .track-play { background: var(--gold); color: var(--dark-ink); }
.track.no-audio .track-play { opacity: .3; cursor: default; }
.track.no-audio .track-play:hover { background: transparent; color: var(--gold); }
.track-meta { margin: 0 0 4px; font: 700 11px var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.track-title { margin: 0; font: 400 24px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .03em; }
.track-bar { position: relative; height: 3px; background: rgba(255,255,255,.12); margin-top: 14px; cursor: pointer; }
.track-bar::before { content: ''; position: absolute; inset: -8px 0; }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); }
.track-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.track-time { font: 600 15px var(--f-head); color: var(--muted); min-width: 44px; text-align: right; }
.track-dl { color: var(--muted); }
.track-dl svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tracks-single { margin-bottom: 44px; }
.tracks-single .track-title { font-size: 20px; }

/* Видео */
.videos { background: var(--bg-2); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; margin-bottom: 18px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.75); transition: transform .6s, filter .6s; }
.video-card:hover img { transform: scale(1.05); filter: none; }
.video-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: rgba(201,165,92,.92); display: grid; place-items: center; transition: transform .3s; }
.video-play svg { width: 26px; height: 26px; fill: var(--dark-ink); margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.1); }
.video-card h3 { font-size: 22px; }
.video-card .label { margin-bottom: 8px; }
.video-embed { position: relative; aspect-ratio: 16/9; margin-bottom: 40px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.video-modal[hidden] { display: none; }
.video-frame { width: min(1100px, 100%); aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: var(--ink); font: 300 48px/1 var(--f-head); cursor: pointer; }
.video-close:hover { color: var(--gold); }

/* Подвал: меню */
.footer-nav { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.footer-nav a { font: 700 11px var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.footer-nav a:hover { color: var(--gold); }

@media (max-width: 1180px) {
	.main-nav ul { gap: 18px; }
	.main-nav a { letter-spacing: .12em; }
}
@media (max-width: 900px) {
	.lang-switch { margin-left: auto; }
	.burger { margin-left: 8px; }
	.video-grid { grid-template-columns: 1fr; }
	.track { grid-template-columns: 50px 1fr auto; gap: 14px; }
	.track-play { width: 50px; height: 50px; }
	.track-dl { display: none; }
	.track-title { font-size: 20px; }
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.video-len { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(0,0,0,.8); color: #fff; font: 600 13px/1 var(--f-head); letter-spacing: .04em; padding: 5px 7px; }

/* Регулятор громкости — появляется у играющей дорожки */
.vol-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--gold); line-height: 0; }
.vol-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vol-btn .vol-body { fill: currentColor; stroke: none; }
.vol-btn .vol-x, .dock.is-muted .vol-wave { display: none; }
.dock.is-muted .vol-x { display: inline; }
.vol-range {
	-webkit-appearance: none; appearance: none; width: 84px; height: 16px; margin: 0; background: transparent; cursor: pointer;
	--v: 100%;
}
.vol-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--v), rgba(255,255,255,.18) var(--v)); }
.vol-range::-moz-range-track { height: 2px; background: rgba(255,255,255,.18); }
.vol-range::-moz-range-progress { height: 2px; background: var(--gold); }
.vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: -4px; border: 0; transition: transform .2s; }
.vol-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 0; }
.vol-range:hover::-webkit-slider-thumb { transform: scale(1.3); }
.vol-range:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
@media (max-width: 900px) {
	.track { grid-template-columns: 50px 1fr auto; }
}

/* ---------- Нижний плеер (dock) ---------- */
.dock {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: rgba(9, 9, 11, .96); backdrop-filter: blur(10px);
	border-top: 1px solid rgba(201,165,92,.35);
	box-shadow: 0 -18px 40px rgba(0,0,0,.45);
	transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.dock.is-open { transform: none; }
body.has-dock { padding-bottom: 84px; }
.dock-progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: rgba(255,255,255,.08); cursor: pointer; }
.dock-progress::before { content: ''; position: absolute; inset: -7px 0; }
.dock-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); box-shadow: 0 0 10px rgba(201,165,92,.6); }
.dock-inner { display: flex; align-items: center; gap: 22px; height: 82px; padding: 0 clamp(16px, 4vw, 48px); }

.dock-controls { display: flex; align-items: center; gap: 6px; }
.dock-btn { background: none; border: 0; cursor: pointer; color: var(--ink); display: grid; place-items: center; transition: color .2s, background .25s, transform .2s; }
.dock-btn svg { fill: currentColor; }
.dock-prev, .dock-next { width: 38px; height: 38px; }
.dock-prev svg, .dock-next svg { width: 18px; height: 18px; }
.dock-prev:hover, .dock-next:hover { color: var(--gold); }
.dock-btn:disabled { opacity: .25; cursor: default; color: var(--ink); }
.dock-play { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--dark-ink); }
.dock-play:hover { transform: scale(1.06); }
.dock-play svg { width: 22px; height: 22px; }
.dock-play .i-pause, .dock.is-playing .dock-play .i-play { display: none; }
.dock.is-playing .dock-play .i-pause { display: block; }

.dock-cover { flex: 0 0 52px; height: 52px; border: 1px solid rgba(201,165,92,.45); display: grid; place-items: center; overflow: hidden; position: relative; }
.dock-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dock-cover svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.dock-info { flex: 1; min-width: 0; }
.dock-kind { margin: 0 0 3px; display: flex; align-items: center; gap: 8px; font: 700 10px var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.dock-live { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .35; }
.dock.is-playing .dock-live { opacity: 1; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(201,165,92,0); opacity: .5; } 0%, 100% { box-shadow: 0 0 0 0 rgba(201,165,92,.5); } }
.dock-title { display: block; font: 400 20px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-time { font: 500 14px var(--f-head); color: var(--muted); white-space: nowrap; letter-spacing: .04em; }
.dock-vol { display: flex; align-items: center; gap: 8px; }
.dock-vol .vol-range { width: 110px; }
.dock-icon { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); line-height: 0; transition: color .2s; }
.dock-icon:hover { color: var(--gold); }
.dock-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
	.dock-inner { height: 72px; gap: 12px; }
	body.has-dock { padding-bottom: 74px; }
	.dock-cover, .dock-vol, .dock-open, .dock-time { display: none; }
	.dock-info { order: -1; }
	.dock-play { width: 46px; height: 46px; }
	.dock-title { font-size: 17px; }
	.dock-close { margin-left: -4px; }
}

/* Секция с фото-подложкой (Поклонение) */
.has-bg { position: relative; background: var(--bg) center 35% / cover no-repeat; isolation: isolate; }
.has-bg::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.72) 40%, rgba(8,8,10,.9) 100%); }
.has-bg .tracks { background: rgba(8,8,10,.55); backdrop-filter: blur(3px); }
.has-bg .track { border-color: rgba(255,255,255,.1); }

/* Переход между страницами без перезагрузки */
#sg-page { transition: opacity .25s; }
body.is-loading #sg-page { opacity: .45; }
body.is-loading::after { content: ''; position: fixed; top: 0; left: 0; z-index: 120; height: 2px; width: 40%; background: var(--gold); animation: sgload 1s ease-in-out infinite; }
@keyframes sgload { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Слайдер баннера: медленное приближение → плавная смена ---------- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero .hero-slides .hero-bg {
	background-position: var(--pos, center);
	transform-origin: var(--pos, center);
	opacity: 0; z-index: 0;
	animation: none;
	transition: opacity 3s ease-in-out;
}
.hero .hero-slides .hero-bg.is-active { opacity: 1; z-index: 2; }
.hero .hero-slides .hero-bg.is-leaving { opacity: 0; z-index: 1; }
/* приближение идёт и у уходящего слайда — чтобы он не «прыгал» назад */
.hero .hero-slides .hero-bg.is-active,
.hero .hero-slides .hero-bg.is-leaving { animation: kenburns 13s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-content, .hero-panel, .scroll-down { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
	.hero .hero-slides .hero-bg.is-active, .hero .hero-slides .hero-bg.is-leaving { animation: none; }
}

/* Обложка в строке трека (проповеди) */
.track.has-cover { grid-template-columns: 58px 112px 1fr auto auto; }
.track-cover { display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.85); transition: filter .4s; }
.track:hover .track-cover img, .track.is-current .track-cover img { filter: none; }
/* Ссылка «Смотреть видео / Слушать аудио» */
.pair-link { margin-top: 36px; }
.pair-link .btn { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--gold); }
.pair-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
@media (max-width: 900px) {
	.track.has-cover { grid-template-columns: 50px 1fr auto; }
	.track-cover { display: none; }
}
.post-thumb img { object-position: 50% 35%; }

/* Заголовок статьи — над текстом, а не на баннере */
.entry-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.entry-head .label { margin-bottom: 14px; }
.entry-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; color: var(--ink); margin: 0; }
p.page-title { margin: 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; line-height: 1.05; }

/* ---------- Наши друзья: логотипы в ряд на светлом ---------- */
.friends { background: var(--paper); color: var(--dark-ink); }
.friends .label { color: #8a6a25; }
.friends .sec-head .label::after { background: #8a6a25; }
/* Ряды логотипов по центру: 4 в ряд (неполный ряд — по центру), 3 на планшете, 2 на телефоне */
.friends-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 26px; }
.friends-row li { flex: 0 0 25%; display: flex; align-items: center; justify-content: center; padding: 16px 26px; min-height: 180px; }
.friends-row a, .friends-row span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.friends-row img { max-height: 150px; max-width: min(230px, 100%); width: auto; object-fit: contain; opacity: .82; transition: opacity .3s, transform .3s; }
.friends-row a:hover img, .friends-row span:hover img { opacity: 1; transform: scale(1.04); }
@media (max-width: 1100px) {
	.friends-row li { flex-basis: 33.333%; }
}
@media (max-width: 700px) {
	.friends-row { row-gap: 8px; }
	.friends-row li { flex-basis: 50%; min-height: 130px; padding: 14px 16px; }
	.friends-row img { max-height: 108px; max-width: min(160px, 100%); }
}

/* Страница «О нас»: вступление, девиз, миссия */
.entry .about-intro { margin-top: 0; font-size: clamp(30px, 4vw, 44px); }
.entry .tagline, .about-text .tagline { font: 300 clamp(20px, 2.4vw, 26px)/1.3 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.4em; }
.entry .tagline em, .about-text .tagline em { font-style: normal; }
.entry .tagline:last-child { margin: 2.2em 0 0; text-align: center; }
.entry .mission { margin: 2.4em 0 0; padding: 28px 32px; border-left: 3px solid var(--gold); background: rgba(201,165,92,.07); font: 400 clamp(19px, 2vw, 23px)/1.5 var(--f-body); color: var(--ink); }
.entry strong { color: var(--ink); font-weight: 600; }

/* Фото в блоке «О нас» на главной (вместо «Двери открыты») */
.about-photo { position: relative; margin: 0; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.about-photo::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(201,165,92,.45); pointer-events: none; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.05); transition: transform 1.2s ease; }
.about-photo:hover img { transform: scale(1.04); }


/* Анонс человека на «О нас» и страница человека */
.person-teaser { margin-top: 70px; padding: 44px 46px; border: 1px solid var(--line); position: relative; background: linear-gradient(135deg, rgba(201,165,92,.07), transparent 60%); }
.person-teaser::before { content: ''; position: absolute; left: -1px; top: -1px; width: 70px; height: 3px; background: var(--gold); }
.person-teaser .label { margin-bottom: 10px; }
.entry .person-teaser .person-name { margin: 0 0 18px; font-size: clamp(30px, 3.6vw, 42px); }
.person-teaser p { margin: 0 0 28px; }
@media (max-width: 600px) { .person-teaser { padding: 30px 22px; } }

/* Кнопка «Поддержать служение» (PayPal) в белой панели баннера */
.donate-link { display: inline-flex; align-items: center; gap: 16px; color: var(--dark-ink); font: 700 13px var(--f-label); letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
.donate-icon { flex: 0 0 46px; height: 46px; border-radius: 50%; border: 1px solid #8a6a25; display: grid; place-items: center; color: #8a6a25; transition: background .3s, color .3s, transform .3s; }
.donate-icon svg { width: 19px; height: 19px; fill: currentColor; margin-left: 1px; }
.donate-arrow { color: #8a6a25; font-family: var(--f-body); letter-spacing: 0; transition: transform .3s; }
.donate-link:hover { color: #8a6a25; }
.donate-link:hover .donate-icon { background: #8a6a25; color: var(--paper); transform: scale(1.05); }
.donate-link:hover .donate-arrow { transform: translateX(5px); }
@media (max-width: 560px) {
	.donate-link { font-size: 11px; letter-spacing: .14em; gap: 12px; white-space: nowrap; }
	.donate-icon { flex-basis: 40px; height: 40px; }
}
@media (max-width: 420px) {
	.panel-nav { padding: 12px 52px 12px 16px; }
	.donate-link { font-size: 10.5px; letter-spacing: .1em; gap: 10px; }
	.donate-icon { flex-basis: 36px; height: 36px; }
	.donate-icon svg { width: 16px; height: 16px; }
}

/* Низ подвала: копирайт слева, разработчик сайта справа */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom .copy { margin: 0; text-align: left; }
.dev-credit { margin: 0; display: flex; align-items: center; gap: 12px; font: 500 10px var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: #6d6a64; }
.dev-credit img { height: 34px; width: auto; opacity: .45; transition: opacity .35s, transform .35s; }
.dev-credit:hover img { opacity: 1; transform: rotate(-4deg) scale(1.06); }
@media (max-width: 700px) {
	.footer-bottom { flex-direction: column; text-align: center; }
	.footer-bottom .copy { text-align: center; }
}
