/* ==========================================================================
   Николаевский собор — UI system
   Tokens ↔ public/tailwind.config.js
   ========================================================================== */

:root {
  --color-bg-base: #fbfbf9;
  --color-surface: #ffffff;
  --color-text-primary: #2c3439;
  --color-text-secondary: #7a8794;
  --color-accent: #3a96a6;
  --color-accent-hover: #2b7380;
  --color-border-light: #e4e9ed;

  --font-display: 'Cormorant', Georgia, serif;
  --font-sans: 'Manrope', sans-serif;

  --radius-sm: 4px;
  --radius-lg: 12px;

  --section-y: 7.5rem; /* 120px */
  --header-h: 4.75rem;
  --hero-frame: 1rem;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.7s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-soft);
}

a:hover {
  color: var(--color-accent-hover);
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.section {
  padding-block: var(--section-y);
}

.section__label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section__lead {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

/* --- Buttons --- */
.btn-cathedral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background-color: var(--color-accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

.btn-cathedral:hover {
  color: #fff;
  background-color: var(--color-accent-hover);
}

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

.btn-cathedral--ghost {
  color: #fff;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-cathedral--ghost:hover {
  color: var(--color-text-primary);
  background-color: #fff;
  border-color: #fff;
}

.btn-cathedral--outline {
  color: var(--color-accent);
  background-color: transparent;
  border-color: var(--color-accent);
}

.btn-cathedral--outline:hover {
  color: #fff;
  background-color: var(--color-accent);
}

.btn-cathedral--light {
  color: var(--color-text-primary);
  background-color: var(--color-surface);
}

.btn-cathedral--light:hover {
  color: var(--color-text-primary);
  background-color: #f0f4f6;
}

/* --- Header --- */
.site-header {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  min-height: var(--header-h);
  border-radius: var(--radius-sm);
  transition: background-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft),
    backdrop-filter 0.35s var(--ease-soft), top 0.3s var(--ease-soft), left 0.3s var(--ease-soft),
    right 0.3s var(--ease-soft), border-radius 0.3s var(--ease-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding-inline: clamp(0.75rem, 2.5vw, 1.5rem);
}

.site-header__logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  text-decoration: none;
  transition: color 0.35s var(--ease-soft);
}

.site-header__logo span:last-child {
  font-weight: 500;
}

.site-header__logo:hover {
  color: #fff;
  opacity: 0.9;
}

.site-header__logo--dark {
  color: var(--color-text-primary);
}

.site-header__logo--dark:hover {
  color: var(--color-accent);
  opacity: 1;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease-soft);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.is-open > .nav-link {
  color: #fff;
}

.nav-caret {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-soft);
}

.nav-item.is-open .nav-caret,
.nav-item:hover .nav-caret {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 17rem;
  padding: 0.45rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(44, 52, 57, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.4rem);
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft),
    visibility 0.25s var(--ease-soft);
  z-index: 20;
}

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

.nav-dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: normal;
  transition: background-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}

.nav-dropdown a:hover {
  color: var(--color-accent);
  background: rgba(58, 150, 166, 0.08);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-hours + .phone-menu {
  margin-left: 0.75rem;
}

.phone-menu {
  position: relative;
}

.header-hours {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  pointer-events: none;
  user-select: none;
}

.header-hours__icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}

.header-hours__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.2;
}

.header-hours__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.88;
}

.header-hours__value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .header-hours {
    display: inline-flex;
  }
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
}

.site-header__phone:hover,
.phone-menu.is-open .site-header__phone {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.phone-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  min-width: 13.5rem;
  padding: 0.55rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(44, 52, 57, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft),
    visibility 0.25s var(--ease-soft);
}

