/* ── Brand fonts (from brandbook) ───────────────────── */
/* Circe — основной шрифт бренда */
@font-face {
  font-family: 'Circe';
  src: url('../fonts/circe.woff2') format('woff2'),
       url('../fonts/circe.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Circe';
  src: url('../fonts/circebold.woff2') format('woff2'),
       url('../fonts/circebold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Monomakh — славянский дисплейный для заголовков */
@font-face {
  font-family: 'Monomakh';
  src: url('../fonts/Monomakh-Regular.woff2') format('woff2'),
       url('../fonts/Monomakh-Regular.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ── Variables — Ethereal Orthodoxy Light ───────────── */
:root {
  /* Surfaces — тёплый беж как нейтральный */
  --bg:            #EFEAD9;   /* тёплый беж (основной фон) */
  --bg-warm:       #EFEAD9;
  --bg-alt:        #E6E0CC;   /* чуть глубже — чередующиеся секции */
  --surface:       #FBF9F1;   /* тёплый светлый для карточек */
  --surface-2:     #F2EDDE;
  --glass:         rgba(251,249,241,0.82);
  --glass-card:    #FBF9F1;
  /* Ink / text — единое зелёное семейство */
  --green-deep:    #2E3D2B;   /* заголовки, основной текст */
  --green-base:    #4A5D3A;   /* логотип, акценты */
  --green-muted:   #8A9A82;   /* вторичный текст («Прокрутите вниз») */
  --ink:           #2E3D2B;
  --text:          #2E3D2B;
  --text-dim:      rgba(46,61,43,0.72);
  --text-muted:    #8A9A82;
  /* Gold — три ступени металла (редкий акцент) */
  --gold-deep:     #A67C28;   /* тени, обводки */
  --gold-base:     #C9A24B;   /* кнопка, основной акцент */
  --gold:          #C9A24B;   /* alias = base */
  --gold-light:    #E3C878;   /* блики, hover */
  --gold-dim:      rgba(201,162,75,0.12);
  --gold-glow:     rgba(201,162,75,0.28);
  --gold-border:   rgba(201,162,75,0.42);
  /* ── Фактура «дорогой бумаги» (cozy academia) ──────────
     Фон секций — спокойный гладкий крем (без зерна). Тёплый пергамент Б1′ — ТОЛЬКО
     на карточках (чтобы они читались как бумажные листы), поэтому он светлый.
     --card-paper: светлый пергамент parch00 (тонирован к тёплому почти-белому) — images/paper-card.jpg.
     --cross-wm: восьмиконечный крест-водяной знак (тот же, что #bg-cross), золото, opacity ~7%. */
  --card-paper: url("../images/paper-card.jpg?v=8");
  --cross-wm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 390'%3E%3Cg fill='%23C9A24B' opacity='0.07'%3E%3Crect x='101' y='0' width='18' height='390'/%3E%3Crect x='0' y='150' width='220' height='16'/%3E%3Crect x='52' y='84' width='116' height='13'/%3E%3Cpolygon points='66,272 154,295 154,282 66,259'/%3E%3C/g%3E%3C/svg%3E");
  /* Green — одно семейство от тёмного к светлому */
  --forest:        #4A5D3A;
  --forest-light:  #5E7349;
  --forest-vivid:  #4A5D3A;
  --forest-deep:   #2E3D2B;
  --lime:          #7DA000;
  --teal:          #6F8C19;   /* второй акцент — оливково-зелёный */
  --forest-dim:    rgba(74,93,58,0.10);
  --forest-glow:   rgba(74,93,58,0.18);
  --forest-border: rgba(74,93,58,0.24);
  /* Lines & shadows */
  --line:          rgba(46,61,43,0.12);
  --shadow:        rgba(46,61,43,0.12);
  --shadow-strong: rgba(46,61,43,0.18);
  /* Type */
  --slavic:        'Monomakh', 'Source Serif 4', Georgia, serif;
  --serif:         'Source Serif 4', Georgia, serif;
  --sans:          'Circe', 'Manrope', system-ui, sans-serif;
  --r:             16px;
  --r-lg:          24px;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Плавное масштабирование шрифта: телефон → 4K без скачков.
   ≈15px на узком телефоне, ≈16–18px на десктопе, до 21px на больших экранах. */
html { font-size: clamp(15px, calc(14px + 0.26vw), 21px); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; transition: color 0.3s; }

/* Боковые поля контейнера тоже плавные: на телефоне узкие, на десктопе шире.
   Это убирает тесноту и горизонтальный выезд на узких экранах. */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ── Адаптив под большие мониторы ────────────────────────
   Шрифт масштабируется плавно (см. html выше); здесь только
   расширяем контейнер, чтобы контент не «расплывался» по бокам. */
@media (min-width: 1600px) { .container { max-width: 1340px; } }
@media (min-width: 2000px) { .container { max-width: 1520px; } }
@media (min-width: 2560px) { .container { max-width: 1720px; } }

/* ── Particle Canvas ────────────────────────────────── */
#particle-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;   /* над фоновой часовней — частицы спереди */
}

/* Fallback, когда Three.js отключён (мобильные / reduced-motion / нет WebGL):
   убираем тяжёлый fixed-канвас, фон озера ставим только в hero статичной картинкой. */
/* Без Three.js (мобильные/слабые) — частиц нет, но фоновая часовня остаётся */
.no-three #particle-canvas { display: none; }

/* ── Background Orthodox Cross — убран по просьбе ────── */
#bg-cross { display: none; }

/* ── Navigation ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1.9rem 0;
  transition: all 0.55s var(--ease-out);
}
nav.scrolled {
  background: rgba(239,234,217,0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
  box-shadow: 0 4px 30px rgba(27,48,34,0.07);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1001;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--ink) !important;
  font-family: var(--slavic);
  font-size: 1.25rem; font-weight: normal;
  letter-spacing: 0.02em;
}
.nav-logo-img {
  height: 84px; width: auto;
  opacity: 0.96;
  transition: opacity 0.3s, height 0.55s var(--ease-out);
}
/* В прокрученном состоянии шапка компактнее — логотип чуть уменьшается */
nav.scrolled .nav-logo-img { height: 64px; }
.nav-logo:hover .nav-logo-img { opacity: 1; }
.nav-logo-cross { font-size: 1.45rem; color: var(--forest-vivid); }
.nav-menu { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
/* Навигация тёмная — шапка лежит на светлом молочно-белом hero */
.nav-menu a {
  display: block; padding: 0.4rem 0.62rem;
  color: rgba(46,61,43,0.82) !important;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.03em; border-radius: 8px;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s;
}
.nav-menu a:hover {
  color: var(--gold-deep) !important; background: var(--gold-dim);
}
.nav-menu a.active {
  color: var(--forest-vivid) !important;
  background: var(--forest-dim);
}
.nav-phone {
  color: var(--green-base) !important;
  font-size: 0.86rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
  letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0;
}
.nav-menu { flex-wrap: nowrap; }
/* Когда шапка прокручена (бежевый фон) — текст снова тёмный */
nav.scrolled .nav-menu a {
  color: rgba(46,61,43,0.80) !important; text-shadow: none;
}
nav.scrolled .nav-menu a:hover {
  color: var(--gold-deep) !important; background: var(--gold-dim);
}
nav.scrolled .nav-menu a.active {
  color: var(--forest-vivid) !important; background: var(--forest-dim);
}
nav.scrolled .nav-phone { color: var(--green-base) !important; text-shadow: none; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 2px; transition: all 0.3s;
}

/* ── Hero (igloo-style: молочно-белая сцена, вращающаяся часовня) ───── */
/* Hero прозрачен — за ним лежит фоновая часовня (#bg-stage) и частицы */
#hero {
  min-height: 100vh; position: relative; z-index: 2;
  display: flex; align-items: center;
  padding: 7rem 0 4.5rem; overflow: hidden;
  background: transparent;
}
.hero-inner {
  width: 100%;
  display: flex; align-items: center;
}
.hero-content {
  position: relative; z-index: 2; text-align: left;
  max-width: 600px; will-change: transform;
}
/* Hero-текст — тёмный на молочно-белом фоне */
.hero-eyebrow {
  display: block; font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--slavic);
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--green-deep); line-height: 1.12; font-weight: normal;
  margin-bottom: 1.5rem; letter-spacing: 0.01em;
}
.hero-title em { color: var(--gold-deep); font-style: italic; }
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-dim);
  max-width: 480px; margin: 0 0 2.6rem;
  font-weight: 400; line-height: 1.8;
}
.hero-buttons {
  display: flex; gap: 1rem;
  justify-content: flex-start; flex-wrap: wrap;
}

/* ── Фоновая часовня (fixed, только главная) ─────────────
   Слои: статичная вырезанная часовня (alpha) + поверх вращающееся видео
   (белый фон сливается с молочным ореолом) + светлый оверлей засветления. */
#bg-stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* Фон РОВНО в цвет фона кадров часовни (#EAE0CC) — без градиента, чтобы края
     canvas нигде не выделялись. Прямоугольника нет. */
  background: #EFEAD9;
  will-change: transform;
}
/* Часовня-остров (canvas со скрабом). Низ растворяется прямо в canvas (destination-out),
   поэтому открывается фон #bg-stage — шва нет. */
