/* ==========================================================================
   Тема «Покров» — основные стили
   Палитра: бордо, золото, тёплая бумага.
   ========================================================================== */

:root {
	--wine: #6b1f2a;
	--wine-deep: #48121b;
	--wine-soft: #893b46;
	--gold: #c19a55;
	--gold-bright: #d8b778;
	--gold-pale: #eadcc0;
	--paper: #faf6ee;
	--cream: #f0e5d3;
	--sand: #e2d2b8;
	--ink: #2b211c;
	--muted: #6f6258;
	--line: rgba(72, 18, 27, 0.14);
	--line-strong: rgba(72, 18, 27, 0.26);
	--white: #fffdf8;
	--serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sans: "Manrope", "Segoe UI", Arial, sans-serif;
	--shadow-sm: 0 10px 30px rgba(45, 24, 16, 0.07);
	--shadow-md: 0 24px 60px rgba(45, 24, 16, 0.13);
	--shadow-lg: 0 40px 100px rgba(30, 12, 9, 0.28);
	--container: 1240px;
	--radius: 2px;
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.72;
	letter-spacing: 0.005em;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.005em;
	color: var(--wine-deep);
}

h1 {
	font-size: clamp(2.8rem, 5.6vw, 4.6rem);
}

h2 {
	font-size: clamp(2.1rem, 3.6vw, 3.3rem);
}

h3 {
	font-size: clamp(1.5rem, 2.2vw, 2rem);
}

h4 {
	font-size: 1.35rem;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--wine);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
	color: var(--wine-soft);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	display: block;
}

ul,
ol {
	margin: 0 0 1.2em;
	padding-left: 1.25em;
}

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

button,
[type="submit"] {
	-webkit-appearance: none;
}

::selection {
	background: var(--gold);
	color: var(--wine-deep);
}

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

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Служебные классы и сетка
   -------------------------------------------------------------------------- */

.container {
	width: min(var(--container), calc(100% - clamp(40px, 7vw, 120px)));
	margin-inline: auto;
}

.container--narrow {
	width: min(860px, calc(100% - clamp(40px, 7vw, 120px)));
}

