@charset "UTF-8";
/* =========================================
   ИДЕАЛЬНЫЙ СТЕКЛЯННЫЙ ВИДЖЕТ РАСПИСАНИЯ
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Montserrat:wght@500;700&family=Source+Serif+4:wght@400;700&display=swap");
.site-header {
  background-color: #ffffff;
  border-bottom: none;
  box-shadow: 0 10px 30px -5px rgba(45, 65, 130, 0.08);
  height: 120px;
  margin: 0;
  width: 100%;
  position: relative;
  top: 0;
  z-index: 1000;
}

@media (max-width: 768px) {
  .site-header {
    position: sticky;
    /* Шапка прилипает на мобильных */
    top: 0;
  }
  .site-header {
    height: 90px;
    /* Высота шапки на мобилках */
  }
}
.header-inner {
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 15px;
  }
}
.site-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.site-branding a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 100%;
}

.site-branding img {
  height: 100px !important;
  width: auto !important;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  /* Синхронизируем высоту контейнера с высотой мобильной шапки (90px) */
  .site-branding {
    height: 90px !important;
  }
  .site-branding img {
    height: 65px !important;
    width: auto !important;
    max-width: 100%; /* Не даем вылезти за края */
    flex-shrink: 0; /* ЗАПРЕЩАЕМ браузеру сплющивать ширину SVG в 0 пикселей */
  }
}
.header-search {
  position: relative;
  width: 55px;
  height: 55px;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 768px) {
  .header-search {
    display: none !important;
    /* Прячем поиск на телефонах */
  }
}
.header-search .search-field::-moz-placeholder {
  color: #9999a3;
  opacity: 1;
}
.header-search .search-field::placeholder {
  color: #9999a3;
  opacity: 1;
}

.header-search .search-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 55px;
  height: 55px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.4s ease;
}

.header-search .search-toggle svg {
  width: 24px;
  height: 24px;
}

.header-search .search-toggle svg * {
  fill: #000000 !important;
}

.header-search .search-field {
  line-height: normal;
  height: 100%;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #000000;
  padding-left: 20px;
  padding-right: 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease 0.1s;
}

.header-search form {
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

.header-search:hover {
  border-color: rgba(78, 91, 181, 0.3);
  box-shadow: 0 5px 15px rgba(78, 91, 181, 0.1);
}

.header-search.is-active {
  width: 300px;
  background-color: #ffffff;
}

.header-search.is-active .search-field {
  opacity: 1;
  visibility: visible;
}

.header-search.is-active .search-toggle {
  transform: rotate(90deg);
}

/* =========================================
   ЛИПКОЕ МЕНЮ (SUB-HEADER)
   ========================================= */
.sub-header {
  background-color: #ffffff;
  width: 100%;
  z-index: 990;
  position: sticky;
  top: 0px;
  margin: 0;
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #eaeaea;
}

/* --- ПОВЕДЕНИЕ НА МОБИЛЬНЫХ ЭКРАНАХ --- */
@media (max-width: 768px) {
  .sub-header {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Фиксируем под липкой шапкой */
    top: 130px; /* Высота вашей шапки site-header */
    left: 0;
    height: calc(100vh - 130px);
    overflow-y: auto; /* Скролл, если меню длинное */
    padding: 20px 0;
  }
}
@media (max-width: 768px) {
  .sub-header.is-open {
    display: block; /* Показываем при клике на бургер */
  }
}
.cardtext {
  text-decoration: none;
  text-transform: uppercase;
}

.sub-header .sub-navigation a {
  display: inline-block;
  position: relative;
  z-index: 1;
  background: transparent;
  color: #000000;
  border: none;
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .sub-header .sub-navigation a {
    display: block;
    text-align: center;
    font-size: 16px; /* Чуть крупнее для пальцев */
    padding: 12px 10px;
  }
}
.sub-header .sub-navigation a:hover {
  color: #4e5bb5;
}

.sub-header .sub-navigation a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #4e5bb5;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
}

/* Отключаем подчеркивание на мобильных (там нет hover) */
@media (max-width: 768px) {
  .sub-header .sub-navigation a::after {
    display: none;
  }
}
.sub-header .sub-navigation a:hover::after {
  width: 100%;
}

.sub-header .sub-navigation ul {
  display: flex;
  gap: 25px;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
  justify-content: center;
}

@media (max-width: 768px) {
  .sub-header .sub-navigation ul {
    flex-direction: column; /* Элементы друг под другом */
    gap: 15px;
  }
}
.sub-header .sub-navigation a:active {
  transform: scale(0.95);
}

.t3-schedule-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .t3-schedule-section {
    margin: 30px auto;
    padding: 0 15px;
  }
}
/* Скрываем старый заголовок */
.t3-main-title {
  display: none;
}

/* --- ТОТ САМЫЙ ОБЩИЙ ОВАЛ (ЭФФЕКТ СТЕКЛА) --- */
.t3-oval-container {
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* АНИМАЦИЯ: Стартует через 0.6 сек */
  opacity: 0;
  animation: cinematicReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* --- КОЛОНКА ОДНОГО ДНЯ --- */
.t3-day-column {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* Линия между колонками */
.t3-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 30px 0;
}

/* --- ОФОРМЛЕНИЕ ДАТЫ --- */
.t3-day-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.t3-day-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 56px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -2px;
}

@media (max-width: 768px) {
  .t3-day-num {
    font-size: 42px;
    letter-spacing: -1px;
  }
}
.t3-day-info {
  display: flex;
  flex-direction: column;
}

.t3-month {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.t3-weekday {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9999a3;
}

/* --- СПИСОК СЛУЖБ --- */
.t3-events-list {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.t3-event-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 50px;
}

@media (max-width: 768px) {
  .t3-event-item {
    grid-template-columns: 75px 1fr;
    gap: 12px;
    min-height: 40px;
  }
}
/* Пилюля времени */
.t3-event-time {
  background-color: rgba(255, 255, 255, 0.15);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin: 0;
}

.t3-event-title {
  font-family: "Charis SIL", serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  display: block;
  margin: 0;
}

@media (max-width: 768px) {
  .t3-event-title {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.3;
    word-wrap: break-word;
  }
}
.t3-event-venue {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* --- КНОПКА "СМОТРЕТЬ ВСЕ" --- */
.t3-schedule-footer {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 10;
  /* Появляется через 0.8 сек */
  opacity: 0;
  animation: cinematicReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.t3-all-schedule-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none; /* УБРАЛ ПОДЧЕРКИВАНИЕ */
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t3-all-schedule-btn:hover {
  background-color: #ffffff;
  color: #1a233a;
  transform: translateY(-3px);
  text-decoration: none; /* На всякий случай и при ховере тоже */
}

.t3-all-schedule-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
  .t3-oval-container {
    flex-direction: column;
    border-radius: 25px;
  }
  .t3-day-column {
    padding: 25px 20px;
  }
  .t3-divider {
    display: none !important;
  }
  .t3-day-column:nth-of-type(n+2) {
    display: none !important;
  }
}
/* =========================================
   0. ИМБОВЫЕ АНИМАЦИИ (Apple Style Fade In)
   ========================================= */
@keyframes cinematicReveal {
  0% {
    opacity: 0;
    /* Начинаем чуть ниже, немного уменьшенными и размытыми */
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
  }
  40% {
    opacity: 1; /* Быстро показываем сам текст */
    filter: blur(0px); /* Быстро убираем туман */
  }
  100% {
    opacity: 1;
    /* Встает на место очень долго и плавно */
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}
/* =========================================
   1. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ========================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* =========================================
   2. ГЛАВНЫЙ ЗАГОЛОВОК НА ФОНЕ (H1)
   ========================================= */
h1.textImage {
  position: relative;
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  z-index: 2;
  text-shadow: 0px 2px 4px rgba(20, 30, 50, 0.8), 0px 8px 20px rgba(10, 15, 30, 0.6), 0px 15px 40px rgba(0, 0, 0, 0.4);
  /* АНИМАЦИЯ: 2 секунды! Начинается сразу. 
     Магическая кривая (0.16, 1, 0.3, 1) дает резкий старт и бесконечно долгое торможение */
  opacity: 0;
  animation: cinematicReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
  h1.textImage {
    font-size: 32px;
    padding: 30px 15px;
    line-height: 1.15;
    word-wrap: break-word;
    text-shadow: 0px 1px 3px rgba(20, 30, 50, 0.9), 0px 4px 12px rgba(10, 15, 30, 0.7), 0px 8px 25px rgba(0, 0, 0, 0.5);
  }
}
@media (max-width: 480px) {
  h1.textImage {
    font-size: 28px;
  }
}
/* =========================================
   3. ПОДЗАГОЛОВОК НА ФОНЕ (H2)
   ========================================= */
h2.myText2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  max-width: 700px;
  margin: 15px auto 0;
  position: relative;
  z-index: 2;
  text-shadow: 0px 1px 3px rgba(20, 30, 50, 0.9), 0px 4px 12px rgba(10, 15, 30, 0.7);
  /* АНИМАЦИЯ: Та же магия, но с задержкой 0.3s. 
     Она выплывает, когда H1 уже наполовину появился */
  opacity: 0;
  animation: cinematicReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@media (max-width: 768px) {
  h2.myText2 {
    font-size: 16px;
    margin-top: 10px;
    padding: 0 15px;
    line-height: 1.3;
    text-shadow: 0px 1px 2px rgba(20, 30, 50, 0.9), 0px 3px 10px rgba(10, 15, 30, 0.8);
  }
}
/* =========================================
   4. ЗАГОЛОВОК СЕКЦИИ (НОВОСТИ)
   ========================================= */
.newsText {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--church-dark);
  margin: 60px auto 40px !important;
  max-width: calc(100% - var(--main-offset) * 2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  white-space: nowrap;
  /* Этот заголовок появляется, когда до него доскроллили (если у тебя есть JS для этого), 
     или сразу при загрузке. Если нужно, чтобы он тоже выплывал при загрузке, раскомментируй код ниже: */
  /* 
  opacity: 0;
  animation: heroFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards; 
  */
}

@media (max-width: 768px) {
  .newsText {
    font-size: 2rem;
    margin: 40px auto 25px !important;
    gap: 15px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.1;
  }
}
@media (max-width: 480px) {
  .newsText {
    font-size: 2rem;
    gap: 10px;
  }
}
.myPhoto {
  background-image: url("../assets/images/church.webp") !important;
  background-size: cover !important;
  background-position: top center !important;
  background-color: #1a233a !important;
  background-repeat: no-repeat !important; /* Чтобы картинка не размножилась */
  /* изображение уже выложено через редактор страницы !*/
  /* ВАЖНО: Обязательно для позиционирования пленки и текста внутри */
  position: relative;
  /* Размеры блока */
  width: 100%;
  height: 650px;
  /* Центрируем текст внутри блока */
  display: flex;
  align-items: center;
  justify-content: center;
}

.myPhoto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 1. СЛОЖНЫЙ ГРАДИЕНТ (Глубокий синий + Черный) */
  /* Он слегка "холодит" теплое фото и делает его идеальным фоном для белого овала */
  background: linear-gradient(135deg, rgba(26, 35, 58, 0.6) 0%, rgba(10, 10, 15, 0.75) 100%);
  /* 2. ОПЦИОНАЛЬНО: Легкое размытие (Блюр) самой фотографии */
  /* Если фото слишком пестрое и отвлекает от расписания, раскомментируй эту строку. 
     Она размоет храм на фоне, оставив только красивые цветовые пятна. */
  /* backdrop-filter: blur(4px); */
  /* 3. z-index */
  /* Оверлей должен лежать НАД фотографией, но ПОД белым овалом расписания */
  z-index: 1;
}

/* Для планшетов (экраны до 900px) */
@media (max-width: 900px) {
  .myPhoto {
    /* Уменьшаем высоту блока, чтобы он не занимал весь экран */
    min-height: 450px;
  }
}
/* Для мобильных телефонов (экраны до 600px) */
@media (max-width: 600px) {
  .myPhoto {
    background-image: url("../assets/images/church-mobile.webp") !important;
    background-size: cover !important;
    background-position: top center !important;
    background-color: #1a233a !important;
    background-repeat: no-repeat !important; /* Чтобы картинка не размножилась */
  }
}
/* =========================================
   КИНО-АНИМАЦИЯ: ЕДИНЫЙ ОБЪЕКТ
   ========================================= */
/* Анимируем заголовок и ВЕСЬ контейнер новостей как цельные объекты */
.newsText,
.temple-magazine-wrapper {
  opacity: 0;
  filter: blur(20px);
  /* Эффект "вылета из глубины" с небольшим наклоном */
  transform: translateY(100px) scale(0.9) rotateX(-15deg);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), filter 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* Состояние после появления */
.is-visible {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translateY(0) scale(1) rotateX(0) !important;
}

/* ЭФФЕКТ БЛИКА (пробегает по всему блоку новостей один раз) */
.temple-magazine-wrapper {
  position: relative;
  overflow: hidden; /* Чтобы блик не вылетал за края */
}

.temple-magazine-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  transition: 0s;
}

.temple-magazine-wrapper.is-visible::after {
  left: 150%;
  transition: left 1.5s ease-in-out;
  transition-delay: 0.8s; /* Блик пробежит чуть позже появления */
}

/* ЛИНИИ ЗАГОЛОВКА (выезжают из центра) */
.newsText::before,
.newsText::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #4e5bb5;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.5s;
}

