/* ==========================================================================
   Церковь — дизайн-система
   Полная реплика оформления nikola-khamovniki.ru
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Цвета */
  --green:          #26694a;
  --green-dark:     #1d5039;
  --green-light:    #2f7f5a;
  --ink:            #181818;
  --ink-soft:       #5d5d5d;
  --ink-muted:      #808080;
  --line:           #e8e8e8;
  --bg:             #ffffff;
  --bg-soft:        #f5f5f5;
  --footer-bg:      #474a51;
  --header-scrolled: rgba(49, 49, 49, .75);
  --overlay-menu:   rgba(28, 28, 28, .88);
  --white:          #ffffff;

  /* Соцсети */
  --vk:      #507299;
  --youtube: #e62117;
  --ok:      #f7931e;

  /* Типографика */
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial,
               "PT Sans Caption", sans-serif;
  --font-display: "Old Standard TT", "PT Serif", Georgia, serif;

  /* Метрика */
  --container: 1170px;
  --gutter: 15px;
  --header-h: 105px;
  --header-h-sm: 70px;
  --radius-pill: 30px;

  /* Тени */
  --shadow-card: 0 2px 14px rgba(0, 0, 0, .10);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, .18);

  /* Анимация */
  --ease: cubic-bezier(.25, .8, .25, 1);
  --dur: .35s;
}

/* --------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   3. Раскладка
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--gutter) * -1);
}

.col { padding: 0 var(--gutter); width: 100%; }
.col-2 { width: 50%; }
.col-3 { width: 33.3333%; }
.col-4 { width: 25%; }

.section { padding: 90px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section--flush { padding: 0; }
.section--soft { background: var(--bg-soft); }

/* Секции с фоновым фото */
.section--cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.section--parallax { background-attachment: fixed; }

/* Светлая вуаль поверх фото — как на оригинале */
.section--cover.is-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
  pointer-events: none;
}

.section--cover.is-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  pointer-events: none;
}

.section--cover > .container { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   4. Типографика
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 46px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin: 0 0 26px;
}

.section-title--left { text-align: left; }
.section-title--light { color: var(--white); }

.section-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.section-lead--wide { max-width: 940px; }

.text-block { font-size: 15px; line-height: 1.75; }
.text-block p { margin-bottom: 1.2em; }
.text-block h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 34px 0 14px;
  color: var(--ink);
}
.text-block ul { margin: 0 0 1.2em; padding-left: 20px; list-style: disc; }
.text-block li { margin-bottom: .5em; }
.text-block a { color: var(--green); text-decoration: underline; }
.text-block a:hover { color: var(--green-light); }

.lead-quote {
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--green);
  padding-left: 24px;
  margin: 30px 0;
}

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 17px 36px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(38, 105, 74, .28);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}
.btn--ghost:hover { background: var(--green); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--green);
}
.btn--white:hover { background: var(--bg-soft); color: var(--green-dark); }

.btn--sm { padding: 13px 26px; font-size: 14px; }

.btn-center { text-align: center; }
.btn-center .btn { margin: 0 auto; }

/* --------------------------------------------------------------------------
   6. Шапка
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Затемнение сверху — чтобы логотип и телефон читались на любом фото */
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, 0) 100%);
  transition: background var(--dur) var(--ease), height var(--dur) var(--ease);
}

.header.is-scrolled {
  background: var(--header-scrolled);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  height: 76px;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Бургер */
.burger {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  flex-shrink: 0;
}

.burger:hover { background: var(--green-light); transform: scale(1.06); }

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Логотип */
.logo {
  text-align: center;
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.28;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 19px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  transition: font-size var(--dur) var(--ease);
}

.logo__line { display: block; white-space: nowrap; }
.logo:hover { color: var(--white); opacity: .88; }

/* Контакты в шапке */
.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.header__phone-row { display: flex; align-items: center; gap: 12px; }

.header__phone {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: .01em;
  white-space: nowrap;
}
.header__phone:hover { color: var(--white); opacity: .85; }

.header__email {
  font-size: 13px;
  text-decoration: underline;
  margin-top: 3px;
}
.header__email:hover { color: var(--white); opacity: .85; }

/* Кнопка раскрытия доп. телефонов */
.phone-toggle {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-toggle::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--white);
}