.section {
	position: relative;
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section--paper {
	background: var(--paper);
}

.section--cream {
	background: var(--cream);
}

.section--wine {
	background: var(--wine);
	color: var(--white);
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(28px, 5vw, 80px);
	margin-bottom: clamp(36px, 5vw, 58px);
}

.section__head > div {
	max-width: 760px;
}

.section__head--center {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.section__head--center .section__lead {
	margin-inline: auto;
}

.section__head--row {
	align-items: flex-end;
}

.section__head-side {
	max-width: 430px;
	flex: 0 1 430px;
}

.section__head-side .section__lead {
	margin-bottom: 14px;
}

.section__title {
	margin-bottom: 0;
	color: var(--wine-deep);
}

.section__title--light {
	color: var(--white);
}

.section__lead {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 15.5px;
	line-height: 1.8;
}

.section__lead--light {
	color: rgba(255, 253, 248, 0.7);
}

.section--wine .section__lead {
	color: rgba(255, 253, 248, 0.68);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 18px;
	color: var(--wine);
	font-family: var(--sans);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.eyebrow__line {
	display: inline-block;
	width: 34px;
	height: 1px;
	flex: 0 0 auto;
	background: var(--gold);
}

.eyebrow--light {
	color: var(--gold-bright);
}

.section--wine .eyebrow {
	color: var(--gold-bright);
}

.ornament {
	display: inline-flex;
	color: var(--gold);
	opacity: 0.9;
}

.ornament svg {
	display: block;
	width: 120px;
	height: 12px;
}

.text-center {
	text-align: center;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	padding: 12px 20px;
	background: var(--wine);
	color: var(--white);
	font-size: 13px;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 0.2s ease;
}

.skip-link:focus {
	transform: translateY(0);
	color: var(--white);
}

/* --------------------------------------------------------------------------
   Кнопки и ссылки
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--wine-deep);
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.btn--small {
	min-height: 43px;
	padding: 11px 20px;
	font-size: 10px;
}

.btn--gold {
	background: var(--gold);
	border-color: var(--gold);
	color: #2b1712;
}

.btn--gold:hover {
	background: var(--gold-bright);
	border-color: var(--gold-bright);
	color: #2b1712;
}

.btn--wine {
	background: var(--wine);
	border-color: var(--wine);
	color: var(--white);
}

.btn--wine:hover {
	background: var(--wine-deep);
	border-color: var(--wine-deep);
	color: var(--white);
}

.btn--outline {
	border-color: var(--line-strong);
	color: var(--wine);
}

.btn--outline:hover {
	background: var(--wine);
	border-color: var(--wine);
	color: var(--white);
}

.btn--ghost {
	border-color: rgba(255, 253, 248, 0.4);
	color: var(--white);
}

.btn--ghost:hover {
	background: rgba(255, 253, 248, 0.1);
	border-color: rgba(255, 253, 248, 0.75);
	color: var(--white);
}

.btn .icon {
	flex: 0 0 auto;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wine);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
}

.link-more .icon {
	transition: transform 0.25s ease;
}

.link-more:hover .icon {
	transform: translateX(4px);
}

.socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 253, 248, 0.28);
	border-radius: 50%;
	color: rgba(255, 253, 248, 0.82);
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.socials__link:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--wine-deep);
}

.socials--dark .socials__link {
	border-color: var(--line-strong);
	color: var(--wine);
}

.socials--dark .socials__link:hover {
	background: var(--wine);
	border-color: var(--wine);
	color: var(--white);
}

.icon {
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Верхняя строка
   -------------------------------------------------------------------------- */

.topbar {
	position: relative;
	z-index: 130;
	background: var(--wine-deep);
	color: rgba(255, 253, 248, 0.72);
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.09em;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 38px;
}

.topbar__affiliation {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.topbar__cross {
	color: var(--gold);
}

.topbar__meta {
	display: flex;
	align-items: center;
	gap: 26px;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 253, 248, 0.72);
	text-decoration: none;
}

.topbar__item .icon {
	color: var(--gold);
}

a.topbar__item:hover {
	color: var(--white);
}

/* --------------------------------------------------------------------------
   Шапка и меню
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 120;
	border-bottom: 1px solid var(--line);
	background: rgba(250, 246, 238, 0.96);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
	background: rgba(250, 246, 238, 0.99);
	box-shadow: 0 12px 36px rgba(48, 25, 17, 0.09);
}

.masthead {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 36px);
	min-height: 94px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
	color: var(--wine);
	text-decoration: none;
}

.brand:hover {
	color: var(--wine);
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	flex: 0 0 auto;
	color: var(--wine);
}

.brand__mark .mark {
	width: 100%;
	height: 100%;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand__name {
	display: block;
	max-width: 390px;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: 0.01em;
	color: var(--wine-deep);
}

.brand__tagline {
	display: block;
	margin-top: 6px;
	max-width: 340px;
	color: var(--muted);
	font-size: 8.5px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.primary-nav {
	margin-left: auto;
}

.primary-nav__head,
.primary-nav__foot {
	display: none;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
}

.primary-nav .menu > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	color: var(--ink);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.primary-nav .menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a {
	color: var(--wine);
}

.primary-nav .menu > li > a:hover::after,
.primary-nav .menu > li.current-menu-item > a::after,
.primary-nav .menu > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.primary-nav .menu-item-has-children > a::before {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 2px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	order: 2;
}

.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: -22px;
	z-index: 20;
	width: 238px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.primary-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: -15px;
	left: 0;
	right: 0;
	height: 16px;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-nav .sub-menu li {
	margin: 0;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 10px 13px;
	color: var(--ink);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: none;
}

.primary-nav .sub-menu a:hover {
	background: var(--cream);
	color: var(--wine);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.header-cta {
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--wine);
	transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover {
	background: var(--wine);
	color: var(--white);
}

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 190;
	background: rgba(24, 10, 7, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.nav-overlay.is-visible {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Главный экран
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(640px, 85vh, 840px);
	padding: clamp(64px, 8vw, 104px) 0 132px;
	overflow: hidden;
	isolation: isolate;
	color: var(--white);
}

.hero__media,
.hero__media img,
.hero__veil,
.hero__pattern {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__media img {
	object-fit: cover;
	object-position: center 42%;
}

.hero__veil {
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(24, 11, 7, 0.88) 0%, rgba(24, 11, 7, 0.67) 38%, rgba(24, 11, 7, 0.28) 68%, rgba(24, 11, 7, 0.48) 100%),
		linear-gradient(0deg, rgba(24, 11, 7, 0.7) 0%, transparent 34%, rgba(24, 11, 7, 0.16) 100%);
}

.hero__pattern {
	z-index: 1;
	background-image:
		repeating-linear-gradient(90deg, transparent 0, transparent 119px, rgba(216, 183, 120, 0.07) 119px, rgba(216, 183, 120, 0.07) 120px);
	opacity: 0.55;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
	align-items: center;
	gap: clamp(40px, 6vw, 92px);
}

.hero__content {
	max-width: 760px;
}

.hero__title {
	margin-bottom: 24px;
	color: var(--white);
	font-size: clamp(2.9rem, 6.1vw, 5.35rem);
	font-weight: 500;
	line-height: 0.99;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.hero__subtitle {
	max-width: 610px;
	margin-bottom: 30px;
	color: rgba(255, 253, 248, 0.78);
	font-size: 16px;
	line-height: 1.8;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.hero__welcome {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 28px 0 0;
	color: var(--gold-bright);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.hero__welcome::before {
	content: "";
	width: 38px;
	height: 1px;
	background: var(--gold);
}

.next-service {
	position: relative;
	align-self: center;
	justify-self: end;
	width: 100%;
	max-width: 332px;
	padding: 32px 30px 28px;
	border: 1px solid rgba(216, 183, 120, 0.36);
	background: rgba(46, 22, 17, 0.3);
	backdrop-filter: blur(13px);
	-webkit-backdrop-filter: blur(13px);
	box-shadow: 0 24px 60px rgba(17, 7, 5, 0.25);
}

.next-service::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 30px;
	width: 48px;
	height: 2px;
	background: var(--gold);
}

.next-service__label {
	margin: 0 0 18px;
	color: var(--gold-bright);
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.next-service__date {
	margin: 0 0 14px;
	color: rgba(255, 253, 248, 0.56);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.next-service__title {
	margin: 0 0 4px;
	color: var(--white);
	font-family: var(--serif);
	font-size: 29px;
	font-weight: 500;
	line-height: 1.12;
}

.next-service__time {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin: 0 0 20px;
	color: rgba(255, 253, 248, 0.55);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.next-service__time span {
	color: var(--gold-bright);
	font-family: var(--serif);
	font-size: 44px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

.next-service__note {
	margin: 0 0 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 253, 248, 0.15);
	color: rgba(255, 253, 248, 0.6);
	font-size: 12px;
	line-height: 1.65;
}

.next-service__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gold-bright);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
}

.next-service__link:hover {
	color: var(--white);
}

.hero__scroll {
	position: absolute;
	left: clamp(20px, 3.5vw, 60px);
	bottom: 84px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 253, 248, 0.45);
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.hero__scroll:hover {
	color: var(--gold-bright);
}

.hero__scroll-line {
	width: 1px;
	height: 44px;
	background: linear-gradient(to bottom, transparent, var(--gold));
}

/* --------------------------------------------------------------------------
   Быстрые ссылки под главным экраном
   -------------------------------------------------------------------------- */

.quickbar-wrap {
	position: relative;
	z-index: 4;
	margin-top: -58px;
}

.quickbar {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 16px 18px;
	border: 1px solid rgba(72, 18, 27, 0.1);
	background: var(--white);
	box-shadow: 0 18px 50px rgba(45, 24, 16, 0.13);
}

.quickbar__item {
	display: flex;
	align-items: center;
	gap: 13px;
	flex: 1 1 0;
	min-width: 0;
	padding: 3px 22px;
}

.quickbar__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--cream);
	color: var(--wine);
}

.quickbar__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.quickbar__label {
	color: var(--gold);
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.quickbar__text a {
	margin-top: 4px;
	overflow: hidden;
	color: var(--ink);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.quickbar__text a:hover {
	color: var(--wine);
}

.quickbar__divider {
	width: 1px;
	height: 38px;
	flex: 0 0 auto;
	background: var(--line);
}

.quickbar__action {
	flex: 0 0 auto;
	padding-left: 22px;
}

.quickbar__action .btn {
	min-height: 46px;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Блок «О храме»
   -------------------------------------------------------------------------- */

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: center;
	gap: clamp(48px, 7vw, 108px);
}

.about__media {
	position: relative;
	padding: 0 22px 22px 0;
}

.about__media::before {
	content: "";
	position: absolute;
	top: 22px;
	right: 0;
	bottom: 0;
	left: 22px;
	border: 1px solid rgba(193, 154, 85, 0.48);
	pointer-events: none;
}

.about__frame {
	position: relative;
	overflow: hidden;
	background: var(--sand);
	box-shadow: var(--shadow-md);
}

.about__frame img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.about__badge {
	position: absolute;
	right: 0;
	bottom: 56px;
	z-index: 2;
	width: 132px;
	margin: 0;
	padding: 18px 12px;
	background: var(--wine);
	border-top: 2px solid var(--gold);
	color: rgba(255, 253, 248, 0.78);
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.about__badge span {
	display: block;
	margin-bottom: 3px;
	color: var(--gold-bright);
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}

.about__content .section__title {
	max-width: 560px;
	margin-bottom: 26px;
}

.about__text {
	color: var(--muted);
	font-size: 15.5px;
	line-height: 1.85;
}

.about__quote {
	position: relative;
	margin: 30px 0 32px;
	padding: 4px 0 4px 28px;
	border-left: 2px solid var(--gold);
}

.about__quote .icon {
	margin-bottom: 12px;
	color: var(--gold);
	opacity: 0.9;
}

.about__quote p {
	margin: 0 0 8px;
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: clamp(21px, 2.1vw, 25px);
	font-style: italic;
	line-height: 1.35;
}

.about__quote cite {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 9.5px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.stats__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 110px;
	padding-right: 28px;
	margin-right: 28px;
	border-right: 1px solid var(--line);
}

.stats__item:last-child {
	margin-right: 0;
	padding-right: 0;
	border-right: 0;
}

.stats__value {
	color: var(--wine);
	font-family: var(--serif);
	font-size: 43px;
	font-weight: 500;
	line-height: 1;
}

.stats__label {
	max-width: 112px;
	color: var(--muted);
	font-size: 9px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Богослужения
   -------------------------------------------------------------------------- */

.services {
	overflow: hidden;
}

.services__pattern {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(45deg, transparent 0, transparent 33px, rgba(216, 183, 120, 0.045) 33px, rgba(216, 183, 120, 0.045) 34px),
		repeating-linear-gradient(-45deg, transparent 0, transparent 33px, rgba(216, 183, 120, 0.045) 33px, rgba(216, 183, 120, 0.045) 34px);
	pointer-events: none;
}

.services__pattern::after {
	content: "";
	position: absolute;
	top: -20%;
	right: -8%;
	width: 620px;
	height: 620px;
	border: 1px solid rgba(216, 183, 120, 0.14);
	border-radius: 50%;
	box-shadow: 0 0 0 80px rgba(216, 183, 120, 0.025), 0 0 0 160px rgba(216, 183, 120, 0.02);
}

.services__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	align-items: center;
	gap: clamp(48px, 7vw, 96px);
}

.services__intro .section__title {
	max-width: 440px;
	margin-bottom: 22px;
}

.services__intro .section__lead {
	max-width: 420px;
}

.services__next {
	margin: 32px 0;
	padding: 22px 0 0;
	border-top: 1px solid rgba(216, 183, 120, 0.35);
}

.services__next-label {
	margin: 0 0 7px;
	color: var(--gold-bright);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.services__next-title {
	margin: 0 0 5px;
	color: var(--white);
	font-family: var(--serif);
	font-size: 25px;
	line-height: 1.2;
}

.services__next-meta {
	margin: 0;
	color: rgba(255, 253, 248, 0.55);
	font-size: 11.5px;
	letter-spacing: 0.06em;
}

.services__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.schedule-card {
	position: relative;
	padding: 36px 40px 28px;
	background: var(--white);
	border-top: 3px solid var(--gold);
	box-shadow: 0 30px 70px rgba(24, 9, 7, 0.24);
	color: var(--ink);
}

.schedule-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
}

.schedule-card__head p {
	margin: 0;
	color: var(--wine);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.schedule-card__head .ornament {
	opacity: 0.7;
}

.schedule-card__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.schedule-card__row {
	display: grid;
	grid-template-columns: 105px minmax(0, 1fr);
	align-items: baseline;
	gap: 18px;
	padding: 12px 14px;
	border-top: 1px solid var(--line);
}

.schedule-card__row:first-child {
	border-top: 0;
}

.schedule-card__row.is-highlighted {
	background: var(--cream);
	box-shadow: inset 2px 0 0 var(--wine);
}

.schedule-card__day {
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.schedule-card__times {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 9px;
	min-width: 0;
}

.schedule-card__time {
	display: inline-block;
	padding: 2px 7px;
	background: rgba(193, 154, 85, 0.15);
	color: var(--wine);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.schedule-card__service {
	flex: 1 1 100%;
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.5;
}

.schedule-card__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 10.5px;
	line-height: 1.55;
}

.schedule-card__note .icon {
	margin-top: 1px;
	color: var(--gold);
}

/* --------------------------------------------------------------------------
   Таинства
   -------------------------------------------------------------------------- */

.sacraments__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.sacrament-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 30px 26px;
	border: 1px solid var(--line);
	background: var(--white);
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sacrament-card:hover {
	border-color: rgba(193, 154, 85, 0.68);
	box-shadow: var(--shadow-md);
	transform: translateY(-5px);
}

.sacrament-card__number {
	position: absolute;
	top: 22px;
	right: 26px;
	color: rgba(72, 18, 27, 0.1);
	font-family: var(--serif);
	font-size: 46px;
	font-weight: 500;
	line-height: 1;
}

.sacrament-card__title {
	position: relative;
	max-width: calc(100% - 55px);
	margin: 0 0 12px;
	font-size: clamp(22px, 1.9vw, 27px);
	line-height: 1.1;
}

.sacrament-card--link .sacrament-card__title,
.sacrament-card__title a {
	color: var(--wine-deep);
	text-decoration: none;
}

.sacrament-card--link:hover .sacrament-card__title,
.sacrament-card__title a:hover {
	color: var(--wine);
}

.sacrament-card__text {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.sacrament-card .link-more {
	margin-top: auto;
}

/* --------------------------------------------------------------------------
   Цитата
   -------------------------------------------------------------------------- */

.quote {
	position: relative;
	padding: clamp(92px, 12vw, 150px) 0;
	background-position: center;
	background-size: cover;
	color: var(--white);
	isolation: isolate;
}

.quote__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(30, 12, 8, 0.88), rgba(30, 12, 8, 0.55) 50%, rgba(30, 12, 8, 0.82)),
		linear-gradient(0deg, rgba(30, 12, 8, 0.35), rgba(30, 12, 8, 0.35));
}

.quote__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 900px;
	text-align: center;
}

.quote__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 26px;
	border: 1px solid rgba(216, 183, 120, 0.5);
	border-radius: 50%;
	color: var(--gold-bright);
}

.quote__text {
	margin: 0 0 22px;
	color: var(--white);
	font-family: var(--serif);
	font-size: clamp(30px, 4.4vw, 51px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.22;
	text-wrap: balance;
}

.quote__src {
	margin: 0 0 26px;
	color: var(--gold-bright);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.quote__ornament {
	color: rgba(216, 183, 120, 0.7);
}

/* --------------------------------------------------------------------------
   События
   -------------------------------------------------------------------------- */

.events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.events__grid--archive {
	row-gap: 30px;
}

.events__empty {
	padding: 30px;
	background: var(--cream);
	color: var(--muted);
	text-align: center;
}

.event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--white);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
	border-color: rgba(193, 154, 85, 0.55);
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.event-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--sand);
}

.event-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.event-card:hover .event-card__media img {
	transform: scale(1.045);
}

.event-card__date {
	position: absolute;
	top: 18px;
	left: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 64px;
	background: var(--paper);
	box-shadow: 0 8px 22px rgba(30, 12, 8, 0.18);
	color: var(--wine);
}

.event-card__day {
	font-family: var(--serif);
	font-size: 27px;
	font-weight: 600;
	line-height: 1;
}

.event-card__month {
	margin-top: 3px;
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.event-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 26px 25px;
}

.event-card__meta {
	margin: 0 0 9px;
	color: var(--gold);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	text-transform: uppercase;
}

.event-card__title {
	margin: 0 0 10px;
	font-size: clamp(21px, 1.8vw, 25px);
	line-height: 1.15;
}

.event-card__title a {
	color: var(--wine-deep);
	text-decoration: none;
}

.event-card__title a:hover {
	color: var(--wine);
}

.event-card__excerpt {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.event-card__body .link-more {
	margin-top: auto;
}

/* --------------------------------------------------------------------------
   Призыв подать записку
   -------------------------------------------------------------------------- */

.notes-cta {
	position: relative;
	padding: 0;
	background: var(--paper);
}

.notes-cta .container {
	padding-block: 0;
}

.notes-cta__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	min-height: 530px;
	overflow: hidden;
	background: var(--wine);
	color: var(--white);
	box-shadow: var(--shadow-md);
}

.notes-cta__media {
	position: relative;
	min-height: 100%;
	overflow: hidden;
}

.notes-cta__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 55%, rgba(72, 18, 27, 0.55));
}