.phone-menu.is-open .phone-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.phone-menu__label {
  display: block;
  padding: 0.35rem 0.75rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.phone-menu__dropdown a {
  display: block;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}

.phone-menu__dropdown a:hover {
  color: var(--color-accent);
  background: rgba(58, 150, 166, 0.08);
}

.mobile-nav__phones {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.mobile-nav__phones .btn-cathedral {
  width: 100%;
}

.site-header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.site-header__burger span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}

.site-header.is-scrolled,
.site-header--solid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--color-border-light);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled .site-header__inner,
.site-header--solid .site-header__inner {
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.site-header.is-scrolled .site-header__logo,
.site-header--solid .site-header__logo {
  color: var(--color-text-primary);
}

.site-header.is-scrolled .site-header__logo:hover,
.site-header--solid .site-header__logo:hover {
  color: var(--color-accent);
  opacity: 1;
}

.site-header.is-scrolled .nav-link,
.site-header--solid .nav-link {
  color: var(--color-text-secondary);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-item:hover > .nav-link,
.site-header.is-scrolled .nav-item.is-open > .nav-link,
.site-header--solid .nav-link:hover,
.site-header--solid .nav-item:hover > .nav-link,
.site-header--solid .nav-item.is-open > .nav-link {
  color: var(--color-accent);
}

.site-header.is-scrolled .site-header__phone,
.site-header--solid .site-header__phone {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.site-header.is-scrolled .header-hours,
.site-header--solid .header-hours {
  color: var(--color-text-primary);
  background: none;
  border: 0;
}

.site-header.is-scrolled .header-hours__label,
.site-header--solid .header-hours__label {
  color: var(--color-accent);
  opacity: 1;
}

.site-header.is-scrolled .header-hours__value,
.site-header--solid .header-hours__value {
  color: var(--color-text-primary);
}

.site-header.is-scrolled .site-header__phone:hover,
.site-header.is-scrolled .phone-menu.is-open .site-header__phone,
.site-header--solid .site-header__phone:hover,
.site-header--solid .phone-menu.is-open .site-header__phone {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.site-header.is-scrolled .site-header__burger,
.site-header--solid .site-header__burger {
  border-color: var(--color-border-light);
}

.site-header.is-scrolled .site-header__burger span,
.site-header--solid .site-header__burger span {
  background: var(--color-text-primary);
}

@media (min-width: 1100px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__burger {
    display: none;
  }
}

/* Mobile navigation drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 32, 0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(22rem, 100%);
  height: 100%;
  padding: 1.25rem 1.25rem 1.75rem;
  background: var(--color-bg-base);
  box-shadow: -12px 0 40px rgba(44, 52, 57, 0.16);
  transform: translateX(104%);
  transition: transform 0.4s var(--ease-soft);
}

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

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav__head .site-header__logo {
  flex: 1;
  min-width: 0;
}

.mobile-nav__hours {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.1rem;
  margin: 0;
  padding: 0 0.15rem;
  text-align: right;
  line-height: 1.15;
}

.mobile-nav__hours-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.mobile-nav__hours-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.mobile-nav__close {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-nav__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1.5px;
  background: var(--color-text-primary);
}

.mobile-nav__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  overflow: auto;
}

.mobile-nav__link,
.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 0.15rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
}

.mobile-nav__link:hover,
.mobile-nav__toggle:hover {
  color: var(--color-accent);
}

.mobile-nav__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-soft);
}

.mobile-nav__group.is-open .mobile-nav__chevron {
  transform: rotate(225deg);
}

.mobile-nav__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-soft);
}

.mobile-nav__group.is-open .mobile-nav__sub {
  max-height: 14rem;
}

.mobile-nav__sub a {
  display: block;
  padding: 0.7rem 0.15rem 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 233, 237, 0.7);
}

.mobile-nav__sub a:hover {
  color: var(--color-accent);
}

.mobile-nav__cta {
  margin-top: 1.5rem;
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

/* Mobile call — only after leaving hero */
.mobile-call {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  box-shadow: 0 8px 24px rgba(44, 52, 57, 0.18);
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.mobile-call.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .mobile-call {
    display: inline-flex;
  }
}

/* Inner pages */
.page {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: var(--section-y);
  min-height: 70vh;
}

.page__title {
  margin-bottom: 1rem;
}

.page__lead {
  max-width: 40rem;
  color: var(--color-text-secondary);
}

.page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 2.5rem;
}

.page__tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.page__tabs a:hover,
.page__tabs a.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Infocenter: news (MAX feed later) */
.news-feed {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .news-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .news-feed:not(.news-feed--home) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  height: 100%;
}

.news-card__media {
  display: block;
  overflow: hidden;
  background: #eef2f4;
}

.news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-soft);
}

.news-card__media:hover img {
  transform: scale(1.03);
}

.news-card--image-only {
  align-self: start;
  height: auto;
}

.news-card--image-only .news-card__media {
  background: var(--color-surface);
}

.news-card--image-only .news-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.news-card--image-only .news-card__media:hover img {
  transform: none;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.news-card__meta {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.news-card__excerpt {
  margin: 0 0 1.25rem;
  flex: 1;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.news-card__more {
  align-self: flex-start;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.news-pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-pagination__control,
.news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  color: var(--color-text-primary);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.news-pagination__page {
  min-width: 2.75rem;
  padding-inline: 0.65rem;
}

.news-pagination__control:hover,
.news-pagination__page:hover,
.news-pagination__page.is-active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.news-pagination__page.is-active {
  pointer-events: none;
}

.news-feed__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  background: rgba(58, 150, 166, 0.06);
  border: 1px solid rgba(58, 150, 166, 0.18);
  border-radius: var(--radius-sm);
}

.news-feed__empty {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--color-text-secondary);
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-lg);
}

.news-feed.is-empty .news-card {
  display: none;
}

.news-feed.is-empty .news-feed__empty {
  display: block;
}

/* Single news article */
.news-article {
  max-width: 48rem;
}

.news-article__meta {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.news-article__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.news-article__body {
  color: var(--color-text-primary);
}

.news-article__body p {
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.news-article__body p:last-child {
  margin-bottom: 0;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .news-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.news-gallery__item {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef2f4;
  cursor: zoom-in;
}

.news-gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-soft), opacity 0.3s var(--ease-soft);
}

.news-gallery__item:hover img {
  transform: scale(1.04);
}

.news-article__back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.news-article__back:hover {
  color: var(--color-accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 28, 32, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft), visibility 0.3s var(--ease-soft);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lightbox__prev {
  left: 0.5rem;
}

.lightbox__next {
  right: 0.5rem;
}

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .lightbox__prev {
    left: 0.25rem;
  }

  .lightbox__next {
    right: 0.25rem;
  }

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* Infocenter: announcements as images */
.announce-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .announce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.announce-card {
  margin: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.announce-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.announce-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.announce-card__caption {
  padding: 0.9rem 1.1rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.announce-grid__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  background: rgba(58, 150, 166, 0.06);
  border: 1px solid rgba(58, 150, 166, 0.18);
  border-radius: var(--radius-sm);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.section-heading__action {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .section-heading .section__lead {
    margin-bottom: 0;
  }
}

.announce-grid--home {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .announce-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .announce-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .announce-grid--home .announce-card img {
    aspect-ratio: 3 / 4;
  }
}

.news-feed--home {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-feed--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--hero-frame);
  background-color: var(--color-bg-base);
}

.hero__frame {
  position: relative;
  min-height: calc(100vh - var(--hero-frame) * 2);
  min-height: calc(100dvh - var(--hero-frame) * 2);
  border-radius: var(--radius-lg);
  background-color: #1a2226;
  touch-action: pan-y;
  user-select: none;
}

.hero__frame a,
.hero__frame button {
  user-select: auto;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 32, 0.55) 0%, rgba(20, 28, 32, 0.28) 42%, rgba(20, 28, 32, 0.66) 100%),
    linear-gradient(105deg, rgba(20, 28, 32, 0.72) 0%, rgba(20, 28, 32, 0.38) 40%, rgba(20, 28, 32, 0.18) 72%);
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(2.25rem, 5vh, 3.5rem);
  color: #fff;
  pointer-events: none;
  touch-action: pan-y;
}

.hero__content .btn-cathedral,
.hero__content a {
  pointer-events: auto;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6.2vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  max-width: 26ch;
}

.hero__title {
  margin: 0 0 0.75rem;
  max-width: 28ch;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero__meta {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.hero__text {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.hero__content .hero__note {
  display: inline-flex;
  margin-top: 1.15rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero__content .hero__notes .hero__note {
  margin-top: 0;
}

.hero__content .hero__note:hover {
  color: #fff;
}

@media (min-width: 768px) {
  :root {
    --hero-frame: 1.25rem;
  }

  .hero__content {
    justify-content: center;
    padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 6vh, 4rem);
  }
}

@media (max-width: 767.98px) {
  :root {
    --hero-frame: 0.65rem;
    --header-h: 3.75rem;
  }

  .hero__frame {
    min-height: calc(100svh - var(--hero-frame) * 2);
  }

  .hero__content {
    justify-content: flex-end;
    padding: 5rem 1.1rem 2.25rem;
  }

  .hero__brand {
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }

  .hero__title {
    font-size: 1rem;
    max-width: 22ch;
  }

  .hero__text {
    display: none;
  }

  .hero__actions {
    gap: 0.55rem;
  }

  .hero__actions .btn-cathedral {
    min-height: 2.65rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
  }

  .site-header {
    top: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
  }

  .site-header__logo {
    font-size: 0.98rem;
  }
}

/* --- Quick Look --- */
/* Weekly A4 schedule sheet */
.schedule-week {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 992px) {
  .schedule-week--home {
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
  }
}

.schedule-sheet {
  margin: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(44, 52, 57, 0.06);
}

.schedule-sheet a,
.schedule-sheet__zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.schedule-sheet img {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #f3f5f6;
}

.schedule-sheet__pdf-preview,
.schedule-sheet__pdf-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 210 / 297;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #f3f5f6;
  pointer-events: none;
}

.schedule-sheet__pdf-placeholder {
  flex-direction: column;
  gap: 0.85rem;
  min-height: 18rem;
  color: var(--color-text-secondary);
}

.schedule-sheet__pdf-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 3rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}

.schedule-sheet--home img {
  max-height: none;
  object-fit: contain;
}

.schedule-sheet--home .schedule-sheet__zoom {
  position: relative;
}

@media (min-width: 992px) {
  .schedule-sheet--home {
    width: 100%;
    max-width: 36rem;
    justify-self: end;
  }

  .schedule-sheet--home .schedule-sheet__hint {
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .schedule-sheet--home .schedule-sheet__zoom:hover .schedule-sheet__hint,
  .schedule-sheet--home .schedule-sheet__zoom:focus-visible .schedule-sheet__hint {
    opacity: 1;
  }
}

.schedule-week__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.schedule-week__period {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.schedule-week__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.schedule-archive {
  margin-top: 3.5rem;
}

.schedule-archive__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 600;
}

.schedule-archive__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .schedule-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.schedule-archive__item {
  margin: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.schedule-archive__item .schedule-sheet {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.schedule-archive__item a,
.schedule-archive__item .schedule-sheet__zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.schedule-archive__item img {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #f3f5f6;
}

.schedule-archive__caption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.schedule-note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  background: rgba(58, 150, 166, 0.06);
  border: 1px solid rgba(58, 150, 166, 0.18);
  border-radius: var(--radius-sm);
}

/* --- Services (Требы) --- */
.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.service-card:hover {
  border-color: #c5d3d9;
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0 0 0.75rem;
}

.service-card p {
  margin: 0 0 1.5rem;
  flex-grow: 1;
  color: var(--color-text-secondary);
}

.service-card__accent {
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--color-accent);
}

/* --- Architecture / Parallax --- */
.architecture {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 70vh, 40rem);
  border-radius: 0;
}

.architecture__media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

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

.architecture__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(251, 251, 249, 0.15) 0%,
    rgba(20, 28, 32, 0.35) 45%,
    rgba(20, 28, 32, 0.62) 100%
  );
}

.architecture__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(2rem, 6vw, 4rem);
  color: #fff;
}

.architecture__content h2 {
  max-width: 16ch;
  color: #fff;
  margin: 0 0 0.75rem;
}

.architecture__content p {
  max-width: 32rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
  .architecture {
    min-height: 22rem;
  }

  .architecture__media {
    inset: 0;
    transform: none !important;
  }
}

/* --- Footer --- */
.site-footer {
  padding-block: 4rem 2.5rem;
  background: #eef2f4;
  border-top: 1px solid var(--color-border-light);
}

.site-footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

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

.site-footer__list li + li {
  margin-top: 0.5rem;
}

.site-footer__list a {
  color: var(--color-text-secondary);
}

.site-footer__list a:hover {
  color: var(--color-accent);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}

.site-footer__social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.map-stub {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(58, 150, 166, 0.12), rgba(251, 251, 249, 0.9)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(228, 233, 237, 0.9) 27px,
      rgba(228, 233, 237, 0.9) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 27px,
      rgba(228, 233, 237, 0.9) 27px,
      rgba(228, 233, 237, 0.9) 28px
    );
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.map-stub__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(44, 52, 57, 0.08);
}