#chapel-canvas {
  position: absolute; top: 50%; left: 68%;
  transform: translate(-50%, -50%);
  width: min(46vw, 660px); height: auto;
  display: none;   /* показываем, когда секвенция загрузилась (.chapel-scrub) */
}
.chapel-scrub #chapel-canvas { display: block; }
/* Статичная часовня — фоллбэк (моб./reduced-motion/нет JS). Скрывается, когда
   запустился скраб (класс .chapel-scrub на <html>). */
.bg-chapel-static {
  position: absolute; top: 50%; left: 68%;
  transform: translate(-50%, -50%);
  width: min(46vw, 620px); height: auto;
  object-fit: contain;
}
.chapel-scrub .bg-chapel-static { display: none; }
/* Тонкий золотой крест на куполе сливался с кремовым фоном — даём силуэту
   часовни лёгкий тёмный контур (drop-shadow идёт по alpha кадров), чтобы крест
   и края читались на молочном фоне. Мягкий ground-shadow добавляет глубину. */
#chapel-canvas,
.bg-chapel-static {
  /* Крест теперь впечатан тёмной бронзой в сами кадры/постер (см. images/hero-chapel/*)
     — CSS-костыли для его видимости больше не нужны. Оставляем только мягкую
     тень под «островом» для эффекта парения. */
  filter: drop-shadow(0 14px 20px rgba(40,45,35,0.10));
}

/* Scroll-hint — снизу по центру, тёмный на светлом hero */
.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: var(--green-muted); font-size: 0.66rem;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-mouse {
  width: 20px; height: 34px;
  border: 1.5px solid var(--gold-border);
  border-radius: 10px; position: relative;
}
.scroll-mouse::before {
  content: ''; position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 7px;
  background: var(--gold-base); border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ── Section Base ──────────────────────────────────────
   Фон после hero — «дорогая бумага»: непрозрачный цвет (перекрывает fixed-часовню),
   тёплое золотое свечение вверху секции (перелив света между секциями) + крест-водяной
   знак по центру у заголовка + тонкая зернистость. Слои: [glow][crossWM][paper][color]. */
.site-section {
  position: relative; z-index: 2;
  padding: 8rem 0; overflow: hidden;
  background-color: var(--bg);
  /* Спокойный гладкий кремовый фон секции + крест-водяной знак у заголовка (зерно убрано). */
  background-image: var(--cross-wm);
  background-repeat: no-repeat;
  background-position: center 3.2rem;
  background-size: clamp(120px, 12vw, 190px) auto;
}
.site-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,105,73,0.18) 20%, rgba(201,168,76,0.30) 50%, rgba(30,105,73,0.18) 80%, transparent);
  pointer-events: none;
}
/* Left forest-green accent bar on sections */
.site-section::after {
  content: ''; position: absolute;
  top: 15%; left: 0; width: 3px; height: 70%;
  background: linear-gradient(to bottom, transparent, rgba(30,105,73,0.30), transparent);
  pointer-events: none;
}
/* Единый кремовый под всеми секциями — фактура бумаги читается как один лист
   (без тёмного bg-alt и без шва между секциями). Форма брони — чуть светлее. */
#benefits, #services, #offerings, #about, #contacts { background-color: var(--bg); }
#booking   { background-color: var(--surface-2); }
footer     { background: #14271A; position: relative; z-index: 2; }

/* ── Славянские вышивки-бордюры по бокам (десктоп) ──────────
   Мотив-меандр (золото в палитре). Полосы идут по краям контента ПОСЛЕ hero и скроллятся
   вместе со страницей (position: absolute, top: 100vh) — не висят фикс-оверлеем поверх сайта.
   Только на широких экранах (за контейнером max-width 1160px есть поля); на узких скрыты. */
body { position: relative; }
/* Только на главной (у подстраниц <body class="subpage">): на коротких страницах
   узор прижимался лишь к футеру и смотрелся случайно. */
@media (min-width: 1280px) {
  body:not(.subpage)::before, body:not(.subpage)::after {
    content: ''; position: absolute; top: 100vh; bottom: 0; width: 40px;
    background: url("../images/border-side.png") repeat-y;
    background-size: 40px auto;
    pointer-events: none; z-index: 4;
  }
  body:not(.subpage)::before { left: 0; }
  body:not(.subpage)::after  { right: 0; transform: scaleX(-1); }
}

/* ── Ornament ────────────────────────────────────────── */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gold-deep); font-size: 0.7rem;
  letter-spacing: 0.45em; text-transform: uppercase;
  justify-content: center; margin-bottom: 1.2rem;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; max-width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-title {
  font-family: var(--slavic);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ink); text-align: center;
  margin-bottom: 0.8rem; font-weight: normal; line-height: 1.2;
  letter-spacing: 0.01em;
}
.gold-line {
  width: 64px; height: 1.5px;
  /* Слой 1 — бегущий световой блик (шире линии), слой 2 — сама золото-зелёная линия. */
  background:
    linear-gradient(90deg, transparent 0%, var(--gold-light) 50%, transparent 100%),
    linear-gradient(90deg, transparent, var(--forest-vivid) 30%, var(--gold) 70%, transparent);
  background-size: 55% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: -60% 0, 0 0;
  margin: 0.8rem auto 3rem;
}
/* Мерцание по разделителю — сдержанное движение «по краям», не за текстом.
   Работает только при отсутствии prefers-reduced-motion (не зависит от Motion-CDN). */
@media (prefers-reduced-motion: no-preference) {
  .gold-line { animation: goldShimmer 5s ease-in-out infinite; }
  @keyframes goldShimmer {
    0%, 100% { background-position: -60% 0, 0 0; }
    50%      { background-position: 160% 0, 0 0; }
  }
}
.section-subtitle {
  color: var(--text-dim); text-align: center;
  max-width: 560px; margin: 0 auto 4rem;
  font-size: 1rem; line-height: 1.85; font-weight: 300;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 2.2rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  border: 1px solid transparent; position: relative;
}
/* Металлик-золото: две световые «полки» (specular) сверху и по центру + тёмный низ —
   имитация полированного металла (аналог metallic в 3D). */