.notes-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.notes-cta__stamp {
	position: absolute;
	top: 26px;
	left: 26px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 86px;
	height: 86px;
	border: 1px solid rgba(255, 253, 248, 0.5);
	border-radius: 50%;
	background: rgba(72, 18, 27, 0.28);
	backdrop-filter: blur(7px);
	color: var(--gold-bright);
}

.notes-cta__stamp .mark {
	width: 56px;
	height: 56px;
}

.notes-cta__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 5vw, 74px) clamp(34px, 5vw, 76px);
}

.notes-cta__body .section__title {
	max-width: 560px;
	margin-bottom: 20px;
}

.notes-cta__text {
	max-width: 560px;
	margin: 0 0 14px;
	color: rgba(255, 253, 248, 0.7);
	font-size: 14px;
	line-height: 1.8;
}

.notes-cta__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 18px 0 24px;
	color: var(--gold-bright);
	font-size: 10.5px;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.notes-cta__note .icon {
	margin-top: 1px;
}

.notes-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.notes-cta__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gold-bright);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.notes-cta__phone:hover {
	color: var(--white);
}

/* --------------------------------------------------------------------------
   Галерея
   -------------------------------------------------------------------------- */

.gallery-mosaic {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 206px;
	gap: 14px;
}

.gallery-mosaic__item {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--sand);
	cursor: pointer;
}

.gallery-mosaic__item--large {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery-mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.gallery-mosaic__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(30, 12, 8, 0.55), transparent 48%);
	opacity: 0.35;
	transition: opacity 0.35s ease;
}

.gallery-mosaic__item:hover img {
	transform: scale(1.055);
}

.gallery-mosaic__item:hover::after {
	opacity: 0.8;
}

.gallery-mosaic__overlay {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 253, 248, 0.55);
	border-radius: 50%;
	background: rgba(30, 12, 8, 0.22);
	backdrop-filter: blur(5px);
	color: var(--white);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.gallery-mosaic__item:hover .gallery-mosaic__overlay,
.gallery-mosaic__item:focus-visible .gallery-mosaic__overlay {
	opacity: 1;
	transform: translateY(0);
	background: var(--wine);
}

/* --------------------------------------------------------------------------
   Пожертвование
   -------------------------------------------------------------------------- */

.donate {
	position: relative;
	padding: clamp(84px, 10vw, 124px) 0;
	background-position: center;
	background-size: cover;
	color: var(--white);
	isolation: isolate;
}

.donate__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(46, 13, 18, 0.94) 0%, rgba(46, 13, 18, 0.8) 46%, rgba(46, 13, 18, 0.44) 100%),
		linear-gradient(0deg, rgba(30, 12, 8, 0.2), rgba(30, 12, 8, 0.2));
}

.donate__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.donate__content {
	max-width: 700px;
}

.donate__content .section__title {
	margin-bottom: 18px;
}

.donate__text {
	max-width: 620px;
	margin: 0 0 28px;
	color: rgba(255, 253, 248, 0.7);
	font-size: 14.5px;
	line-height: 1.8;
}

.donate__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.donate__requisites {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gold-bright);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.donate__requisites:hover {
	color: var(--white);
}

.donate__seal {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 164px;
	height: 164px;
	flex: 0 0 auto;
	border: 1px solid rgba(216, 183, 120, 0.5);
	border-radius: 50%;
	color: var(--gold-bright);
	text-align: center;
}

.donate__seal::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px dashed rgba(216, 183, 120, 0.3);
	border-radius: 50%;
}

.donate__seal .mark {
	width: 58px;
	height: 58px;
	margin-bottom: 5px;
}

.donate__seal span {
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Контакты на главной
   -------------------------------------------------------------------------- */

.contacts-home__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(40px, 5vw, 66px);
	align-items: stretch;
}

.contacts-home__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.contact-list__item:first-child {
	padding-top: 0;
	border-top: 0;
}