.newsText.is-visible::before,
.newsText.is-visible::after {
  width: 60px;
}

/* Убираем задержки у отдельных карточек, так как теперь они — одно целое */
.magazine-main-card, .magazine-small-card, .magazine-footer {
  opacity: 1;
  transform: none;
  transition: none;
}

/* --- АДАПТИВНОСТЬ (БЕЗ ИЗМЕНЕНИЙ) --- */
@media (max-width: 768px) {
  .newsText.is-visible::before, .newsText.is-visible::after {
    width: 30px;
  }
}
/* =========================================
   ЖУРНАЛЬНЫЙ БЛОК НОВОСТЕЙ
   ========================================= */
.temple-magazine-wrapper {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.magazine-grid {
  display: grid;
  /* На ПК: 2 колонки. Левая (главная) шире правой (хроники) */
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Общие стили даты */
.magazine-meta {
  margin-bottom: 10px;
}

.magazine-date {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- ГЛАВНАЯ КАРТОЧКА (Слева) --- */
.magazine-main-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  /* Высота главной карточки задает высоту всему блоку */
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Текст прижат к низу */
  padding: 40px;
  box-shadow: 0 15px 40px rgba(45, 65, 130, 0.08);
  transition: transform 0.4s ease;
}

.magazine-main-card:hover {
  transform: translateY(-5px);
}

/* Темный градиент поверх фото главной карточки */
.magazine-main-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(20, 30, 50, 0) 0%, rgba(10, 15, 30, 0.85) 100%);
  z-index: 1;
}

.magazine-main-content {
  position: relative;
  z-index: 2;
  color: #ffffff; /* Белый текст на темном фото */
}

.magazine-badge {
  display: inline-block;
  background-color: #4e5bb5; /* Золотой акцент для "Важно" */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.magazine-main-content .magazine-date {
  color: rgba(255, 255, 255, 0.7);
}

.magazine-main-title {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 15px 0;
}

.magazine-main-title a {
  color: #ffffff;
  text-decoration: none;
}

.magazine-main-excerpt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 90%;
}

/* --- БОКОВАЯ КОЛОНКА И МАЛЕНЬКИЕ КАРТОЧКИ (Справа) --- */
.magazine-side-column {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Расстояние между двумя маленькими карточками */
}

.magazine-small-card {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(78, 91, 181, 0.05);
  box-shadow: 0 8px 25px rgba(45, 65, 130, 0.04);
  height: 100%; /* Занимают половину высоты главной карточки */
  transition: transform 0.3s ease;
}

.magazine-small-card:hover {
  transform: translateY(-3px);
}

.magazine-small-img-link {
  width: 40%; /* Картинка занимает 40% ширины карточки */
  flex-shrink: 0;
}

.magazine-small-thumb {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.magazine-small-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.magazine-small-content .magazine-date {
  color: #9999a3; /* Синяя дата */
}

.magazine-small-title {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.magazine-small-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}

.magazine-small-title a:hover {
  color: #4e5bb5;
}

.magazine-small-excerpt {
  font-size: 14px;
  color: #666666;
  margin: 0;
  line-height: 1.5;
  /* 1. Убираем жесткие пиксели (max-height), они нам больше не нужны! */
  /* Оставляем только минимальную высоту, чтобы пустые новости не ломали сетку */
  min-height: 42px; /* 14px * 1.5 * 2 строки */
  /* 2. ВОЗВРАЩАЕМ МАГИЮ ОБРЕЗКИ С МНОГОТОЧИЕМ */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Строго 2 строки. Браузер САМ поставит ... в конце 2-й строки */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Обязательно в паре с display: -webkit-box */
  /* Защита от длинных слов без пробелов */
  word-break: break-word;
}

/* --- КНОПКА В НИЗУ --- */
.magazine-footer {
  text-align: center;
}

.magazine-all-btn {
  display: inline-block;
  padding: 14px 35px;
  background-color: transparent;
  color: #1a233a;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(26, 35, 58, 0.2);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.magazine-all-btn:hover {
  background-color: #1a233a;
  color: #ffffff;
  border-color: #1a233a;
}

.magazine-main-card,
.magazine-small-card {
  position: relative; /* Обязательно, чтобы ссылка не вылезла за пределы карточки */
}

/* 2. Растягиваем ссылки из заголовков на всю площадь карточки */
.magazine-main-title a::after,
.magazine-small-title a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10; /* Ссылка ложится прозрачным слоем ПОВЕРХ всего текста и картинок */
}

/* 3. Отключаем клики по остальным ссылкам внутри, чтобы они не спорили */
/* В маленькой карточке картинка тоже обернута в ссылку, мы ее "выключаем" */
.magazine-small-img-link {
  pointer-events: none;
}

.magazine-main-card {
  position: relative;
}

/* 2. БЛОК С КОНТЕНТОМ - УБИРАЕМ relative! */
/* Это критически важно! Если здесь останется position: relative, 
   ссылка растянется только на размер текста, а не на всю картинку. */
.magazine-main-content {
  /* position: relative; <-- УДАЛИ ЭТУ СТРОКУ, ЕСЛИ ОНА ЕСТЬ! */
  position: static; /* Возвращаем стандартное поведение */
  /* z-index здесь тоже больше не будет работать без relative, 
     поэтому мы поднимем весь контент другим способом */
}

/* 3. РАСТЯГИВАЕМ ССЫЛКУ ИЗ ЗАГОЛОВКА НА ВСЮ КАРТОЧКУ */
.magazine-main-title a::before {
  content: "";
  /* Абсолютное позиционирование ищет ближайшего родителя с position: relative.
     Так как у .magazine-main-content мы его убрали, 
     оно найдет .magazine-main-card и растянется на 100% её площади! */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Кладем ссылку поверх всего, включая темный градиент-оверлей (у которого z-index: 1) */
  z-index: 10;
}

/* 4. ЧТОБЫ ТЕКСТ НЕ ПРОВАЛИЛСЯ ПОД ГРАДИЕНТ */
/* Так как мы убрали relative у контента, он может провалиться под темную пленку.
   Чтобы этого не случилось, мы опустим саму пленку на самое дно. */