.footer-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 14rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: #e8eef1;
}

.footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-map .map-pin--footer .map-pin__marker {
  width: 3rem;
  height: 3.95rem;
  margin-left: -1.5rem;
}

.footer-map .map-pin--footer .map-pin__label {
  bottom: 4.35rem;
  max-width: 9.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.footer-map__route {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* --- Contacts page --- */
.page--contacts {
  position: relative;
  overflow: hidden;
}

.page--contacts::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: min(28rem, 55vh);
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(58, 150, 166, 0.14), transparent 70%),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(58, 150, 166, 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page--contacts > .container {
  position: relative;
  z-index: 1;
}

.contacts-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.contacts-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 768px) {
  .contacts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

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

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 252, 0.98)),
    var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.contact-card:hover {
  border-color: #c5d3d9;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(44, 52, 57, 0.06);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
  background: rgba(58, 150, 166, 0.1);
  border-radius: var(--radius-sm);
}

.contact-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.contact-card__text {
  margin: 0 0 1.35rem;
  flex-grow: 1;
  color: var(--color-text-secondary);
  font-size: 0.975rem;
}

.contact-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-card__list a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.contact-card__list a:hover {
  color: var(--color-accent);
}

.contact-card__link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-card__action {
  align-self: flex-start;
  margin-top: auto;
}