.contact-list__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--cream);
	color: var(--wine);
}

.contact-list__item > div {
	min-width: 0;
}

.contact-list__label {
	display: block;
	margin-bottom: 3px;
	color: var(--gold);
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.contact-list__item p {
	margin: 0;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.55;
}

.contact-list__item p + p {
	margin-top: 4px;
}

.contact-list__item small {
	color: var(--muted);
	font-size: 10.5px;
}

.contact-list__item a {
	color: var(--ink);
	text-decoration: none;
}

.contact-list__item a:hover {
	color: var(--wine);
}

.contact-list__item .link-more {
	margin-top: 5px;
}

.contact-list--large .contact-list__item {
	padding: 20px 0;
}

.contact-list--large .contact-list__item p {
	font-size: 15.5px;
}

.contacts-home__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 10px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.contacts-home__map {
	position: relative;
	min-height: 440px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--cream);
	box-shadow: var(--shadow-sm);
}

.contacts-home__map iframe,
.contacts-page__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	border: 0;
	filter: saturate(0.78) contrast(0.95);
}

.contacts-home__map-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	min-height: 440px;
	padding: 30px;
	color: var(--wine);
	text-align: center;
}

.contacts-home__map-empty p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */

.site-footer {
	position: relative;
	background:
		radial-gradient(circle at 15% 0%, rgba(107, 31, 42, 0.5), transparent 44%),
		linear-gradient(180deg, #2a1418 0%, #1f0f12 100%);
	color: rgba(255, 253, 248, 0.65);
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(216, 183, 120, 0.55), transparent);
}

.footer__top {
	padding: clamp(56px, 7vw, 82px) 0 clamp(42px, 5vw, 60px);
}

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
	gap: clamp(34px, 4vw, 62px);
}

.brand--light {
	color: var(--gold);
}

.brand--light .brand__mark {
	color: var(--gold);
}

.brand--light .brand__name {
	color: var(--white);
}

.brand--light .brand__tagline {
	color: rgba(255, 253, 248, 0.5);
}

.footer__about {
	max-width: 300px;
	margin: 22px 0 24px;
	color: rgba(255, 253, 248, 0.58);
	font-size: 12.5px;
	line-height: 1.8;
}

.footer__title {
	margin: 0 0 22px;
	color: var(--gold-bright);
	font-family: var(--sans);
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li + li {
	margin-top: 10px;
}

.footer-menu a {
	color: rgba(255, 253, 248, 0.67);
	font-size: 12.5px;
	line-height: 1.5;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--gold-bright);
}

.footer__schedule {
	margin: 0 0 10px;
	color: var(--white);
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.3;
}

.footer__text {
	margin: 0 0 16px;
	color: rgba(255, 253, 248, 0.55);
	font-size: 12px;
	line-height: 1.75;
}

.footer__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gold-bright);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.footer__link:hover {
	color: var(--white);
}

.footer-contacts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contacts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	color: rgba(255, 253, 248, 0.58);
	font-size: 12px;
	line-height: 1.65;
}

.footer-contacts .icon {
	margin-top: 2px;
	flex: 0 0 auto;
	color: var(--gold);
}

.footer-contacts a {
	color: rgba(255, 253, 248, 0.67);
	text-decoration: none;
}

.footer-contacts a:hover {
	color: var(--gold-bright);
}

.footer-contacts small {
	display: block;
	margin-top: 1px;
	color: rgba(255, 253, 248, 0.4);
	font-size: 9.5px;
}

.footer__bottom {
	border-top: 1px solid rgba(255, 253, 248, 0.1);
}

.footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
	min-height: 66px;
	padding-block: 14px;
	color: rgba(255, 253, 248, 0.4);
	font-size: 9.5px;
	letter-spacing: 0.03em;
}

.footer__bottom-inner p {
	margin: 0;
}

.footer__bottom-inner a {
	color: rgba(255, 253, 248, 0.55);
	text-decoration: none;
}

.footer__bottom-inner a:hover {
	color: var(--gold-bright);
}

.footer__affiliation {
	max-width: 420px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Мобильная панель действий
   -------------------------------------------------------------------------- */

.mobile-dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 110;
	display: none;
	grid-template-columns: 1fr 1fr;
	background: var(--white);
	border-top: 1px solid var(--line);
	box-shadow: 0 -10px 30px rgba(45, 24, 16, 0.1);
	padding-bottom: env(safe-area-inset-bottom);
}

.mobile-dock__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 58px;
	color: var(--wine);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.mobile-dock__item + .mobile-dock__item {
	border-left: 1px solid var(--line);
}

.mobile-dock__item--accent {
	background: var(--wine);
	color: var(--white);
}

.mobile-dock__item--accent:hover {
	background: var(--wine-deep);
	color: var(--white);
}

/* --------------------------------------------------------------------------
   Шапка внутренних страниц
   -------------------------------------------------------------------------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	padding: clamp(66px, 8vw, 104px) 0 clamp(48px, 6vw, 74px);
	background-position: center;
	background-size: cover;
	color: var(--white);
	isolation: isolate;
}

.page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(30, 12, 8, 0.9) 0%, rgba(30, 12, 8, 0.64) 50%, rgba(30, 12, 8, 0.32) 100%),
		linear-gradient(0deg, rgba(30, 12, 8, 0.55), rgba(30, 12, 8, 0.2));
}

.page-hero__inner {
	position: relative;
	z-index: 1;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(24px, 3vw, 34px);
	color: rgba(255, 253, 248, 0.55);
	font-size: 9.5px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.breadcrumbs a {
	color: rgba(255, 253, 248, 0.65);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--gold-bright);
}

.breadcrumbs__sep {
	color: var(--gold);
}

.breadcrumbs span:last-child {
	color: var(--gold-bright);
}

.page-hero__title {
	max-width: 900px;
	margin: 0;
	color: var(--white);
	font-size: clamp(2.6rem, 5.2vw, 4.5rem);
	line-height: 1.01;
	text-wrap: balance;
}

.page-hero__subtitle {
	max-width: 660px;
	margin: 18px 0 0;
	color: rgba(255, 253, 248, 0.7);
	font-size: 15px;
	line-height: 1.75;
}

.page-hero__ornament {
	margin-top: clamp(24px, 3vw, 32px);
	color: rgba(216, 183, 120, 0.75);
}

/* --------------------------------------------------------------------------
   Содержимое страниц и типографика
   -------------------------------------------------------------------------- */

.page-content > .container {
	padding-block: clamp(46px, 6vw, 76px);
}

.prose {
	max-width: 100%;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.85;
}

.prose--lead {
	font-size: 18px;
	line-height: 1.8;
}