.magazine-main-overlay {
  z-index: 0; /* Опускаем градиент под текст */
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 900px) {
  .temple-magazine-wrapper {
    margin-bottom: 40px; /* Уменьшаем отступ под всем блоком на мобилках */
  }
  .magazine-grid {
    grid-template-columns: 1fr; /* Переводим в одну колонку */
    gap: 20px; /* Сужаем дыру между главной новостью и списком старых */
  }
  .magazine-side-column {
    gap: 20px; /* Сужаем дыру между самими маленькими карточками */
  }
  /* --- ГЛАВНАЯ КАРТОЧКА НА МОБИЛКАХ --- */
  .magazine-main-card {
    min-height: 350px; /* Идеальная пропорция для телефона (не занимает весь экран) */
    padding: 25px 20px; /* Текст ближе к краям, больше места для контента */
    border-radius: 20px;
  }
  .magazine-main-title {
    font-size: 22px; /* Чуть меньше, чтобы длинный заголовок влез аккуратно */
    margin-bottom: 10px;
  }
  .magazine-main-excerpt {
    font-size: 14px;
    max-width: 100%;
    /* ЖЕЛЕЗОБЕТОННАЯ ЗАЩИТА: Обрезаем длинный текст на мобилке до 3 строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* --- МАЛЕНЬКИЕ КАРТОЧКИ НА МОБИЛКАХ --- */
  .magazine-small-card {
    flex-direction: column; /* Картинка сверху, текст снизу */
    height: auto; /* ВАЖНО: сбрасываем height: 100% от ПК, иначе карточки растянет */
    border-radius: 16px;
  }
  .magazine-small-img-link {
    width: 100%;
    height: 180px; /* Делаем фото не слишком высоким, чтобы фокус был на тексте */
  }
  .magazine-small-content {
    padding: 15px; /* Уменьшаем внутренние отступы (было 20px) */
  }
  .magazine-small-title {
    font-size: 16px; /* Чуть аккуратнее для телефона */
  }
}
/* Для самых маленьких экранов (iPhone SE и старые Android) */
@media (max-width: 480px) {
  .magazine-main-card {
    min-height: 300px;
  }
  .magazine-small-img-link {
    height: 150px;
  }
}
.temple-footer {
  /* Темный, глубокий цвет фона (солидный фундамент) */
  background-color: #1a233a;
  color: rgba(255, 255, 255, 0.7); /* Мягкий светлый текст */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- СЕТКА КОЛОНОК --- */
.footer-grid {
  display: grid;
  /* На ПК: 4 колонки одинаковой ширины */
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0; /* Внутренние отступы сверху и снизу */
}

/* --- ЗАГОЛОВКИ КОЛОНОК --- */
.footer-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff; /* Заголовки чисто белые для контраста */
  margin: 0 0 25px 0;
  position: relative;
  padding-bottom: 15px;
}

/* Декоративная линия под заголовками колонок */
.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #4e5bb5; /* Синий акцент твоего сайта */
}

/* --- ТЕКСТ И ССЫЛКИ --- */
.footer-text {
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 20px;
}

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

.footer-menu li,
.footer-schedule-list li {
  margin-bottom: 12px;
}

/* Ссылки в меню */
.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  font-size: 15px;
}

/* При наведении ссылка светлеет и чуть сдвигается вправо (очень красивый эффект) */
.footer-menu a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* --- КОНТАКТЫ И РАСПИСАНИЕ --- */
.footer-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  font-size: 15px;
}

.fc-label, .fs-day {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4e5bb5; /* Синий цвет */
  font-weight: 700;
  margin-bottom: 4px;
}

.fc-text, .fs-time {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  line-height: 1.4;
}

.fc-text[href]:hover {
  color: #ffffff;
  text-decoration: underline;
}

.fs-link {
  display: inline-block;
  margin-top: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s;
}

.fs-link:hover {
  border-color: #ffffff;
}

/* --- СОЦСЕТИ --- */
.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.3s, transform 0.3s;
}

.social-link:hover {
  background-color: #4e5bb5;
  transform: translateY(-3px);
}

/* --- НИЖНЯЯ ПОЛОСА (КОПИРАЙТ) --- */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2); /* Чуть темнее основного фона */
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fb-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.fb-content p {
  margin: 0;
}