.btn-primary {
  background: linear-gradient(180deg,
    #FBEEA0 0%, #E9C85C 15%, #C99A34 44%, #E1B94A 58%, #AA7D22 84%, #855F16 100%);
  color: #2A2008;
  border-color: rgba(133,95,22,0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,251,228,0.75),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 6px 18px rgba(166,124,40,0.30);
}
.btn-primary:hover {
  background: linear-gradient(180deg,
    #FFF6BE 0%, #F2D46C 15%, #D8AB3C 44%, #EFC856 58%, #B98C2A 84%, #94691A 100%);
  color: #2A2008;
}
.btn-primary:active {
  background: linear-gradient(180deg, #C99A34 0%, #B98C2C 50%, #8A6318 100%);
}
/* Вторичная кнопка на тёмном hero — стеклянная, с золотой обводкой */
.btn-outline {
  background: rgba(28,38,28,0.28); color: #F3EEDF;
  border: 1px solid rgba(227,200,120,0.55);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(28,38,28,0.42);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
/* Вторичная кнопка на светлом фоне (секции страницы) */
.btn-ghost {
  background: transparent; color: var(--green-deep);
  border: 1px solid var(--gold-border);
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold-base);
  color: var(--green-deep);
}

/* ── Benefit Cards ───────────────────────────────────── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

/* ── Услуги: фото-карточки ──────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
/* Доп. досуг (влит из «Трёх причин») + ссылка на каталог — строкой под карточками */
.services-extra {
  margin-top: 2.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
}
.services-more {
  max-width: 640px; margin: 0; color: var(--text-dim);
  font-size: 1rem; line-height: 1.7;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(27,48,34,0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--shadow);
}
.service-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.service-card:hover .service-photo img { transform: scale(1.06); }
/* Чип услуги — читаемый, в палитре, поверх фото (вместо блёклой иконки) */
.service-badge {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem; border-radius: 999px;
  background: rgba(46,61,43,0.86);
  border: 1px solid rgba(227,200,120,0.55);
  box-shadow: 0 4px 14px rgba(27,48,34,0.35);
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}
.service-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.service-badge-label {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.02em;
  color: #F3EEDF; white-space: nowrap;
}
.service-body { padding: 1.8rem 1.6rem; }
.service-body h3 {
  font-family: var(--slavic); font-weight: normal;
  font-size: 1.4rem; color: var(--ink); margin-bottom: 0.5rem;
}
.service-body p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }

/* ── Audiences (паломники / рыбаки / семьи / проезжающие) ─ */
.audiences-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(27,48,34,0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--shadow);
}
.audience-icon {
  font-size: 1.7rem; line-height: 1;
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold-deep); margin-bottom: 1.2rem;
}
.audience-card h3 {
  font-family: var(--slavic); font-weight: normal;
  font-size: 1.35rem; color: var(--ink); margin-bottom: 0.6rem;
}
.audience-card p {
  color: var(--text-dim); font-size: 0.92rem; line-height: 1.7;
  margin-bottom: 1.2rem; flex: 1;
}
.audience-card .link-more { margin-top: auto; }
.benefit-card {
  padding: 2.2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r); position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27,48,34,0.04);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: transform;
}
.benefit-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(197,160,89,0), rgba(197,160,89,0.08));
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.benefit-card::after {
  content: ''; position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,0.55), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.benefit-card:hover { border-color: var(--gold-border); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27,48,34,0.10); }
.benefit-card:hover::before, .benefit-card:hover::after { opacity: 1; }

/* Гравюрные иллюстрации вместо иконок-плиток: тёмно-зелёная тушь на прозрачном
   (изба/сосна/крест/лодка). Плитки-фона нет — сидят прямо на карточке, как на макете. */
.benefit-icon {
  height: clamp(74px, 8vw, 106px); margin-bottom: 1.1rem;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.benefit-icon img {
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; object-position: left bottom;
  opacity: 0.9; transition: transform 0.45s var(--ease-out), opacity 0.45s;
}
.benefit-card:hover .benefit-icon img { transform: translateY(-3px) scale(1.03); opacity: 1; }

/* ── «Почему здесь» — редакторские строки (гравюра + текст, чередование лево/право) ──
   Не карточки, а «страницы книги» — визуально отличается от фото-карточек «Услуг». */
.benefits-rows {
  max-width: 900px; margin: 3.5rem auto 0;
  display: flex; flex-direction: column; gap: 3rem;
}
.benefit-row {
  display: grid; grid-template-columns: 230px 1fr;
  gap: 2.1rem; align-items: center;
}
.benefit-row + .benefit-row { border-top: 1px solid var(--line); padding-top: 3rem; }
.benefit-row:nth-child(even) { grid-template-columns: 1fr 230px; }
.benefit-row:nth-child(even) .benefit-illu { order: 2; }
.benefit-row:nth-child(even) .benefit-text { order: 1; text-align: right; }
.benefit-illu { display: flex; justify-content: center; }
.benefit-illu img {
  /* Крупнее и контрастнее — раньше выглядели мелкими бледными «пнг» */
  width: auto; height: clamp(150px, 16vw, 210px);
  opacity: 1; transition: transform 0.5s var(--ease-out);
}
.benefit-row:hover .benefit-illu img { transform: translateY(-4px); }
.benefit-text h3 {
  font-family: var(--slavic); font-weight: normal;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--green-deep);
  margin: 0 0 0.7rem;
}
.benefit-text p {
  color: var(--text-dim); font-size: 1.02rem; line-height: 1.78;
  max-width: 520px; margin: 0;
}
.benefit-row:nth-child(even) .benefit-text p { margin-left: auto; }
@media (max-width: 640px) {
  .benefits-rows { gap: 2rem; }
  .benefit-row, .benefit-row:nth-child(even) {
    grid-template-columns: 1fr; text-align: center; gap: 1rem; padding-top: 2rem;
  }
  .benefit-row:nth-child(even) .benefit-illu { order: 0; }
  .benefit-row:nth-child(even) .benefit-text { order: 0; text-align: center; }
  .benefit-text p, .benefit-row:nth-child(even) .benefit-text p { margin: 0 auto; }
  .benefit-illu img { height: 128px; }
}
/* Even cards: forest-tinted border + top highlight */
.benefit-card:nth-child(even) {
  border-color: var(--forest-border);
}
.benefit-card:nth-child(even)::after {
  background: linear-gradient(90deg, transparent, rgba(30,105,73,0.5), transparent);
}
.benefit-card:nth-child(even):hover {
  border-color: rgba(30,105,73,0.45);
  box-shadow: 0 18px 40px rgba(27,48,34,0.10);
}
.benefit-card:nth-child(even)::before {
  background: linear-gradient(135deg, rgba(30,105,73,0.0), rgba(30,105,73,0.06));
}

.benefit-card h3 {
  font-family: var(--slavic); font-size: 1.3rem;
  color: var(--ink); margin-bottom: 0.7rem; font-weight: normal;
  letter-spacing: 0.01em;
}
.benefit-card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.8; font-weight: 300; }