.prose > *:first-child {
	margin-top: 0;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.prose p {
	margin: 0 0 1.35em;
}

.prose h2 {
	margin: 1.8em 0 0.55em;
	font-size: clamp(30px, 3.2vw, 42px);
}

.prose h3 {
	margin: 1.6em 0 0.45em;
	font-size: clamp(23px, 2.2vw, 29px);
}

.prose h4 {
	margin: 1.4em 0 0.4em;
	font-size: 21px;
}

.prose ul,
.prose ol {
	margin: 0 0 1.4em;
	padding-left: 1.35em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose li::marker {
	color: var(--gold);
}

.prose a {
	color: var(--wine);
	text-decoration-color: rgba(193, 154, 85, 0.7);
}

.prose a:hover {
	color: var(--wine-deep);
	text-decoration-color: var(--gold);
}

.prose blockquote {
	margin: 2em 0;
	padding: 6px 0 6px 28px;
	border-left: 2px solid var(--gold);
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: clamp(23px, 2.5vw, 30px);
	font-style: italic;
	line-height: 1.4;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose blockquote cite {
	display: block;
	margin-top: 12px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.prose img {
	margin: 1.8em 0;
}

.prose figure {
	margin: 2em 0;
}

.prose figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.prose hr {
	margin: 2.8em auto;
	width: 120px;
	height: 1px;
	border: 0;
	background: var(--gold);
}

.prose table {
	width: 100%;
	margin: 1.8em 0;
	border-collapse: collapse;
	font-size: 14px;
}

.prose th,
.prose td {
	padding: 10px 13px;
	border: 1px solid var(--line);
	text-align: left;
}

.prose th {
	background: var(--cream);
	color: var(--wine-deep);
	font-weight: 600;
}

.prose--lead > p:first-child {
	font-size: 19px;
	line-height: 1.8;
	color: var(--ink);
}

.alignleft {
	float: left;
	margin: 0.4em 1.8em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.8em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	margin-inline: calc(50% - min(46vw, 590px));
	max-width: none;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.page-links {
	clear: both;
	margin-top: 2em;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 4px;
	border: 1px solid var(--line);
	text-decoration: none;
}

.page-links .current {
	background: var(--wine);
	color: var(--white);
}

/* --------------------------------------------------------------------------
   Страница расписания
   -------------------------------------------------------------------------- */

.schedule-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	align-items: start;
	gap: clamp(36px, 5vw, 72px);
}

.schedule-page__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.schedule-page__head .section__title {
	font-size: clamp(28px, 3vw, 38px);
}

.schedule-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.schedule-list__row {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	align-items: baseline;
	gap: 22px;
	padding: 17px 16px;
	border-bottom: 1px solid var(--line);
	transition: background-color 0.25s ease;
}

.schedule-list__row:hover {
	background: rgba(240, 229, 211, 0.45);
}

.schedule-list__row.is-highlighted {
	background: var(--cream);
	box-shadow: inset 2px 0 0 var(--wine);
}

.schedule-list__day {
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.schedule-list__service {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 11px;
}

.schedule-list__time {
	display: inline-block;
	padding: 2px 8px;
	background: rgba(193, 154, 85, 0.16);
	color: var(--wine);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	white-space: nowrap;
}

.schedule-list__name {
	flex: 1 1 100%;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.55;
}

.schedule-page__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 20px 0 0;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.6;
}

.schedule-page__note .icon {
	margin-top: 2px;
	color: var(--gold);
}

.schedule-page__side {
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.next-card {
	padding: 30px;
	background: var(--wine);
	border-top: 2px solid var(--gold);
	color: var(--white);
}

.next-card__label {
	margin: 0 0 12px;
	color: var(--gold-bright);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.next-card__date {
	margin: 0 0 10px;
	color: rgba(255, 253, 248, 0.55);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.next-card__title {
	margin: 0 0 2px;
	color: var(--white);
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.15;
}

.next-card__time {
	margin: 0 0 22px;
	color: var(--gold-bright);
	font-family: var(--serif);
	font-size: 40px;
	line-height: 1.1;
}

.info-card {
	padding: 22px 24px;
	border: 1px solid var(--line);
	background: var(--white);
}

.info-card h3 {
	margin: 0 0 8px;
	font-size: 21px;
}

.info-card p {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.info-card p:last-child {
	margin-bottom: 0;
}

.prepare-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.prepare-card {
	padding: 28px 28px 26px;
	border-top: 2px solid var(--gold);
	background: var(--white);
}

.prepare-card h3 {
	margin: 0 0 10px;
	font-size: 24px;
}

.prepare-card p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Страница «Подать записку»
   -------------------------------------------------------------------------- */

.notes-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
	align-items: start;
	gap: clamp(28px, 4vw, 48px);
}

.note-form-card {
	padding: clamp(28px, 4vw, 46px);
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}

.note-form-card__head {
	margin-bottom: 26px;
}

.note-form-card__head .section__title {
	margin-bottom: 12px;
	font-size: clamp(30px, 3vw, 40px);
}

.note-form-card__head > p:last-child {
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.note-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.note-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.note-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.field__label {
	color: var(--wine-deep);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.field__input {
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	border: 1px solid rgba(72, 18, 27, 0.2);
	border-radius: 0;
	background: var(--paper);
	color: var(--ink);
	font-size: 14px;
	line-height: 1.5;
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.field__input::placeholder {
	color: rgba(111, 98, 88, 0.6);
}

.field__input:focus {
	outline: none;
	border-color: var(--gold);
	background: var(--white);
	box-shadow: 0 0 0 3px rgba(193, 154, 85, 0.14);
}

.field__textarea {
	min-height: 112px;
	resize: vertical;
}

.field__select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%), linear-gradient(135deg, var(--wine) 50%, transparent 50%);
	background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 38px;
}

.field__hint {
	color: var(--muted);
	font-size: 10.5px;
	line-height: 1.5;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.6;
	cursor: pointer;
}

.checkbox input {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex: 0 0 auto;
	accent-color: var(--wine);
}

.checkbox a {
	color: var(--wine);
}

.note-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 6px;
}

.note-form__notice {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	max-width: 290px;
	margin: 0;
	color: var(--muted);
	font-size: 10px;
	line-height: 1.55;
}

.note-form__notice .icon {
	margin-top: 1px;
	color: var(--gold);
	flex: 0 0 auto;
}

.notice {
	margin: 0 0 22px;
	padding: 15px 18px;
	border-left: 3px solid var(--gold);
	background: var(--cream);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.65;
}

.notice--success {
	border-left-color: #4f7a4a;
	background: #edf2e7;
}

.notice--error {
	border-left-color: #a33a3a;
	background: #f7e9e6;
}

.notice strong {
	color: var(--wine-deep);
}

.notes-page__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.notes-side-card {
	padding: 26px;
	border: 1px solid var(--line);
	background: var(--white);
}

.notes-side-card h3 {
	margin: 0 0 14px;
	font-size: 23px;
}

.notes-side-card > p {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.notes-side-card--wine {
	border: 0;
	background: var(--wine);
	color: var(--white);
}

.notes-side-card--wine h3 {
	color: var(--white);
}

.notes-side-card--wine > p {
	color: rgba(255, 253, 248, 0.66);
}

.notes-side-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
	border: 1px solid rgba(216, 183, 120, 0.4);
	border-radius: 50%;
	color: var(--gold-bright);
}

.notes-side-card__phone {
	display: inline-flex;
	color: var(--gold-bright);
	font-family: var(--serif);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.notes-side-card__phone:hover {
	color: var(--white);
}

.steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.steps li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 9px 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}

.steps li + li {
	border-top: 1px solid var(--line);
}

.steps span {
	display: grid;
	place-items: center;
	width: 23px;
	height: 23px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--cream);
	color: var(--wine);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.notes-page__quote {
	margin: 0;
	padding: 24px 26px;
	background: var(--cream);
}

.notes-page__quote .icon {
	margin-bottom: 10px;
	color: var(--gold);
}

.notes-page__quote p {
	margin: 0 0 8px;
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: 21px;
	font-style: italic;
	line-height: 1.35;
}

.notes-page__quote cite {
	color: var(--muted);
	font-size: 9px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Страница таинств
   -------------------------------------------------------------------------- */

.sacraments-details {
	position: relative;
}

.sacrament-detail {
	padding: clamp(40px, 5vw, 58px) 0;
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 120px;
}

.sacrament-detail:first-child {
	padding-top: 0;
}

.sacrament-detail:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sacrament-detail__number {
	margin: 0 0 4px;
	color: var(--gold);
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
}

.sacrament-detail h2 {
	margin: 0 0 18px;
	font-size: clamp(32px, 3.5vw, 46px);
}

.sacrament-detail h3 {
	margin: 28px 0 12px;
	font-size: 24px;
}

.sacrament-detail > p {
	margin: 0 0 1.2em;
	color: var(--ink);
	font-size: 15.5px;
	line-height: 1.8;
}

.check-list {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	margin-bottom: 9px;
	padding-left: 26px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.check-list li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 2px;
	width: 7px;
	height: 7px;
	border: 1px solid var(--gold);
	transform: rotate(45deg);
}

.sacrament-detail__note {
	margin: 22px 0 0;
	padding: 14px 18px;
	border-left: 2px solid var(--gold);
	background: var(--cream);
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.sacrament-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Страница «О храме»
   -------------------------------------------------------------------------- */

.values-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.value-card {
	position: relative;
	padding: 30px 30px 28px;
	border-top: 2px solid var(--gold);
	background: var(--white);
}

.value-card__number {
	display: block;
	margin-bottom: 16px;
	color: var(--gold);
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
}

.value-card h3 {
	margin: 0 0 10px;
	font-size: 27px;
}

.value-card p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.75;
}

.history__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: start;
	gap: clamp(44px, 6vw, 90px);
}

.history__media {
	position: sticky;
	top: 120px;
	overflow: hidden;
	background: var(--sand);
}

.history__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.history__caption {
	position: absolute;
	right: 18px;
	bottom: 18px;
	padding: 8px 13px;
	background: rgba(250, 246, 238, 0.9);
	color: var(--wine);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.history__body .section__lead {
	margin-bottom: 28px;
}

.timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 43px;
	width: 1px;
	background: var(--line-strong);
}

.timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 24px;
	padding: 0 0 24px;
}

.timeline__item:last-child {
	padding-bottom: 0;
}

.timeline__year {
	position: relative;
	z-index: 1;
	align-self: start;
	padding: 3px 0;
	background: var(--paper);
	color: var(--wine);
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	text-align: right;
}

.timeline__item > div {
	position: relative;
	padding: 0 0 0 2px;
}

.timeline__item > div::before {
	content: "";
	position: absolute;
	top: 7px;
	left: -28px;
	width: 7px;
	height: 7px;
	border: 1px solid var(--gold);
	background: var(--paper);
	transform: rotate(45deg);
}

.timeline__item h3 {
	margin: 0 0 5px;
	font-size: 22px;
}

.timeline__item p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.clergy__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	max-width: 900px;
	margin-inline: auto;
}

.clergy-card {
	padding: 34px 32px 30px;
	background: var(--white);
	border: 1px solid var(--line);
	text-align: center;
}

.clergy-card__avatar {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin: 0 auto 20px;
	border: 1px solid var(--gold);
	border-radius: 50%;
	background: var(--cream);
	color: var(--wine);
}

.clergy-card__avatar .mark {
	width: 60px;
	height: 60px;
}

.clergy-card__name {
	margin: 0 0 4px;
	font-size: 25px;
}

.clergy-card__role {
	margin: 0 0 13px;
	color: var(--gold);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.clergy-card__text {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.75;
}

.clergy__note {
	margin: 28px 0 0;
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.6;
	text-align: center;
}

.cta-strip {
	padding: clamp(56px, 7vw, 80px) 0;
	background:
		radial-gradient(circle at 80% 10%, rgba(193, 154, 85, 0.16), transparent 38%),
		var(--wine-deep);
	color: var(--white);
}

.cta-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 44px;
}

.cta-strip h2 {
	margin: 0 0 8px;
	color: var(--white);
	font-size: clamp(30px, 3.5vw, 44px);
}

.cta-strip p {
	margin: 0;
	max-width: 590px;
	color: rgba(255, 253, 248, 0.62);
	font-size: 13.5px;
	line-height: 1.75;
}

.cta-strip__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Галерея
   -------------------------------------------------------------------------- */

.gallery-page__intro {
	max-width: 760px;
	margin-bottom: 34px;
}

.gallery-page .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.gallery-page .gallery-item {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--sand);
}

.gallery-page .gallery-icon {
	height: 100%;
}

.gallery-page .gallery-icon a {
	display: block;
	height: 100%;
}

.gallery-page .gallery-icon img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 0 !important;
	transition: transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.gallery-page .gallery-item:hover img {
	transform: scale(1.045);
}

.gallery-page .gallery-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 28px 18px 15px;
	background: linear-gradient(0deg, rgba(30, 12, 8, 0.75), transparent);
	color: var(--white);
	font-size: 10.5px;
	line-height: 1.5;
	text-align: left;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-page .gallery-item:hover .gallery-caption {
	opacity: 1;
}

.gallery-mosaic--page {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 260px;
}

.gallery-mosaic--page .gallery-mosaic__item--large {
	grid-column: auto;
	grid-row: auto;
}

/* --------------------------------------------------------------------------
   Страница контактов
   -------------------------------------------------------------------------- */

.contacts-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
	gap: clamp(40px, 5vw, 70px);
	align-items: stretch;
}

.contacts-page__info .section__title {
	margin-bottom: 14px;
}

.contacts-page__info .section__lead {
	margin-bottom: 26px;
}

.contacts-page__map {
	position: relative;
	min-height: 520px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--cream);
	box-shadow: var(--shadow-sm);
}

.contacts-page__socials {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.contacts-page__socials > p {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.directions__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.direction-card {
	padding: 28px 28px 26px;
	background: var(--white);
	border-top: 2px solid var(--gold);
}

.direction-card h3 {
	margin: 0 0 10px;
	font-size: 24px;
}

.direction-card p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Страница пожертвований
   -------------------------------------------------------------------------- */

.donate-ways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.donate-way {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 30px 28px;
	border: 1px solid var(--line);
	background: var(--white);
}

.donate-way__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--cream);
	color: var(--wine);
}

.donate-way__number {
	position: absolute;
	top: 24px;
	right: 27px;
	color: rgba(72, 18, 27, 0.1);
	font-family: var(--serif);
	font-size: 38px;
	line-height: 1;
}

.donate-way h3 {
	margin: 0 0 10px;
	font-size: 25px;
}

.donate-way p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.75;
}

.donate-way .link-more {
	margin-top: auto;
}

.donate-details__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: start;
	gap: clamp(40px, 6vw, 84px);
}