.fb-content a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.fb-content a:hover {
  color: #ffffff;
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 900px) {
  /* На планшете делаем 2 колонки */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
@media (max-width: 600px) {
  /* На телефоне всё выстраивается в 1 колонку */
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .footer-title {
    margin: 0 0 15px 0;
  }
  /* Копирайт на телефоне выстраиваем в столбик по центру */
  .fb-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
/* =========================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ФУТЕРА (Волна)
   ========================================= */
/* Изначально прячем все колонки в футере */
.footer-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Класс, который JS добавит футеру при скролле */
.temple-footer.is-visible .footer-col {
  opacity: 1;
  transform: translateY(0);
}

/* Создаем каскад (лесенку) задержек для каждой колонки */
.temple-footer.is-visible .footer-col:nth-child(1) {
  transition-delay: 0s;
}

.temple-footer.is-visible .footer-col:nth-child(2) {
  transition-delay: 0.15s;
}

.temple-footer.is-visible .footer-col:nth-child(3) {
  transition-delay: 0.3s;
}

.temple-footer.is-visible .footer-col:nth-child(4) {
  transition-delay: 0.45s;
}

/* Нижняя полоса с копирайтом появляется последней */
.footer-bottom {
  opacity: 0;
  transition: opacity 1s ease 0.6s; /* Задержка 0.6с, чтобы выйти после колонок */
}

.temple-footer.is-visible .footer-bottom {
  opacity: 1;
}

/* На мобильных телефонах колонки стоят друг под другом, 
   поэтому задержку (каскад) убираем, чтобы не заставлять юзера ждать */
@media (max-width: 600px) {
  .temple-footer.is-visible .footer-col {
    transition-delay: 0s !important;
  }
}
:root {
  /* Журнальная кривая времени: строго, чисто и плавно */
  --mag-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --line-w: 60px;
}

/* =========================================
   1. ЖУРНАЛЬНЫЕ АНИМАЦИИ (ПРИ ОБНОВЛЕНИИ)
   ========================================= */
/* Строгое всплытие вверх */
@keyframes magazineFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Легкий журнальный акцент для фото */
@keyframes magazineImageSettle {
  0% {
    transform: scale(1.08);
    filter: brightness(0.8);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
/* Линии заголовка */
@keyframes magazineLineGrow {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: var(--line-w);
    opacity: 1;
  }
}
/* =========================================
   2. ХЛЕБНЫЕ КРОШКИ (УНИКАЛЬНЫЙ КЛАСС)
   ========================================= */
.history-breadcrumbs {
  /* Точно те же параметры, что у текста и картинки! */
  width: calc(100% - 600px) !important;
  margin: 40px auto 20px auto !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: magazineFadeUp 1.2s var(--mag-ease) both;
}

.history-breadcrumbs .bc-link {
  text-decoration: none !important;
  color: #666 !important;
  font-weight: bold;
  transition: color 0.3s ease;
}

.history-breadcrumbs .bc-link:hover {
  color: #4e5bb5 !important;
}

.history-breadcrumbs .bc-sep {
  color: #999;
  font-weight: normal;
  margin: 0 8px;
}

.history-breadcrumbs .bc-current {
  color: #999;
  font-weight: normal;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================
   3. ЗАГОЛОВОК ИСТОРИИ (Задержка: 0.15s)
   ========================================= */
.history-Zagolovok {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  text-align: center;
  color: #000000;
  margin: 30px auto 40px !important;
  max-width: calc(100% - 600px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  /* Всплывает мягко после крошек */
  animation: magazineFadeUp 1.2s var(--mag-ease) 0.15s both;
}

.history-Zagolovok::before,
.history-Zagolovok::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #4e5bb5;
  /* Разъезжаются с задержкой 0.5s */
  animation: magazineLineGrow 1s var(--mag-ease) 0.5s both;
}

/* =========================================
   4. ОБЛОЖКА (Задержка: 0.3s)
   ========================================= */
.history {
  width: calc(100% - 600px) !important;
  margin: 0 auto 30px auto !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: transparent !important;
  height: auto !important;
  line-height: 0 !important;
  padding: 0 !important;
  box-shadow: 0 15px 40px rgba(45, 65, 130, 0.08) !important;
  /* Контейнер всплывает следом за заголовком */
  animation: magazineFadeUp 1.2s var(--mag-ease) 0.3s both;
}

.history img {
  display: block !important;
  width: 100% !important;
  height: 450px !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  -o-object-position: center !important;
     object-position: center !important;
  border-radius: 24px !important;
  margin: 0 !important;
  /* Картинка внутри мягко ловит фокус */
  animation: magazineImageSettle 1.8s var(--mag-ease) 0.3s both;
}

/* =========================================
   5. ОСНОВНОЙ ТЕКСТ (Задержка: 0.45s)
   ========================================= */
.history-Text {
  font-family: "Georgia", serif;
  font-size: 1.3rem;
  line-height: 1.9;
  color: #000000;
  width: calc(100% - 600px) !important;
  margin: 0 auto !important;
  text-align: justify;
  padding-bottom: 60px;
  /* Текст завершает композицию, всплывая последним */
  animation: magazineFadeUp 1.2s var(--mag-ease) 0.45s both;
}

.history-Text::first-letter {
  font-family: "Cormorant Garamond", serif;
  float: left;
  font-size: 4.2rem;
  line-height: 0.82;
  margin: 11px 14px 0 0;
  color: #4e5bb5;
  font-weight: bold;
}

/* =========================================
   6. АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
  :root {
    --line-w: 30px;
  }
  .history-breadcrumbs {
    width: calc(100% - 40px) !important;
    margin: 30px auto 20px auto !important;
  }
  .history-Zagolovok {
    font-size: 2.2rem;
    max-width: calc(100% - 40px) !important;
    margin: 20px auto 30px !important;
  }
  .history {
    width: calc(100% - 40px) !important;
    min-height: 200px !important;
  }
  .history img {
    height: 200px !important;
  }
  .history-Text {
    width: calc(100% - 40px) !important;
    font-size: 1.15rem;
  }
}
/* =========================================
   ПЕРЕМЕННЫЕ И KEYFRAMES
   ========================================= */
:root {
  --church-blue: #4e5bb5;
  --mag-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --line-w: 60px;
}

/* 1. Деликатное появление для ЧИСТОГО ТЕКСТА ЗАГОЛОВКА И КРОШЕК */
@keyframes titleSoftFade {
  0% {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* 2. Появление БЕЛОЙ РАМКИ РАСПИСАНИЯ (вот тут есть тень) */
@keyframes scheduleBoxFade {
  0% {
    opacity: 0;
    transform: translateY(15px);
    box-shadow: 0 5px 15px rgba(45, 65, 130, 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 15px 40px rgba(45, 65, 130, 0.07);
  }
}
/* 3. Анимация разъезжающихся линий */
@keyframes raspLinesGrow {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: var(--line-w);
    opacity: 1;
  }
}
/* 4. Волна для строчек расписания внутри рамки */
@keyframes scheduleRowWave {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================
   1. КОНТЕЙНЕР
   ========================================= */
#primary.content-area {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

/* =========================================
   НОВОЕ: ХЛЕБНЫЕ КРОШКИ
   ========================================= */
.schedule-breadcrumbs {
  /* Жестко выравниваем по ширине контейнера расписания */
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px auto !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* Анимация: стартует первой (0s), both скрывает элемент до начала */
  animation: titleSoftFade 1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.schedule-breadcrumbs .bc-link {
  text-decoration: none !important;
  color: #666 !important;
  font-weight: bold;
  transition: color 0.3s ease;
}

.schedule-breadcrumbs .bc-link:hover {
  color: var(--church-blue) !important;
}

.schedule-breadcrumbs .bc-sep {
  color: #999;
  font-weight: normal;
  margin: 0 8px;
}

.schedule-breadcrumbs .bc-current {
  color: #999;
  font-weight: normal;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================
   2. ЗАГОЛОВОК РАСПИСАНИЯ (ЧИСТЫЙ ТЕКСТ)
   ========================================= */
.textRasp {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  text-align: center;
  color: var(--church-dark, #2c2c2c);
  margin: 0 auto 40px !important;
  max-width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  white-space: nowrap;
  /* Стартует чуть позже крошек (0.15s) */
  animation: titleSoftFade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.15s both;
}

/* Сами линии */
.textRasp::before,
.textRasp::after {
  content: "";
  display: block;
  height: 2px;
  background-color: var(--church-blue);
  /* Растут из центра (задержка 0.3s) */
  animation: raspLinesGrow 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* =========================================
   3. ГЛАВНАЯ БЕЛАЯ РАМКА РАСПИСАНИЯ
   ========================================= */
.full-schedule-list {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  /* Появляется следом за заголовком (0.3s) */
  animation: scheduleBoxFade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

/* =========================================
   4. БЛОК ОДНОГО ДНЯ (АНИМАЦИЯ ВОЛНОЙ)
   ========================================= */
.schedule-day-block {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.4s ease;
  animation: scheduleRowWave 0.8s var(--mag-ease) both;
}

/* Каскадная задержка (ждем появления рамки) */
.schedule-day-block:nth-child(1) {
  animation-delay: 0.5s;
}

.schedule-day-block:nth-child(2) {
  animation-delay: 0.55s;
}

.schedule-day-block:nth-child(3) {
  animation-delay: 0.6s;
}

.schedule-day-block:nth-child(4) {
  animation-delay: 0.65s;
}

.schedule-day-block:nth-child(5) {
  animation-delay: 0.7s;
}

.schedule-day-block:nth-child(6) {
  animation-delay: 0.75s;
}

.schedule-day-block:nth-child(7) {
  animation-delay: 0.8s;
}

.schedule-day-block:nth-child(n+8) {
  animation-delay: 0.85s;
}

.full-schedule-list .schedule-day-block:last-child {
  border-bottom: none;
}

.schedule-day-block:hover {
  background-color: #fafcff;
}

/* =========================================
   5. ЛЕВАЯ КОЛОНКА (С датой)
   ========================================= */
.day-date-column {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  flex: 0 0 35%;
}

.day-date-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0%;
  background-color: var(--church-blue);
  border-radius: 0 4px 4px 0;
  transition: height 0.4s var(--mag-ease);
}

.schedule-day-block:hover .day-date-column::before {
  height: 100%;
}

.day-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--church-blue);
  line-height: 1;
  letter-spacing: -2px;
  transition: transform 0.3s ease;
}

.schedule-day-block:hover .day-number {
  transform: scale(1.05);
}

.day-details {
  display: flex;
  flex-direction: column;
}

.day-weekday {
  font-size: 15px;
  color: #6b7280;
  text-transform: lowercase;
}

.day-month {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a233a;
  text-transform: capitalize;
}

/* =========================================
   6. ПРАВАЯ КОЛОНКА (Список событий)
   ========================================= */
.day-events-column {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  flex-grow: 1;
  border-left: 1px solid #e5e7eb;
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease;
}

.event-row:hover {
  transform: translateX(5px);
}

.event-time {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  flex-shrink: 0;
  width: 105px;
  transition: color 0.3s ease;
  margin-top: 2px;
}

.schedule-day-block:hover .event-time {
  color: var(--church-blue);
}

.event-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-title {
  font-family: Georgia, serif;
  font-size: 17px;
  color: #1a233a;
  font-weight: bold;
  line-height: 1.4;
  transition: color 0.2s;
}

.event-venue {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.4;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
  :root {
    --line-w: 80px;
  }
  .schedule-breadcrumbs {
    margin: 0 auto 20px auto !important;
  }
  .textRasp {
    font-size: 1.6rem;
    max-width: calc(100% + 50px) !important;
    margin: 30px auto !important;
    white-space: wrap !important;
  }
  .schedule-day-block {
    flex-direction: column;
  }
  .day-date-column {
    flex-basis: auto;
    border-bottom: 1px solid #e5e7eb;
    justify-content: flex-start;
    padding: 20px 15px;
  }
  .day-date-column::before {
    display: none;
  }
  .day-events-column {
    border-left: none;
    padding: 20px 15px;
  }
  .event-row {
    gap: 15px;
  }
  .event-time {
    width: 95px;
    font-size: 13px;
  }
  .event-row:hover {
    transform: none;
  }
}
/* ПЕРЕМЕННЫЕ */
:root {
  --church-blue: #4e5bb5;
  --card-bg: #ffffff;
  --text-dark: #2c2c2c;
  --text-gray: #666666;
  --text-light-gray: #999999;
  --common-radius: 24px;
  /* Та самая "дорогая" кривая анимации */
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   ГЛАВНАЯ ОБЕРТКА И ХЛЕБНЫЕ КРОШКИ
   ========================================= */
.hram-news-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 69px;
  box-sizing: border-box;
}

/* Глубокая перспектива для вау-эффекта */
.hram-news-page-wrapper,
.news-archive-grid {
  perspective: 1500px;
}

.breadcrumbs-wrapper.is-visible {
  opacity: 1;
  transform: translateY(15px);
}

.breadcrumbs-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ИДЕАЛЬНЫЕ ХЛЕБНЫЕ КРОШКИ (БЕЗ ПРИЛИПАНИЯ)
   ========================================= */
.breadcrumbs-wrapper {
  /* 1. БЛОКИРУЕМ СХЛОПЫВАНИЕ ОТСТУПОВ */
  /* Заменяем margin-bottom на padding-bottom. Он не схлопывается! */
  margin-top: 40px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 40px !important; /* Жестко отталкивает следующий элемент вниз */
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  /* Визуальный дизайн */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* Анимация плавного появления */
  opacity: 0;
  transform: translateY(15px);
  transition: all 1s var(--expo);
  /* Защита от других стилей, которые могут сломать flexbox */
  box-sizing: border-box !important;
  width: 100% !important;
}

.breadcrumbs-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
  .breadcrumbs-wrapper {
    margin-top: 20px !important;
    padding-bottom: 20px !important; /* Уменьшаем "дыру" на мобилках */
  }
}
.bc-link {
  text-decoration: none;
  color: #666;
  font-weight: bold;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.bc-link:hover {
  color: #222;
}

.bc-sep {
  margin: 0 10px;
  color: #ccc;
}

.bc-current {
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #9999a3;
}

/* =========================================
   ЗАГОЛОВОК НОВОСТЕЙ
   ========================================= */
.news-page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  text-align: center;
  color: #000000;
  margin: 40px auto 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-transform: uppercase;
  font-weight: bold;
  /* Появление заголовка */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(10px);
  transition: opacity 1.5s var(--expo), transform 1.5s var(--expo), filter 1.5s var(--expo);
  will-change: transform, opacity, filter;
}

.news-page-title.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Линии с легким свечением */
.news-page-title::before,
.news-page-title::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #4e5bb5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Легкий объем */
  transition: width 1.2s var(--expo);
  transition-delay: 0.5s; /* Выстреливают чуть позже текста */
}

.news-page-title.is-visible::before,
.news-page-title.is-visible::after {
  width: 60px;
}

/* =========================================
   СЕТКА НОВОСТЕЙ
   ========================================= */
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin: 40px 0;
  width: 100%;
}

/* =========================================
   КАРТОЧКА: АБСОЛЮТНАЯ МАГИЯ
   ========================================= */
.news-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--common-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  /* Анимация самой карточки */
  opacity: 0;
  /* Уводим глубже (translateZ) и сильнее наклоняем */
  transform: translateY(100px) translateZ(-80px) rotateX(-20deg);
  filter: blur(10px);
  /* Берем задержку из JS */
  transition: all 1.5s var(--expo);
  transition-delay: var(--card-delay, 0s);
  will-change: transform, opacity, filter;
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0) rotateX(0);
  filter: blur(0);
}

/* Сброс задержки при наведении (критически важно) */
.news-card.is-visible:hover {
  transition-delay: 0s !important;
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

/* =========================================
   ВНУТРЕННОСТИ КАРТОЧКИ (Микро-интеракции)
   ========================================= */
.news-image-wrapper {
  height: 240px;
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  /* Изначально: увеличена и затемнена */
  transform: scale(1.4);
  filter: brightness(0.6);
  transition: transform 1.8s var(--expo), filter 1.8s var(--expo);
  /* Картинка оседает чуть позже самой карточки */
  transition-delay: calc(var(--card-delay, 0s) + 0.1s);
}

/* Раскрытие картинки */
.news-card.is-visible .news-thumb {
  transform: scale(1);
  filter: brightness(1);
}

/* Ховер картинки */
.news-card.is-visible:hover .news-thumb {
  transition-delay: 0s !important;
  transform: scale(1.08);
}

.news-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Прячем текст изначально */
.news-date, .news-title, .news-excerpt {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--expo);
}

/* Появление текста ЛЕСЕНКОЙ внутри карточки */
.news-card.is-visible .news-date {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--card-delay, 0s) + 0.2s);
}

.news-card.is-visible .news-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--card-delay, 0s) + 0.3s);
}