.phone-extra {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 6px;
  font-size: 14px;
}

.phone-extra.is-open { display: flex; }
.phone-extra small { opacity: .8; font-size: 12px; }

/* Шапка на внутренних страницах — всегда с фоном */
.header--solid { background: var(--header-scrolled); }

/* --------------------------------------------------------------------------
   7. Оверлей-меню
   -------------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-overlay.is-open { opacity: 1; visibility: visible; }

.menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-menu);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.menu-overlay__head,
.menu-overlay__body,
.menu-overlay__foot { position: relative; z-index: 2; }

.menu-overlay__head {
  height: var(--header-h);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-overlay__head .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Крестик */
.menu-close {
  justify-self: end;
  width: 46px;
  height: 46px;
  position: relative;
  transition: transform var(--dur) var(--ease);
}
.menu-close:hover { transform: rotate(90deg); }

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--white);
}
.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }

/* Колонки меню */
.menu-overlay__body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 46px 0 60px;
}

.menu-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  width: 100%;
}

.menu-group { min-width: 0; }

.menu-group__item { margin-bottom: 40px; }
.menu-group__item:last-child { margin-bottom: 0; }

.menu-link {
  display: block;
  font-size: 19px;
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .02em;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.menu-link:hover { color: #9fd9bd; padding-left: 6px; }

.menu-sub { margin-top: 14px; }

.menu-sub li { margin-bottom: 9px; }

.menu-sub a {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
  display: block;
}
.menu-sub a:hover { color: var(--white); padding-left: 5px; }

/* Подвал меню */
.menu-overlay__foot {
  background: rgba(255, 255, 255, .07);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 26px 0;
  flex-shrink: 0;
}

.menu-foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  color: var(--white);
}

.menu-foot__phones { display: flex; flex-direction: column; gap: 8px; }

.menu-foot__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}
.menu-foot__phone:hover { color: #9fd9bd; }
.menu-foot__phone .ico { opacity: .75; flex-shrink: 0; }

.menu-foot__about { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.menu-foot__about a { text-decoration: underline; }
.menu-foot__about a:hover { color: #9fd9bd; }

.menu-foot__right { justify-self: end; text-align: right; }

.socials { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }

.social {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.social:hover { transform: translateY(-2px); opacity: .85; color: var(--white); }
.social--vk { background: var(--vk); }
.social--yt { background: var(--youtube); }
.social--ok { background: var(--ok); }
.social--tg { background: #2aabee; }

.menu-foot__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: underline;
}
.menu-foot__email:hover { color: #9fd9bd; }

/* --------------------------------------------------------------------------
   8. Первый экран
   -------------------------------------------------------------------------- */
.hero {
  height: 100vh;
  min-height: 620px;
  max-height: 860px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 32%);
  pointer-events: none;
}

.hero__scroll {
  position: relative;
  z-index: 3;
  margin-bottom: 34px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.2s var(--ease) infinite;
}

.hero__scroll::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translateY(-2px) rotate(45deg);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* Внутренняя «шапка страницы» */
.page-head {
  padding: calc(var(--header-h) + 70px) 0 60px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.page-head > .container { position: relative; z-index: 2; }

.page-head__title {
  font-size: 44px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.15;
}

.page-head__sub {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, .88);
}

/* Хлебные крошки */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  position: relative;
  z-index: 2;
}
.crumbs a { text-decoration: underline; }
.crumbs a:hover { color: var(--white); }
.crumbs span::before { content: "—"; margin-right: 8px; opacity: .6; }

/* --------------------------------------------------------------------------
   9. Блок «Служение Патриарха» (текст + фигура)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 30px;
  min-height: 420px;
}

.split__text { padding: 40px 0; }

.split__title {
  font-size: 40px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 34px;
  line-height: 1.15;
}

.split__figure { align-self: end; justify-self: center; }
.split__figure img { max-height: 460px; width: auto; }

/* --------------------------------------------------------------------------
   10. Карточки-плитки с фото (Акафисты)
   -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.tile {
  position: relative;
  display: block;
  min-height: 265px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .62) 100%);
  transition: background var(--dur) var(--ease);
}

.tile:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.75) 100%); }

.tile__body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
}

.tile__title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.22;
  margin-bottom: 6px;
}

.tile__meta { font-size: 14px; opacity: .92; }

.tile__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tile:hover .tile__more { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   11. Новости
   -------------------------------------------------------------------------- */
.news { position: relative; }

.news__nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.news-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--dur) var(--ease);
}

.news-arrow:hover:not(:disabled) { background: var(--green-light); }
.news-arrow.is-active { background: var(--green); }
.news-arrow:disabled { opacity: .45; cursor: default; }

.news__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-item { display: block; }

.news-item__date {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

/* Линия-таймлайн с точкой */
.news-item__line {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-bottom: 34px;
}

.news-item__line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #c9c9c9;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.news-item:hover .news-item__line::after { background: var(--green); border-color: var(--green); }

.news-item__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 250px;
  object-fit: cover;
  margin-bottom: 22px;
  transition: opacity var(--dur) var(--ease);
}

.news-item:hover .news-item__thumb { opacity: .88; }

.news-item__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 14px;
  transition: color var(--dur) var(--ease);
}