.donate-details__intro .section__lead {
	margin-bottom: 26px;
}

.donate-needs {
	margin: 0;
	padding: 0;
	list-style: none;
}

.donate-needs li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.donate-needs li > span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--cream);
	color: var(--wine);
}

.donate-needs strong {
	display: block;
	margin-bottom: 2px;
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.donate-needs p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.65;
}

.requisites-card {
	scroll-margin-top: 120px;
	padding: clamp(28px, 3.5vw, 40px);
	border-top: 3px solid var(--gold);
	background: var(--white);
	box-shadow: var(--shadow-md);
}

.requisites-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.requisites-card__label {
	margin: 0 0 5px;
	color: var(--gold);
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.requisites-card__head h3 {
	margin: 0;
	font-size: 26px;
	line-height: 1.15;
}

.requisites-card__copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 7px 10px;
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--wine);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.requisites-card__copy:hover,
.requisites-card__copy.is-copied {
	background: var(--wine);
	border-color: var(--wine);
	color: var(--white);
}

.requisites-card__text {
	margin: 0 0 20px;
	padding: 20px;
	overflow-x: auto;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.9;
	white-space: pre-wrap;
	word-break: break-word;
}

.requisites-card__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 10.5px;
	line-height: 1.6;
}

.requisites-card__note .icon {
	margin-top: 1px;
	color: var(--gold);
	flex: 0 0 auto;
}

.requisites-card__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wine);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.requisites-card__phone:hover {
	color: var(--wine-deep);
}

.donate-thanks {
	overflow: hidden;
}

.donate-thanks__inner {
	display: flex;
	align-items: center;
	gap: clamp(36px, 5vw, 72px);
}

.donate-thanks__seal {
	display: grid;
	place-items: center;
	width: 138px;
	height: 138px;
	flex: 0 0 auto;
	border: 1px solid rgba(216, 183, 120, 0.45);
	border-radius: 50%;
	color: var(--gold-bright);
}

.donate-thanks__seal .mark {
	width: 86px;
	height: 86px;
}

.donate-thanks__inner .section__title {
	margin-bottom: 12px;
}

.donate-thanks__inner .section__lead {
	max-width: 690px;
}

.donate-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Записи, архивы, поиск
   -------------------------------------------------------------------------- */

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--white);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
	border-color: rgba(193, 154, 85, 0.55);
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--sand);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.post-card:hover .post-card__media img {
	transform: scale(1.045);
}

.post-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 26px 26px;
}

.post-card__meta {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.post-card__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.15;
}

.post-card__title a {
	color: var(--wine-deep);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--wine);
}

.post-card__excerpt {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.post-card__body .link-more {
	margin-top: auto;
}

.post-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
}

.post-footer p {
	margin: 0;
}

.post-footer__cats a {
	color: var(--wine);
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 38px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.post-nav__prev,
.post-nav__next {
	font-size: 12px;
	line-height: 1.5;
}

.post-nav__next {
	text-align: right;
}

.post-nav a {
	color: var(--wine);
	text-decoration: none;
}

.post-nav a:hover {
	color: var(--wine-deep);
}

.event-details {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-bottom: 28px;
	padding: 16px 20px;
	border-left: 2px solid var(--gold);
	background: var(--cream);
}

.event-details__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--wine);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.event-details__item .icon {
	color: var(--gold);
}

.search-page__form {
	margin-bottom: 34px;
}

.search-results {
	display: flex;
	flex-direction: column;
}

.search-result {
	padding: 22px 0;
	border-top: 1px solid var(--line);
}

.search-result:last-child {
	border-bottom: 1px solid var(--line);
}

.search-result__title {
	display: inline-block;
	margin-bottom: 7px;
	color: var(--wine-deep);
	font-family: var(--serif);
	font-size: 27px;
	font-weight: 500;
	line-height: 1.15;
	text-decoration: none;
}

.search-result__title:hover {
	color: var(--wine);
}

.search-result__excerpt {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.search-form {
	display: flex;
	width: 100%;
	max-width: 560px;
	border: 1px solid var(--line-strong);
	background: var(--white);
}

.search-form__field {
	width: 100%;
	min-width: 0;
	padding: 13px 17px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 13px;
}

.search-form__field:focus {
	outline: none;
}

.search-form__submit {
	display: grid;
	place-items: center;
	width: 52px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--wine);
	color: var(--white);
	transition: background-color 0.25s ease;
}