/* ── About ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-text .ornament { justify-content: flex-start; }
.about-text .ornament::before { display: none; }
.about-text h2 {
  font-family: var(--slavic);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--ink); line-height: 1.25; margin-bottom: 1.5rem;
  font-weight: normal; letter-spacing: 0.01em;
}
.about-text h2 em { color: var(--forest-vivid); font-style: italic; }
.about-text p {
  color: var(--text-dim); font-size: 1rem;
  line-height: 1.9; margin-bottom: 1.2rem; font-weight: 400;
}
.about-text p strong { color: var(--ink); font-weight: 700; }
.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.about-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem;
}
.stat-item {
  text-align: center; padding: 1.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(27,48,34,0.04);
  transition: all 0.4s var(--ease-out);
}
/* Alternate stat items: gold / forest */
.stat-item:nth-child(even) {
  border-color: var(--forest-border);
  background: var(--surface-2);
}
.stat-item:nth-child(even) .stat-number { color: var(--forest-vivid); }
.stat-item:nth-child(even):hover { border-color: var(--forest-light); box-shadow: 0 12px 26px rgba(27,48,34,0.10); }
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(27,48,34,0.10);
}
.stat-item:nth-child(odd):hover { border-color: var(--gold); }
.stat-number {
  font-family: var(--slavic); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: normal; color: var(--gold); line-height: 1; display: block;
  letter-spacing: 0.01em;
}
.stat-label {
  font-size: 0.72rem; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.4rem;
}
.about-image-block { position: relative; }
.about-image {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, rgba(26,56,33,0.55) 0%, rgba(16,26,18,0.85) 50%, rgba(10,15,20,0.95) 100%);
  border: 1px solid var(--forest-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(26,56,33,0.2) inset;
}

/* ── Гравюрная рамка фото (вариант A): золотой кейлайн + орнаментальные уголки ── */
.about-image-block { margin: 0; }                 /* сброс дефолта <figure> */
.framed-photo { position: relative; padding: 11px; }
.photo-caption {
  margin: 1.1rem 0 0; text-align: center;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-dim);
}
.photo-caption strong { color: var(--green-deep); font-weight: 600; }
.framed-photo .about-image {
  border: none; box-shadow: 0 10px 34px rgba(27,48,34,0.12); border-radius: 7px;
}
.framed-photo::before {          /* тонкая золотая линия по контуру */
  content: ''; position: absolute; inset: 2px;
  border: 1px solid var(--gold-border); border-radius: 12px; pointer-events: none;
}
.frame-corner {
  position: absolute; width: clamp(34px, 3.4vw, 44px); aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 16 L4 4 L16 4'/%3E%3Cpath d='M4 16 C4 9 9 4 16 4'/%3E%3Cpath d='M16 4 C21 4 20 9 24 8'/%3E%3Cpath d='M4 16 C4 21 9 20 8 24'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23B8912F'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
  pointer-events: none; z-index: 2;
}
.frame-corner.tl { top: 0; left: 0; }
.frame-corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.frame-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.frame-corner.br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ── Семейство рамок для виджетов (золото/гравюра, разные по секциям) ──────────
   .gframe — обёртка-паспарту (11px мат). Кейлайны и ромбы — на самом виджете. */
.gframe { position: relative; padding: 11px; }
/* одинарный золотой кейлайн (карта, база для уголков/ромбов) */
.gf-keyline { position: relative; }
.gf-keyline::before {
  content: ''; position: absolute; inset: 6px; z-index: 4; pointer-events: none;
  border: 1px solid var(--gold-border); border-radius: calc(var(--r) - 4px);
}
/* Двойная золотая рамка-«паспарту» на фото-карточке: КОНТЕНТ ВНУТРИ рамки (padding=мат),
   внешняя линия — золотой бордюр, внутренняя — inset-тень. Псевдоэлементы свободны под орнамент. */
.service-card.gf-double {
  position: relative;
  padding: 11px; border-color: var(--gold-border);
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(184,145,47,0.5), 0 1px 2px rgba(27,48,34,0.04);
}
.service-card.gf-double:hover {
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(184,145,47,0.5), 0 20px 50px var(--shadow);
}
/* Филигранные уголки на золотой рамке карточки (мотив как на фото «О нас») */
.service-card.gf-double::before {
  content: ''; position: absolute; inset: 4px; z-index: 3; pointer-events: none;
  background-repeat: no-repeat;
  background-size: 26px 26px, 26px 26px, 26px 26px, 26px 26px;
  background-position: top left, top right, bottom left, bottom right;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 16 L4 4 L16 4'/%3E%3Cpath d='M4 16 C4 9 9 4 16 4'/%3E%3Cpath d='M16 4 C21 4 20 9 24 8'/%3E%3Cpath d='M4 16 C4 21 9 20 8 24'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23B8912F'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(40 0) scale(-1 1)'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 16 L4 4 L16 4'/%3E%3Cpath d='M4 16 C4 9 9 4 16 4'/%3E%3Cpath d='M16 4 C21 4 20 9 24 8'/%3E%3Cpath d='M4 16 C4 21 9 20 8 24'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23B8912F'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(0 40) scale(1 -1)'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 16 L4 4 L16 4'/%3E%3Cpath d='M4 16 C4 9 9 4 16 4'/%3E%3Cpath d='M16 4 C21 4 20 9 24 8'/%3E%3Cpath d='M4 16 C4 21 9 20 8 24'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23B8912F'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(40 40) scale(-1 -1)'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 16 L4 4 L16 4'/%3E%3Cpath d='M4 16 C4 9 9 4 16 4'/%3E%3Cpath d='M16 4 C21 4 20 9 24 8'/%3E%3Cpath d='M4 16 C4 21 9 20 8 24'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23B8912F'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.service-card.gf-double .service-photo { border-radius: 8px; }
.service-card.gf-double .service-body { padding: 1.2rem 0.7rem 0.5rem; }
/* Орнамент-разделитель под заголовком карточки (линия — ромб — линия) */
.service-body h3::after {
  content: ''; display: block; width: 54px; height: 8px; margin: 0.5rem 0 0.7rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='8' viewBox='0 0 54 8'%3E%3Cg fill='%23B8912F'%3E%3Crect x='0' y='3.4' width='20' height='1.2'/%3E%3Crect x='34' y='3.4' width='20' height='1.2'/%3E%3Crect x='23' y='1' width='6' height='6' transform='rotate(45 27 4)'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center;
}
/* ромбы по углам (садятся на углы кейлайна .gf-keyline, inset 6px) */
.frame-diamond {
  position: absolute; width: 11px; height: 11px; z-index: 5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2.5' y='2.5' width='7' height='7' transform='rotate(45 6 6)' fill='%23B8912F'/%3E%3C/svg%3E") no-repeat center/contain;
}
.frame-diamond.tl { top: 6px; left: 6px; transform: translate(-50%, -50%); }
.frame-diamond.tr { top: 6px; right: 6px; transform: translate(50%, -50%); }
.frame-diamond.bl { bottom: 6px; left: 6px; transform: translate(-50%, 50%); }
.frame-diamond.br { bottom: 6px; right: 6px; transform: translate(50%, 50%); }

.about-image-inner { text-align: center; color: var(--text-muted); }
.about-image-inner .cross-big {
  font-size: 7rem; color: var(--forest-vivid); opacity: 0.22;
  display: block; margin-bottom: 1rem;
  animation: crossGlow 4s ease-in-out infinite;
}
@keyframes crossGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(42,92,51,0.5)); }
  50%       { filter: drop-shadow(0 0 50px rgba(42,92,51,0.9)); }
}
.about-badge {
  position: absolute; bottom: -1.2rem; right: -1.2rem;
  background: linear-gradient(135deg, var(--forest-light) 0%, #0D2010 100%);
  color: #fff; padding: 1.2rem 1.8rem;
  border-radius: var(--r); text-align: center;
  border: 1px solid var(--forest-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(42,92,51,0.2);
}
.about-badge strong {
  display: block; font-family: var(--slavic); font-size: 1.7rem; line-height: 1; font-weight: normal;
}
.about-badge span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: rgba(229,231,235,0.75); }

/* ── Booking ─────────────────────────────────────────── */
.booking-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 4rem; align-items: start;
}
.booking-info h2 {
  font-family: var(--slavic);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink); margin-bottom: 1.2rem; line-height: 1.3;
  font-weight: normal; letter-spacing: 0.01em;
}
.booking-info p { color: var(--text-dim); font-size: 1rem; line-height: 1.85; margin-bottom: 2rem; font-weight: 300; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; color: var(--text-dim); font-size: 0.94rem; }
.contact-item-icon {
  width: 38px; height: 38px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold-deep);
}
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item strong {
  color: var(--ink); display: block;
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.15rem;
}
.contact-item a { color: var(--text-dim); }
.contact-item a:hover { color: var(--gold); }
/* ── BNOVO booking module ─────────────────────────────── */
.booking-widget {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 8px 30px rgba(27,48,34,0.06);
  overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column;
}
.bnovo-widget { flex: 1; display: flex; }
.bnovo-frame {
  width: 100%; min-height: 560px; border: 0; display: block;
}
.bnovo-placeholder {
  margin: auto; padding: 3rem 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.bnovo-status { color: var(--ink); font-size: 1.02rem; font-weight: 500; }
.bnovo-fallback { color: var(--text-dim); font-size: 0.94rem; line-height: 1.7; }
.bnovo-fallback a { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }
.bnovo-fallback a:hover { color: var(--gold); }
.bnovo-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--gold-border); border-top-color: var(--gold-base);
  animation: bnovo-spin 0.9s linear infinite;
}
@keyframes bnovo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bnovo-spinner { animation: none; } }