.news-item:hover .news-item__title { color: var(--green); }

.news-item__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  text-align: justify;
}

/* Список новостей на странице блога */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 30px;
}

/* --------------------------------------------------------------------------
   12. Карточки-ссылки (О храме / Активность)
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 12px;
}

.card__list { font-size: 14px; line-height: 1.7; color: var(--ink); margin-bottom: 20px; }

.card__foot { margin-top: auto; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: start;
}

.faq-aside { text-align: center; }
.faq-aside img { margin-bottom: 26px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--green);
  transition: color var(--dur) var(--ease);
}

.faq-q:hover { color: var(--green-light); }
.faq-item.is-open .faq-q { color: var(--ink); }

.faq-q__ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
  transition: transform var(--dur) var(--ease);
}

.faq-item.is-open .faq-q__ico { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq-a__inner {
  padding: 0 0 18px 34px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.faq-a__inner p { margin-bottom: .8em; }

/* --------------------------------------------------------------------------
   14. Пожертвования / требы
   -------------------------------------------------------------------------- */
.warn {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 44px;
}

.warn strong { color: #c0392b; }

.donate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.donate-card {
  background: rgba(255, 255, 255, .92);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.donate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.donate-card__title {
  font-size: 24px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 18px;
}

.donate-card__list {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 24px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   15. Адрес и карта
   -------------------------------------------------------------------------- */
.address-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 34px;
}

.map-block {
  height: 500px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.map-block iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-muted);
  background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 12px, #eaeaea 12px, #eaeaea 24px);
}

/* --------------------------------------------------------------------------
   16. Расписание
   -------------------------------------------------------------------------- */
.schedule { max-width: 900px; margin: 0 auto; }

.schedule__day {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.schedule__date {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.schedule__date small {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 3px;
}

.schedule__events { font-size: 15px; line-height: 1.7; }

.schedule__event { display: flex; gap: 14px; margin-bottom: 6px; }
.schedule__event:last-child { margin-bottom: 0; }

.schedule__time {
  flex-shrink: 0;
  min-width: 56px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. Духовенство
   -------------------------------------------------------------------------- */
.clergy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }

.clergy__item { text-align: center; }

.clergy__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 20px;
}

.clergy__name { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.clergy__role { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Настоятель — крупный блок */
.rector { display: grid; grid-template-columns: 380px 1fr; gap: 46px; align-items: start; }
.rector__photo { width: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   18. Каталог (записки, свечи, требы)
   -------------------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.catalog-item {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.catalog-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.catalog-item__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.catalog-item__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.catalog-item__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }

.catalog-item__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; flex: 1; }

.catalog-item__price {
  font-size: 20px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   19. Контакты
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }

.contact-card {
  background: var(--bg-soft);
  padding: 30px 26px;
  text-align: center;
}

.contact-card__ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.contact-card__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.contact-card__value { font-size: 17px; line-height: 1.6; }
.contact-card__value a:hover { color: var(--green); }

/* Реквизиты */
.requisites { max-width: 860px; margin: 0 auto; }

.requisites__row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.requisites__key { color: var(--ink-muted); }
.requisites__val { font-weight: 700; }

/* --------------------------------------------------------------------------
   20. Подвал
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, .88);
  padding: 46px 0 34px;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.footer__phones { display: flex; flex-direction: column; gap: 10px; }

.footer__phone { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--white); }
.footer__phone:hover { color: #9fd9bd; }

.footer__about { line-height: 1.6; }
.footer__about a { text-decoration: underline; }
.footer__about a:hover { color: #9fd9bd; }

.footer__right { justify-self: end; text-align: right; }

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  color: var(--white);
}
.footer__email:hover { color: #9fd9bd; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

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

/* --------------------------------------------------------------------------
   21. Анимация появления
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   22. Адаптив
   -------------------------------------------------------------------------- */

/* Планшет-ландшафт */
@media (max-width: 1199px) {
  .section-title { font-size: 38px; }
  .header__phone { font-size: 22px; }
  .logo { font-size: 17px; }
  .split__title { font-size: 34px; }
}

/* Планшет */
@media (max-width: 991px) {
  :root { --header-h: 84px; }

  .section { padding: 64px 0; }
  .section-title { font-size: 32px; margin-bottom: 20px; }

  .header__contacts { display: none; }
  .header__inner { grid-template-columns: auto 1fr; }
  .logo { justify-self: center; font-size: 16px; }

  .menu-cols { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .menu-foot-grid { grid-template-columns: 1fr; text-align: center; }
  .menu-foot__phones { align-items: center; }
  .menu-foot__right { justify-self: center; text-align: center; }
  .socials { justify-content: center; }

  .split { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .split__figure { display: none; }

  .tiles { grid-template-columns: repeat(2, 1fr); }
  .news__track { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .donate-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .clergy { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto 40px; }

  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-aside { max-width: 340px; margin: 0 auto; }

  .rector { grid-template-columns: 1fr; gap: 28px; }
  .rector__photo { max-width: 340px; margin: 0 auto; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer__phones { align-items: center; }
  .footer__right { justify-self: center; text-align: center; }

  .page-head__title { font-size: 34px; }
  .page-head { padding: calc(var(--header-h) + 50px) 0 46px; }
}

/* Мобильные */
@media (max-width: 767px) {
  :root { --header-h: 70px; }

  body { font-size: 15px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 26px; letter-spacing: .01em; }
  .section-lead { font-size: 14px; margin-bottom: 28px; }

  .header.is-scrolled { height: 62px; }

  .burger { width: 44px; height: 44px; gap: 4px; }
  .burger span { width: 18px; }

  .logo { font-size: 13px; letter-spacing: .04em; line-height: 1.24; }

  .hero { height: 76vh; min-height: 420px; }
  .hero__scroll { width: 34px; height: 34px; margin-bottom: 22px; }

  .menu-overlay__body { padding: 26px 0 40px; }
  .menu-cols { grid-template-columns: 1fr; gap: 26px; }
  .menu-group__item { margin-bottom: 26px; }
  .menu-link { font-size: 17px; }
  .menu-sub a { font-size: 14px; }
  .menu-close { width: 40px; height: 40px; }

  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { min-height: 220px; }

  .news__track { grid-template-columns: 1fr; gap: 36px; }
  .news-grid { grid-template-columns: 1fr; gap: 36px; }
  .news-item__thumb { max-width: 100%; }
  .news-item__text { text-align: left; }

  .cards, .cards--4 { grid-template-columns: 1fr; gap: 20px; }
  .clergy { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .catalog { grid-template-columns: 1fr; }

  .split__title { font-size: 26px; margin-bottom: 24px; }

  .schedule__day { grid-template-columns: 1fr; gap: 10px; }

  .requisites__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

  .map-block { height: 340px; }

  .page-head { padding: calc(var(--header-h) + 36px) 0 36px; }
  .page-head__title { font-size: 25px; }

  .btn { padding: 15px 28px; font-size: 14px; }

  .footer__bottom { flex-direction: column; text-align: center; gap: 10px; }
}

/* Мелкие телефоны */
@media (max-width: 400px) {
  .logo { font-size: 11.5px; }
  .section-title { font-size: 23px; }
}