.news-card.is-visible .news-excerpt {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--card-delay, 0s) + 0.4s);
}

/* Сбрасываем задержки текста при ховере */
.news-card.is-visible:hover .news-date,
.news-card.is-visible:hover .news-title,
.news-card.is-visible:hover .news-excerpt {
  transition-delay: 0s !important;
}

.meta-date {
  color: #9999a3;
}

/* Стилизация самого текста */
.news-date {
  display: block;
  color: #9999a3;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.news-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 15px 0;
  color: #000000;
  font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-empty-message {
  font-family: Georgia, serif;
  padding: 40px 0;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}

.news-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* =========================================
   ПАГИНАЦИЯ (Плавное появление)
   ========================================= */
.news-pagination {
  margin: 60px 0;
  text-align: center;
  width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 1.2s var(--expo);
}

.news-pagination.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-pagination ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.news-pagination li a, .news-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 54px;
  border-radius: 50%;
  text-decoration: none;
  font-family: "Georgia", serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  color: #000000;
  border: 1px solid #bbb;
  background: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.news-pagination li a.prev, .news-pagination li a.next {
  width: auto;
  min-width: 130px;
  padding: 0 25px;
  font-size: 0.9rem;
  border-radius: 30px;
}

.news-pagination li span.current {
  background: #4e5bb5;
  color: #ffffff;
  border-color: #4e5bb5;
}

.news-pagination li a:hover {
  border-color: #4e5bb5;
  color: #4e5bb5;
  transform: translateY(-3px);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1024px) {
  .hram-news-page-wrapper {
    padding: 0 40px;
  }
  .news-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hram-news-page-wrapper {
    padding: 0 20px;
  }
  .news-page-title {
    font-size: 2rem;
    margin: 30px 0 40px;
  }
  .news-page-title.is-visible::before,
  .news-page-title.is-visible::after {
    width: 30px;
  }
  .news-archive-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 0 0 40px 0;
  }
  /* На телефоне уменьшаем масштаб анимации, чтобы не дергало экран */
  .news-card {
    transform: translateY(60px) translateZ(-40px) rotateX(-10deg);
  }
  .news-image-wrapper {
    height: 260px;
  }
  .news-content {
    padding: 25px 20px;
  }
  .news-title {
    font-size: 1.5rem;
  }
  .news-pagination ul {
    gap: 8px;
  }
  .news-pagination li a, .news-pagination li span {
    height: 44px;
    width: 44px;
    font-size: 0.9rem;
  }
  .news-pagination li a.prev, .news-pagination li a.next {
    min-width: 100px;
    height: 44px;
  }
}
/* --- НАШИ КАСТОМНЫЕ СТИЛИ --- */
:root {
  --church-blue: #4e5bb5;
  --text-dark: #2c2c2c;
  --text-gray: #666666;
  --text-light-gray: #999999;
  --main-radius: 24px;
  --article-width: 900px;
  --mag-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   КЛАССЫ ДЛЯ АНИМАЦИИ ПРИ СКРОЛЛЕ (SCROLL REVEAL)
   ========================================= */
/* Элементы, которые мы будем анимировать, изначально скрыты и опущены вниз */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--mag-ease), transform 1s var(--mag-ease);
}

/* Класс, который добавляет JS при появлении элемента на экране */
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Для главной картинки сделаем особый эффект (с размытием и зумом) */
.scroll-reveal-img {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(10px);
  transition: opacity 1.2s var(--mag-ease), transform 1.2s var(--mag-ease), filter 1.2s var(--mag-ease);
}

.scroll-reveal-img.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Тотальное обеление фона */
.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   АНИМАЦИЯ ПРИ ЗАГРУЗКЕ (БЫСТРАЯ ВЕРСИЯ)
   ========================================= */
/* 2. Заголовок и дата (задержка 0.1s) */
.article-header {
  animation: magazineFadeUp 0.8s var(--mag-ease) 0.1s both;
}

/* 3. ФОТОГРАФИЯ (задержка 0.2s) */
.article-thumbnail {
  margin-bottom: 50px;
  overflow: hidden;
  border-radius: var(--main-radius);
  background: transparent !important;
  /* Тень из твоей истории */
  box-shadow: 0 15px 40px rgba(45, 65, 130, 0.08) !important;
  /* Всплытие обертки */
  animation: magazineFadeUp 0.8s var(--mag-ease) 0.2s both;
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
  border-radius: var(--main-radius);
  /* Картинка внутри ловит фокус чуть дольше для красоты (1.2s), но стартует вместе с оберткой (0.2s) */
  animation: magazineImageSettle 1.2s var(--mag-ease) 0.2s both;
}

/* 4. Текст статьи (задержка 0.3s) */
.article-content {
  animation: magazineFadeUp 0.8s var(--mag-ease) 0.3s both;
}

/* --- ХЛЕБНЫЕ КРОШКИ --- */
.bc-link {
  text-decoration: none !important;
  color: var(--text-gray) !important;
  font-weight: bold;
  transition: color 0.3s ease;
}

.bc-link:hover {
  color: var(--church-blue) !important;
}

.bc-sep {
  color: var(--text-gray);
  font-weight: normal;
  margin: 0 8px;
}

.bc-current {
  color: var(--text-light-gray);
  font-weight: normal;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- ЗАГОЛОВОК И КОНТЕНТ --- */
.article-header {
  margin: 30px 0 40px;
}

.article-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--text-dark);
  margin-top: 0 !important;
}

.article-content {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.article-content p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif;
  float: left;
  font-size: 4.6rem;
  line-height: 0.8;
  margin: 6px 12px 0 0;
  color: var(--church-blue);
  font-weight: bold;
}

.article-content p {
  margin-bottom: 25px;
}

.article-meta-bottom {
  padding-top: 15px;
}

/* =========================================
   СЕКЦИЯ "ЧИТАЙТЕ ТАКЖЕ" (ПЛАВНЫЙ СКРОЛЛ)
   ========================================= */
.related-posts-section {
  margin-top: 80px;
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Изначально спрятана */
  opacity: 0;
  transform: translateY(60px);
  /* Быстрое и отзывчивое появление */
  transition: opacity 0.8s var(--mag-ease), transform 0.8s var(--mag-ease);
}

/* Класс, который вешает JS */
.related-posts-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.related-posts-section .section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: bold;
}

.related-posts-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 40px;
}

.related-posts-grid .news-card {
  position: relative;
  background: #ffffff !important;
  border-radius: var(--main-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.related-posts-grid .news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.related-posts-grid .news-image-wrapper {
  height: 220px;
  overflow: hidden;
  border-radius: var(--main-radius) var(--main-radius) 0 0;
}

.related-posts-grid .news-thumb {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  transition: transform 0.6s var(--mag-ease);
}

.related-posts-grid .news-card:hover .news-thumb {
  transform: scale(1.05);
}

.related-posts-grid .news-content {
  padding: 30px;
}

.related-posts-grid .news-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 0 !important;
  margin-bottom: 15px !important;
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================
   ИМБОВАЯ ГАЛЕРЕЯ: 3D CINEMA EFFECT
   ========================================= */
.hram-gallery-container {
  position: relative;
  max-width: 1400px; /* Делаем сцену максимально широкой для 3D-эффекта */
  margin: 80px auto;
  padding: 20px 0;
  overflow: hidden;
  /* Убираем серый фон, сцена должна быть чистой */
  background-color: transparent;
  perspective: 1500px; /* Включаем 3D-пространство! */
}

/* Сам рельс */
.hram-gallery-track {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Даем место для теней */
  padding: 30px 0;
}

/* --- СЛАЙД (Карточка) --- */
.hram-gallery-slide {
  position: absolute;
  width: 55%; /* На ПК слайд занимает 55% */
  max-width: 800px;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  /* Состояние "глубокого тыла" по умолчанию */
  opacity: 0;
  transform: scale(0.5) translateX(0) translateZ(-500px);
  z-index: 1;
  pointer-events: none;
  /* Дорогая, тяжелая физика анимации */
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hram-gallery-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 28px;
  transition: filter 0.8s ease;
}

/* Налет темноты для боковых фото */
.hram-gallery-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: 28px;
  pointer-events: none;
}

/* =========================================
   3D-СОСТОЯНИЯ (УПРАВЛЯЮТСЯ СКРИПТОМ)
   ========================================= */
.hram-gallery-container {
  position: relative;
  max-width: 1400px; /* Делаем сцену максимально широкой для 3D-эффекта */
  margin: 80px auto;
  padding: 20px 0;
  overflow: hidden;
  /* Убираем серый фон, сцена должна быть чистой */
  background-color: transparent;
  perspective: 1500px; /* Включаем 3D-пространство! */
}

/* Сам рельс */
.hram-gallery-track {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Даем место для теней */
  padding: 30px 0;
}

/* --- СЛАЙД (Карточка) --- */
.hram-gallery-slide {
  position: absolute;
  width: 55%; /* На ПК слайд занимает 55% */
  max-width: 800px;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  /* Состояние "глубокого тыла" по умолчанию */
  opacity: 0;
  transform: scale(0.5) translateX(0) translateZ(-500px);
  z-index: 1;
  pointer-events: none;
  /* Дорогая, тяжелая физика анимации */
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hram-gallery-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 28px;
  transition: filter 0.8s ease;
}

/* Налет темноты для боковых фото */
.hram-gallery-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: 28px;
  pointer-events: none;
}

/* =========================================
   3D-СОСТОЯНИЯ (УПРАВЛЯЮТСЯ СКРИПТОМ)
   ========================================= */
/* АКТИВНЫЙ (ЦЕНТРАЛЬНЫЙ) */
.hram-gallery-slide.is-active {
  opacity: 1;
  transform: scale(1) translateX(0) translateZ(0); /* Выходит на передний план */
  z-index: 5;
  pointer-events: auto;
}

.hram-gallery-slide.is-active::after {
  opacity: 0;
}

.hram-gallery-slide.is-active .hram-gallery-img {
  filter: blur(0px) brightness(1);
}