/* ── Reviews (виджет Яндекс.Бизнеса) ──────────────────── */
.reviews-lead {
  max-width: 720px; margin: 0 auto 2.5rem; text-align: center;
  color: var(--text-dim); font-size: 1.02rem; line-height: 1.8; font-weight: 300;
}
.reviews-widget {
  max-width: 920px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 8px 30px rgba(27,48,34,0.06);
  overflow: hidden;
}
.reviews-frame {
  width: 100%; height: 580px; border: 0; display: block;
  background: var(--surface);
}
.reviews-link {
  display: block; text-align: center;
  padding: 1rem; font-size: 0.9rem; font-weight: 600;
  color: var(--gold-deep);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.reviews-link:hover { color: var(--gold); background: var(--gold-dim); }
@media (max-width: 600px) { .reviews-frame { height: 480px; } }

/* ── Contacts Section ─────────────────────────────────── */
.contacts-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem; margin-top: 1rem; align-items: stretch;
}
.contacts-info {
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 8px 30px rgba(27,48,34,0.06);
}
.contact-row {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  color: var(--text-dim); text-decoration: none;
  transition: background 0.3s; border-radius: 8px;
  margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem;
}
.contact-row:not(.no-hover):hover { background: var(--forest-dim); }
.contact-row:last-of-type { border-bottom: none; }
.contact-icon-wrap {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(26,56,33,0.45), rgba(26,56,33,0.12));
  border: 1px solid var(--forest-border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--forest-vivid);
}
.contact-icon-wrap svg { width: 20px; height: 20px; stroke: var(--forest-vivid); }
.contact-row-text { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.1rem; }
.contact-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-row-text strong { color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.contacts-map-wrap { overflow: hidden; min-height: 380px; padding: 0; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(27,48,34,0.06); }
.contacts-map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: none; display: block; }

/* ── Offerings Grid ──────────────────────────────────── */
.offerings-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 1rem;
}
.offering-card {
  background: var(--surface);
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(27,48,34,0.04);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
  cursor: pointer;
  will-change: transform;
}
.offering-card:nth-child(2) { border-color: var(--forest-border); }
.offering-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(27,48,34,0.14);
}
.offering-card:nth-child(1):hover { border-color: var(--gold-border); }
.offering-card:nth-child(2):hover { border-color: rgba(30,105,73,0.45); }
.offering-card:nth-child(3):hover { border-color: var(--gold-border); }

/* ── «Бумажные» карточки: светлый тёплый пергамент Б1′ как фактура листа ──────
   Только на карточках (фон секций спокойный). Пергамент светлый → карточка остаётся
   светлее фона и «выезжает». cover — без тайл-швов, у каждой карточки свой участок. */
.benefit-card,
.offering-card,
.service-card {
  background-image: var(--card-paper);
  background-size: cover;
  background-position: center;
}

.offering-visual {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.offering-card:nth-child(1) .offering-visual {
  background: linear-gradient(140deg, rgba(30,22,8,0.95) 0%, rgba(14,21,30,0.9) 100%);
}
.offering-card:nth-child(2) .offering-visual {
  background: linear-gradient(140deg, rgba(16,28,18,0.95) 0%, rgba(10,18,12,0.9) 100%);
}
.offering-card:nth-child(3) .offering-visual {
  background: linear-gradient(140deg, rgba(8,18,30,0.95) 0%, rgba(14,21,30,0.9) 100%);
}
.offering-num {
  position: absolute; top: 1rem; left: 1.4rem;
  font-family: var(--slavic); font-size: 5rem; font-weight: normal;
  line-height: 1; opacity: 0.12; color: #fff; user-select: none;
}
.offering-icon {
  font-size: 3.2rem; opacity: 0.6; position: relative; z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}
.offering-card:nth-child(1) .offering-icon { color: var(--gold); }
.offering-card:nth-child(2) .offering-icon { color: var(--forest-vivid); }
.offering-card:nth-child(3) .offering-icon { color: #6BA8C8; }

.offering-body { padding: 1.8rem 1.6rem; }
.offering-body h3 {
  font-family: var(--slavic); font-size: 1.35rem;
  color: var(--ink); margin-bottom: 0.7rem;
  font-weight: normal; letter-spacing: 0.01em;
}
.offering-body p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.78; margin-bottom: 1.3rem; font-weight: 300; }
.link-more {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.3s, color 0.3s; text-decoration: none;
}
.offering-card:nth-child(1) .link-more,
.offering-card:nth-child(3) .link-more { color: var(--gold-deep); }
.offering-card:nth-child(2) .link-more { color: var(--forest-vivid); }
.link-more:hover { gap: 0.8rem; }

/* ── Modal Drawer ────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,39,26,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
  width: min(780px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  /* Тень — ТОЛЬКО в открытом состоянии (.open). Иначе, при transform:translateX(100%),
     box-shadow трансформом не обрезается и «влево» торчит из-за правого края экрана —
     давало постоянное затемнение у правого края на всех страницах. */
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
}
.modal-drawer.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(27,48,34,0.18); }

.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; position: sticky; top: 0;
  background: var(--bg); z-index: 1;
}
.modal-header-text { flex: 1; }
.modal-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--forest-vivid); margin-bottom: 0.5rem; display: block;
}
.modal-title {
  font-family: var(--slavic); font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink); font-weight: normal; line-height: 1.2;
  letter-spacing: 0.01em;
}
.modal-close {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; flex-shrink: 0;
}
.modal-close:hover { background: var(--forest-dim); color: var(--ink); }

.modal-body { padding: 2rem 2.5rem 3rem; flex: 1; }
.modal-body p { color: var(--text-dim); font-size: 0.97rem; line-height: 1.88; margin-bottom: 1.2rem; font-weight: 400; }
.modal-body p strong { color: var(--ink); font-weight: 700; }

.modal-section { margin-bottom: 2.5rem; }
.modal-section-title {
  font-family: var(--slavic); font-size: 1.2rem;
  color: var(--gold-deep); margin-bottom: 1rem;
  font-weight: normal; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0.7rem;
}
.modal-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-border), transparent);
}
.modal-section-title.green { color: var(--forest-vivid); }
.modal-section-title.green::after {
  background: linear-gradient(90deg, var(--forest-border), transparent);
}