.search-form__submit:hover {
	background: var(--wine-deep);
}

.search-page__form .search-form {
	max-width: none;
}

.pagination,
.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	color: var(--wine);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--wine);
	border-color: var(--wine);
	color: var(--white);
}

.page-numbers.dots {
	border-color: transparent;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 560px;
	margin-inline: auto;
	padding: 48px 28px;
	color: var(--muted);
	text-align: center;
}

.empty-state .icon {
	margin-bottom: 18px;
	color: var(--gold);
}

.empty-state h2 {
	margin-bottom: 10px;
	font-size: 34px;
}

.empty-state p {
	margin-bottom: 22px;
	font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Комментарии
   -------------------------------------------------------------------------- */

.comments {
	margin-top: 54px;
	padding-top: 34px;
	border-top: 1px solid var(--line);
}

.comments__title,
.comment-reply-title {
	font-size: 30px;
}

.comment-list {
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding-left: 34px;
	list-style: none;
}

.comment-body {
	margin-bottom: 20px;
	padding: 20px 22px;
	background: var(--cream);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 10px;
}

.comment-metadata a {
	color: var(--muted);
}

.comment-content {
	font-size: 13.5px;
	line-height: 1.7;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.comment-respond {
	padding: 26px 28px;
	background: var(--cream);
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	color: var(--wine-deep);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--white);
	font-size: 13px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(193, 154, 85, 0.14);
}

.comment-form .submit {
	align-self: flex-start;
}

.comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: 11px;
}

/* --------------------------------------------------------------------------
   Страница 404
   -------------------------------------------------------------------------- */

.error-page {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - 132px);
	padding: 90px 0;
	color: var(--white);
	isolation: isolate;
}

.error-page__bg,
.error-page__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-position: center;
	background-size: cover;
}

.error-page__overlay {
	z-index: 1;
	background: linear-gradient(90deg, rgba(30, 12, 8, 0.92), rgba(30, 12, 8, 0.68));
}

.error-page__inner {
	position: relative;
	z-index: 2;
	max-width: 660px;
	margin-left: max(0px, calc((100vw - var(--container)) / 2));
}

.error-page__code {
	margin: 0 0 8px;
	color: var(--gold-bright);
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.16em;
}

.error-page__title {
	margin-bottom: 16px;
	color: var(--white);
	font-size: clamp(42px, 5vw, 68px);
}

.error-page__text {
	margin-bottom: 26px;
	color: rgba(255, 253, 248, 0.68);
	font-size: 14px;
	line-height: 1.8;
}

.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 34px;
}

.error-page__search .search-form {
	border-color: rgba(255, 253, 248, 0.3);
	background: rgba(255, 253, 248, 0.08);
}

.error-page__search .search-form__field {
	color: var(--white);
}

.error-page__search .search-form__field::placeholder {
	color: rgba(255, 253, 248, 0.55);
}

/* --------------------------------------------------------------------------
   Лайтбокс
   -------------------------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 4vw, 52px);
	background: rgba(18, 8, 6, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: min(1200px, 92vw);
	max-height: 88vh;
}

.lightbox__image {
	width: auto;
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
	margin-top: 14px;
	color: rgba(255, 253, 248, 0.6);
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 253, 248, 0.3);
	border-radius: 50%;
	background: rgba(255, 253, 248, 0.06);
	color: var(--white);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
	background: var(--wine);
	border-color: var(--wine);
}

.lightbox__close {
	top: 22px;
	right: 22px;
}

.lightbox__nav--prev {
	top: 50%;
	left: 22px;
	transform: translateY(-50%);
}

.lightbox__nav--next {
	top: 50%;
	right: 22px;
	transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Анимации появления
   -------------------------------------------------------------------------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Классы WordPress
   -------------------------------------------------------------------------- */

.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	margin-inline: auto;
}

.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

.screen-reader-text:focus {
	display: block;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto !important;
	background: var(--wine);
	color: var(--white);
	font-size: 12px;
	text-decoration: none;
}

.admin-bar .site-header {
	top: 32px;
}