/* ЛЕВЫЙ (ПРЕДЫДУЩИЙ) */
.hram-gallery-slide.is-prev {
  opacity: 0.7;
  /* Уводим влево, назад и немного поворачиваем к зрителю! */
  transform: scale(0.75) translateX(-65%) translateZ(-200px) rotateY(15deg);
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.15);
}

.hram-gallery-slide.is-prev .hram-gallery-img {
  filter: blur(4px) brightness(0.7);
}

.hram-gallery-slide.is-prev::after {
  opacity: 0.5;
}

/* ПРАВЫЙ (СЛЕДУЮЩИЙ) */
.hram-gallery-slide.is-next {
  opacity: 0.7;
  /* Уводим вправо, назад и поворачиваем */
  transform: scale(0.75) translateX(65%) translateZ(-200px) rotateY(-15deg);
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.15);
}

.hram-gallery-slide.is-next .hram-gallery-img {
  filter: blur(4px) brightness(0.7);
}

.hram-gallery-slide.is-next::after {
  opacity: 0.5;
}

/* Ховер на боковые слайды: они "отзываются" и очищаются от тумана */
.hram-gallery-slide.is-prev:hover {
  transform: scale(0.78) translateX(-60%) translateZ(-150px) rotateY(10deg);
}

.hram-gallery-slide.is-next:hover {
  transform: scale(0.78) translateX(60%) translateZ(-150px) rotateY(-10deg);
}

.hram-gallery-slide.is-prev:hover .hram-gallery-img,
.hram-gallery-slide.is-next:hover .hram-gallery-img {
  filter: blur(0px) brightness(0.9);
}

.hram-gallery-slide.is-prev:hover::after,
.hram-gallery-slide.is-next:hover::after {
  opacity: 0.2;
}

/* --- СТЕКЛЯННЫЕ СТРЕЛОЧКИ --- */
.hram-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* Эффект матового дорогого стекла */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  color: #1a233a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hram-gallery-arrow svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.hram-gallery-arrow:hover {
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(78, 91, 181, 0.25);
  transform: translateY(-50%) scale(1.1);
  color: #4e5bb5;
  border-color: #ffffff;
}

.hram-arrow-prev {
  left: calc(50% - 400px);
} /* Высчитываем позицию от центра */
.hram-arrow-next {
  right: calc(50% - 400px);
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 1024px) {
  /* Для планшетов стрелочки прижимаем к краям экрана */
  .hram-arrow-prev {
    left: 20px;
  }
  .hram-arrow-next {
    right: 20px;
  }
}
@media (max-width: 768px) {
  .gallery-section-header.scroll-reveal.is-visible {
    margin-bottom: 70px !important;
  }
  .hram-gallery-container {
    margin: 40px -20px;
    padding: 0;
    border-radius: 0;
  }
  .hram-gallery-track {
    height: 450px;
  }
  .hram-gallery-slide {
    width: 75%; /* На телефоне фото занимает больше места */
    height: 400px;
    border-radius: 20px;
  }
  .hram-gallery-img,
  .hram-gallery-slide::after {
    border-radius: 20px;
  }
  /* На телефоне 3D-поворот убираем, оставляем только сдвиг и блюр (бережем ресурсы телефона) */
  .hram-gallery-slide.is-prev {
    transform: scale(0.85) translateX(-85%) translateZ(0) !important;
  }
  .hram-gallery-slide.is-next {
    transform: scale(0.85) translateX(85%) translateZ(0) !important;
  }
  .hram-gallery-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8); /* Чуть плотнее фон, чтобы не сливались с фото */
  }
  .hram-gallery-arrow svg {
    width: 22px;
    height: 22px;
  }
  .hram-arrow-prev {
    left: 10px;
  }
  .hram-arrow-next {
    right: 10px;
  }
}
@media (max-width: 480px) {
  .hram-gallery-track {
    height: 400px;
  }
  .hram-gallery-slide {
    height: 350px;
    width: 80%;
  }
}
/* =========================================
   ПЕРЕМЕННЫЕ И KEYFRAMES АНИМАЦИИ
   ========================================= */