/* Activity cards grid */
.activity-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.activity-card {
  padding: 1.3rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.3s, background 0.3s;
}
.activity-card:hover { border-color: var(--forest-border); background: #fff; }
.activity-title {
  font-family: var(--slavic); font-size: 1rem; color: var(--ink);
  font-weight: normal; margin-bottom: 0.5rem; letter-spacing: 0.01em;
}
.activity-desc { color: var(--text-dim); font-size: 0.87rem; line-height: 1.7; margin-bottom: 0.7rem; }
.activity-price {
  font-size: 0.8rem; color: var(--forest-vivid);
  font-weight: 600; letter-spacing: 0.05em;
}
.activity-price span { display: block; line-height: 1.6; }

/* Pricing table */
.price-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-bottom: 1.2rem;
}
.price-table-head {
  padding: 0.8rem 1.2rem;
  background: rgba(30,105,73,0.10);
  font-family: var(--slavic); font-size: 1rem; color: var(--ink);
  font-weight: normal; letter-spacing: 0.01em;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line);
}
.price-row:nth-child(even) { background: var(--surface-2); }
.price-label { color: var(--text-dim); font-size: 0.9rem; }
.price-value { color: var(--gold-deep); font-weight: 700; font-size: 0.95rem; font-family: var(--slavic); letter-spacing: 0.02em; }

.deposit-note {
  font-size: 0.82rem; color: var(--text-muted);
  padding: 0.7rem 1rem; background: var(--surface-2);
  border-left: 2px solid var(--forest-border); border-radius: 0 8px 8px 0;
  margin-top: 0.5rem;
}
.modal-cta { margin-top: 1.5rem; }

.cabin-badge {
  display: inline-block; padding: 0.25rem 0.7rem;
  background: rgba(26,56,33,0.3); border: 1px solid var(--forest-border);
  border-radius: 100px; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest-vivid); margin-bottom: 0.8rem;
}
.cabin-amenities {
  list-style: none; display: flex; flex-direction: column; gap: 0.35rem;
  margin-bottom: 1rem;
}
.cabin-amenities li {
  color: var(--text-dim); font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.cabin-amenities li::before {
  content: '✓'; color: var(--forest-vivid); flex-shrink: 0;
  font-weight: 600; margin-top: 0.05rem;
}

@media (max-width: 600px) {
  .modal-header { padding: 1.5rem; }
  .modal-body { padding: 1.5rem 1.5rem 2.5rem; }
  .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .offerings-grid { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid transparent;
  background-image: linear-gradient(#060A0F, #060A0F),
    linear-gradient(90deg, var(--forest-border), var(--gold-border), var(--forest-border));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-top-width: 1px; border-top-style: solid;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1.2rem; color: #F3F0E4 !important; }
.footer-brand p { color: rgba(243,240,228,0.62); font-size: 0.88rem; line-height: 1.75; max-width: 270px; }
.footer-col h4 { font-family: var(--slavic); color: #F3F0E4; font-size: 1.05rem; margin-bottom: 1.2rem; font-weight: normal; letter-spacing: 0.01em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(243,240,228,0.62) !important; font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--gold-light) !important; }
.footer-bottom {
  border-top: 1px solid rgba(243,240,228,0.14); padding-top: 2rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(243,240,228,0.52); font-size: 0.8rem; }

/* ── Hero: transparent so Three.js canvas shows through ─ */
/* Photo is loaded as scene.background in Three.js,
   darkened by an overlay plane, cross + particles on top  */
#hero { background: transparent; }
.hero-overlay { z-index: 2; }
.hero-content { z-index: 3; }

/* ── Photo Strip (auto-scroll gallery) ───────────────── */
#photo-strip {
  position: relative; z-index: 5;   /* над боковыми бордюрами (z-index 4) — узор не лезет на слайд-шоу */
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 0;
}
.strip-track {
  display: flex; gap: 0;
  width: max-content;
  animation: stripScroll 55s linear infinite;
}
.strip-track:hover { animation-play-state: paused; }

@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip-photo {
  height: 300px; width: auto;
  flex-shrink: 0; display: block;
  object-fit: cover;
  filter: brightness(0.98) saturate(1.0);
  transition: filter 0.5s, transform 0.5s;
  cursor: zoom-in;
}
.strip-photo:hover {
  filter: brightness(1.05) saturate(1.15);
  transform: scale(1.02);
  position: relative; z-index: 2;
}

/* ── Курированная галерея «Наши места» — бенто-мозаика ──
   Фикс. высота ряда + object-fit:cover (aspect-ratio на <img> с width/height ненадёжен).
   Крупное фото (1-е) 2×2, широкое (6-е) 2×1 — асимметрия, а не «сток-сетка». */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 172px; gap: 0.7rem; margin-top: 3rem;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; display: block; cursor: zoom-in;
  border: 1px solid var(--gold-border);
  filter: saturate(0.98);
  transition: transform 0.5s var(--ease-out), filter 0.5s, box-shadow 0.5s;
}
/* крупное фото бенто — двойная золотая рамка через inset-тень (F2-эффект без обёртки) */
.gallery-bento img:nth-child(1) {
  box-shadow: inset 0 0 0 6px rgba(246,241,228,0.9), inset 0 0 0 7px rgba(184,145,47,0.5);
}
.gallery-bento img:nth-child(1):hover {
  box-shadow: inset 0 0 0 6px rgba(246,241,228,0.9), inset 0 0 0 7px rgba(184,145,47,0.5), 0 14px 34px rgba(27,48,34,0.16);
}
.gallery-grid img:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.12);
  box-shadow: 0 14px 34px rgba(27,48,34,0.16);
}
.gallery-bento img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-bento img:nth-child(6) { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 116px; gap: 0.5rem; }
  .gallery-bento img:nth-child(1) { grid-row: span 1; }  /* на телефоне крупное — только шире, не выше */
}

/* Подсказка по телефону в блоке брони (после удаления дубля контактов) */
.booking-phone-hint { margin-top: 1.4rem; color: var(--text-dim); }
.booking-phone-hint a { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }

/* ── About image: real photo ─────────────────────────── */
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.about-image { overflow: hidden; }

/* ── Offering visual photos ──────────────────────────── */
.offering-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: brightness(0.55) saturate(0.85);
  transition: filter 0.5s, transform 0.6s;
}
.offering-card:hover .offering-visual img {
  filter: brightness(0.7) saturate(1.0);
  transform: scale(1.04);
}

/* ── Modal interior gallery ──────────────────────────── */
.modal-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem; margin-bottom: 1.5rem;
}
.modal-photo-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 8px;
  cursor: zoom-in; display: block;
  filter: brightness(0.88);
  transition: filter 0.3s, transform 0.3s;
  border: 1px solid rgba(42,92,51,0.2);
}
.modal-photo-grid img:hover { filter: brightness(1); transform: scale(1.02); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(5,8,14,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 600px) {
  .modal-photo-grid { grid-template-columns: 1fr 1fr; }
  .strip-photo { height: 200px; }
}

/* ── Loading ─────────────────────────────────────────── */
#loading {
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.9s ease;
}
#loading.hidden { opacity: 0; pointer-events: none; }
.loading-logo { width: clamp(72px, 9vw, 96px); height: auto; display: block; animation: logoPulse 1.8s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { opacity: 0.75; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1); } }
.loading-text { font-family: var(--slavic); font-size: 1.2rem; color: var(--ink); letter-spacing: 0.2em; }
.loading-bar { width: 180px; height: 2px; background: rgba(201,168,76,0.18); border-radius: 2px; overflow: hidden; }
.loading-progress { height: 100%; background: linear-gradient(90deg, transparent, var(--gold)); animation: loadProgress 1.6s ease-in-out forwards; }
@keyframes loadProgress { from { width: 0; } to { width: 100%; } }