/* --------------------------------------------------------------------------
   Адаптивность
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.container {
		width: min(var(--container), calc(100% - 64px));
	}

	.container--narrow {
		width: min(860px, calc(100% - 64px));
	}

	.masthead {
		min-height: 86px;
	}

	.brand__name {
		max-width: 320px;
		font-size: 20px;
	}

	.brand__tagline {
		max-width: 300px;
		font-size: 8px;
	}

	.primary-nav .menu {
		gap: 17px;
	}

	.primary-nav .menu > li > a {
		font-size: 9.5px;
		letter-spacing: 0.1em;
	}

	.hero__inner {
		gap: 46px;
	}

	.next-service {
		max-width: 310px;
		padding: 28px 26px 24px;
	}

	.hero__scroll {
		display: none;
	}

	.footer__grid {
		grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
		gap: 34px;
	}
}

@media (max-width: 1024px) {
	.hero__title {
		font-size: clamp(2.8rem, 5.8vw, 4.6rem);
	}

	.notes-cta__body {
		padding: 44px 40px;
	}

	.schedule-card {
		padding: 30px 28px 24px;
	}

	.sacrament-card {
		padding: 26px 24px 22px;
	}

	.contact-list__item p {
		font-size: 13px;
	}
}

@media (max-width: 980px) {
	.topbar__meta {
		display: none;
	}

	.topbar__inner {
		justify-content: center;
	}

	.masthead {
		min-height: 76px;
		gap: 16px;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		display: flex;
		flex-direction: column;
		width: min(390px, 88vw);
		margin: 0;
		padding: 28px 30px 32px;
		overflow-y: auto;
		background: var(--paper);
		box-shadow: -30px 0 80px rgba(24, 10, 7, 0.25);
		transform: translateX(104%);
		transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
	}

	.primary-nav.is-open {
		transform: translateX(0);
	}

	.primary-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 22px;
		padding-bottom: 18px;
		border-bottom: 1px solid var(--line);
	}

	.primary-nav__title {
		color: var(--wine-deep);
		font-family: var(--serif);
		font-size: 26px;
		font-weight: 600;
	}

	.primary-nav__ornament {
		color: var(--gold);
	}

	.primary-nav .menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-nav .menu > li {
		border-bottom: 1px solid var(--line);
	}

	.primary-nav .menu > li > a {
		justify-content: space-between;
		padding: 14px 0;
		color: var(--wine-deep);
		font-family: var(--serif);
		font-size: 23px;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
		white-space: normal;
	}

	.primary-nav .menu > li > a::after {
		display: none;
	}

	.primary-nav .menu-item-has-children > a::before {
		width: 7px;
		height: 7px;
		margin-right: 3px;
		transition: transform 0.25s ease;
	}

	.primary-nav .menu-item-has-children.is-open > a::before {
		transform: translateY(2px) rotate(225deg);
	}

	.primary-nav .sub-menu {
		position: static;
		width: auto;
		margin: 0;
		padding: 0 0 12px 16px;
		border: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
	}

	.primary-nav .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.primary-nav .sub-menu a {
		padding: 8px 0;
		color: var(--muted);
		font-family: var(--sans);
		font-size: 13px;
	}

	.primary-nav .sub-menu a:hover {
		background: transparent;
		color: var(--wine);
	}

	.primary-nav__foot {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-top: auto;
		padding-top: 28px;
	}

	.primary-nav__phone {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: var(--wine);
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
	}

	body.nav-open {
		overflow: hidden;
	}

	.mobile-dock {
		display: grid;
	}

	.site-footer {
		padding-bottom: 62px;
	}

	.hero {
		min-height: 0;
		padding: 76px 0 112px;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 38px;
	}

	.hero__content {
		max-width: 680px;
	}

	.next-service {
		justify-self: start;
		max-width: 420px;
	}

	.quickbar-wrap {
		margin-top: -44px;
	}

	.quickbar {
		flex-wrap: wrap;
		padding: 12px;
	}

	.quickbar__item {
		flex: 1 1 33%;
		padding: 8px 12px;
	}

	.quickbar__divider {
		display: none;
	}

	.quickbar__action {
		flex: 1 1 100%;
		padding: 8px 12px 2px;
	}

	.quickbar__action .btn {
		width: 100%;
	}

	.about__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 54px;
	}

	.about__media {
		max-width: 580px;
		margin-inline: auto;
	}

	.about__content {
		max-width: 680px;
		margin-inline: auto;
	}

	.services__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 46px;
	}

	.services__intro {
		max-width: 620px;
	}

	.services__intro .section__title,
	.services__intro .section__lead {
		max-width: 100%;
	}

	.schedule-card {
		max-width: 700px;
	}

	.sacraments__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.notes-cta__card {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.notes-cta__media {
		min-height: 330px;
	}

	.notes-cta__media::after {
		background: linear-gradient(0deg, rgba(72, 18, 27, 0.55), transparent 55%);
	}

	.notes-cta__stamp {
		top: 20px;
		left: 20px;
	}

	.contacts-home__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.contacts-home__map,
	.contacts-home__map-empty {
		min-height: 380px;
	}

	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 42px;
	}

	.footer__brand {
		grid-column: 1 / -1;
	}

	.footer__about {
		max-width: 440px;
	}

	.footer__bottom-inner {
		justify-content: center;
		text-align: center;
	}

	.footer__affiliation {
		text-align: center;
	}

	.schedule-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.schedule-page__side {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.next-card {
		grid-column: 1 / -1;
	}

	.notes-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.notes-page__side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.notes-page__quote {
		grid-column: 1 / -1;
	}

	.history__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 46px;
	}

	.history__media {
		position: static;
		max-width: 580px;
	}

	.history__media img {
		aspect-ratio: 4 / 3;
	}

	.clergy__grid {
		max-width: 760px;
	}

	.cta-strip__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}

	.contacts-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.contacts-page__map,
	.contacts-page__map iframe {
		min-height: 420px;
	}

	.donate-details__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.requisites-card {
		max-width: 620px;
	}

	.posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.error-page__inner {
		margin-left: 0;
	}
}

@media (max-width: 760px) {
	.container,
	.container--narrow {
		width: calc(100% - 40px);
	}

	.section {
		padding-block: clamp(56px, 11vw, 78px);
	}

	.section__head,
	.section__head--row {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		margin-bottom: 34px;
	}

	.section__head--center {
		align-items: center;
	}

	.section__head-side {
		max-width: 100%;
		flex-basis: auto;
	}

	.section__lead {
		font-size: 14px;
	}

	.brand__mark {
		width: 44px;
		height: 44px;
	}

	.brand__name {
		max-width: 230px;
		font-size: 17px;
	}

	.brand__tagline {
		display: none;
	}

	.hero {
		padding: 58px 0 92px;
	}

	.hero__title {
		font-size: clamp(2.6rem, 10.5vw, 3.8rem);
		line-height: 1.01;
	}

	.hero__subtitle {
		font-size: 14.5px;
	}

	.hero__actions {
		align-items: stretch;
	}

	.hero__actions .btn {
		flex: 1 1 auto;
	}

	.hero__welcome {
		margin-top: 24px;
	}

	.next-service {
		max-width: 100%;
	}

	.quickbar {
		display: grid;
		grid-template-columns: 1fr;
		padding: 8px 16px;
	}

	.quickbar__item {
		padding: 10px 0;
	}

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

	.quickbar__action {
		padding: 12px 0 6px;
		border-top: 1px solid var(--line);
	}

	.about__media {
		padding: 0 14px 14px 0;
	}

	.about__media::before {
		top: 14px;
		left: 14px;
	}

	.about__badge {
		right: 0;
		bottom: 42px;
		width: 116px;
		padding: 14px 10px;
	}

	.about__badge span {
		font-size: 26px;
	}

	.stats {
		gap: 18px 0;
	}

	.stats__item {
		min-width: 30%;
		padding-right: 16px;
		margin-right: 16px;
	}

	.stats__value {
		font-size: 36px;
	}

	.stats__label {
		font-size: 8px;
	}

	.schedule-card {
		padding: 24px 18px 20px;
	}

	.schedule-card__row {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 10px;
		padding: 11px 8px;
	}

	.schedule-card__day {
		font-size: 18px;
	}

	.schedule-card__service {
		font-size: 10.5px;
	}

	.sacraments__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.quote {
		padding: 78px 0;
	}

	.quote__text {
		font-size: clamp(27px, 7.4vw, 38px);
	}

	.events__grid,
	.events__grid--archive {
		grid-template-columns: minmax(0, 1fr);
	}

	.notes-cta__media {
		min-height: 250px;
	}

	.notes-cta__body {
		padding: 34px 24px 38px;
	}

	.notes-cta__actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}

	.gallery-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 170px;
		gap: 10px;
	}

	.gallery-mosaic__item--large {
		grid-column: span 2;
		grid-row: span 1;
	}

	.donate__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 34px;
	}

	.donate__seal {
		width: 128px;
		height: 128px;
	}

	.donate__seal .mark {
		width: 46px;
		height: 46px;
	}

	.donate__actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}

	.footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.footer__brand {
		grid-column: auto;
	}

	.footer__top {
		padding-top: 52px;
	}

	.page-hero {
		min-height: 300px;
		padding: 52px 0 44px;
	}

	.page-hero__title {
		font-size: clamp(2.3rem, 9vw, 3.3rem);
	}

	.prose--lead {
		font-size: 16.5px;
	}

	.schedule-list__row {
		grid-template-columns: 100px minmax(0, 1fr);
		gap: 12px;
		padding: 14px 10px;
	}

	.schedule-list__day {
		font-size: 19px;
	}

	.schedule-page__side {
		grid-template-columns: minmax(0, 1fr);
	}

	.next-card {
		grid-column: auto;
	}

	.prepare-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.note-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.note-form__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.note-form__notice {
		max-width: 100%;
	}

	.notes-page__side {
		grid-template-columns: minmax(0, 1fr);
	}

	.notes-page__quote {
		grid-column: auto;
	}

	.sacrament-detail h2 {
		font-size: 32px;
	}

	.values-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.timeline::before {
		left: 32px;
	}

	.timeline__item {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 20px;
	}

	.timeline__year {
		font-size: 20px;
	}

	.clergy__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gallery-page .gallery,
	.gallery-mosaic--page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 180px;
	}

	.directions__grid,
	.donate-ways {
		grid-template-columns: minmax(0, 1fr);
	}

	.contacts-page__map,
	.contacts-page__map iframe {
		min-height: 360px;
	}

	.donate-thanks__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.donate-thanks__seal {
		width: 100px;
		height: 100px;
	}

	.donate-thanks__seal .mark {
		width: 62px;
		height: 62px;
	}

	.posts-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav__next {
		text-align: left;
	}

	.comment-list .children {
		padding-left: 16px;
	}

	.lightbox__nav {
		width: 40px;
		height: 40px;
	}

	.lightbox__nav--prev {
		left: 10px;
	}

	.lightbox__nav--next {
		right: 10px;
	}

	.lightbox__close {
		top: 12px;
		right: 12px;
	}
}

@media (max-width: 520px) {
	.topbar {
		font-size: 8.5px;
		letter-spacing: 0.05em;
	}

	.topbar__inner {
		min-height: 32px;
	}

	.masthead {
		min-height: 68px;
	}

	.brand {
		gap: 9px;
	}

	.brand__mark {
		width: 38px;
		height: 38px;
	}

	.brand__name {
		max-width: 190px;
		font-size: 15px;
	}

	.nav-toggle {
		width: 40px;
		height: 40px;
	}

	.hero__title {
		font-size: clamp(2.35rem, 11vw, 3.1rem);
	}

	.hero__actions {
		flex-direction: column;
	}

	.quickbar__text a {
		white-space: normal;
	}

	.about__quote {
		padding-left: 20px;
	}

	.stats {
		flex-wrap: wrap;
	}

	.stats__item {
		min-width: 45%;
	}

	.stats__item:nth-child(2) {
		border-right: 0;
		padding-right: 0;
		margin-right: 0;
	}

	.schedule-card__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 3px;
	}

	.schedule-card__times {
		padding-left: 0;
	}

	.schedule-list__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 3px;
	}

	.gallery-mosaic,
	.gallery-page .gallery,
	.gallery-mosaic--page {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 240px;
	}

	.gallery-mosaic__item--large {
		grid-column: auto;
		grid-row: auto;
	}

	.footer__bottom-inner {
		font-size: 8.5px;
	}

	.page-hero {
		min-height: 260px;
	}

	.breadcrumbs {
		font-size: 8px;
	}

	.requisites-card__head {
		flex-direction: column;
	}

	.requisites-card__copy {
		align-self: flex-start;
	}

	.notes-cta__media {
		min-height: 210px;
	}

	.notes-cta__stamp {
		width: 68px;
		height: 68px;
	}

	.notes-cta__stamp .mark {
		width: 44px;
		height: 44px;
	}
}