:root {
  /* Фирменная плавная кривая */
  --search-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Мягкое появление из легкого размытия */
@keyframes searchSoftReveal {
  0% {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* =========================================
   БАЗОВЫЕ КОНТЕЙНЕРЫ ПОИСКА
   ========================================= */
.search-main-wrapper {
  background-color: #ffffff !important;
  padding-top: 40px;
}

.search-content-area.article-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 69px !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* =========================================
   ХЛЕБНЫЕ КРОШКИ И ЗАГОЛОВОК
   ========================================= */
.search-breadcrumbs {
  /* 1. БЛОКИРУЕМ СХЛОПЫВАНИЕ ОТСТУПОВ */
  /* Заменяем margin-bottom на padding-bottom. Он не схлопывается! */
  margin-top: 0px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 40px !important; /* Жестко отталкивает следующий элемент вниз */
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  /* Визуальный дизайн */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* Анимация плавного появления */
  opacity: 0;
  transform: translateY(15px);
  transition: all 1s var(--expo);
  /* Защита от других стилей, которые могут сломать flexbox */
  box-sizing: border-box !important;
  width: 100% !important;
}

.search-breadcrumbs .bc-link {
  text-decoration: none;
  color: #666;
  font-weight: bold;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.search-breadcrumbs .bc-sep {
  margin: 0 10px;
  color: #9999a3;
  font-size: 1.1rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.search-breadcrumbs .bc-current {
  text-decoration: none;
  color: #9999a3;
  font-weight: bold;
  font-family: "Georgia", serif;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.search-page-header {
  margin-bottom: 50px !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

/* АНИМАЦИЯ СТРОЧКИ "РЕЗУЛЬТАТЫ ПОИСКА..." */
.page-title-search {
  font-family: "Cormorant Garamond", serif !important;
  font-size: 1.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #333 !important;
  font-weight: bold !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  /* Появляется следом за крошками (задержка 0.1s) */
  animation: searchSoftReveal 0.8s var(--search-ease) 0.1s both;
}

.search-query-highlight {
  color: #4e5bb5;
}

/* Заглушка, если нет фото */
.news-no-photo {
  background: #f9f9f9;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

/* =========================================
   ЕСЛИ НИЧЕГО НЕ НАЙДЕНО (EMPTY STATE)
   ========================================= */
.search-empty-state {
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  font-family: "Georgia", serif;
}

.search-empty-title {
  color: #333;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.search-empty-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
}

.search-empty-highlight {
  color: #4e5bb5;
}

.search-empty-form-wrapper {
  padding: 20px 0;
}

.search-empty-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Поле ввода */
.search-input-round {
  border-radius: 24px !important;
  padding: 12px 25px !important;
  border: 1px solid #ccc !important;
  outline: none !important;
  width: 350px;
  max-width: 100%;
  font-family: "Georgia", serif;
}

.search-input-round:focus {
  border-color: #4e5bb5 !important;
}

/* Кнопка поиска */
.empty-search-button {
  color: #fff;
  border: none;
  padding: 12px 35px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 24px !important;
  background-color: #4e5bb5 !important;
  transition: 0.3s ease !important;
}

.empty-search-button:hover {
  background-color: #3d4899 !important;
  transform: translateY(-2px);
}

.search-empty-btn-wrapper {
  margin-top: 50px;
}

.btn-all-news {
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid #4e5bb5;
  color: #4e5bb5;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 24px;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
}

.btn-all-news:hover {
  background-color: #4e5bb5;
  color: #fff;
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 1024px) {
  .search-content-area .news-archive-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  /* Сбрасываем жесткие отступы главного контейнера */
  .search-content-area.article-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  /* Сетка в одну колонку */
  .search-content-area .news-archive-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  /* Адаптация формы "Не найдено" */
  .search-empty-form {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  .search-input-round {
    width: 100% !important;
  }
  .empty-search-button {
    width: 100% !important;
    padding: 15px 0 !important;
  }
  .news-pagination ul,
  .search-pagination ul {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
  /* СКРЫВАЕМ ТОЛЬКО КНОПКИ С КЛАССОМ mobile-hide-btn (Первая и Последняя) */
  li.mobile-hide-btn {
    display: none !important;
  }
}
/* =========================================
   3. КНОПКА-БУРГЕР (Только для мобилок)
   ========================================= */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 45px;
  height: 45px;
  position: relative;
  z-index: 1010; /* Кнопка ВСЕГДА поверх всего, чтобы можно было закрыть меню */
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: #000000;
  border-radius: 2px;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 13px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 21px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 29px;
}

/* Анимация крестика */
.mobile-menu-toggle.is-active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* =========================================
   5. МЕНЮ КАК "ОТДЕЛЬНАЯ СТРАНИЦА" (Идеальная анимация туда-обратно)
   ========================================= */
/* Прячем весь сайт (кроме шапки и меню), когда меню открыто */
@media (max-width: 768px) {
  body.menu-is-open #content,
  body.menu-is-open footer,
  body.menu-is-open .site-footer {
    display: none !important;
  }
}
/* Фиксация шапки и убийство тени */
@media (max-width: 768px) {
  body.menu-is-open {
    overflow-x: hidden !important;
    background-color: #ffffff;
  }
  body.menu-is-open .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    box-shadow: none !important;
  }
}
/* --- САМО МЕНЮ И ЕГО АНИМАЦИЯ --- */
@media (max-width: 768px) {
  .sub-header {
    /* Больше не используем display: none ! */
    background-color: #FAFAF7 !important;
    display: block;
    width: 100%;
    min-height: calc(100vh - 90px);
    background-color: #ffffff;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 50px;
    /* Начальное состояние (закрыто): спрятано далеко слева и прозрачно */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    /* Плавная настройка возврата (закрытия) - чуть медленнее, как ты просил */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease, visibility 0.5s ease;
  }
}
@media (max-width: 768px) {
  /* Состояние (открыто): меню на экране */
  .sub-header.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); /* Встало на место */
  }
}
/* =========================================
   6. КРАСИВЫЙ ДИЗАЙН МЕНЮ И ПОИСКА
   ========================================= */
/* --- ПОИСК В МЕНЮ --- */
.mobile-search-form {
  display: none;
}

@media (max-width: 768px) {
  .mobile-search-form {
    display: block;
    padding: 0 20px 30px 20px;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .mobile-search-form form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px; /* Красивая капсула */
    padding: 8px 20px;
    box-shadow: 0 8px 20px rgba(45, 65, 130, 0.08); /* Мягкая тень */
    border: 1px solid rgba(78, 91, 181, 0.15);
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .mobile-search-form input {
    flex-grow: 1; /* Инпут занимает всё свободное место */
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px; /* Строго 16px, чтобы iOS не зумил */
    padding: 10px 0;
    color: #000000;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .mobile-search-form input::-moz-placeholder {
    color: #9999a3;
  }
  .mobile-search-form input::placeholder {
    color: #9999a3;
  }
}
@media (max-width: 768px) {
  .mobile-search-form button {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px; /* Фиксированная ширина кнопки (никаких огромных кнопок) */
    height: 40px;
    flex-shrink: 0; /* Запрещаем кнопке сужаться */
  }
}
@media (max-width: 768px) {
  .mobile-search-form button svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 768px) {
  .mobile-search-form button svg * {
    fill: #000000 !important;
  }
}
/* --- ССЫЛКИ НАВИГАЦИИ В МЕНЮ --- */
@media (max-width: 768px) {
  .sub-header .sub-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none !important;
    margin: 0;
    padding: 0 20px; /* Отступы по краям экрана */
  }
}
@media (max-width: 768px) {
  .sub-header .sub-navigation a {
    display: block;
    text-align: center; /* Центрируем текст */
    font-size: 18px; /* Крупный, читаемый шрифт */
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    padding: 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Еле заметная линия-разделитель */
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}
@media (max-width: 768px) {
  /* Убираем разделитель у последней ссылки, чтобы было эстетично */
  .sub-header .sub-navigation li:last-child a {
    border-bottom: none;
  }
}
@media (max-width: 768px) {
  /* Эффект легкого нажатия на ссылку */
  .sub-header .sub-navigation a:active {
    color: #4e5bb5;
    background-color: rgba(0, 0, 0, 0.02);
  }
}
/* 1. ОВЕРЛЕЙ И ОКНО */
/* 1. ОВЕРЛЕЙ И ОКНО */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 35, 58, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Меняем логику: теперь это не flex с жестким центрированием, а блочный скролл-контейнер */
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.custom-modal-dialog {
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  max-width: 500px;
  /* МАГИЯ ЦЕНТРИРОВАНИЯ БЕЗ БАГОВ СКРОЛЛА: 
     margin: auto выровняет окно по центру, а margin-top/bottom зададут безопасные отступы сверху и снизу */
  width: calc(100% - 40px); /* 100% минус боковые отступы (по 20px) */
  margin: 40px auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Без жесткой высоты, чтобы тултип не обрезался */
  box-sizing: border-box;
}

.custom-modal-overlay.is-visible .custom-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Крестик */
.custom-modal-close {
  position: absolute;
  top: 15px;
  right: 15px; /* Чуть ближе к краю, чтобы не налезал на заголовок на узких экранах */
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #9999a3;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.custom-modal-close:hover {
  color: #1a233a;
  transform: rotate(90deg);
}

.modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #1a233a;
  margin: 0 0 30px 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Чуть уменьшил разрыв между текстом и линиями */
}

.modal-title::before,
.modal-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #4e5bb5;
  flex-shrink: 0;
}

/* 2. ЭЛЕМЕНТЫ ФОРМЫ */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.half-width {
  flex: 1;
  min-width: 0;
}

.form-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #9999a3;
  margin-top: 6px;
}

/* Общие стили для ВСЕХ полей ввода */
.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* Строго 16px от зума на iOS */
  font-family: "Montserrat", sans-serif;
  color: #000000;
  background-color: #f9fafb;
  border: 2px solid transparent;
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.form-input:hover {
  background-color: #f3f4f6;
}

.form-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #4e5bb5;
}

.form-input.no-resize {
  resize: none;
}

/* Кастомный выпадающий список (Select) */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 10px;
  color: #9999a3;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

select.form-input {
  cursor: pointer;
  font-weight: 500;
  padding-right: 40px;
  text-overflow: ellipsis;
}

/* Поле с иконкой рубля */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .form-input {
  padding-right: 40px;
}

.input-with-icon .input-icon {
  position: absolute;
  right: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #9999a3;
  pointer-events: none;
}

/* 3. КНОПКА ОТПРАВКИ */
.form-submit-btn {
  width: 100%;
  padding: 16px;
  background-color: #4e5bb5;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.form-submit-btn:hover {
  background-color: #1a233a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 91, 181, 0.3);
}

.form-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.form-submit-btn:disabled {
  background-color: #9999a3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Галочка согласия */
.agreement-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.agreement-checkbox-wrapper input {
  margin-top: 4px;
}

.agreement-text {
  font-size: 12px;
  color: #9999a3;
  line-height: 1.4;
}

.agreement-text a {
  color: #4e5bb5;
  text-decoration: underline;
}

/* Вывод ошибок */
.form-error-message {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* Класс блокировки скролла страницы */
body.modal-open {
  overflow: hidden;
}

.amount-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.amount-header-wrapper .form-label {
  margin-bottom: 0;
}

/* Бейдж "Максимум 10 имен" */
.names-limit-badge {
  background-color: rgba(78, 91, 181, 0.1);
  color: #4e5bb5;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Контейнер для иконки [?] */
.prices-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.prices-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #9999a3;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.3s ease;
}

/* --- ВСПЛЫВАЮЩЕЕ ОКНО С ЦЕНАМИ (ЛЕТИТ ВВЕРХ) --- */
.prices-dropdown {
  position: absolute;
  /* Возвращаем полет наверх, чтобы не перекрывать кнопку оплаты и не вызывать скролл */
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px); /* Анимация снизу-вверх */
  width: 280px;
  background-color: #1a233a;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15); /* Тень теперь падает наверх */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 100;
  pointer-events: none;
}

/* Треугольничек (хвостик) СНИЗУ тултипа, указывает на иконку */
.prices-dropdown::after {
  content: "";
  position: absolute;
  top: 100%; /* Прилипает к нижнему краю тултипа */
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  /* Цвет сверху, остальное прозрачное = треугольник смотрит вниз */
  border-color: #1a233a transparent transparent transparent;
}

.price-header {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.4;
  margin-bottom: 10px;
}

.price-item:last-child {
  margin-bottom: 0;
}

.price-item span {
  color: #ffffff;
  width: 70%;
}

.price-item b {
  color: #b8860b;
  text-align: right;
  width: 30%;
}

/* Анимация Тултипа */
.prices-tooltip-container:hover .prices-info-icon,
.prices-tooltip-container:active .prices-info-icon {
  background-color: #4e5bb5;
  transform: scale(1.1);
}

.prices-tooltip-container:hover .prices-dropdown,
.prices-tooltip-container:active .prices-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Всплывает на место */
}

/* =========================================
   4. АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 600px) {
  .custom-modal-dialog {
    padding: 30px 20px;
    margin: 0 10px;
    width: 100%;
  }
  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    gap: 10px;
  }
  .modal-title::before,
  .modal-title::after {
    width: 25px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-row .form-group:first-child {
    margin-bottom: 20px;
  }
  /* ТУЛТИП НА МОБИЛКАХ (Идеальное выравнивание вправо) */
  .prices-dropdown {
    left: auto;
    right: -15px; /* Ровно по правому краю инпута */
    transform: translateX(0) translateY(10px);
    width: 270px;
  }
  .prices-dropdown::after {
    left: auto;
    right: 17px; /* Хвостик указывает ровно на иконку [?] */
    transform: none;
  }
  .prices-tooltip-container:hover .prices-dropdown,
  .prices-tooltip-container:active .prices-dropdown {
    transform: translateX(0) translateY(0);
  }
  .amount-header-wrapper {
    flex-wrap: wrap;
    gap: 5px;
  }
}
/* =========================================
   4. АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================= */
@media (max-width: 600px) {
  .custom-modal-dialog {
    padding: 30px 20px;
    /* Уменьшаем боковые отступы на узком экране (10px вместо 20px) */
    width: calc(100% - 20px);
    margin: 20px auto; /* 20px сверху и снизу, auto по бокам */
  }
  /* ... остальной код в этом блоке (title, тултип и т.д.) оставляй как было ... */
}
/* =========================================
   ПРИКОЛЬНАЯ СТРАНИЦА 404
   ========================================= */
.error-page-wrapper {
  background-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 300px); /* Вычитаем высоту хедера и футера */
  padding: 60px 20px;
}

.error-404 {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* --- МАГИЯ ЦИФР 404 --- */
.error-digits-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.error-digit {
  font-family: "Cormorant Garamond", serif;
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  color: #4e5bb5; /* Очень светлый серый, чтобы не давило на глаза */
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  /* Анимация левитации */
  animation: floatDigit 6s ease-in-out infinite;
}

/* Центральный ноль: золотой акцент и другая фаза анимации */
.error-digit.zero {
  color: #4e5bb5;
  transform: scale(1.1);
  animation-delay: -3s; /* Качается в противофазе */
}

/* Ключевые кадры для левитации */
@keyframes floatDigit {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* --- ЗАГОЛОВОК И ТЕКСТ --- */
.error-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #1a233a;
  margin: 0;
}

.error-line {
  width: 60px;
  height: 3px;
  background-color: #4e5bb5;
  margin: 20px auto 30px;
  border-radius: 2px;
}

.error-content p {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* --- КНОПКА ВОЗВРАТА --- */
.error-actions {
  margin-top: 40px;
}

.btn-error-home {
  display: inline-block;
  padding: 16px 40px;
  background-color: #4e5bb5;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(78, 91, 181, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-error-home:hover {
  background-color: #1a233a; /* Твой темный цвет футера */
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(26, 35, 58, 0.3);
  color: #ffffff;
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
  .error-digit {
    font-size: 100px;
    gap: 5px;
  }
  .error-title {
    font-size: 1.8rem;
  }
  .error-content p {
    font-size: 1.05rem;
  }
}
/* =========================================
   НАВИГАТОР ТАИНСТВ (Сетка карточек)
   ========================================= */
.sacraments-hub-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* --- ШАПКА РАЗДЕЛА --- */
.sacraments-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Настраиваем заголовок как Flex-контейнер для линий */
.sacraments-main-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: #1a233a;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px; /* Отступ от букв до старта линий */
}

/* Декоративные линии */
.sacraments-main-title::before,
.sacraments-main-title::after {
  content: "";
  display: block;
  width: 60px; /* Фиксированная конечная ширина */
  height: 2px;
  background-color: #4e5bb5;
  flex-shrink: 0;
  /* Сжимаем линию в ноль с помощью scaleX */
  transform: scaleX(0);
  /* Настраиваем плавное раскрытие */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.3s;
}

/* ЛЕВАЯ линия прибита ПРАВЫМ краем к тексту.
   При анимации (от 0 до 1) она будет расти ВЛЕВО (наружу). */
.sacraments-main-title::before {
  transform-origin: right;
}

/* ПРАВАЯ линия прибита ЛЕВЫМ краем к тексту.
   При анимации она будет расти ВПРАВО (наружу). */
.sacraments-main-title::after {
  transform-origin: left;
}

/* Когда скрипт добавляет класс is-visible, линии вырастают до полного размера (1) */
.scroll-reveal.is-visible .sacraments-main-title::before,
.scroll-reveal.is-visible .sacraments-main-title::after {
  transform: scaleX(1);
}

.sacraments-subtitle {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .sacraments-main-title {
    font-size: 2rem;
    gap: 15px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
  }
  /* На телефоне уменьшаем ширину линии */
  .sacraments-main-title::before,
  .sacraments-main-title::after {
    width: 30px;
  }
}
/* --- СЕТКА КАРТОЧЕК --- */
.sacraments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- КАРТОЧКА --- */
.sacrament-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Анимация при скролле (карточки спрятаны внизу) */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(5px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Волна появления (Лесенка задержек) */
.sacraments-grid.is-visible .sacrament-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.sacraments-grid.is-visible .sacrament-card:nth-child(1) {
  transition-delay: 0s;
}

.sacraments-grid.is-visible .sacrament-card:nth-child(2) {
  transition-delay: 0.1s;
}

.sacraments-grid.is-visible .sacrament-card:nth-child(3) {
  transition-delay: 0.2s;
}

.sacraments-grid.is-visible .sacrament-card:nth-child(4) {
  transition-delay: 0.3s;
}

.sacraments-grid.is-visible .sacrament-card:nth-child(5) {
  transition-delay: 0.4s;
}

/* Ховер самой карточки (сброс задержек) */
.sacraments-grid.is-visible .sacrament-card:hover {
  transition-delay: 0s !important;
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(45, 65, 130, 0.15);
}

/* Фоновая картинка */
.sacrament-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.sacrament-card:hover .sacrament-bg {
  transform: scale(1.08);
}

/* Градиент */
.sacrament-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

/* Контент */
.sacrament-content {
  position: relative;
  z-index: 3;
  padding: 30px;
  color: #ffffff;
}

.sacrament-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.sacrament-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
}

.sacrament-link-text {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.sacrament-card:hover .sacrament-link-text {
  border-color: #ffffff;
  transform: translateX(5px);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1024px) {
  .sacraments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sacraments-hub-wrapper {
    margin: 40px auto;
  }
  .sacraments-main-title {
    font-size: 2rem;
    gap: 15px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
  }
  .scroll-reveal.is-visible .sacraments-main-title::before,
  .scroll-reveal.is-visible .sacraments-main-title::after {
    width: 30px;
  }
  .sacraments-subtitle {
    font-size: 1.05rem;
  }
  .sacraments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sacrament-card {
    height: 280px;
    border-radius: 16px;
  }
  .sacrament-content {
    padding: 20px 15px;
  }
  .sacrament-title {
    font-size: 1.5rem;
  }
  .sacraments-grid.is-visible .sacrament-card {
    transition-delay: 0s !important;
    transform: translateY(15px) scale(1);
  }
  .sacraments-grid.is-visible .sacrament-card:hover {
    transform: translateY(15px) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  .sacrament-card:hover .sacrament-bg,
  .sacrament-card:hover .sacrament-link-text {
    transform: none;
  }
}
/* =========================================
   ШАБЛОН СТРАНИЦЫ ТАИНСТВА (КНИЖНЫЙ СТИЛЬ)
   ========================================= */
.sacr-classic-wrapper {
  max-width: 1000px; /* Идеальная ширина для чтения */
  margin: 60px auto 100px;
  padding: 0 20px;
}

/* --- ЗАГОЛОВОК СТАТЬИ --- */
.sacr-classic-header {
  margin-bottom: 50px;
}

.sacr-classic-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a233a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.2;
  text-align: left; /* Строгий левый край */
}

/* Элегантная линия под заголовком */
.sacr-classic-line {
  width: 0; /* Для анимации */
  height: 2px;
  background-color: #4e5bb5;
  margin-top: 20px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible .sacr-classic-line {
  width: 120px; /* Вырастает под заголовком */
}

/* --- ТЕКСТ И ФОТО (Журнальное обтекание) --- */
.sacr-classic-content {
  position: relative;
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  text-align: justify; /* Ровные края текста */
}

/* Фотография, вырезанная в правый край текста (На ПК) */
.sacr-classic-image-wrap {
  float: right;
  width: 45%;
  max-width: 500px;
  margin: 10px 0 40px 50px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.sacr-classic-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4; /* Портретное соотношение для ПК */
  -o-object-fit: cover;
     object-fit: cover;
  filter: sepia(10%);
}

/* Текстовые абзацы */
.sacr-classic-text p {
  margin-bottom: 25px;
}

/* Классическая Буквица */
.sacr-classic-text p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif;
  float: left;
  font-size: 5.5rem;
  line-height: 0.85;
  margin: 8px 15px 0 0;
  color: #4e5bb5;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(78, 91, 181, 0.15);
}

/* Внутренние подзаголовки */
.sacr-classic-text h2,
.sacr-classic-text h3 {
  font-family: "Cormorant Garamond", serif;
  color: #1a233a;
  font-size: 2.2rem;
  margin: 60px 0 25px;
  font-weight: bold;
  text-align: left;
  clear: both; /* Очищаем обтекание, если заголовок наехал на фото */
}

/* --- КНОПКА --- */
.sacr-classic-action {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: flex-start; /* Кнопка по левому краю на ПК */
}

.sacr-classic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 45px;
  background-color: transparent;
  color: #4e5bb5;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 40px;
  border: 2px solid #4e5bb5;
  transition: all 0.3s ease;
}

.sacr-classic-btn:hover {
  background-color: #4e5bb5;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(78, 91, 181, 0.2);
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================= */
/* Для планшетов (чтобы фото не становилось слишком узким) */
@media (max-width: 1024px) {
  .sacr-classic-image-wrap {
    width: 50%;
    margin-left: 30px;
  }
}
/* Для телефонов */
@media (max-width: 768px) {
  .sacr-classic-wrapper {
    margin: 40px auto;
    padding: 0 15px;
  }
  .sacr-classic-title {
    font-size: 2.2rem;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.15;
  }
  .scroll-reveal.is-visible .sacr-classic-line {
    width: 80px;
  }
  /* ИДЕАЛЬНАЯ КАРТИНКА ДЛЯ МОБИЛКИ */
  .sacr-classic-image-wrap {
    float: none; /* ЖЕСТКО отключаем обтекание текстом */
    width: 100%; /* Картинка на всю ширину текстовой колонки */
    max-width: 100%;
    margin: 0 0 30px 0; /* Убираем левый отступ, оставляем только нижний */
    border-radius: 12px;
  }
  .sacr-classic-img {
    aspect-ratio: 4/3; /* Классический альбомный формат (не портрет) */
  }
  /* Текст на телефоне */
  .sacr-classic-content {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left; /* Убираем justify, чтобы не было дыр между словами */
  }
  .sacr-classic-text p:first-of-type::first-letter {
    font-size: 3.8rem;
    margin: 6px 12px 0 0;
    line-height: 0.8;
  }
  .sacr-classic-text h2,
  .sacr-classic-text h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
  }
  /* Кнопка на телефоне */
  .sacr-classic-action {
    margin-top: 40px;
    padding-top: 30px;
    justify-content: center; /* Центрируем кнопку */
  }
  .sacr-classic-btn {
    width: 100%; /* Растягиваем на всю ширину для удобного нажатия */
    box-sizing: border-box;
    padding: 16px 20px;
    text-align: center;
  }
}
/* =========================================
   ЯНДЕКС КАРТА (ШОРТКОД)
   ========================================= */
.hram-map-section {
  padding: 20px 20px 80px 20px; /* Отступы от новостей и до футера */
  background-color: transparent;
}

.hram-map-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Адрес под заголовком */
.hram-map-address {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #666;
  margin: -10px 0 0 0; /* Подтягиваем ближе к заголовку */
}

/* Обертка iframe (Круглые края + Тень) */
.hram-map-frame-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f0f0f0;
}

.hram-map-frame-wrapper iframe {
  display: block;
  width: 100% !important;
  height: 450px !important;
  border: none !important;
  outline: none !important;
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ КАРТЫ --- */
.scroll-reveal-map {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-map.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
  .hram-map-section {
    padding: 0 15px 60px 15px;
  }
  .hram-map-address {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 10px;
  }
  .hram-map-frame-wrapper {
    border-radius: 16px;
  }
  .hram-map-frame-wrapper iframe {
    height: 350px !important; /* Уменьшаем высоту на телефоне, чтобы палец не застрял */
  }
}
body {
  margin: 0 !important;
}

.entry-header, .entry-title {
  display: none !important;
}

.stretched-link a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

html {
  background-color: #FAFAF7 !important; /* ТВОЙ НУЖНЫЙ ЦВЕТ ЗДЕСЬ */
}

/* 2. Красим тело документа (перебивает 90% тем) */
body {
  background-color: #FAFAF7 !important;
}

/* 3. Очищаем все возможные белые "обертки", которые строит WordPress/Тема */
#page,
.site,
.site-main,
#content,
.site-content,
.search-content-area,
.article-container {
  background-color: transparent !important;
}

/* =========================================
   АНИМАЦИЯ ПРИ СКРОЛЛЕ (Scroll Reveal)
   ========================================= *//*# sourceMappingURL=test.css.map */