/* ── Cookie Banner ───────────────────────────────────── */
#cookie-banner {
  display: none; position: fixed; bottom: 1.25rem; right: 1.25rem; left: auto; z-index: 4000;
  width: min(380px, calc(100vw - 2.5rem));
  background: rgba(251,249,241,0.98); backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 44px rgba(40,50,40,0.20);
  padding: 1.1rem 1.25rem;
  flex-direction: column; align-items: flex-start; gap: 0.85rem;
}
#cookie-banner p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.6; }
#cookie-banner a { color: var(--gold-deep); text-decoration: underline; }
#cookie-banner a:hover { color: var(--forest-vivid); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audiences-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* Шапка компактнее, логотип меньше */
  nav { padding: 1.1rem 0; }
  nav.scrolled { padding: 0.75rem 0; }
  .nav-logo-img { height: 54px; }
  nav.scrolled .nav-logo-img { height: 46px; }

  .nav-menu, .nav-phone { display: none; }
  .burger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(239,234,217,0.98); backdrop-filter: blur(20px);
    z-index: 999; padding: 6rem 2rem 2rem; gap: 0.4rem;
  }
  .nav-menu.open a { font-size: 1.15rem; padding: 0.75rem 1rem; color: var(--ink) !important; }

  /* Hero — часовня-фон сверху по центру, текст по центру внизу */
  #hero { align-items: flex-end; padding-bottom: 5rem; }
  /* «Прокрутите вниз» с иконкой мыши — десктопная подсказка: на тач-экранах
     не нужна и втыкалась в кнопки hero. */
  .scroll-hint { display: none; }
  .hero-inner { justify-content: center; text-align: center; }
  .hero-content { margin: 0 auto; max-width: 600px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  /* Часовня-фон — компактнее и выше по центру, чтобы не мешать тексту */
  #chapel-canvas,
  .bg-chapel-static { top: 24%; left: 50%; width: min(72vw, 300px); }

  /* Карточки — сеткой по 2 в ряд, а не растянуты на всю ширину */
  .benefits-grid,
  .services-grid,
  .audiences-grid,
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }

  /* Контентные блоки (не карточки) — в один столбец */
  .about-grid { grid-template-columns: 1fr; }
  .about-image-block { display: none; }
  .booking-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map-wrap { min-height: 300px; }
  .contacts-map-wrap iframe { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-section { padding: 4rem 0; }

  /* Карточки внутри сетки — компактнее, чтобы текст помещался в 2 колонки */
  .benefit-card { padding: 1.3rem 1.1rem; }
  .benefit-icon { height: 68px; }
  .service-body { padding: 1.1rem 1rem 1.2rem; }
  .service-body h3, .benefit-card h3 { font-size: 1.15rem; }
}

@media (max-width: 600px) {
  /* Hero компактнее на телефоне.
     Текст НЕ прижимаем к низу (align-items: flex-start): вместо этого резервируем
     верхнюю полосу под часовню через padding-top в vh — так зазор масштабируется
     вместе с vh-позицией часовни и не наезжает даже на низких экранах (браузер
     Telegram и т.п. съедают высоту). */
  #hero {
    align-items: flex-start;
    padding: 42vh 1rem 2.5rem; min-height: 88vh;
  }
  /* Часовня-фон — компактнее и выше, чтобы её низ гарантированно был над текстом */
  #chapel-canvas,
  .bg-chapel-static { top: 15%; width: min(58vw, 235px); }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); margin-bottom: 1.1rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2.2rem; }
  .hero-buttons { margin-bottom: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  /* Подстраницы: заголовок-баннер ниже */
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .prayer-switch a { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

@media (max-width: 460px) {
  /* На очень узких экранах фото-карточки услуг — по одной (фото нужна ширина) */
  .services-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
}

/* ── Motion: progressive-enhancement reveal gating ──────
   Elements are hidden ONLY while Motion is active (.has-motion on <html>).
   A JS failsafe removes the class if Motion never initialises, so content
   can never stay invisible when the CDN is unreachable or JS is off.       */
.has-motion .hero-eyebrow,
.has-motion .hero-title,
.has-motion .hero-subtitle,
.has-motion .hero-buttons .btn,
.has-motion .scroll-hint,
.has-motion .reveal,
.has-motion [data-reveal] { opacity: 0; }
/* Cards/groups revealed on scroll keep their hover transform intact */
.has-motion .benefit-row,
.has-motion .service-card,
.has-motion .offering-card,
.has-motion .audience-card,
.has-motion #reviews-widget,
.has-motion .stat-item,
.has-motion #about-text,
.has-motion #about-image,
.has-motion #booking-info,
.has-motion #booking-widget-wrap,
.has-motion #contacts-info,
.has-motion #contacts-map,
.has-motion .footer-grid > *,
.has-motion #benefits .ornament,
.has-motion #benefits .section-title,
.has-motion #benefits .gold-line,
.has-motion #services .ornament,
.has-motion #services .section-title,
.has-motion #services .gold-line,
.has-motion #offerings .ornament,
.has-motion #offerings .section-title,
.has-motion #offerings .gold-line,
.has-motion #audiences .ornament,
.has-motion #audiences .section-title,
.has-motion #audiences .gold-line,
.has-motion #reviews .ornament,
.has-motion #reviews .section-title,
.has-motion #reviews .gold-line,
.has-motion .reviews-lead,
.has-motion #contacts .ornament,
.has-motion #contacts .section-title,
.has-motion #contacts .gold-line { opacity: 0; }

/* ── 21st.dev-style buttons: magnetic + cursor spotlight ─ */
.btn { will-change: transform; }
.btn-magnetic { overflow: hidden; }
.btn-magnetic::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.45), transparent 60%);
  opacity: 0; transition: opacity 0.3s var(--ease-out);
  pointer-events: none; z-index: 0;
}
.btn-magnetic:hover::before { opacity: 1; }
.btn-outline.btn-magnetic::before {
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
              var(--forest-glow), transparent 60%);
}
/* Ghost-кнопка на светлом фоне — золотистое сияние вместо белого */
.btn-ghost.btn-magnetic::before {
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
              rgba(201,168,76,0.28), transparent 60%);
}
.btn-magnetic > * { position: relative; z-index: 1; }

/* Spring-tilt cards get a soft moving sheen tied to pointer position */
.benefit-card, .offering-card, .audience-card { transform-style: preserve-3d; }
.tilt-sheen::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(201,168,76,0.12), transparent 65%);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
  pointer-events: none; z-index: 2;
}
.tilt-sheen:hover::after { opacity: 1; }