.contacts-map {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.contacts-map__head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .contacts-map__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.contacts-map__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.contacts-map__address {
  margin: 0;
  color: var(--color-text-secondary);
}

.contacts-map__route {
  flex-shrink: 0;
}

.contacts-map__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(18rem, 48vw, 28rem);
  border-radius: var(--radius-sm);
  background: #e8eef1;
}

.contacts-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
  height: 0;
  pointer-events: none;
}

.map-pin__marker {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: 4rem;
  height: 5.25rem;
  margin-left: -2rem;
  transform-origin: 50% 100%;
  pointer-events: auto;
  filter: drop-shadow(0 10px 18px rgba(43, 115, 128, 0.35));
  transition: transform 0.35s var(--ease-soft);
  animation: map-pin-settle 0.9s var(--ease-soft) both;
}

.map-pin__marker:hover {
  transform: translateY(-4px) scale(1.04);
}

.map-pin__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map-pin__body {
  fill: var(--color-accent);
}

.map-pin__disc {
  fill: #fff;
}

.map-pin__cross {
  stroke: var(--color-accent);
}

.map-pin__shadow {
  fill: rgba(44, 52, 57, 0.22);
  animation: map-pin-shadow 2.4s var(--ease-soft) infinite;
}

.map-pin__label {
  position: absolute;
  left: 50%;
  bottom: 5.6rem;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(44, 52, 57, 0.12);
  animation: map-pin-label 0.8s var(--ease-soft) 0.15s both;
}

.map-pin__pulse {
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.875rem;
  border-radius: 50%;
  background: rgba(58, 150, 166, 0.28);
  animation: map-pin-pulse 2.4s var(--ease-soft) infinite;
}

@keyframes map-pin-settle {
  from {
    opacity: 0;
    transform: translateY(-1.25rem) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes map-pin-label {
  from {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes map-pin-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.7;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes map-pin-shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(1.18);
    opacity: 0.28;
  }
}

@media (max-width: 575.98px) {
  .map-pin__label {
    white-space: normal;
    width: max-content;
    max-width: 11.5rem;
    text-align: center;
    font-size: 0.92rem;
  }

  .map-pin__marker {
    width: 3.5rem;
    height: 4.6rem;
    margin-left: -1.75rem;
  }

  .map-pin__label {
    bottom: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin__marker,
  .map-pin__label,
  .map-pin__pulse,
  .map-pin__shadow {
    animation: none !important;
  }
}

/* --- Clergy page --- */
.page--clergy {
  position: relative;
  overflow: hidden;
}

.page--clergy::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: min(26rem, 50vh);
  background:
    radial-gradient(ellipse 65% 55% at 8% 0%, rgba(58, 150, 166, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 10%, rgba(58, 150, 166, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page--clergy > .container {
  position: relative;
  z-index: 1;
}

.clergy-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.clergy-grid {
  margin-top: 0;
}

.clergy-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.clergy-card:hover {
  border-color: #c5d3d9;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(44, 52, 57, 0.06);
}

.clergy-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e8f1f3;
}

.clergy-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease-soft);
}

.clergy-card:hover .clergy-card__photo img {
  transform: scale(1.03);
}

.clergy-card__body {
  padding: 1rem 0.95rem 1.15rem;
}

.clergy-card__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.25;
}

.clergy-card__role {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .clergy-card,
  .clergy-card__photo img {
    transition: none !important;
  }
}

/* --- Content page (rich article example) --- */
.content-page {
  max-width: 48rem;
}

.content-page__body {
  margin-top: 0.5rem;
}

.content-page__body p,
.content-block__lead {
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.content-page__body h2,
.content-block__title {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.content-page__body ul {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.content-page__body li + li {
  margin-top: 0.4rem;
}

.content-page__body blockquote {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, rgba(58, 150, 166, 0.08), rgba(251, 251, 249, 0.6));
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--color-border-light);
}

.content-block__title {
  margin-top: 0;
}

.content-block .news-gallery {
  margin-top: 0.5rem;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.doc-list__item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.doc-list__item:hover {
  color: inherit;
  border-color: #c5d3d9;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(44, 52, 57, 0.06);
}

.doc-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: rgba(58, 150, 166, 0.1);
  border-radius: var(--radius-sm);
}

.doc-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.doc-list__name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.doc-list__type {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.embed-frame,
.video-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: #e8eef1;
}

.embed-frame {
  height: clamp(14rem, 36vw, 18rem);
}

.embed-frame iframe,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed {
  aspect-ratio: 16 / 9;
  height: auto;
}

/* --- Rites / tainstva hub --- */
.page--rites {
  position: relative;
  overflow: hidden;
}

.page--rites::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: min(26rem, 50vh);
  background:
    radial-gradient(ellipse 65% 55% at 10% 0%, rgba(58, 150, 166, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 8%, rgba(58, 150, 166, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page--rites > .container {
  position: relative;
  z-index: 1;
}

.rites-intro {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.rite-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .rite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .rite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rite-card--wide {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'index title more'
      'index text more';
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.35rem;
  }

  .rite-card--wide .rite-card__index {
    grid-area: index;
    margin-bottom: 0;
  }

  .rite-card--wide .rite-card__title {
    grid-area: title;
    margin-bottom: 0;
  }

  .rite-card--wide .rite-card__text {
    grid-area: text;
    margin-bottom: 0;
    max-width: 46rem;
  }

  .rite-card--wide .rite-card__more {
    grid-area: more;
    margin-top: 0;
    justify-self: end;
  }
}

.rite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96)),
    var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.rite-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-soft);
}

.rite-card:hover,
.rite-card:focus-visible {
  color: inherit;
  border-color: #c5d3d9;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(44, 52, 57, 0.07);
}

.rite-card:hover::after,
.rite-card:focus-visible::after {
  transform: scaleY(1);
}

.rite-card__index {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.rite-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.rite-card__text {
  margin: 0 0 1.25rem;
  flex-grow: 1;
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.rite-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}

.rite-card__more::after {
  content: '→';
  transition: transform 0.3s var(--ease-soft);
}

.rite-card:hover .rite-card__more,
.rite-card:focus-visible .rite-card__more {
  color: var(--color-accent-hover);
  gap: 0.65rem;
}

.rite-card:hover .rite-card__more::after,
.rite-card:focus-visible .rite-card__more::after {
  transform: translateX(3px);
}

.rites-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(58, 150, 166, 0.08);
  border-radius: var(--radius-lg);
}

.rites-note p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .rites-note {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.rite-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.rite-related {
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border-light);
}

.rite-related__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.rite-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rite-related__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.rite-related__link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .rite-card,
  .rite-card::after,
  .rite-card__more,
  .rite-card__more::after {
    transition: none !important;
  }
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* --- Reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

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

  .reveal,
  .hero__media img,
  .service-card,
  .contact-card {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .architecture__media {
    transform: none !important;
  }
}

/* --- First visit / FAQ --- */
.page--faq {
  position: relative;
  overflow: hidden;
}

.page--faq::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: min(24rem, 48vh);
  background:
    radial-gradient(ellipse 65% 55% at 12% 0%, rgba(58, 150, 166, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 10%, rgba(58, 150, 166, 0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page--faq > .container {
  position: relative;
  z-index: 1;
}

.faq-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-soft);
}

.faq-item[open] {
  border-color: #c5d3d9;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '';
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.15rem;
  border-right: 1.7px solid var(--color-accent);
  border-bottom: 1.7px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-soft);
}

.faq-item[open] .faq-item__question::after {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-item__answer p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  max-width: 48rem;
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border-light);
}

.faq-cta p {
  margin: 0;
  max-width: 32rem;
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

.faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.first-visit-teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(58, 150, 166, 0.1), rgba(251, 251, 249, 0.4)),
    var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.first-visit-teaser h2 {
  margin: 0 0 0.65rem;
}

.first-visit-teaser .section__lead {
  margin: 0;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .first-visit-teaser {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .first-visit-teaser .btn-cathedral {
    flex-shrink: 0;
  }
}

#schedule,
#services,
#parish,
#about,
#visit {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.home-announcements {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.home-announcements__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
}

.home-announcements__more {
  font-size: 0.9375rem;
  font-weight: 600;
}

.home-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.contacts-map__hours {
  margin: 0.35rem 0 0;
  color: var(--color-text-secondary);
}

.contacts-map__phones {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.contacts-map__phones a {
  font-weight: 600;
  color: var(--color-text-primary);
}

.contacts-map__phones a:hover {
  color: var(--color-accent);
}

.contacts-map__phones span {
  color: var(--color-text-secondary);
}

.clergy-card--home .clergy-card__name {
  margin-bottom: 0;
}