/* Respect users who prefer reduced motion — show everything, no transforms */
@media (prefers-reduced-motion: reduce) {
  .has-motion .hero-eyebrow,
  .has-motion .hero-title,
  .has-motion .hero-subtitle,
  .has-motion .hero-buttons .btn,
  .has-motion .scroll-hint,
  .has-motion .reveal,
  .has-motion [data-reveal],
  .has-motion .benefit-row,
  .has-motion .service-card,
  .has-motion .offering-card,
  .has-motion .audience-card,
  .has-motion #reviews-widget,
  .has-motion .reviews-lead,
  .has-motion .stat-item,
  .has-motion #about-text,
  .has-motion #about-image,
  .has-motion #booking-info,
  .has-motion #booking-widget-wrap,
  .has-motion #contacts-info,
  .has-motion #contacts-map,
  .has-motion .footer-grid > *,
  .has-motion #benefits .ornament,
  .has-motion #benefits .section-title,
  .has-motion #benefits .gold-line,
  .has-motion #services .ornament,
  .has-motion #services .section-title,
  .has-motion #services .gold-line,
  .has-motion #offerings .ornament,
  .has-motion #offerings .section-title,
  .has-motion #offerings .gold-line,
  .has-motion #audiences .ornament,
  .has-motion #audiences .section-title,
  .has-motion #audiences .gold-line,
  .has-motion #reviews .ornament,
  .has-motion #reviews .section-title,
  .has-motion #reviews .gold-line,
  .has-motion #contacts .ornament,
  .has-motion #contacts .section-title,
  .has-motion #contacts .gold-line { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Подстраницы (каталог, соглашение, паломникам)
   ═══════════════════════════════════════════════════════════ */

/* На внутренних страницах нет hero — даём шапке постоянный фон */
body.subpage nav {
  background: rgba(239,234,217,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
/* На подстраницах фон шапки всегда бежевый → текст всегда тёмный
   (не зависит от класса .scrolled, который JS снимает наверху). */
body.subpage .nav-menu a { color: rgba(46,61,43,0.80) !important; text-shadow: none; }
body.subpage .nav-menu a:hover { color: var(--gold-deep) !important; background: var(--gold-dim); }
body.subpage .nav-menu a.active { color: var(--forest-vivid) !important; background: var(--forest-dim); }
body.subpage .nav-phone { color: var(--green-base) !important; text-shadow: none; }
body.subpage .burger span { background: var(--ink); }

/* Заглавный баннер страницы */
.page-hero {
  position: relative;
  padding: 12rem 0 4rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .ornament { justify-content: center; }
.page-hero h1 {
  font-family: var(--slavic);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink); font-weight: normal;
  line-height: 1.1; margin: 0.4rem 0 1rem;
}
.page-hero p.lead {
  max-width: 620px; margin: 0 auto;
  color: var(--text-dim); font-size: 1.05rem;
}
.page-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.6rem; font-size: 0.85rem; font-weight: 500;
  color: var(--gold-deep) !important; letter-spacing: 0.03em;
}
.page-back:hover { color: var(--forest-vivid) !important; }

/* Контент-обёртка внутренних страниц */
.page-body { padding: 5rem 0 6rem; }

/* ── Каталог товаров ──────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px var(--shadow);
}
.product-media {
  /* Фото крупнее (квадрат вместо 4:3) — не выглядит мелким «дешёвым» баннером */
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-border);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 56px; height: 56px; opacity: 0.5; }
/* Текст плотнее к фото — меньше верхний отступ */
.product-info { padding: 1.05rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-info h3 {
  font-family: var(--slavic); font-weight: normal;
  font-size: 1.3rem; color: var(--ink); margin-bottom: 0.45rem;
}
.product-info p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--forest-vivid); }
.product-price .unit { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.product-tag {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-dim);
  padding: 0.25rem 0.7rem; border-radius: 100px;
}
.catalog-note {
  margin-top: 3rem; padding: 1.4rem 1.6rem;
  background: var(--gold-dim); border: 1px dashed var(--gold-border);
  border-radius: var(--r); color: var(--text-dim);
  font-size: 0.9rem; text-align: center;
}

/* ── Текстовые страницы (соглашение, паломникам) ──────── */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 {
  font-family: var(--slavic); font-weight: normal;
  font-size: 1.7rem; color: var(--ink);
  margin: 2.6rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.15rem; color: var(--forest-vivid);
  margin: 1.8rem 0 0.6rem; font-weight: 600;
}
.prose p { color: var(--text); margin-bottom: 1rem; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; color: var(--text); }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose a { color: var(--gold-deep); border-bottom: 1px solid var(--gold-border); }
.prose a:hover { color: var(--forest-vivid); }
.prose .muted { color: var(--text-muted); font-size: 0.85rem; }
.prose .callout {
  background: var(--surface-2); border-left: 3px solid var(--forest-vivid);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.1rem 1.4rem; margin: 1.6rem 0; color: var(--text-dim);
}
.prose .placeholder {
  display: inline-block; background: var(--gold-dim);
  color: var(--gold-deep); padding: 0 0.35em; border-radius: 4px;
}

/* ── Расписание богослужений ──────────────────────────── */
.schedule {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin: 1.4rem 0 0.6rem;
}
.schedule-day {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.5rem;
}
.schedule-day h3 {
  font-family: var(--slavic); font-weight: normal;
  font-size: 1.25rem; color: var(--ink);
  margin: 0 0 0.9rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.schedule-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0; color: var(--text);
}
.schedule-row .time {
  font-weight: 700; color: var(--forest-vivid);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ── Молитвослов ──────────────────────────────────────── */
.molitvoslov { margin-top: 1rem; }
.intro-prayer {
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem; margin-bottom: 2.4rem; text-align: center;
}
.intro-prayer .ornament { justify-content: center; margin-bottom: 0.6rem; }
.intro-prayer h3 {
  font-family: var(--slavic); font-weight: normal;
  font-size: 1.3rem; color: var(--ink); margin-bottom: 1rem;
}
.intro-prayer p { color: var(--text); line-height: 1.85; font-style: italic; margin: 0; }

/* Карточки-ссылки на разделы молитвослова (хаб «Паломникам») */
.prayer-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1.4rem;
}
.prayer-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink) !important;
  font-family: var(--slavic); font-size: 1.2rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.prayer-link:hover {
  transform: translateY(-4px); border-color: var(--gold-border);
  box-shadow: 0 14px 36px var(--shadow); color: var(--forest-vivid) !important;
}
.prayer-link::after { content: '→'; color: var(--gold-deep); font-size: 1.2rem; }

/* Переключатель разделов на страницах молитв */
.prayer-switch {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem;
}
.prayer-switch a {
  padding: 0.5rem 1.05rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-dim) !important; font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.01em; transition: all 0.25s;
}
.prayer-switch a:hover { border-color: var(--gold-border); color: var(--gold-deep) !important; }
.prayer-switch a.active {
  background: var(--forest-vivid); border-color: var(--forest-vivid);
  color: #FFFFFF !important;
}

.molitvoslov details {
  border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 0.8rem; background: var(--surface); overflow: hidden;
}
.molitvoslov > details > summary {
  font-family: var(--slavic); font-size: 1.3rem; color: var(--ink);
}
.molitvoslov summary {
  padding: 1rem 1.4rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 500; color: var(--ink);
  transition: background 0.25s;
}
.molitvoslov summary::-webkit-details-marker { display: none; }
.molitvoslov summary::after {
  content: '+'; color: var(--gold-deep);
  font-size: 1.4rem; line-height: 1; flex-shrink: 0;
  transition: transform 0.25s;
}
.molitvoslov details[open] > summary::after { content: '–'; }
.molitvoslov summary:hover { background: var(--surface-2); }
.molitvoslov .details-body { padding: 0.4rem 1.4rem 1.2rem; }

/* Вложенные блоки (праздник / случай / святой) */
.molitvoslov details details {
  border: none; border-top: 1px solid var(--line);
  border-radius: 0; margin: 0; background: transparent;
}
.molitvoslov details details:first-of-type { border-top: none; }
.molitvoslov details details > summary {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  color: var(--forest-vivid); padding: 0.85rem 0.4rem;
}
.molitvoslov details details .details-body { padding: 0 0.4rem 1rem; }

.prayer { margin-bottom: 1.4rem; }
.prayer:last-child { margin-bottom: 0; }
.prayer h4 {
  font-size: 1.02rem; color: var(--forest-vivid);
  margin: 1.4rem 0 0.5rem; font-weight: 600;
}
.prayer h4:first-child { margin-top: 0.6rem; }
.prayer p { color: var(--text); line-height: 1.85; margin-bottom: 0.7rem; }
.prayer .rubric { color: var(--text-muted); font-style: italic; font-size: 0.92em; }
.prayer .bio { color: var(--text-dim); font-size: 0.92rem; border-left: 3px solid var(--gold-border); padding-left: 1rem; margin-bottom: 1rem; }

@media (max-width: 600px) {
  .page-hero { padding: 9rem 0 3rem; }
  .page-body { padding: 3.5rem 0 4rem; }
  .intro-prayer { padding: 1.4rem 1.2rem; }
}
