﻿@font-face {
  font-family: "Gilroy";
  src: url("../fonts/gilroy/gilroy-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/gilroy/gilroy-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/gilroy/gilroy-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather/merriweather-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather/merriweather-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/merriweather/merriweather-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nexa Script";
  src: url("../fonts/nexascript/nexascript-light.woff2") format("woff2"),
    url("../fonts/nexascript/nexascript-light.woff") format("woff"),
    url("../fonts/nexascript/nexascript-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-warm-milk: #f7f1e7;
  --color-ivory: #fff9ef;
  --color-paper: #efe5d3;
  --color-old-gold: #a77a1d;
  --color-soft-gold: #d7b56d;
  --color-wood: #7a4d25;
  --color-dark-wood: #3f2c1f;
  --color-graphite: #2e2a25;
  --color-warm-gray: #8a8175;
  --color-sky: #b9d1df;

  --font-heading: "Merriweather", Georgia, serif;
  --font-body: "Gilroy", Arial, sans-serif;
  --font-script: "Nexa Script", "Segoe Script", cursive;

  --radius-md: 8px;
  --shadow-soft: 0 18px 50px rgba(63, 44, 31, 0.12);
  --shadow-subtle: 0 8px 24px rgba(63, 44, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--color-graphite);
  font-family: var(--font-body);
  background: var(--color-warm-milk);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(167, 122, 29, 0.42);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.82) 0%, rgba(255, 249, 239, 0.52) 27%, rgba(255, 249, 239, 0.08) 54%, rgba(255, 249, 239, 0) 100%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.08) 0%, rgba(63, 44, 31, 0.08) 100%),
    url("../img/home/hero-church-garden-desktop-before-entrance-detail.webp");
  background-position: center top;
  background-size: cover;
}

.hero-screen::before {
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  content: "";
  background: linear-gradient(180deg, rgba(63, 44, 31, 0) 0%, rgba(63, 44, 31, 0.18) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 18% 26%, rgba(255, 249, 239, 0.62) 0 10%, transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.08) 0%, transparent 46%, rgba(63, 44, 31, 0.08) 100%);
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 38px;
  align-items: center;
  width: min(91vw, 1360px);
  margin: 0 auto;
  padding: 22px 0 0;
}

.brand {
  display: inline-flex;
  width: 124px;
  height: 124px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: visible;
}

.brand img {
  width: 112%;
  height: 112%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 2px;
  color: var(--color-dark-wood);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-old-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: var(--color-old-gold);
}

.main-nav a.active {
  color: var(--color-old-gold);
}

.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid rgba(122, 77, 37, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.62);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-wood);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

body.is-site-menu-open {
  overflow: hidden;
}

body.is-site-menu-open::before {
  position: fixed;
  inset: 0;
  z-index: 70;
  content: "";
  background: rgba(255, 249, 239, 0.68);
  backdrop-filter: blur(10px);
}

body.is-site-menu-open .site-header {
  z-index: 90;
}

body.is-site-menu-open .section-dots {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(330px, 500px) 1fr;
  gap: 30px;
  align-items: center;
  width: min(91vw, 1360px);
  min-height: calc(100vh - 145px);
  margin: 0 auto;
  padding: 8px 0 150px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: start;
  width: min(100%, 560px);
  margin-top: 116px;
  padding-bottom: 0;
}

.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(30px, 2.35vw, 38px);
  line-height: 1.28;
}

.hero-copy h1 span:last-child {
  white-space: normal;
}

.ornament {
  position: relative;
  display: grid;
  grid-template-columns: 96px 30px 96px;
  gap: 12px;
  align-items: center;
  width: 246px;
  margin: 0 auto 30px;
  color: var(--color-soft-gold);
}

.ornament span {
  position: relative;
  z-index: 1;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(215, 181, 109, 0.82) 18%, currentColor 50%, rgba(215, 181, 109, 0.82) 82%, transparent);
  opacity: 0.9;
}

.ornament span::after {
  position: absolute;
  top: 50%;
  content: "";
  background: currentColor;
  transform: translateY(-50%);
}

.ornament span::after {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  opacity: 0.9;
  transform: translateY(-50%) rotate(45deg);
}

.ornament span:first-child::after {
  right: -9px;
}

.ornament span:last-child::after {
  left: -9px;
}

.ornament i {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 34px;
}

.ornament i::before,
.ornament i::after,
.ornament::before,
.ornament::after {
  position: absolute;
  content: "";
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(215, 181, 109, 0.3);
}

.ornament i::before {
  top: 2px;
  left: 14px;
  width: 2px;
  height: 29px;
}

.ornament i::after {
  top: 13px;
  left: 5px;
  width: 20px;
  height: 2px;
}

.ornament::before {
  z-index: 3;
  top: 8px;
  left: calc(50% - 6px);
  width: 12px;
  height: 2px;
}

.ornament::after {
  z-index: 3;
  top: 23px;
  left: calc(50% - 6px);
  width: 12px;
  height: 2px;
  transform: rotate(-18deg);
  transform-origin: center;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.35vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

h1 span:last-child {
  white-space: nowrap;
}

.lead {
  max-width: 420px;
  margin: 34px 0 0;
  color: rgba(63, 44, 31, 0.74);
  font-size: 18px;
  line-height: 1.66;
}

.lead span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 500px;
  margin-top: 48px;
}

.button {
  display: inline-flex;
  min-width: 212px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(180deg, #9d7419, #805b08);
  color: var(--color-ivory);
  box-shadow: 0 16px 34px rgba(99, 68, 11, 0.2);
}

.button-primary:hover {
  background: linear-gradient(180deg, #ad8428, #8b650f);
}

.button-secondary {
  border: 1px solid rgba(122, 77, 37, 0.38);
  background: rgba(255, 249, 239, 0.52);
  color: var(--color-wood);
}

.button-secondary:hover {
  border-color: rgba(167, 122, 29, 0.68);
  background: rgba(255, 249, 239, 0.78);
}

.section-dots {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 8px;
  border: 1px solid rgba(122, 77, 37, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.72);
  box-shadow: 0 12px 28px rgba(63, 44, 31, 0.18);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.section-dots a {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(82, 54, 30, 0.68);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.92);
  box-shadow: 0 1px 4px rgba(63, 44, 31, 0.2);
}

.section-dots a.active {
  height: 34px;
  border-color: rgba(82, 54, 30, 0.74);
  border-radius: 999px;
  background: linear-gradient(180deg, #b98921, #74500a);
}

.quick-panel {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(86vw, 1180px);
  margin: 0 auto;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.quick-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  min-height: 98px;
  padding: 19px 26px 17px;
  color: var(--color-dark-wood);
  transition: background-color 180ms ease;
}

.quick-link + .quick-link {
  border-left: 1px solid rgba(167, 122, 29, 0.22);
}

.quick-link:hover {
  background: rgba(247, 241, 231, 0.72);
}

.quick-icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  color: var(--color-old-gold);
}

.quick-icon svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.quick-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.quick-icon-hands {
  margin-top: 0;
}

.quick-icon-question {
  margin-top: 0;
}

.quick-link strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-link small {
  display: block;
  max-width: 190px;
  color: rgba(63, 44, 31, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 92px 1fr auto;
  }

  .brand {
    width: 88px;
    height: 88px;
  }

  .main-nav {
    justify-content: flex-end;
    gap: 18px;
    font-size: 12px;
  }

  .hero-grid {
    grid-template-columns: minmax(330px, 460px) 1fr;
    padding-bottom: 168px;
  }

  .hero-copy {
    width: min(100%, 500px);
    margin-top: 84px;
  }

  .hero-copy h1 {
    max-width: 500px;
    font-size: clamp(30px, 3vw, 36px);
    line-height: 1.26;
  }

  .lead {
    max-width: 390px;
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 38px;
  }

  .hero-actions .button {
    min-width: 194px;
    min-height: 54px;
    padding: 0 20px;
    font-size: 14px;
  }

  .quick-link {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 20px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 92px 1fr 48px;
    width: calc(100vw - 40px);
  }

  .main-nav {
    display: none;
  }

  .site-header.is-menu-open .main-nav {
    position: fixed;
    top: clamp(112px, 15svh, 148px);
    right: 50%;
    left: auto;
    z-index: 100;
    display: grid;
    width: min(520px, calc(100vw - 40px));
    max-height: calc(100svh - 136px);
    overflow-y: auto;
    justify-content: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(167, 122, 29, 0.22);
    border-radius: var(--radius-md);
    color: var(--color-dark-wood);
    background: rgba(255, 249, 239, 0.98);
    box-shadow: 0 24px 56px rgba(63, 44, 31, 0.16);
    font-size: 14px;
    transform: translateX(50%);
  }

  .site-header.is-menu-open .main-nav > a,
  .site-header.is-menu-open .nav-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 6px;
    white-space: normal;
  }

  .site-header.is-menu-open .main-nav > a:hover,
  .site-header.is-menu-open .nav-dropdown > a:hover {
    background: rgba(215, 181, 109, 0.14);
  }

  .site-header.is-menu-open .main-nav a::after {
    display: none;
  }

  .site-header.is-menu-open .nav-dropdown {
    display: grid;
    gap: 0;
    padding: 0;
  }

  .site-header.is-menu-open .nav-dropdown::after {
    display: none;
  }

  .site-header.is-menu-open .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header.is-menu-open .nav-dropdown-menu a {
    padding: 9px 12px;
    color: rgba(63, 44, 31, 0.72);
    white-space: normal;
  }

  .site-header.is-menu-open .main-nav > a:not(:last-child),
  .site-header.is-menu-open .nav-dropdown {
    border-bottom: 1px solid rgba(167, 122, 29, 0.12);
  }

  .menu-button {
    display: block;
    grid-column: 3;
    justify-self: end;
    margin-right: 0;
  }
}

@media (min-width: 1400px) and (max-height: 950px) {
  .hero-screen {
    background-position: center top;
    background-size: cover;
  }

  .hero-copy {
    margin-top: 86px;
  }

  .quick-panel {
    bottom: 18px;
  }
}

@media (min-width: 921px) and (max-height: 820px) {
  .hero-copy {
    margin-top: 52px;
  }

  .ornament {
    margin-bottom: 22px;
  }

  .lead {
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .quick-panel {
    bottom: 14px;
  }
}

@media (max-width: 920px) {
  .hero-screen {
    min-height: 100svh;
    overflow-y: auto;
  }

  .site-shell {
    overflow: visible;
  }

  .site-header {
    grid-template-columns: 78px 1fr 48px;
    padding-top: 20px;
  }

  .brand {
    width: 76px;
    height: 76px;
  }

  .hero-grid {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 34px 0 28px;
  }

  .hero-copy {
    width: min(100%, 480px);
    margin-top: 0;
    padding-bottom: 0;
  }

  .hero-copy h1 {
    max-width: 480px;
    font-size: clamp(30px, 4.6vw, 36px);
    line-height: 1.24;
  }

  .lead {
    max-width: 420px;
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.62;
  }

  .hero-actions {
    max-width: 440px;
    gap: 14px;
    margin-top: 36px;
  }

  .hero-actions .button {
    flex: 1 1 190px;
    min-width: 0;
  }

  .quick-panel {
    position: relative;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(91vw, 680px);
    margin: 0 auto 24px;
  }

  .quick-link {
    min-height: 104px;
  }

  .quick-link + .quick-link {
    border-left: 0;
  }

  .quick-link:nth-child(even) {
    border-left: 1px solid rgba(167, 122, 29, 0.22);
  }

  .quick-link:nth-child(n + 3) {
    border-top: 1px solid rgba(167, 122, 29, 0.22);
  }

  .section-dots {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header.is-menu-open .main-nav {
    top: 108px;
    width: calc(100vw - 40px);
    max-height: calc(100svh - 124px);
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .hero-screen {
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.74) 38%, rgba(255, 249, 239, 0.18) 70%),
      url("../img/home/hero-church-garden.webp");
    background-position: center;
    background-size: cover;
  }

  .site-header,
  .hero-grid {
    width: calc(100vw - 40px);
  }

  .ornament {
    margin-bottom: 20px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.28;
  }

  .lead {
    max-width: 100%;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 30px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 58px;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    width: calc(100vw - 40px);
  }

  .quick-link {
    grid-template-columns: 58px 1fr;
    min-height: 94px;
    padding: 18px;
  }

  .quick-link:nth-child(even) {
    border-left: 0;
  }

  .quick-link:nth-child(n + 2) {
    border-top: 1px solid rgba(167, 122, 29, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: #fff;
  }

  .site-header,
  .worship-breadcrumbs,
  .week-switcher a,
  .week-switcher span::after,
  .print-schedule,
  .worship-fast-banner,
  .worship-filter-bar,
  .worship-current-badge,
  .worship-service-line > img,
  .communion-accent,
  .communion-diary,
  .worship-schedule-screen::before {
    display: none !important;
  }

  .inner-page,
  .worship-schedule-screen {
    min-height: 0;
    background: #fff;
  }

  .worship-schedule-screen {
    padding: 0 !important;
  }

  .worship-schedule-hero {
    margin-bottom: 18px !important;
    padding: 0 !important;
  }

  .worship-schedule-hero,
  .worship-week {
    width: 100% !important;
  }

  .worship-title-block {
    padding: 0 0 14px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .worship-title-block h1 {
    margin: 0 !important;
    max-width: none !important;
    text-align: center !important;
  }

  .schedule-toolbar {
    display: block !important;
    margin-top: 8px !important;
  }

  .week-switcher {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .week-switcher span {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    color: #3f2c1f !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  .worship-title-block,
  .worship-date-card {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .worship-week {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .worship-date-card {
    display: grid !important;
    min-height: 0 !important;
    border: 1.5pt solid #d8c8aa !important;
    border-radius: 10px !important;
    background: #fff9ef !important;
    overflow: hidden !important;
  }

  .worship-date-card.sunday {
    border-color: #d9aaa3 !important;
    background: #fff9ef !important;
  }

  .worship-date-head,
  .worship-date-card.sunday .worship-date-head {
    min-height: 0 !important;
    padding: 16px 18px 14px !important;
    border-bottom: 1pt solid #d8c8aa !important;
    background: #f7f1e7 !important;
  }

  .worship-service-groups {
    padding: 0 18px 18px !important;
  }

  .worship-service-line {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }
}

.contacts-page {
  min-height: 100vh;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.94) 0%, rgba(247, 241, 231, 0.98) 58%, #efe5d3 100%),
    url("../img/hero-church-garden-wide.png");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.contacts-screen {
  position: relative;
  min-height: 100vh;
  padding-bottom: 64px;
  overflow-x: hidden;
}

.contacts-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.96) 0%, rgba(255, 249, 239, 0.84) 45%, rgba(255, 249, 239, 0.62) 100%),
    linear-gradient(180deg, rgba(247, 241, 231, 0.3) 0%, rgba(239, 229, 211, 0.88) 100%);
  pointer-events: none;
}

.contacts-header,
.contacts-breadcrumbs,
.contacts-main {
  position: relative;
  z-index: 2;
}

.contacts-header {
  z-index: 20;
}

.contacts-breadcrumbs {
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding-top: 28px;
}

.contacts-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding: 52px 0 0;
}

.contacts-left {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 28px;
}

.contacts-intro {
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: rgba(63, 44, 31, 0.58);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--color-wood);
  transition: color 180ms ease;
}

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

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

.breadcrumbs.contacts-breadcrumbs {
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.contacts-card {
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.address-card {
  display: grid;
  gap: 22px;
  padding: 30px;
}

.contact-block {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.2);
}

.contact-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  color: var(--color-old-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-block strong,
.contact-block a,
.contact-list a {
  color: var(--color-dark-wood);
  font-size: 18px;
  line-height: 1.38;
}

.contact-block a,
.contact-list a {
  transition: color 180ms ease;
}

.contact-list a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.contact-list svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list .vk-icon {
  fill: none;
  stroke: currentColor;
}

.contact-list a[href*="vk.com"] .vk-icon {
  width: 24px;
  height: 16px;
  margin-left: -3px;
  margin-right: 0;
}

.contact-block a:hover,
.contact-list a:hover {
  color: var(--color-old-gold);
}

.contact-phones {
  align-items: start;
}

.map-panel {
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.92);
  box-shadow: var(--shadow-soft);
}

.map-frame {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(239, 229, 211, 0.82)),
    url("../img/hero-church-garden-wide.png");
  background-position: center;
  background-size: cover;
}

.embedded-map,
.map-frame iframe,
.map-frame > div,
.DGWidgetLoader__result {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embedded-map {
  display: block;
  color: var(--color-ivory);
}

.embedded-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96);
}

.DGWidgetLoader__result iframe {
  width: 100% !important;
  height: 100% !important;
}

.map-frame .dg-widget-link,
.map-frame noscript a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--color-dark-wood);
  font-weight: 700;
  text-align: center;
}

.map-frame .dg-widget-link {
  z-index: 1;
  text-decoration: none;
}

.map-frame .DGWidgetLoader__result:not(:empty) {
  z-index: 2;
}

.contacts-side {
  display: grid;
  gap: 28px;
}

.connection-card,
.requisites-card {
  padding: 30px;
}

.contacts-card h2 {
  margin: 10px 0 20px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 25px;
  line-height: 1.28;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.requisites-card p {
  margin: 0 0 22px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 16px;
  line-height: 1.58;
}

.requisites-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.requisites-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(167, 122, 29, 0.18);
}

.requisites-list dt {
  color: var(--color-warm-gray);
  font-size: 14px;
}

.requisites-list dd {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-right: 30px;
  color: var(--color-dark-wood);
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.copy-requisite {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 7px;
  color: rgba(122, 77, 37, 0.72);
  background: rgba(255, 249, 239, 0.74);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.copy-requisite svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-requisite:hover,
.copy-requisite:focus-visible {
  color: var(--color-old-gold);
  border-color: rgba(167, 122, 29, 0.42);
  background: rgba(255, 249, 239, 0.96);
}

.copy-requisite.copied {
  color: #3f6f3b;
  border-color: rgba(63, 111, 59, 0.35);
  background: rgba(237, 247, 234, 0.92);
}

.copy-requisite.copy-error {
  color: #9b3c2e;
  border-color: rgba(155, 60, 46, 0.35);
  background: rgba(255, 241, 237, 0.92);
}

@media (max-width: 1180px) {
  .contacts-main {
    padding-top: 18px;
  }

  .address-card {
    grid-template-columns: 1fr;
  }

  .contact-block {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.2);
  }

  .contact-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

}

@media (max-width: 920px) {
  .contacts-page {
    background-attachment: scroll;
  }

  .contacts-main {
    padding-top: 18px;
  }

  .contacts-main {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .contacts-left {
    grid-template-rows: auto auto;
  }

  .map-frame {
    height: auto;
  }

  .address-card {
    grid-template-columns: 1fr;
  }

  .contact-block {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.2);
  }

  .contact-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .contacts-main {
    width: calc(100vw - 40px);
  }

  .contacts-breadcrumbs {
    width: calc(100vw - 40px);
    padding-top: 20px;
  }

  .contacts-main {
    padding: 20px 0 28px;
  }

  .contacts-intro h1 span {
    white-space: normal;
  }

  .contacts-intro {
    padding: 22px;
  }

  .contacts-intro h1 {
    max-width: 330px;
    font-size: 27px;
    line-height: 1.34;
  }

  .contacts-intro .lead {
    max-width: 330px;
  }

  .contacts-actions .button {
    width: 100%;
  }

  .address-card,
  .connection-card,
  .requisites-card {
    padding: 22px;
  }

  .contact-block strong,
  .contact-block a,
  .contact-list a {
    font-size: 17px;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.inner-page {
  min-height: 100vh;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.96) 0%, rgba(247, 241, 231, 0.98) 54%, #efe5d3 100%),
    url("../img/hero-church-garden-wide.png");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.inner-screen {
  position: relative;
  min-height: 100vh;
  padding-bottom: 64px;
  overflow-x: hidden;
}

.inner-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.96) 0%, rgba(255, 249, 239, 0.9) 48%, rgba(255, 249, 239, 0.7) 100%),
    linear-gradient(180deg, rgba(247, 241, 231, 0.12) 0%, rgba(239, 229, 211, 0.86) 100%);
  pointer-events: none;
}

.inner-header,
.inner-breadcrumbs,
.page-hero,
.content-grid,
.wide-band,
.schedule-layout,
.news-grid,
.media-layout {
  position: relative;
  z-index: 2;
}

.inner-header {
  z-index: 20;
}

.inner-breadcrumbs {
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding-top: 28px;
}

.page-hero {
  display: grid;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding: 18px 0 30px;
}

.split-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: 30px;
  align-items: stretch;
}

.compact-hero,
.service-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.service-hero {
  align-items: stretch;
}

.page-hero-copy {
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.page-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(30px, 2.9vw, 44px);
}

.page-hero-copy .lead {
  max-width: 650px;
}

.hero-photo {
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

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

.quiet-photo img {
  object-position: center top;
}

.content-grid {
  display: grid;
  width: min(91vw, 1320px);
  margin: 0 auto;
  gap: 24px;
}

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

.info-card,
.schedule-card,
.news-card,
.news-feature,
.media-tile,
.action-card {
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.info-card {
  min-height: 240px;
  padding: 30px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--color-old-gold);
  font-family: var(--font-heading);
  font-size: 20px;
}

.info-card h2,
.schedule-list h2,
.news-card h2,
.news-feature h2,
.media-tile h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.info-card h2 {
  font-size: 24px;
}

.info-card p,
.schedule-card p,
.schedule-list p,
.news-card p,
.news-feature p,
.media-tile p {
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.74);
  font-size: 16px;
  line-height: 1.58;
}

.wide-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(91vw, 1320px);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.86);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.wide-band a {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--color-dark-wood);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.wide-band a + a {
  border-left: 1px solid rgba(167, 122, 29, 0.18);
}

.wide-band a:hover {
  color: var(--color-old-gold);
  background: rgba(247, 241, 231, 0.72);
}

.schedule-card {
  width: min(390px, 35vw);
  padding: 30px;
}

.service-hero .schedule-card {
  display: flex;
  align-self: stretch;
  height: 100%;
  flex-direction: column;
  box-sizing: border-box;
}

.schedule-card strong {
  display: block;
  margin-top: 12px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.schedule-card .button {
  width: 100%;
  margin-top: 26px;
}

.service-hero .schedule-card .button {
  margin-top: auto;
}

.worship-schedule-screen {
  position: relative;
  min-height: 100vh;
  padding-bottom: 72px;
  overflow-x: hidden;
}

.worship-schedule-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.88) 48%, rgba(239, 229, 211, 0.72) 100%),
    radial-gradient(circle at 78% 18%, rgba(185, 209, 223, 0.32), transparent 32%),
    linear-gradient(180deg, rgba(247, 241, 231, 0.18), rgba(239, 229, 211, 0.9));
  pointer-events: none;
}

.worship-schedule-screen .inner-header,
.worship-breadcrumbs,
.worship-schedule-hero,
.worship-schedule-content {
  position: relative;
  z-index: 2;
}

.worship-breadcrumbs {
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding-top: 28px;
}

.worship-schedule-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding: 28px 0 30px;
  align-items: stretch;
}

.worship-title-block,
.worship-now-card,
.worship-day,
.worship-side-panel {
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.82);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(16px);
}

.worship-title-block {
  padding: clamp(28px, 4vw, 30px);
}

.worship-title-block h1 {
  max-width: 820px;
  color: var(--color-dark-wood);
  font-size: clamp(28px, 2.35vw, 38px);
  line-height: 1.18;
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.week-switcher {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  gap: 12px;
  color: rgba(122, 77, 37, 0.48);
}

.week-switcher a,
.week-switcher span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-wood);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.week-switcher span {
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 17px;
  text-transform: none;
}

.week-switcher span img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.week-switcher a::after,
.week-switcher span::after {
  display: inline-block;
  margin-left: 12px;
  color: rgba(167, 122, 29, 0.48);
  content: "✦";
  font-size: 10px;
  line-height: 1;
}

.week-switcher a:last-child::after {
  display: none;
}

.week-switcher a:hover {
  color: var(--color-old-gold);
}

.print-schedule {
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--color-wood);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.print-schedule img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.print-schedule:hover {
  color: var(--color-old-gold);
}

.worship-fast-banner {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(180px, 0.78fr) 1px minmax(300px, 1.28fr) minmax(170px, 0.56fr);
  gap: clamp(20px, 3vw, 42px);
  min-height: 128px;
  align-items: center;
  padding: 22px clamp(24px, 3.6vw, 42px);
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.96) 0%, rgba(255, 249, 239, 0.9) 58%, rgba(255, 249, 239, 0.62) 100%),
    radial-gradient(circle at 78% 78%, rgba(238, 217, 179, 0.5), transparent 32%);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.worship-fast-badge {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 2px solid rgba(217, 195, 161, 0.58);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.56);
}

.worship-fast-badge img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.worship-fast-summary,
.worship-fast-text {
  position: relative;
  z-index: 2;
}

.worship-fast-summary p,
.worship-fast-summary h2,
.worship-fast-text {
  margin: 0;
}

.worship-fast-summary p {
  color: var(--color-wood);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.worship-fast-summary h2 {
  margin-top: 10px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.05;
}

.worship-fast-divider {
  width: 1px;
  height: 62px;
  background: rgba(167, 122, 29, 0.22);
}

.worship-fast-text {
  max-width: 460px;
  color: rgba(63, 44, 31, 0.78);
  font-size: clamp(14px, 1.18vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

.worship-fast-church {
  position: absolute;
  right: 24px;
  bottom: 0;
  z-index: 1;
  width: min(20vw, 240px);
  max-height: 118px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.worship-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.78), transparent 24%),
    rgba(255, 249, 239, 0.88);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.worship-next-service,
.worship-fast-status {
  display: grid;
  align-items: center;
  min-height: 112px;
  padding: 22px 30px;
}

.worship-next-service {
  grid-template-columns: 64px 140px minmax(0, 1fr) auto;
  gap: 24px;
  border-right: 1px solid rgba(167, 122, 29, 0.16);
}

.worship-status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.74);
}

.worship-status-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.worship-status-panel h2,
.worship-status-panel p {
  margin: 0;
}

.worship-status-panel h2 {
  color: var(--color-dark-wood);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.worship-status-panel p {
  color: rgba(63, 44, 31, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.worship-status-meta {
  margin-bottom: 7px;
  color: var(--color-dark-wood) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.worship-status-meta span {
  color: var(--color-old-gold);
  font-size: 10px;
}

.worship-next-service a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(167, 122, 29, 0.42);
  border-radius: 999px;
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.worship-fast-status {
  grid-template-columns: 56px minmax(0, 1fr) 22px;
  gap: 18px;
}

.worship-fast-status img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.worship-fast-status .worship-fast-info-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.worship-filter-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  width: min(91vw, 1320px);
  margin: 0 auto 24px;
}

.worship-filter-bar button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 27px;
  border: 1px solid rgba(167, 122, 29, 0.14);
  border-radius: 999px;
  color: var(--color-dark-wood);
  background: rgba(255, 249, 239, 0.78);
  box-shadow: 0 10px 30px rgba(63, 44, 31, 0.06);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.worship-filter-bar button.active {
  border-color: rgba(167, 122, 29, 0.72);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.94);
}

.worship-filter-bar button:hover {
  border-color: rgba(167, 122, 29, 0.48);
  color: var(--color-old-gold);
}

.worship-filter-bar button img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.filter-dots {
  display: grid;
  width: 20px;
  height: 20px;
  grid-template-columns: repeat(3, 4px);
  grid-auto-rows: 4px;
  gap: 4px;
}

.filter-dots::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--color-old-gold);
  box-shadow:
    8px 0 var(--color-old-gold),
    16px 0 var(--color-old-gold),
    0 8px var(--color-old-gold),
    8px 8px var(--color-old-gold),
    16px 8px var(--color-old-gold),
    0 16px var(--color-old-gold),
    8px 16px var(--color-old-gold),
    16px 16px var(--color-old-gold);
}

.worship-filter-bar .reset-filter {
  margin-left: auto;
  border-color: transparent;
  color: rgba(122, 77, 37, 0.72);
  background: transparent;
  box-shadow: none;
}

.worship-filter-bar .reset-filter span {
  color: var(--color-old-gold);
  font-size: 19px;
  line-height: 1;
}

.worship-schedule-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: 24px;
  width: min(91vw, 1320px);
  margin: 0 auto;
  align-items: start;
}

.worship-days {
  display: grid;
  gap: 14px;
}

.worship-day {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
  overflow: hidden;
}

.worship-day::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 216px;
  width: 1px;
  content: "";
  background: rgba(167, 122, 29, 0.2);
}

.worship-day time {
  color: var(--color-old-gold);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.24;
}

.worship-day span {
  display: block;
  color: var(--color-wood);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.worship-day h2 {
  margin: 8px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.22;
}

.worship-day p {
  margin: 12px 0 0;
  color: rgba(63, 44, 31, 0.74);
  font-size: 17px;
  line-height: 1.62;
}

.worship-day.featured {
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(239, 229, 211, 0.78)),
    linear-gradient(90deg, rgba(167, 122, 29, 0.14), transparent 48%);
}

.worship-side-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.worship-hints {
  padding: 6px;
}

.worship-hints h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
}

.worship-hints ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.worship-hints li {
  position: relative;
  padding-left: 18px;
  color: rgba(63, 44, 31, 0.72);
  font-size: 15px;
  line-height: 1.52;
}

.worship-hints li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--color-old-gold);
}

.worship-week {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.worship-date-card {
  position: relative;
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 0;
  min-width: 0;
  min-height: 360px;
  padding: 0;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 16px 40px rgba(63, 44, 31, 0.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.worship-date-card.is-filtered-out {
  display: none;
}

.worship-date-card:nth-child(3n + 1) {
  background: rgba(255, 249, 239, 0.94);
}

.worship-date-card:nth-child(3n + 2) {
  background: rgba(255, 249, 239, 0.94);
}

.worship-date-card.sunday {
  align-self: start;
  border-color: rgba(185, 33, 26, 0.28);
  background: rgba(255, 249, 239, 0.96);
}

.worship-date-head {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 156px;
  padding: 26px 26px 22px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.16);
  background: rgba(239, 229, 211, 0.34);
}

.worship-current-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(57, 157, 64, 0.28);
  border-radius: 999px;
  color: #328d3f;
  background: rgba(231, 248, 229, 0.88);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.worship-current-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #328d3f;
}

.worship-date-card.sunday .worship-date-head {
  background: rgba(185, 33, 26, 0.08);
}

.worship-date-head div {
  display: grid;
  gap: 8px;
}

.worship-weekday {
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.18;
}

.worship-date-head strong {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 999px;
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.7);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.worship-memory {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.worship-memory span {
  color: rgba(122, 77, 37, 0.68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.worship-memory p {
  min-width: 0;
  margin: 0;
  color: var(--color-wood);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.worship-date-card.sunday .worship-weekday,
.worship-date-card.sunday .worship-memory p {
  color: #b5211a;
}

.worship-date-card.sunday .worship-memory span {
  color: rgba(181, 33, 26, 0.68);
}

.worship-date-card.sunday .worship-date-head strong {
  border-color: rgba(185, 33, 26, 0.22);
  color: #b5211a;
  background: rgba(255, 249, 239, 0.82);
}

.worship-service-groups {
  display: grid;
  gap: 0;
  padding: 0 26px 26px;
}

.worship-service-group {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(167, 122, 29, 0.14);
  background: transparent;
}

.worship-service-group + .worship-service-group {
  border-color: rgba(167, 122, 29, 0.14);
  background: transparent;
}

.worship-service-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.worship-service-group.is-filtered-out {
  display: none;
}

.worship-service-group h2 {
  display: inline-flex;
  width: max-content;
  min-height: 26px;
  align-items: center;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: var(--color-dark-wood);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.worship-service-group + .worship-service-group h2 {
  color: var(--color-wood);
  background: transparent;
}

.worship-date-card.sunday .worship-service-group h2 {
  color: #b5211a;
  background: transparent;
}

.worship-service-line {
  display: grid;
  grid-template-columns: 56px 24px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.worship-service-line.is-filtered-out {
  display: none;
}

.worship-service-line time {
  color: var(--color-old-gold);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.worship-service-line > img {
  align-self: start;
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  object-fit: contain;
}

.worship-service-line p {
  min-width: 0;
  margin: 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.worship-service-line.notice {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 33, 26, 0.18);
}

.worship-service-line.notice p {
  font-weight: 700;
}

.communion-diary {
  position: relative;
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 0.58fr);
  align-self: start;
  min-height: 720px;
  border: 1px solid rgba(167, 122, 29, 0.28);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 231, 0.96));
  box-shadow: 0 22px 70px rgba(63, 44, 31, 0.1);
  overflow: hidden;
}

.communion-diary-intro,
.communion-diary-content {
  position: relative;
}

.communion-diary-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 720px;
  padding: 48px 30px 0;
  border-right: 1px solid rgba(167, 122, 29, 0.16);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.82), transparent 25%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.94), rgba(247, 241, 231, 0.78));
  text-align: center;
}

.communion-diary-intro::before {
  position: absolute;
  right: 0;
  bottom: 44px;
  left: 0;
  height: 150px;
  content: "";
  background:
    radial-gradient(ellipse at 18% 86%, rgba(190, 169, 130, 0.24) 0 18%, transparent 34%),
    radial-gradient(ellipse at 82% 86%, rgba(190, 169, 130, 0.2) 0 18%, transparent 34%),
    radial-gradient(ellipse at 31% 92%, rgba(205, 185, 151, 0.16) 0 15%, transparent 32%),
    radial-gradient(ellipse at 69% 92%, rgba(205, 185, 151, 0.16) 0 15%, transparent 32%);
  filter: blur(0.8px);
  pointer-events: none;
}

.diary-halo-cross {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  object-fit: contain;
}

.communion-diary-lead {
  max-width: 390px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(23px, 1.85vw, 30px);
  font-weight: 400;
  line-height: 1.32;
}

.communion-diary-text {
  max-width: 270px;
  margin: 22px 0 0;
  color: rgba(46, 42, 37, 0.92);
  font-size: 16px;
  line-height: 1.52;
}

.diary-ornament,
.diary-title-divider {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  gap: 18px;
  align-items: center;
  color: var(--color-old-gold);
}

.diary-ornament {
  width: min(310px, 100%);
  margin: 24px 0 20px;
}

.diary-ornament span,
.diary-title-divider span {
  height: 1px;
  background: rgba(167, 122, 29, 0.28);
}

.diary-ornament i,
.diary-title-divider i {
  font-style: normal;
  font-size: 27px;
  line-height: 1;
}

.communion-quote {
  position: relative;
  z-index: 2;
  max-width: 270px;
  margin: 0;
}

.communion-quote blockquote {
  margin: 0;
  color: rgba(63, 44, 31, 0.9);
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.communion-quote figcaption {
  margin-top: 14px;
  color: var(--color-old-gold);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.communion-church-image {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 235px;
  mix-blend-mode: multiply;
  object-fit: contain;
  object-position: center bottom;
}

.communion-diary-content {
  display: grid;
  align-content: start;
  padding: 48px 28px 30px 36px;
}

.communion-eyebrow {
  margin: 0 0 16px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.communion-diary-content h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(27px, 2.25vw, 34px);
  line-height: 1.18;
}

.diary-title-divider {
  width: min(520px, 100%);
  margin: 22px 0 20px;
}

.communion-intro-text {
  max-width: 590px;
  margin: 0;
  color: rgba(46, 42, 37, 0.94);
  font-size: 15px;
  line-height: 1.45;
}

.communion-qa-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.72);
  box-shadow: 0 16px 44px rgba(63, 44, 31, 0.08);
}

.communion-qa-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 18px;
  gap: 18px;
  align-items: center;
  min-height: 122px;
  padding: 16px 0;
}

.communion-qa-item + .communion-qa-item::before {
  position: absolute;
  top: -190px;
  right: 28px;
  left: 88px;
  height: 1px;
  content: "";
  background: rgba(167, 122, 29, 0.16);
}

.communion-qa-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-old-gold);
  background: rgba(239, 229, 211, 0.54);
}

.communion-qa-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.communion-qa-copy h3 {
  margin: 0 0 9px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.28;
}

.communion-qa-copy p {
  margin: 0;
  color: rgba(46, 42, 37, 0.94);
  font-size: 13px;
  line-height: 1.48;
}

.communion-qa-cross {
  display: block;
  width: 16px;
  height: 16px;
  align-self: start;
  object-fit: contain;
}

.communion-closing-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 26px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  color: rgba(46, 42, 37, 0.94);
  background: rgba(239, 229, 211, 0.58);
  font-size: 13px;
  line-height: 1.48;
}

.communion-closing-note span {
  color: var(--color-old-gold);
  font-size: 28px;
  line-height: 1;
}

.communion-brief {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 6px;
  padding: 28px 34px;
  border: 1px solid rgba(167, 122, 29, 0.26);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 231, 0.9));
  box-shadow: 0 16px 44px rgba(63, 44, 31, 0.08);
}

.communion-brief-intro {
  display: grid;
  align-content: center;
  gap: 14px;
  padding-right: 28px;
  border-right: 1px solid rgba(167, 122, 29, 0.2);
}

.communion-brief-intro img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.communion-brief-intro h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 25px;
  line-height: 1.22;
}

.communion-brief-intro p {
  max-width: 270px;
  margin: 0;
  color: rgba(46, 42, 37, 0.88);
  font-size: 16px;
  line-height: 1.55;
}

.communion-brief-intro a {
  display: inline-flex;
  width: max-content;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  color: var(--color-old-gold);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.communion-brief-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.communion-brief-steps li {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.communion-brief-steps li + li::before {
  position: absolute;
  top: 104px;
  bottom: 8px;
  left: -9px;
  width: 1px;
  content: "";
  background: rgba(167, 122, 29, 0.18);
}

.communion-brief-steps li > img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 50%;
  background: rgba(239, 229, 211, 0.54);
  object-fit: contain;
}

.communion-brief-steps h3 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.24;
}

.communion-brief-steps h3 span {
  display: inline-flex;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 29, 0.3);
  border-radius: 50%;
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.78);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.communion-brief-steps p {
  margin: 0;
  color: rgba(46, 42, 37, 0.86);
  font-size: 15px;
  line-height: 1.55;
}

.communion-accent {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 0.64fr);
  align-items: center;
  min-height: 360px;
  padding: 54px 62px 54px 52px;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 231, 0.92));
  box-shadow: 0 16px 40px rgba(63, 44, 31, 0.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.communion-accent-image {
  display: grid;
  min-width: 0;
  min-height: 220px;
  place-items: center;
  padding-right: 42px;
  border-right: 1px solid rgba(167, 122, 29, 0.22);
}

.communion-accent-image img {
  display: block;
  width: min(230px, 100%);
  height: auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.communion-accent-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 18px;
  padding-left: 42px;
}

.communion-accent-copy h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.18;
}

.communion-accent-quote {
  margin: 2px 0 0;
  color: var(--color-wood);
  font-family: var(--font-heading);
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.52;
  overflow-wrap: break-word;
}

.communion-accent-text {
  max-width: 360px;
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  line-height: 1.52;
  overflow-wrap: break-word;
}

.communion-accent-copy a {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--color-old-gold);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.services-communion-section {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 30px auto 0;
  padding-bottom: 70px;
}

.services-communion-section .communion-diary {
  grid-column: auto;
}

.sacraments-content {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 28px auto 0;
  padding-bottom: 70px;
}

.sacraments-preparation-page .sacraments-hero {
  width: min(91vw, 1320px);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 34px 0 22px;
  overflow: visible;
  background: transparent;
}

.sacraments-preparation-page .sacraments-hero .media-hero-copy {
  width: min(520px, 100%);
  padding-left: 0;
}

.sacraments-preparation-page .sacraments-hero .media-title-divider {
  margin-left: calc((min(430px, 100%) - 112px) / 2);
}

.sacrament-tabs-card {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 231, 0.9));
  box-shadow: 0 22px 70px rgba(63, 44, 31, 0.08);
}

.sacrament-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(167, 122, 29, 0.18);
  background: rgba(255, 249, 239, 0.7);
}

.sacrament-tab {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px 12px;
  border: 0;
  background: transparent;
  color: rgba(63, 44, 31, 0.58);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: default;
}

.sacrament-tab[data-sacrament-tab] {
  cursor: pointer;
}

.sacrament-tab.active {
  color: var(--color-old-gold);
}

.sacrament-tab.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-old-gold);
}

.sacrament-tab-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: currentColor;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
}

.sacrament-tab-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.58;
  filter: brightness(0) saturate(100%) invert(48%) sepia(32%) saturate(735%) hue-rotate(5deg) brightness(91%) contrast(87%);
}

.sacrament-tab.active .sacrament-tab-icon img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(45%) sepia(74%) saturate(702%) hue-rotate(7deg) brightness(90%) contrast(91%);
}

.sacrament-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.36fr) minmax(0, 0.64fr);
  min-height: 760px;
}

.sacrament-panel[hidden] {
  display: none;
}

.sacrament-memory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 760px;
  padding: 58px 42px 270px;
  overflow: hidden;
  border-right: 1px solid rgba(167, 122, 29, 0.18);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.84), transparent 24%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.9), rgba(247, 241, 231, 0.78));
  text-align: center;
}

.sacrament-memory-cross {
  display: block;
  width: 100px;
  height: 100px;
  margin-bottom: 28px;
  object-fit: contain;
}

.sacrament-memory-title {
  max-width: 330px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.25;
}

.sacrament-memory-text {
  max-width: 280px;
  margin: 28px 0 0;
  color: rgba(63, 44, 31, 0.84);
  font-size: 16px;
  line-height: 1.52;
}

.sacrament-memory-divider,
.sacrament-title-divider {
  display: grid;
  align-items: center;
  color: var(--color-old-gold);
}

.sacrament-memory-divider {
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  gap: 18px;
  width: min(300px, 100%);
  margin: 38px 0 28px;
}

.sacrament-title-divider {
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  gap: 28px;
  width: min(660px, 100%);
  margin: 28px 0 24px;
}

.sacrament-memory-divider span,
.sacrament-title-divider span {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(167, 122, 29, 0), rgba(167, 122, 29, 0.16) 46%, rgba(167, 122, 29, 0.54) 100%);
  transform: scaleY(0.42);
  transform-origin: right center;
}

.sacrament-memory-divider span:last-child,
.sacrament-title-divider span:last-child {
  background:
    linear-gradient(90deg, rgba(167, 122, 29, 0.54), rgba(167, 122, 29, 0.16) 54%, rgba(167, 122, 29, 0));
  transform-origin: left center;
}

.sacrament-memory-divider i,
.sacrament-title-divider i {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--color-old-gold);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.98);
  box-shadow: 0 0 0 5px rgba(255, 249, 239, 0.92);
}

.sacrament-memory-quote {
  position: relative;
  z-index: 2;
  max-width: 265px;
  margin: 0;
}

.sacrament-memory-quote blockquote {
  margin: 0;
  color: rgba(63, 44, 31, 0.9);
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.sacrament-memory-quote figcaption {
  margin-top: 20px;
  color: var(--color-old-gold);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.sacrament-memory-church {
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  z-index: 1;
  width: 84%;
  height: 240px;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

.sacrament-memory-church[src$="communion-preparation.webp"] {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
}

.sacrament-memory-church[src$="confession-preparation.webp"] {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
}

.sacrament-memory-church[src*="baptism.webp"] {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
}

.sacrament-memory-church[src$="wedding-preparation.webp"] {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
}

.sacrament-memory-church[src$="unction-preparation.webp"] {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
}

.sacrament-detail {
  padding: 58px 48px 62px;
}

.sacrament-eyebrow {
  margin: 0 0 20px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.sacrament-detail h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.sacrament-intro {
  max-width: 700px;
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  line-height: 1.58;
}

.sacrament-qa-list {
  display: grid;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.62);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.06);
}

.sacrament-qa-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 132px;
  padding: 24px 38px 24px 24px;
}

.sacrament-qa-item + .sacrament-qa-item {
  border-top: 1px solid rgba(167, 122, 29, 0.12);
}

.sacrament-qa-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(167, 122, 29, 0.09);
}

.sacrament-qa-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sacrament-qa-copy h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
}

.sacrament-qa-copy p {
  margin: 8px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.sacrament-closing-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 40px 0 0;
  padding: 28px 34px;
  border: 1px solid rgba(167, 122, 29, 0.12);
  border-radius: var(--radius-md);
  background: rgba(246, 237, 223, 0.64);
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  line-height: 1.58;
}

.sacrament-closing-note span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(167, 122, 29, 0.09);
}

.sacrament-closing-note span img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.prayers-page .prayers-hero {
  width: min(91vw, 1320px);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 34px 0 22px;
  overflow: visible;
  background: transparent;
}

.prayers-page .prayers-hero .media-hero-copy {
  width: min(520px, 48vw);
  padding-left: 0;
}

.prayers-page .prayers-hero .media-title-group {
  width: min(430px, 100%);
}

.prayers-page .prayers-hero .media-title-divider {
  margin: 26px auto 0;
}

.prayers-content {
  display: grid;
  grid-template-columns: minmax(310px, 0.32fr) minmax(0, 0.68fr);
  gap: 48px;
  width: min(91vw, 1320px);
  margin: 28px auto 0;
  padding-bottom: 70px;
}

.prayers-memory-card {
  position: relative;
  display: flex;
  min-height: 1180px;
  flex-direction: column;
  align-items: center;
  padding: 58px 42px 620px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.84), transparent 24%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.92), rgba(247, 241, 231, 0.78));
  box-shadow: 0 22px 70px rgba(63, 44, 31, 0.08);
  text-align: center;
}

.prayers-memory-icon {
  width: 76px;
  height: 100px;
  margin-bottom: 18px;
  object-fit: contain;
}

.prayers-memory-title {
  max-width: 300px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.1vw, 34px);
  line-height: 1.3;
}

.prayers-memory-source {
  margin: 18px 0 0;
  color: var(--color-old-gold);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.prayers-memory-divider {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
  gap: 18px;
  align-items: center;
  width: min(300px, 100%);
  margin: 38px 0 28px;
  color: var(--color-old-gold);
}

.prayers-memory-divider span {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(167, 122, 29, 0), rgba(167, 122, 29, 0.16) 46%, rgba(167, 122, 29, 0.54) 100%);
  transform: scaleY(0.42);
  transform-origin: right center;
}

.prayers-memory-divider span:last-child {
  background:
    linear-gradient(90deg, rgba(167, 122, 29, 0.54), rgba(167, 122, 29, 0.16) 54%, rgba(167, 122, 29, 0));
  transform-origin: left center;
}

.prayers-memory-divider i {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--color-old-gold);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.98);
  box-shadow: 0 0 0 5px rgba(255, 249, 239, 0.92);
}

.prayers-memory-divider i::before {
  content: none;
}

.prayers-memory-text {
  position: relative;
  z-index: 2;
  max-width: 290px;
  margin: 0;
  color: rgba(63, 44, 31, 0.84);
  font-size: 16px;
  line-height: 1.64;
}

.prayers-memory-image {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 840px;
  object-fit: cover;
  object-position: 28% bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 10%, rgba(0, 0, 0, 0.55) 22%, #000 36%);
}

.prayers-main {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding-top: 4px;
}

.prayer-categories h2,
.popular-prayers h2 {
  margin: 0 0 24px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

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

.prayer-category-card {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 28px 24px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 38%),
    rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 46px rgba(63, 44, 31, 0.08);
  color: inherit;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.prayer-category-card:hover {
  border-color: rgba(167, 122, 29, 0.38);
  box-shadow: 0 22px 56px rgba(63, 44, 31, 0.09);
  transform: translateY(-3px);
}

.prayer-category-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  place-items: center;
}

.prayer-category-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.prayer-category-card h3 {
  max-width: 210px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.28;
}

.prayer-category-card p {
  max-width: 220px;
  margin: 12px 0 18px;
  color: rgba(63, 44, 31, 0.8);
  font-size: 15px;
  line-height: 1.58;
}

.prayer-card-arrow {
  margin-top: auto;
  color: var(--color-wood);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.prayer-category-card:hover .prayer-card-arrow {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.popular-prayers {
  margin-top: 28px;
}

.popular-prayer-list {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.08);
}

.popular-prayer-link,
.all-prayers-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px 24px;
  color: inherit;
}

.popular-prayer-link + .popular-prayer-link {
  border-top: 1px solid rgba(167, 122, 29, 0.14);
}

.popular-prayer-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.popular-prayer-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.popular-prayer-link b,
.all-prayers-link b {
  display: block;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.25;
}

.popular-prayer-link small {
  display: block;
  margin-top: 4px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.popular-prayer-link i,
.all-prayers-link i {
  color: var(--color-wood);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.popular-prayer-link:hover i,
.all-prayers-link:hover i {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.all-prayers-link {
  min-height: 74px;
  margin-top: 18px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 14px 38px rgba(63, 44, 31, 0.07);
}

.prayer-category-page .prayer-category-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 40px;
  align-items: start;
  width: min(91vw, 1320px);
  margin: 18px auto 0;
}

.prayer-category-copy {
  min-width: 0;
}

.prayer-category-title-group {
  width: min(460px, 100%);
}

.prayer-category-page h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  line-height: 1.18;
}

.prayer-category-copy .media-title-divider {
  margin: 26px 0 0;
}

.prayer-category-copy p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 18px;
  line-height: 1.72;
}

.prayer-category-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.07);
}

.prayer-category-note-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
}

.prayer-category-note-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.prayer-category-note p {
  margin: 0;
  color: var(--color-dark-wood);
  font-size: 18px;
  line-height: 1.55;
}

.prayer-category-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  width: min(91vw, 1320px);
  margin: 42px auto 70px;
  align-items: start;
}

.prayer-category-sidebar {
  display: grid;
  gap: 24px;
}

.prayer-category-sidecard {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.08);
}

.prayer-category-sidecard h2 {
  margin: 0;
  padding: 28px 26px 20px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
}

.prayer-category-nav {
  display: grid;
}

.prayer-category-nav a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 0 22px;
  color: rgba(63, 44, 31, 0.84);
  border-top: 1px solid rgba(167, 122, 29, 0.12);
}

.prayer-category-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.prayer-category-nav a span {
  font-size: 15px;
  line-height: 1.42;
}

.prayer-category-nav a i {
  color: var(--color-wood);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.prayer-category-nav a.active {
  color: var(--color-old-gold);
  background: linear-gradient(90deg, rgba(167, 122, 29, 0.08), rgba(167, 122, 29, 0) 82%);
}

.prayer-category-nav a:hover i {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.prayer-category-popular {
  display: grid;
  padding: 4px 0 0;
}

.prayer-category-popular a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 26px;
  color: rgba(63, 44, 31, 0.84);
  font-size: 15px;
  line-height: 1.46;
}

.prayer-category-popular a + a {
  border-top: 1px solid rgba(167, 122, 29, 0.1);
}

.prayer-category-popular img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-top: 2px;
}

.prayer-category-all {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: calc(100% - 52px);
  margin: 20px 26px 26px;
  padding: 14px 16px;
  border: 1px solid rgba(167, 122, 29, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
}

.prayer-category-all b {
  color: var(--color-dark-wood);
  font-size: 15px;
  line-height: 1.35;
}

.prayer-category-main {
  min-width: 0;
}

.prayer-category-list-section h2 {
  margin: 0 0 18px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.prayer-category-list {
  display: grid;
  gap: 12px;
}

.prayer-category-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 102px;
  padding: 20px 24px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 14px 38px rgba(63, 44, 31, 0.06);
  color: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.prayer-category-item:hover {
  border-color: rgba(167, 122, 29, 0.3);
  box-shadow: 0 18px 46px rgba(63, 44, 31, 0.08);
  transform: translateY(-2px);
}

.prayer-category-item-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
}

.prayer-category-item-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.prayer-category-item-copy {
  min-width: 0;
}

.prayer-category-item-copy b {
  display: block;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
}

.prayer-category-item-copy small {
  display: block;
  margin-top: 6px;
  color: rgba(63, 44, 31, 0.76);
  font-size: 15px;
  line-height: 1.55;
}

.prayer-category-item i {
  color: var(--color-wood);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.prayer-category-item:hover i {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.prayer-detail {
  position: relative;
  z-index: 1;
  width: min(91vw, 1320px);
  margin: 18px auto 0;
  padding-bottom: 76px;
}

.prayer-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(300px, 0.34fr);
  gap: 56px;
  align-items: start;
  grid-template-areas:
    "text sidebar-top"
    "explanation sidebar-top";
}

.prayer-text-header h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.prayer-detail-divider {
  width: 112px;
  height: 14px;
  margin: 26px 0 0;
}

.prayer-text-body {
  margin-top: 28px;
}

.prayer-text-source {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(167, 122, 29, 0.16);
  color: rgba(63, 44, 31, 0.82);
  font-size: 15px;
  font-weight: 700;
}

.prayer-text-source img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.prayer-text-card {
  grid-area: text;
  margin-top: 0;
  padding: clamp(32px, 4vw, 62px) clamp(30px, 4.8vw, 72px);
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.84), transparent 38%),
    rgba(255, 249, 239, 0.92);
  box-shadow: 0 10px 28px rgba(63, 44, 31, 0.04);
}

.prayer-text-card p {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.62;
}

.prayer-text-card p + p {
  margin-top: 34px;
}

.prayer-text-card h2 {
  margin: 34px 0 12px;
  color: var(--color-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
}

.prayer-text-card p + h2 {
  margin-top: 36px;
}

.prayer-explanation {
  grid-area: explanation;
  margin-top: 36px;
}

.prayer-explanation h2 {
  margin: 0 0 20px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
}

.prayer-explanation-list {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.07);
}

.prayer-explanation-list details {
  padding: 22px 28px;
}

.prayer-explanation-list details + details {
  border-top: 1px solid rgba(167, 122, 29, 0.14);
}

.prayer-explanation-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: var(--color-dark-wood);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

.prayer-explanation-list summary::-webkit-details-marker {
  display: none;
}

.prayer-explanation-list summary::after {
  content: "+";
  color: var(--color-wood);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.prayer-explanation-list details[open] summary::after {
  content: "−";
}

.prayer-explanation-list p {
  margin: 8px 0 0;
  color: rgba(63, 44, 31, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.prayer-detail-sidebar {
  display: grid;
  gap: 28px;
  align-content: start;
}

.prayer-detail-sidebar-top {
  grid-area: sidebar-top;
}

.prayer-detail-sidebar-bottom {
  grid-area: sidebar-bottom;
}

.prayer-sidebar-card,
.prayer-quote-card {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.08);
}

.prayer-sidebar-card {
  padding: 32px 34px;
}

.prayer-sidebar-card h2 {
  margin: 0 0 20px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
}

.prayer-sidebar-card h2 {
  margin: 0 0 22px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
}

.prayer-sidebar-card p {
  margin: 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.prayer-sidebar-section + .prayer-sidebar-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(167, 122, 29, 0.12);
}

.prayer-sidebar-section h3 {
  margin: 0 0 12px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.prayer-sidebar-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.prayer-sidebar-links {
  display: grid;
  gap: 0;
}

.prayer-sidebar-links a,
.prayer-sidebar-all {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 15px;
  line-height: 1.35;
}

.prayer-sidebar-all {
  grid-template-columns: minmax(0, 1fr) auto;
}

.prayer-sidebar-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.prayer-sidebar-links a + a {
  border-top: 1px solid rgba(167, 122, 29, 0.1);
}

.prayer-sidebar-links i,
.prayer-sidebar-all i {
  color: var(--color-wood);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.prayer-sidebar-links a:hover i,
.prayer-sidebar-all:hover i {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.prayer-sidebar-all {
  margin-top: 12px;
  color: var(--color-wood);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .prayers-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .prayers-memory-card {
    min-height: 760px;
    padding-bottom: 430px;
  }

  .prayers-memory-image {
    height: 580px;
  }

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

  .prayer-category-page .prayer-category-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prayer-category-note {
    max-width: 420px;
  }

  .prayer-category-layout {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .prayer-category-sidebar {
    display: none;
  }

  .prayer-detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    grid-template-areas:
      "text sidebar-top"
      "explanation sidebar-top";
  }

  .prayer-detail-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 680px) {
  .prayers-content {
    width: calc(100vw - 40px);
    margin-top: 20px;
    padding-bottom: 50px;
  }

  .prayers-memory-card {
    min-height: 720px;
    padding: 42px 24px 400px;
  }

  .prayers-memory-image {
    height: 520px;
  }

  .prayer-category-grid {
    grid-template-columns: 1fr;
  }

  .prayer-category-card {
    min-height: 238px;
    padding: 28px 24px 22px;
  }

  .prayer-category-page .prayer-category-hero {
    width: calc(100vw - 40px);
    margin-top: 20px;
  }

  .prayer-category-page h1 {
    font-size: 32px;
  }

  .prayer-category-copy p,
  .prayer-category-note p {
    font-size: 16px;
  }

  .prayer-category-note {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 20px 18px;
  }

  .prayer-category-note-icon {
    width: 46px;
    height: 46px;
  }

  .prayer-category-note-icon img {
    width: 38px;
    height: 38px;
  }

  .prayer-category-layout {
    width: calc(100vw - 40px);
    margin: 28px auto 50px;
  }

  .prayer-category-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 16px;
  }

  .prayer-category-item-copy b {
    font-size: 17px;
  }

  .prayer-category-item-copy small {
    font-size: 14px;
    line-height: 1.45;
  }

  .popular-prayer-link,
  .all-prayers-link {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 16px;
  }

  .prayer-detail {
    width: calc(100vw - 40px);
    margin-top: 24px;
    padding-bottom: 54px;
  }

  .prayer-detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "sidebar-top"
      "explanation";
  }

  .prayer-text-header h1 {
    font-size: 32px;
  }

  .prayer-detail-divider {
    margin: 24px 0 0;
  }

  .prayer-text-card {
    padding: 28px 24px;
  }

  .prayer-text-card p {
    font-size: 18px;
  }

  .prayer-explanation-list details,
  .prayer-sidebar-card {
    padding: 22px 20px;
  }

  .prayer-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .prayer-quote-card figcaption {
    padding: 26px 24px 28px;
  }
}

.prayer-detail-layout-clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  grid-template-areas: none;
}

.prayer-main-content {
  min-width: 0;
  max-width: 860px;
  margin: 0 auto;
}

.prayer-detail-sidebar-clean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-content: start;
}

.prayer-text-card-primary {
  position: relative;
  grid-area: auto;
  margin-top: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.84), transparent 38%),
    rgba(255, 249, 239, 0.92);
  box-shadow: 0 10px 28px rgba(63, 44, 31, 0.04);
}

.prayer-detail-sidebar-clean .prayer-sidebar-card {
  grid-area: auto;
}

.prayer-detail-sidebar-clean .prayer-sidebar-card h2 {
  font-size: 24px;
}

.prayer-detail-more {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(185, 144, 62, 0.88);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 249, 239, 0.92);
  box-shadow: 0 10px 26px rgba(63, 44, 31, 0);
  cursor: pointer;
  transition:
    background-position 520ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 180ms ease,
    color 180ms ease;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.76) 40%, rgba(255, 255, 255, 0) 58%) -120% 0 / 220% 100% no-repeat,
    rgba(255, 250, 242, 0.54);
}

.prayer-detail-more::before,
.prayer-detail-more::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  content: "";
  background: #b9903e;
  transform: translate(-50%, -50%);
  transition:
    background 180ms ease,
    transform 260ms ease;
}

.prayer-detail-more::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.prayer-detail-more:hover {
  border-color: #a77a1d;
  background-color: rgba(255, 249, 239, 0.96);
  background-position: 120% 0, 0 0;
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(63, 44, 31, 0.11),
    0 0 0 5px rgba(185, 144, 62, 0.08);
}

.prayer-detail-more:hover::before {
  background: #a77a1d;
  transform: translate(-50%, -50%) rotate(180deg);
}

.prayer-detail-more:hover::after {
  background: #a77a1d;
  transform: translate(-50%, -50%) rotate(270deg);
}

.prayer-panel-open {
  overflow: hidden;
}

.prayer-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(34, 23, 14, 0.18);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.prayer-panel-open .prayer-panel-overlay {
  opacity: 1;
  visibility: visible;
}

.prayer-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(40vw, 560px);
  min-width: 420px;
  height: 100vh;
  padding: 34px 34px 0;
  color: var(--color-dark-wood);
  background:
    radial-gradient(circle at 0 16%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(247, 232, 211, 0.44), rgba(255, 250, 242, 0.98) 18%),
    #fffaf2;
  box-shadow:
    -18px 0 48px rgba(63, 44, 31, 0.13),
    inset 1px 0 0 rgba(185, 144, 62, 0.09);
  transform: translateX(105%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.prayer-panel-open .prayer-detail-panel {
  transform: translateX(0);
}

.prayer-detail-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.prayer-detail-panel-head h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.prayer-detail-panel-head p {
  margin: 8px 0 0;
  color: rgba(31, 31, 31, 0.82);
  font-size: 16px;
  line-height: 1.35;
}

.prayer-panel-close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.prayer-panel-close::before,
.prayer-panel-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 2px;
  content: "";
  background: #1f1f1f;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.prayer-panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.prayer-panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.prayer-panel-close:hover::before,
.prayer-panel-close:hover::after {
  background: #b9903e;
}

.prayer-detail-panel-scroll {
  min-height: 0;
  margin: 24px -14px 0 0;
  padding: 8px 14px 34px 0;
  overflow-y: auto;
  scrollbar-color: rgba(63, 44, 31, 0.32) transparent;
  scrollbar-width: thin;
}

.prayer-detail-panel-scroll::-webkit-scrollbar {
  width: 7px;
}

.prayer-detail-panel-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(63, 44, 31, 0.28);
}

.prayer-panel-section {
  padding: 0 0 24px;
}

.prayer-panel-section + .prayer-panel-section {
  margin-top: 24px;
  border-top: 1px solid rgba(167, 122, 29, 0.14);
  padding-top: 24px;
}

.prayer-panel-section h3 {
  margin: 0 0 14px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.prayer-panel-section p {
  margin: 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.prayer-panel-section ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.prayer-panel-section-links .prayer-sidebar-links a,
.prayer-panel-section-links .prayer-sidebar-all {
  font-size: 16px;
}

@media (max-width: 1100px) {
  .prayer-detail-layout-clean {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .prayer-detail-sidebar-clean {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prayer-main-content {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .prayer-detail-layout-clean {
    grid-template-columns: 1fr;
  }

  .prayer-detail-sidebar-clean {
    gap: 18px;
  }

  .prayer-detail-more {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .prayer-detail-panel {
    width: 100vw;
    min-width: 0;
    padding: 28px 20px 0;
  }

  .prayer-detail-panel-head h2 {
    font-size: 28px;
  }

  .prayer-detail-panel-head p,
  .prayer-panel-section p,
  .prayer-panel-section ul,
  .prayer-panel-section-links .prayer-sidebar-links a,
  .prayer-panel-section-links .prayer-sidebar-all {
    font-size: 15px;
  }

  .prayer-panel-section h3 {
    font-size: 22px;
  }
}

.schedule-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 30px;
  align-items: stretch;
}

.schedule-hero .page-hero-copy h1 {
  color: var(--color-dark-wood);
  font-size: clamp(28px, 2.35vw, 38px);
}

.schedule-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.schedule-summary-card,
.schedule-original-card {
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.schedule-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.schedule-summary-card strong {
  display: block;
  margin-top: 12px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.25;
}

.schedule-summary-card p {
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.76);
  font-size: 16px;
  line-height: 1.58;
}

.schedule-summary-card .muted {
  color: rgba(63, 44, 31, 0.62);
}

.schedule-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.36fr);
  gap: 24px;
  width: min(91vw, 1320px);
  margin: 0 auto;
  align-items: start;
}

.schedule-week {
  display: grid;
  gap: 14px;
}

.schedule-day {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.schedule-date span {
  display: block;
  color: var(--color-old-gold);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.schedule-date strong {
  display: block;
  margin-top: 6px;
  color: rgba(63, 44, 31, 0.66);
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
}

.schedule-services {
  display: grid;
  gap: 10px;
}

.schedule-feast {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.32;
}

.schedule-feast.accent {
  margin-top: 6px;
  color: var(--color-wood);
}

.service-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(167, 122, 29, 0.16);
}

.service-row time {
  color: var(--color-old-gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.service-row p,
.schedule-note {
  margin: 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 17px;
  line-height: 1.6;
}

.service-row strong {
  color: var(--color-dark-wood);
}

.schedule-note {
  padding: 16px 18px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(239, 229, 211, 0.48);
  font-weight: 600;
}

.schedule-original {
  position: sticky;
  top: 24px;
}

.schedule-original-card {
  padding: 24px;
}

.schedule-original-card h2 {
  margin: 10px 0 18px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
}

.schedule-original-card a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: #fff;
}

.schedule-original-card img {
  display: block;
  width: 100%;
  height: auto;
}

.schedule-original-card p {
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.62);
  font-size: 15px;
  line-height: 1.5;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 24px;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.schedule-list time {
  color: var(--color-old-gold);
  font-size: 18px;
  font-weight: 700;
}

.schedule-list h2 {
  font-size: 24px;
}

.service-actions {
  display: grid;
  gap: 14px;
}

.action-card {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 132px;
  padding: 24px;
  color: var(--color-dark-wood);
  transition: transform 180ms ease, color 180ms ease;
}

.action-card:hover {
  color: var(--color-old-gold);
  transform: translateY(-2px);
}

.action-card span {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.action-card small {
  color: rgba(63, 44, 31, 0.66);
  font-size: 15px;
  line-height: 1.45;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.news-tools,
.news-pagination {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.news-tools {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 24px;
}

.news-tools a {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.news-tools a:hover,
.news-tools a.active {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.68);
  background: linear-gradient(180deg, #9d7419, #805b08);
}

.news-page .page-hero {
  grid-template-columns: 1fr;
  padding-bottom: 24px;
}

.news-page .page-hero-copy h1 {
  color: var(--color-dark-wood);
  font-size: clamp(28px, 2.35vw, 38px);
}

.news-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.news-card[hidden],
.news-pagination[hidden] {
  display: none;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: var(--color-paper);
}

.news-card-cross-week img {
  object-position: center top;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.news-card time,
.media-tile span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-old-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-card h2 {
  font-size: 24px;
}

.news-card a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  color: var(--color-wood);
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.news-card a:hover {
  color: var(--color-old-gold);
}

.news-pagination {
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 34px 0 0;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.82);
  font-weight: 700;
}

.news-pagination a {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.news-pagination a:hover,
.news-pagination a.active {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.68);
  background: linear-gradient(180deg, #9d7419, #805b08);
}

.news-pagination .disabled {
  color: rgba(122, 77, 37, 0.34);
  pointer-events: none;
}

.pagination-arrow {
  font-size: 18px;
}

.news-card:nth-child(2) img {
  object-position: center top;
}

.news-detail {
  position: relative;
  z-index: 2;
  width: min(91vw, 980px);
  margin: 18px auto 0;
}

.article-detail-page .news-detail {
  width: min(91vw, 1320px);
}

.news-detail-header,
.news-detail-content,
.news-detail-footer {
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.news-detail-header {
  padding: 34px;
}

.news-detail-header time {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-detail-header h1 {
  max-width: 850px;
  font-size: clamp(28px, 2.35vw, 38px);
}

.article-detail-page .news-detail-header h1 {
  max-width: none;
  white-space: nowrap;
}

.article-detail-page .news-detail-header {
  padding: 34px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.article-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 24px;
}

.article-audio-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(167, 122, 29, 0.46);
  border-radius: var(--radius-md);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.42);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.article-audio-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.article-audio-pause-icon,
.article-audio-stop-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  color: currentColor;
}

.article-audio-pause-icon::before,
.article-audio-pause-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.article-audio-pause-icon::before {
  left: 1px;
}

.article-audio-pause-icon::after {
  right: 1px;
}

.article-audio-stop-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: currentColor;
}

.article-audio-button:hover:not(:disabled),
.article-audio-button[aria-pressed="true"] {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.72);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 12px 26px rgba(128, 91, 8, 0.16);
  transform: translateY(-1px);
}

.article-audio-button:disabled {
  color: rgba(122, 77, 37, 0.36);
  border-color: rgba(167, 122, 29, 0.18);
  background: rgba(255, 249, 239, 0.28);
  cursor: default;
  transform: none;
}

.article-audio-play:disabled {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.72);
  background: linear-gradient(180deg, #9d7419, #805b08);
}

.article-audio-status {
  flex: 1 1 100%;
  margin: 0;
  color: rgba(63, 44, 31, 0.62);
  font-size: 14px;
  line-height: 1.4;
}

.news-detail-image {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.news-detail-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.news-cross-detail .news-detail-image img {
  object-position: center top;
}

.news-iskitim-detail .news-detail-image img {
  object-position: center top;
}

.article-detail-page .article-detail-image img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  max-height: none;
  object-position: center top;
}

.article-detail-page .news-detail-content p {
  max-width: 930px;
}

.article-detail-page .news-detail-content {
  background:
    radial-gradient(ellipse at left center, rgba(167, 122, 29, 0.11) 0%, rgba(167, 122, 29, 0.04) 16%, rgba(255, 249, 239, 0) 38%),
    radial-gradient(ellipse at right center, rgba(167, 122, 29, 0.11) 0%, rgba(167, 122, 29, 0.04) 16%, rgba(255, 249, 239, 0) 38%),
    radial-gradient(ellipse at center top, rgba(167, 122, 29, 0.06) 0%, rgba(255, 249, 239, 0) 34%),
    radial-gradient(ellipse at center bottom, rgba(167, 122, 29, 0.05) 0%, rgba(255, 249, 239, 0) 36%),
    rgba(255, 249, 239, 0.96);
  box-shadow:
    0 18px 50px rgba(63, 44, 31, 0.12),
    inset 0 0 0 1px rgba(167, 122, 29, 0.07),
    inset 0 0 22px rgba(167, 122, 29, 0.03);
}

.news-detail-content {
  padding: 34px;
}

.news-detail-content p {
  max-width: 780px;
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 18px;
  line-height: 1.76;
}

.news-detail-content p + p {
  margin-top: 20px;
}

.article-detail-page .article-detail-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article-detail-page .article-detail-image::before {
  content: none;
}

.news-gallery {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.news-gallery-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.news-gallery h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.28;
}

.news-gallery-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.news-gallery-controls button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 29, 0.28);
  border-radius: var(--radius-md);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.72);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.news-gallery-controls button:hover:not(:disabled) {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.68);
  background: linear-gradient(180deg, #9d7419, #805b08);
}

.news-gallery-controls button:disabled {
  color: rgba(122, 77, 37, 0.32);
  cursor: default;
}

.news-gallery-grid {
  display: grid;
  grid-auto-columns: calc((100% - 42px) / 4);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.news-gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  scroll-snap-align: start;
}

.news-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease, filter 220ms ease;
}

.news-gallery-grid a:hover img {
  filter: saturate(1.04);
  transform: scale(1.035);
}

.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 20px;
  align-items: center;
  padding: 34px;
  background: rgba(35, 25, 18, 0.86);
  backdrop-filter: blur(10px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-figure {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-width: 0;
  align-self: stretch;
  height: 100%;
  margin: 0;
}

.gallery-lightbox-figure img {
  display: block;
  align-self: center;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.gallery-lightbox-figure img.is-leaving-next {
  opacity: 0;
  transform: translateX(-18px);
}

.gallery-lightbox-figure img.is-leaving-prev {
  opacity: 0;
  transform: translateX(18px);
}

.gallery-lightbox-figure img.is-entering-next {
  opacity: 0;
  transform: translateX(18px);
}

.gallery-lightbox-figure img.is-entering-prev {
  opacity: 0;
  transform: translateX(-18px);
}

.gallery-lightbox-figure figcaption {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--color-ivory);
  font-size: 15px;
  line-height: 1.45;
}

.gallery-lightbox-counter {
  flex: 0 0 auto;
  color: var(--color-soft-gold);
  font-weight: 700;
}

.gallery-lightbox-close,
.gallery-lightbox-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 249, 239, 0.28);
  border-radius: var(--radius-md);
  color: var(--color-ivory);
  background: rgba(255, 249, 239, 0.12);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-arrow:hover {
  border-color: rgba(215, 181, 109, 0.64);
  background: rgba(255, 249, 239, 0.2);
  transform: translateY(-1px);
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
}

.gallery-lightbox-arrow {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.gallery-lightbox-prev {
  justify-self: end;
}

.gallery-lightbox-next {
  justify-self: start;
}

.news-detail-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  padding: 24px;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) repeat(2, minmax(230px, 0.46fr));
  gap: 24px;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.media-tile {
  position: relative;
  min-height: 240px;
  padding: 28px;
}

.media-tile h2 {
  font-size: 24px;
}

.large-tile {
  grid-row: span 2;
  min-height: 506px;
  padding: 0;
  overflow: hidden;
}

.large-tile img {
  width: 100%;
  height: 100%;
  min-height: 506px;
  object-fit: cover;
}

.large-tile div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px;
  background: linear-gradient(180deg, rgba(63, 44, 31, 0), rgba(63, 44, 31, 0.72));
  color: var(--color-ivory);
}

.large-tile span,
.large-tile h2 {
  color: var(--color-ivory);
}

.media-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.96) 0%, rgba(247, 241, 231, 0.94) 60%, rgba(255, 249, 239, 0.96) 100%);
}

.media-page .inner-breadcrumbs {
  padding-top: 28px;
}

.media-hero,
.media-feature-grid,
.media-latest,
.media-useful {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.parish-page .media-hero {
  width: min(91vw, 1320px);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  margin-top: 18px;
  padding: 34px 0 34px;
  background: transparent;
}

.media-hero {
  width: calc(100vw - ((100vw - min(91vw, 1320px)) / 2));
  min-height: 304px;
  margin-right: 0;
  margin-left: calc((100vw - min(91vw, 1320px)) / 2);
  margin-top: 18px;
  padding: 34px 0 34px;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.9) 33%, rgba(255, 249, 239, 0.42) 54%, rgba(255, 249, 239, 0.06) 76%),
    url("../img/banmedia-hero.webp?v=14");
  background-color: var(--color-ivory);
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
}

.media-hero-copy {
  width: min(520px, 48vw);
}

.media-title-group {
  width: max-content;
  max-width: 100%;
}

.media-hero h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.gold-divider.media-title-divider {
  width: 112px;
  height: 14px;
  margin: 26px auto 0;
}

.media-hero p {
  max-width: 470px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  line-height: 1.72;
}

.media-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -10px;
}

.media-feature-card,
.media-material-card,
.media-useful {
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.media-feature-card {
  display: grid;
  min-height: 410px;
  padding: 26px 18px 18px;
  background: var(--color-ivory);
}

.media-feature-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 0 10px 16px;
}

.media-icon-ring {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #c06c0e;
  border-radius: 50%;
}

.media-icon-ring img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.media-icon-ring-video {
  border-color: transparent;
}

.media-icon-ring-video img {
  width: 58px;
  height: 58px;
}

.media-feature-card h2,
.media-useful h2,
.media-submit h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
}

.media-feature-card p,
.media-useful p,
.media-submit p {
  margin: 8px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.media-feature-image {
  width: 100%;
  height: 202px;
  align-self: end;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: cover;
}

.media-card-link,
.media-section-head a,
.media-outline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-wood);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.media-card-link {
  align-self: end;
  margin-top: auto;
  padding-top: 24px;
}

.media-card-link:hover {
  color: var(--color-old-gold);
}

.media-card-link span,
.media-section-head a span,
.media-outline-link span {
  font-size: 16px;
  line-height: 0.7;
}

.media-latest {
  margin-top: 28px;
}

.media-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.media-section-head h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

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

.media-material-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.media-material-card:hover {
  border-color: rgba(167, 122, 29, 0.45);
  box-shadow: 0 18px 38px rgba(63, 44, 31, 0.12);
  transform: translateY(-2px);
}

.media-material-image {
  position: relative;
  height: 152px;
}

.media-material-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.media-material-meta span {
  padding: 5px 11px;
  border-radius: 6px;
  color: rgba(63, 44, 31, 0.82);
  background: rgba(255, 249, 239, 0.72);
  border: 1px solid rgba(167, 122, 29, 0.16);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.media-material-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 104px;
  padding: 16px 18px 18px;
}

.media-material-body time {
  color: rgba(63, 44, 31, 0.62);
  font-size: 13px;
}

.media-material-body h3 {
  margin: 10px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.42;
}

.media-material-arrow {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-wood);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.media-material-card:hover .media-material-arrow {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.media-useful {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 26px;
  padding: 22px 28px;
}

.media-useful-copy {
  min-width: 0;
}

.media-outline-link {
  width: min(238px, 100%);
  min-height: 46px;
  margin-top: 20px;
  padding: 0 18px 0 24px;
  border: 1px solid #c06c0e;
  border-radius: 6px;
}

.media-outline-link.compact {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  font-size: 13px;
}

.media-useful-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.media-useful-items a {
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 18px 10px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.78);
  color: var(--color-dark-wood);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.media-useful-items a:hover {
  border-color: rgba(167, 122, 29, 0.45);
  color: var(--color-old-gold);
  box-shadow: 0 18px 38px rgba(63, 44, 31, 0.12);
  transform: translateY(-2px);
}

.media-useful-items img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.media-useful-items a:hover img {
  transform: translateY(-1px);
}

.media-submit {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(167, 122, 29, 0.26);
}

.books-page .books-hero {
  width: min(91vw, 1320px);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 34px 0 22px;
  overflow: visible;
  background: transparent;
}

.books-page .books-hero .media-hero-copy {
  width: min(620px, 100%);
}

.books-page .books-hero .media-hero-copy p {
  max-width: 560px;
}

.books-catalog {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-top: 24px;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 72px;
}

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

.book-card {
  display: flex;
  min-height: 526px;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.08);
}

.book-cover {
  display: block;
  width: min(190px, 100%);
  align-self: center;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px);
  background: var(--color-paper);
  box-shadow: 0 16px 30px rgba(63, 44, 31, 0.16);
}

.book-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  margin-top: 24px;
}

.book-card-type {
  margin: 0;
  color: var(--color-old-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.book-card h3 {
  margin: 10px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.26;
}

.book-card-author {
  margin: 8px 0 0;
  color: var(--color-wood);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
}

.book-card-text {
  margin: 16px 0 0;
  color: rgba(63, 44, 31, 0.8);
  font-size: 16px;
  line-height: 1.62;
}

.book-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.book-primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(167, 122, 29, 0.46);
  border-radius: var(--radius-md);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.42);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.book-primary-link:hover {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.72);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 12px 26px rgba(128, 91, 8, 0.16);
  transform: translateY(-1px);
}

.book-primary-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.book-primary-link:hover img {
  filter: brightness(0) invert(1);
}

.book-source-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  color: var(--color-wood);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease;
}

.book-source-link:hover {
  color: var(--color-old-gold);
}

.book-source-link span {
  font-size: 16px;
  line-height: 1;
}

.books-pagination {
  display: flex;
}

.book-reader {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  width: min(91vw, 1320px);
  margin: 26px auto 78px;
  align-items: start;
}

.book-reader-cover {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 48px rgba(63, 44, 31, 0.08);
}

.book-reader-cover > img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow: 0 18px 32px rgba(63, 44, 31, 0.16);
}

.book-reader-cover .book-primary-link {
  justify-content: center;
}

.book-reader-main {
  min-width: 0;
}

.book-reader-header {
  padding: 42px 46px 36px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 42%),
    rgba(255, 249, 239, 0.96);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.06);
}

.book-reader-header h1 {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.35vw, 38px);
  line-height: 1.18;
}

.book-reader-header .media-title-divider {
  margin: 26px 0 0;
}

.book-reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.book-reader-toolbar button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(167, 122, 29, 0.46);
  border-radius: var(--radius-md);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.42);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.book-reader-toolbar button:hover {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.72);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 12px 26px rgba(128, 91, 8, 0.16);
  transform: translateY(-1px);
}

.book-reader-layout {
  display: block;
  margin-top: 18px;
}

.book-reader-text {
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.06);
}

.book-reader-toc {
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 20px 10px 4px 0;
  border-top: 1px solid rgba(167, 122, 29, 0.16);
  scrollbar-color: var(--color-wood) transparent;
  scrollbar-width: thin;
}

.book-reader-toc::-webkit-scrollbar {
  width: 6px;
}

.book-reader-toc::-webkit-scrollbar-track {
  background: transparent;
}

.book-reader-toc::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--color-wood);
}

.book-reader-toc::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark-wood);
}

.book-reader-toc h2 {
  margin: 0 0 14px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
}

.book-reader-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 34px;
  list-style-position: outside;
}

.book-reader-toc a,
.book-reader-toc p {
  color: rgba(63, 44, 31, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.book-reader-toc a:hover {
  color: var(--color-old-gold);
}

.book-reader-text {
  --reader-font-size: 19px;
  min-height: 520px;
  padding: clamp(30px, 4vw, 58px);
}

.book-reader-article {
  max-width: 760px;
  margin: 0 auto;
}

.book-reader-note {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 14px 18px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.54);
}

.book-reader-note p {
  margin: 0;
  color: rgba(63, 44, 31, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.book-reader-article h2,
.book-reader-article h3 {
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  line-height: 1.32;
}

.book-reader-article h2 {
  margin: 42px 0 18px;
  font-size: 28px;
}

.book-reader-article h2:first-child {
  margin-top: 0;
}

.book-reader-article h3 {
  margin: 34px 0 14px;
  color: var(--color-wood);
  font-size: 22px;
}

.book-reader-article p,
.book-reader-text > p {
  margin: 0;
  color: rgba(63, 44, 31, 0.86);
  font-family: var(--font-heading);
  font-size: var(--reader-font-size);
  line-height: 1.82;
}

.book-reader-article p + p {
  margin-top: 18px;
}

.book-reader-article hr {
  height: 20px;
  margin: 0;
  border: 0;
}

@media (max-width: 1180px) {
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-reader,
  .book-reader-layout {
    grid-template-columns: 1fr;
  }

  .book-reader-cover {
    position: static;
  }

  .book-reader-cover {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: start;
  }

  .book-reader-cover .book-primary-link {
    width: max-content;
  }

  .book-reader-toc {
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .books-page .books-hero,
  .books-catalog,
  .book-reader {
    width: calc(100vw - 40px);
  }

  .books-page .books-hero .media-hero-copy {
    width: 100%;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    padding: 20px;
  }

  .book-card h3 {
    font-size: 21px;
  }

  .book-card-text {
    font-size: 15px;
  }

  .book-reader {
    margin-top: 22px;
    margin-bottom: 58px;
  }

  .book-reader-cover {
    grid-template-columns: 1fr;
  }

  .book-reader-cover > img {
    width: min(210px, 100%);
  }

  .book-reader-cover .book-primary-link {
    width: 100%;
  }

  .book-reader-header,
  .book-reader-text {
    padding: 28px 22px;
  }

  .book-reader-layout {
    gap: 14px;
  }

  .book-reader-toc {
    padding: 22px 20px;
  }

  .book-reader-article h2 {
    font-size: 24px;
  }

  .book-reader-article h3 {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .book-cover {
    width: min(210px, 100%);
  }

  .book-card-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .book-primary-link {
    width: 100%;
    justify-content: center;
  }
}

.question-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 84% 20%, rgba(215, 181, 109, 0.12), rgba(215, 181, 109, 0) 28%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 231, 0.92) 58%, rgba(255, 249, 239, 0.98));
}

.question-page .inner-breadcrumbs {
  padding-top: 28px;
}

.question-breadcrumbs,
.question-hero,
.question-callout,
.question-form-section,
.question-answers {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.question-hero {
  display: grid;
  align-items: start;
  width: calc(100vw - ((100vw - min(91vw, 1320px)) / 2));
  min-height: 304px;
  margin-top: 18px;
  margin-right: 0;
  margin-left: calc((100vw - min(91vw, 1320px)) / 2);
  padding: 34px 0 34px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.93) 32%, rgba(255, 249, 239, 0.28) 57%, rgba(255, 249, 239, 0.02) 100%),
    url("../img/video-hero-savior-wide.webp") center right / cover no-repeat;
}

.question-hero-copy {
  width: min(520px, 48vw);
  padding: 0 0 0 8px;
}

.question-hero h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.gold-divider.question-title-divider {
  width: 112px;
  height: 14px;
  margin: 26px 0 0 calc((min(430px, 100%) - 112px) / 2);
}

.question-hero p {
  max-width: 430px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  line-height: 1.72;
}

.question-callout {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: -18px;
  padding: 32px 52px 32px 40px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 1);
  box-shadow: 0 16px 45px rgba(63, 44, 31, 0.08);
}

.question-callout-icon,
.question-ask-icon,
.question-search-icon {
  display: inline-block;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.question-callout-icon {
  width: 48px;
  height: 48px;
  background-image: url("../img/icon/iconngoquestion.svg");
}

.question-callout p {
  max-width: 620px;
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  line-height: 1.62;
}

.question-ask-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-width: 212px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 4px;
  color: var(--color-ivory);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 16px 34px rgba(99, 68, 11, 0.2);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.question-ask-button:hover {
  background: linear-gradient(180deg, #ad8428, #8b650f);
  text-decoration: none;
  transform: translateY(-2px);
}

.question-ask-icon {
  width: 22px;
  height: 22px;
  background-image: url("../img/icon/iconPencilquestion.svg");
}

.question-form-section {
  margin-top: 28px;
  scroll-margin-top: 28px;
}

.question-form-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 34px;
  padding: 34px 40px 38px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 16px 45px rgba(63, 44, 31, 0.08);
}

.question-form-heading h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.question-form {
  display: grid;
  gap: 18px;
}

.question-form[hidden],
.question-form-success[hidden],
.question-form-status[hidden] {
  display: none !important;
}

.question-field,
.question-captcha {
  display: grid;
  gap: 10px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.question-field textarea,
.question-captcha input {
  width: 100%;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 7px;
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.question-field textarea {
  min-height: 176px;
  resize: vertical;
  padding: 18px 20px;
  line-height: 1.62;
}

.question-captcha input {
  max-width: 168px;
  min-height: 52px;
  padding: 0 16px;
}

.question-field textarea:focus,
.question-captcha input:focus {
  border-color: rgba(167, 122, 29, 0.58);
  outline: none;
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

.question-field textarea::placeholder {
  color: rgba(63, 44, 31, 0.42);
}

.question-form-bottom {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
}

.question-captcha-task {
  color: rgba(63, 44, 31, 0.72);
  font-weight: 500;
}

.question-captcha-task b {
  color: var(--color-dark-wood);
}

.question-submit-button {
  display: inline-flex;
  min-width: 212px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  color: var(--color-ivory);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 16px 34px rgba(99, 68, 11, 0.2);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.question-submit-button:hover {
  background: linear-gradient(180deg, #ad8428, #8b650f);
  transform: translateY(-2px);
}

.question-form-status {
  margin: 0;
  color: rgba(63, 44, 31, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.question-form-status {
  padding: 12px 14px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 7px;
  background: rgba(255, 252, 247, 0.86);
  color: rgba(63, 44, 31, 0.82);
}

.question-form-status.is-error {
  border-color: rgba(150, 54, 34, 0.28);
  color: #7b2d1b;
  background: rgba(255, 238, 231, 0.82);
}

.question-form-success {
  align-self: center;
  padding: 26px 28px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.9);
}

.question-form-success h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
}

.question-form-success p {
  margin: 12px 0 0;
  color: rgba(63, 44, 31, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

.question-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.question-success-primary,
.question-success-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.question-success-primary {
  border: 0;
  color: var(--color-ivory);
  background: linear-gradient(180deg, #9d7419, #805b08);
}

.question-success-secondary {
  border: 1px solid rgba(167, 122, 29, 0.38);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.72);
}

.question-success-primary:hover,
.question-success-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(128, 91, 8, 0.14);
}

.question-success-secondary:hover {
  border-color: rgba(167, 122, 29, 0.58);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.96);
}

/* ================ Подать записки ================ */
.zapiski-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 84% 18%, rgba(215, 181, 109, 0.1), rgba(215, 181, 109, 0) 30%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 231, 0.92) 58%, rgba(255, 249, 239, 0.98));
}

.zapiski-page .inner-breadcrumbs {
  padding-top: 28px;
}

.zapiski-content,
.zapiski-info {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.zapiski-content {
  margin-top: 28px;
}

.zapiski-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

/* Левая памятка */
.zapiski-memory-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 34px 30px;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 231, 0.9));
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.zapiski-memory-cross {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
}

.zapiski-memory-title {
  margin: 0;
  text-align: center;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.36;
}

.zapiski-memory-text {
  margin: 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.68;
}

.zapiski-memory-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0;
}

.zapiski-memory-divider span {
  width: 70px;
  height: 1px;
  background: rgba(167, 122, 29, 0.34);
}

.zapiski-memory-divider i {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 1px solid rgba(167, 122, 29, 0.5);
  background: rgba(215, 181, 109, 0.18);
}

.zapiski-memory-quote {
  margin: 0;
}

.zapiski-memory-quote blockquote {
  margin: 0;
  text-align: center;
  color: rgba(63, 44, 31, 0.86);
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: italic;
  line-height: 1.58;
}

.zapiski-memory-quote figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zapiski-memory-church {
  width: 78px;
  height: 78px;
  margin: 6px auto 0;
  opacity: 0.7;
}

/* Карточка с формой */
.zapiski-form-card {
  display: grid;
  gap: 22px;
  padding: 34px 40px 38px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 16px 45px rgba(63, 44, 31, 0.08);
}

.zapiski-form-heading h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.zapiski-form-intro {
  margin: 10px 0 0;
  color: rgba(63, 44, 31, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

.zapiski-form {
  display: grid;
  gap: 22px;
}

.zapiski-form[hidden],
.zapiski-form-success[hidden],
.zapiski-form-status[hidden] {
  display: none !important;
}

/* Радио переключатель типа записки */
.zapiski-radio-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.zapiski-radio-group > legend,
.zapiski-names > legend,
.zapiski-field-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.zapiski-radio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zapiski-radio {
  position: relative;
  cursor: pointer;
}

.zapiski-radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.zapiski-radio-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid rgba(167, 122, 29, 0.26);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.9);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.zapiski-radio-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
}

.zapiski-radio-icon img {
  width: 26px;
  height: 26px;
}

.zapiski-radio-label {
  color: var(--color-dark-wood);
  font-size: 15px;
  font-weight: 600;
}

.zapiski-radio input:focus-visible + .zapiski-radio-card {
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

.zapiski-radio input:checked + .zapiski-radio-card {
  border-color: rgba(167, 122, 29, 0.6);
  background: rgba(215, 181, 109, 0.14);
  box-shadow: 0 8px 22px rgba(99, 68, 11, 0.1);
}

/* Селект и текстовые поля */
.zapiski-field {
  display: grid;
}

.zapiski-select-wrap {
  position: relative;
}

.zapiski-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(122, 77, 37, 0.6);
  border-bottom: 2px solid rgba(122, 77, 37, 0.6);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.zapiski-select-wrap select {
  width: 100%;
  min-height: 56px;
  padding: 0 46px 0 18px;
  border: 1px solid rgba(167, 122, 29, 0.26);
  border-radius: 7px;
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  font-weight: 400;
  appearance: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.zapiski-select-wrap select:focus {
  border-color: rgba(167, 122, 29, 0.58);
  outline: none;
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

/* Список имён */
.zapiski-names {
  margin: 0;
  padding: 0;
  border: 0;
}

.zapiski-names-list {
  display: grid;
  gap: 12px;
}

.zapiski-name-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
}

.zapiski-name-index {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 29, 0.32);
  border-radius: 50%;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
}

.zapiski-name-item input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(167, 122, 29, 0.26);
  border-radius: 7px;
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.zapiski-name-item input:focus,
.zapiski-field--contact input:focus {
  border-color: rgba(167, 122, 29, 0.58);
  outline: none;
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

.zapiski-name-item input::placeholder,
.zapiski-field--contact input::placeholder {
  color: rgba(63, 44, 31, 0.42);
}

.zapiski-name-remove {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(150, 54, 34, 0.24);
  border-radius: 50%;
  color: rgba(123, 45, 27, 0.7);
  background: rgba(255, 238, 231, 0.7);
  cursor: pointer;
  position: relative;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.zapiski-name-remove::before,
.zapiski-name-remove::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.zapiski-name-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.zapiski-name-remove:hover {
  border-color: rgba(150, 54, 34, 0.5);
  color: #7b2d1b;
  background: rgba(255, 226, 214, 0.9);
}

.zapiski-add-name {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  color: var(--color-wood);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease;
}

.zapiski-add-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 29, 0.42);
  border-radius: 50%;
  color: var(--color-old-gold);
  font-size: 18px;
  line-height: 1;
}

.zapiski-add-name:hover {
  color: var(--color-old-gold);
}

/* Контактное поле */
.zapiski-field--contact input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(167, 122, 29, 0.26);
  border-radius: 7px;
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  font-weight: 400;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.zapiski-optional {
  color: rgba(63, 44, 31, 0.42);
  font-weight: 400;
}

/* Нижняя часть формы */
.zapiski-form-bottom {
  display: grid;
  gap: 18px;
  margin-top: 4px;
}

.zapiski-consent {
  margin: 0;
  color: rgba(63, 44, 31, 0.6);
  font-size: 13px;
  line-height: 1.58;
}

.zapiski-submit {
  justify-self: start;
  display: inline-flex;
  min-width: 212px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  color: var(--color-ivory);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 16px 34px rgba(99, 68, 11, 0.2);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.zapiski-submit:hover {
  background: linear-gradient(180deg, #ad8428, #8b650f);
  transform: translateY(-2px);
}

.zapiski-form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 7px;
  background: rgba(255, 252, 247, 0.86);
  color: rgba(63, 44, 31, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.zapiski-form-status.is-error {
  border-color: rgba(150, 54, 34, 0.28);
  color: #7b2d1b;
  background: rgba(255, 238, 231, 0.82);
}

/* Подтверждение */
.zapiski-form-success {
  padding: 30px 32px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.9);
}

.zapiski-form-success h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
}

.zapiski-form-success p {
  margin: 12px 0 0;
  color: rgba(63, 44, 31, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

.zapiski-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.zapiski-success-primary,
.zapiski-success-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.zapiski-success-primary {
  border: 0;
  color: var(--color-ivory);
  background: linear-gradient(180deg, #9d7419, #805b08);
}

.zapiski-success-secondary {
  border: 1px solid rgba(167, 122, 29, 0.38);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.72);
  cursor: pointer;
}

.zapiski-success-primary:hover,
.zapiski-success-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(128, 91, 8, 0.14);
}

.zapiski-success-secondary:hover {
  border-color: rgba(167, 122, 29, 0.58);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.96);
}

/* Информационные карточки внизу */
.zapiski-info {
  margin-top: 48px;
}

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

.zapiski-info-card {
  display: grid;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.86);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.06);
}

.zapiski-info-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(215, 181, 109, 0.16);
}

.zapiski-info-icon img {
  width: 26px;
  height: 26px;
}

.zapiski-info-card h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.3;
}

.zapiski-info-card p {
  margin: 0;
  color: rgba(63, 44, 31, 0.74);
  font-size: 14.5px;
  line-height: 1.62;
}

@media (max-width: 980px) {
  .zapiski-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .zapiski-memory-card {
    order: 2;
  }

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

@media (max-width: 760px) {
  .zapiski-content,
  .zapiski-info {
    width: calc(100vw - 40px);
  }

  .zapiski-form-card {
    padding: 30px 24px;
  }

  .zapiski-form-heading h2 {
    font-size: 24px;
  }

  .zapiski-submit {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .zapiski-form-card {
    padding: 26px 18px;
  }

  .zapiski-memory-card {
    padding: 28px 22px;
  }

  .zapiski-info-grid {
    grid-template-columns: 1fr;
  }

  .zapiski-name-item {
    grid-template-columns: 26px minmax(0, 1fr) 34px;
    gap: 10px;
  }
}

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

.zapiski-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 64px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 231, 0.93) 58%, rgba(255, 249, 239, 0.98)),
    var(--color-ivory);
}

.zapiski-page .zapiski-hero {
  width: min(91vw, 1320px);
  min-height: 0;
  margin: 18px auto 0;
  padding: 34px 0 0;
  overflow: visible;
  background: transparent;
}

.zapiski-page .zapiski-hero .media-hero-copy {
  width: min(520px, 100%);
}

.zapiski-content {
  width: min(91vw, 1320px);
  margin: -150px auto 0;
}

.zapiski-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.02fr) minmax(420px, 0.88fr);
  gap: 54px;
  align-items: stretch;
}

.zapiski-preview-column {
  display: grid;
  gap: 26px;
  align-content: space-between;
  min-width: 0;
  padding-top: 180px;
}

.zapiski-blank {
  --blank-accent: #d05b5a;
  --blank-line: rgba(208, 91, 90, 0.66);
  position: relative;
  min-height: 612px;
  padding: 28px 70px 26px;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.zapiski-blank.is-repose {
  --blank-accent: #1f1d1a;
  --blank-line: rgba(31, 29, 26, 0.54);
}

.zapiski-blank-corner {
  position: absolute;
  z-index: 1;
  width: 46px;
  height: 46px;
  pointer-events: none;
}

.zapiski-blank-corner--tl {
  top: 16px;
  left: 16px;
}

.zapiski-blank-corner--tr {
  top: 16px;
  right: 16px;
  transform: rotate(90deg);
}

.zapiski-blank-corner--br {
  right: 16px;
  bottom: 16px;
  transform: rotate(180deg);
}

.zapiski-blank-corner--bl {
  bottom: 16px;
  left: 16px;
  transform: rotate(270deg);
}

.zapiski-blank-side {
  position: absolute;
  top: 82px;
  bottom: 68px;
  z-index: 1;
  width: 12px;
  height: calc(100% - 150px);
  object-fit: fill;
  pointer-events: none;
}

.zapiski-blank-side--left {
  left: 18px;
}

.zapiski-blank-side--right {
  right: 18px;
  transform: scaleX(-1);
}

.zapiski-blank.is-repose .zapiski-blank-corner,
.zapiski-blank.is-repose .zapiski-blank-side,
.zapiski-blank.is-repose .zapiski-blank-cross,
.zapiski-blank.is-repose .zapiski-blank-monogram,
.zapiski-blank.is-repose .zapiski-blank-monogram-down {
  filter: brightness(0) saturate(100%) opacity(0.92);
}

.zapiski-blank-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
  margin: 0 auto 34px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.2);
}

.zapiski-blank-tabs button {
  min-width: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #1f1d1a;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.zapiski-blank-tabs button.active {
  border-color: var(--blank-accent);
  color: var(--blank-accent);
}

.zapiski-blank-sacred {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.zapiski-blank-cross {
  width: 54px;
  height: 70px;
  object-fit: contain;
}

.zapiski-blank-monogram {
  width: 246px;
  max-width: 68%;
  height: auto;
}

.zapiski-blank-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 32px;
  color: var(--blank-accent);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  counter-reset: zapiski;
  list-style: none;
}

.zapiski-blank-list li {
  position: relative;
  min-height: 30px;
  border-bottom: 1px solid var(--blank-line);
  counter-increment: zapiski;
}

.zapiski-blank-list li::before {
  position: absolute;
  top: 8px;
  left: -30px;
  content: counter(zapiski) ".";
}

.zapiski-blank-list span {
  display: block;
  min-height: 30px;
  padding: 0 0 0 12px;
  color: #1f5c98;
  font-family: var(--font-script);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.05;
  transform: translateY(1px) rotate(-1deg);
}

.zapiski-blank-monogram-down {
  display: block;
  width: 190px;
  max-width: 52%;
  height: auto;
  margin: 24px auto 0;
}

.zapiski-blank-note {
  margin: 22px 0 0;
  color: rgba(63, 44, 31, 0.62);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.zapiski-temple-note {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 232, 211, 0.2), rgba(255, 249, 239, 0.18) 50%, rgba(247, 232, 211, 0.22)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    linear-gradient(90deg, rgba(247, 232, 211, 0.9), rgba(255, 249, 239, 0.72) 50%, rgba(247, 232, 211, 0.88)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 56%),
    #f2e3d0;
  box-shadow:
    inset 0 0 0 1px rgba(185, 144, 62, 0.08),
    0 18px 44px rgba(63, 44, 31, 0.06);
}

.zapiski-temple-note img {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.zapiski-temple-note div {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.zapiski-temple-note p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(63, 44, 31, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

.zapiski-temple-note-rule {
  display: none;
}

.zapiski-temple-note-rule strong {
  display: block;
  color: var(--color-dark-wood);
}

.zapiski-temple-note-rule + p {
  margin-top: 12px;
}

.zapiski-form-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  padding: 24px 28px 24px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 16px 45px rgba(63, 44, 31, 0.08);
}

.zapiski-form-heading h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
}

.zapiski-card-divider {
  width: 74px;
  height: 12px;
  margin: 12px 0 0 16px;
}

.zapiski-card-divider::before {
  top: 6px;
}

.zapiski-card-divider::after {
  top: 2px;
}

.zapiski-form {
  display: grid;
  gap: 16px;
}

.zapiski-form[hidden],
.zapiski-form-success[hidden],
.zapiski-form-status[hidden] {
  display: none !important;
}

.zapiski-radio-group,
.zapiski-names,
.zapiski-donation {
  margin: 0;
  padding: 0;
  border: 0;
}

.zapiski-radio-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.16);
}

.zapiski-radio {
  position: relative;
  cursor: pointer;
}

.zapiski-radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.zapiski-radio-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zapiski-radio-mark {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid rgba(167, 122, 29, 0.48);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.8);
}

.zapiski-radio input:checked + .zapiski-radio-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.zapiski-radio input:checked + .zapiski-radio-card .zapiski-radio-mark {
  border-color: var(--color-old-gold);
}

.zapiski-radio input:checked + .zapiski-radio-card .zapiski-radio-mark::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  content: "";
  background: var(--color-old-gold);
}

.zapiski-radio-label,
.zapiski-radio-description {
  display: block;
}

.zapiski-radio-label {
  color: var(--color-dark-wood);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.zapiski-radio-description {
  margin-top: 4px;
  color: rgba(63, 44, 31, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.zapiski-names > legend,
.zapiski-donation > legend,
.zapiski-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.zapiski-names-hint {
  margin: -2px 0 14px;
  color: rgba(63, 44, 31, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.zapiski-names-list {
  display: grid;
  gap: 10px;
  max-height: 164px;
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-color: rgba(167, 122, 29, 0.58) rgba(167, 122, 29, 0.12);
}

.zapiski-name-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
}

.zapiski-name-item input,
.zapiski-field--contact input {
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 6px;
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.zapiski-name-item input:focus,
.zapiski-field--contact input:focus {
  border-color: rgba(167, 122, 29, 0.58);
  outline: none;
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

.zapiski-name-remove {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: rgba(63, 44, 31, 0.62);
  background: transparent;
  cursor: pointer;
}

.zapiski-name-remove::before,
.zapiski-name-remove::after {
  content: none;
}

.zapiski-name-remove img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.zapiski-name-remove:hover {
  color: var(--color-old-gold);
  background: transparent;
}

.zapiski-add-name {
  justify-self: start;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgba(167, 122, 29, 0.45);
  border-radius: 6px;
  color: var(--color-wood);
  background: rgba(255, 252, 247, 0.62);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.zapiski-add-icon {
  width: auto;
  height: auto;
  border: 0;
  color: var(--color-old-gold);
  font-size: 22px;
}

.zapiski-warning {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(239, 229, 211, 0.55);
}

.zapiski-warning img {
  width: 30px;
  height: 40px;
  object-fit: contain;
}

.zapiski-warning p {
  margin: 0;
  color: rgba(63, 44, 31, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.zapiski-warning strong {
  color: var(--color-dark-wood);
}

.zapiski-field {
  display: grid;
  padding-top: 2px;
}

.zapiski-donation-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.zapiski-donation-options button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 6px;
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.zapiski-donation-options button.active,
.zapiski-donation-options button:hover {
  border-color: rgba(192, 108, 14, 0.62);
  color: var(--color-old-gold);
  background: rgba(215, 181, 109, 0.16);
}

.zapiski-custom-amount {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.zapiski-custom-amount[hidden] {
  display: none !important;
}

.zapiski-custom-amount-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.9);
}

.zapiski-custom-amount-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--color-dark-wood);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: 0;
}

.zapiski-custom-amount-field > span {
  color: var(--color-dark-wood);
  font-size: 18px;
  font-weight: 700;
}

.zapiski-custom-amount-field:focus-within {
  border-color: rgba(167, 122, 29, 0.58);
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

.zapiski-form-bottom {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.zapiski-submit {
  justify-self: stretch;
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  color: #fff9ef;
  background: linear-gradient(180deg, #c7972e 0%, #a97710 100%);
  box-shadow: 0 16px 30px rgba(167, 122, 29, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.zapiski-submit:hover {
  background: linear-gradient(180deg, #d0a03d 0%, #b5831a 100%);
  transform: translateY(-1px);
}

.zapiski-checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: rgba(63, 44, 31, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.zapiski-checkbox > span:last-child {
  min-width: 0;
  text-align: left;
}

.zapiski-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zapiski-checkbox-mark {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid rgba(167, 122, 29, 0.48);
  border-radius: 4px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.9);
  pointer-events: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.zapiski-checkbox-mark::after {
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff9ef;
  border-bottom: 2px solid #fff9ef;
  content: "";
  opacity: 0;
  transform: rotate(42deg);
}

.zapiski-checkbox input:checked + .zapiski-checkbox-mark {
  border-color: var(--color-old-gold);
  background: linear-gradient(180deg, #c7972e 0%, #a97710 100%);
  box-shadow: 0 6px 14px rgba(167, 122, 29, 0.18);
}

.zapiski-checkbox input:checked + .zapiski-checkbox-mark::after {
  opacity: 1;
}

.zapiski-checkbox input:focus-visible + .zapiski-checkbox-mark {
  outline: 3px solid rgba(167, 122, 29, 0.26);
  outline-offset: 2px;
}

.zapiski-checkbox a,
.zapiski-checkbox .help-consent-link {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--color-old-gold);
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.zapiski-pay-note {
  margin-top: 2px;
  font-size: 12px;
}

.zapiski-form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 7px;
  background: rgba(255, 252, 247, 0.86);
  color: rgba(63, 44, 31, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.zapiski-form-status.is-error {
  border-color: rgba(150, 54, 34, 0.28);
  color: #7b2d1b;
  background: rgba(255, 238, 231, 0.82);
}

.zapiski-form-success {
  padding: 28px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.9);
}

@media (max-width: 1120px) {
  .zapiski-content {
    margin-top: 28px;
  }

  .zapiski-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .zapiski-preview-column {
    align-content: start;
    padding-top: 0;
  }

  .zapiski-blank {
    max-width: 680px;
    margin: 0 auto;
  }

  .zapiski-temple-note {
    width: 100%;
    margin: 0 auto;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .zapiski-preview-column {
    grid-template-columns: minmax(430px, 1fr) minmax(220px, 0.58fr);
    gap: 22px;
    align-items: center;
  }

  .zapiski-blank {
    width: 100%;
    max-width: none;
  }

  .zapiski-temple-note {
    align-self: stretch;
    grid-template-columns: 1fr;
    gap: 16px;
    align-content: center;
    justify-items: center;
    padding: 24px 22px;
    text-align: center;
  }

  .zapiski-temple-note img {
    width: 62px;
    height: 62px;
  }

  .zapiski-temple-note-rule {
    display: block;
  }
}

@media (max-width: 760px) {
  .zapiski-content {
    width: calc(100vw - 40px);
  }

  .zapiski-preview-column {
    grid-template-columns: 1fr;
  }

  .zapiski-blank {
    min-height: 560px;
    padding: 24px 44px 22px;
  }

  .zapiski-blank-tabs {
    gap: 12px;
    margin-bottom: 24px;
  }

  .zapiski-blank-tabs button {
    font-size: 13px;
  }

  .zapiski-blank-list span {
    font-size: 24px;
  }

  .zapiski-blank-note {
    max-width: 160px;
    margin: 14px auto 0;
    line-height: 1.35;
  }

  .zapiski-form-card {
    padding: 24px 18px;
  }

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

@media (max-width: 480px) {
  .zapiski-blank {
    min-height: 520px;
    padding: 22px 32px 20px;
  }

  .zapiski-blank-corner {
    width: 34px;
    height: 34px;
  }

  .zapiski-blank-side {
    display: none;
  }

  .zapiski-blank-cross {
    width: 44px;
    height: 58px;
  }

  .zapiski-blank-monogram {
    width: 190px;
  }

  .zapiski-blank-list {
    padding-left: 26px;
    font-size: 14px;
  }

  .zapiski-blank-list li::before {
    left: -25px;
  }

  .zapiski-blank-list span {
    padding-left: 8px;
    font-size: 22px;
  }

  .zapiski-temple-note {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .zapiski-temple-note img {
    margin: 0 auto;
  }
}

.question-answers {
  margin-top: 48px;
}

.question-answers h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.question-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.22);
}

.question-filters a {
  position: relative;
  padding: 0 0 18px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 15px;
  font-weight: 600;
}

.question-filters a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.question-filters a:hover,
.question-filters a.active {
  color: var(--color-old-gold);
  text-decoration: none;
}

.question-filters a.active::after {
  background: var(--color-old-gold);
}

.question-search {
  display: flex;
  align-items: center;
  width: min(520px, 100%);
  min-height: 58px;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 7px;
  background: rgba(255, 249, 239, 0.86);
}

.question-search-icon {
  width: 20px;
  height: 20px;
  margin-right: 16px;
  background-image: url("../img/icon/iconSearch.svg");
}

.question-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-dark-wood);
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.question-search input::placeholder {
  color: rgba(63, 44, 31, 0.45);
}

.question-search input::-webkit-search-cancel-button {
  width: 16px;
  height: 16px;
  margin-right: -3px;
  margin-left: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, #9d7419, #805b08);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.4 2.3 8 6.9l4.6-4.6 1.1 1.1L9.1 8l4.6 4.6-1.1 1.1L8 9.1l-4.6 4.6-1.1-1.1L6.9 8 2.3 3.4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.4 2.3 8 6.9l4.6-4.6 1.1 1.1L9.1 8l4.6 4.6-1.1 1.1L8 9.1l-4.6 4.6-1.1-1.1L6.9 8 2.3 3.4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.question-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.question-item {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.72);
  box-shadow: 0 12px 34px rgba(63, 44, 31, 0.06);
}

.question-item summary {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 0 32px;
  cursor: pointer;
  list-style: none;
}

.question-item summary::-webkit-details-marker {
  display: none;
}

.question-category {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 5px;
  color: var(--color-old-gold);
  background: rgba(215, 181, 109, 0.14);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.question-item summary strong {
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.28;
}

.question-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  justify-self: end;
}

.question-toggle::before,
.question-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--color-dark-wood);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.question-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.question-item[open] .question-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.question-answer {
  padding: 24px 40px 42px;
  border-top: 1px solid rgba(167, 122, 29, 0.16);
}

.question-answer-body {
  max-width: 890px;
}

.question-answer-label {
  margin: 0 0 14px;
  color: var(--color-dark-wood);
  font-size: 15px;
  font-weight: 700;
}

.question-answer-body p:not(.question-answer-label) {
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  line-height: 1.72;
}

.question-answer-body p + p {
  margin-top: 18px;
}

.question-pagination {
  margin-top: 40px;
}

@media (max-width: 980px) {
  .question-hero {
    min-height: 360px;
    background:
      linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.92) 44%, rgba(255, 249, 239, 0.22) 100%),
      url("../img/video-hero-savior-wide.webp") center right / cover no-repeat;
  }

  .question-hero-copy {
    width: min(520px, 72%);
    padding: 0 0 0 4px;
  }

  .question-callout {
    grid-template-columns: 54px minmax(0, 1fr);
    margin-top: -14px;
    padding: 28px 30px;
  }

  .question-form-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
  }

  .question-ask-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .question-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 34px;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .question-filters a {
    flex: 0 0 auto;
  }

  .question-item summary {
    grid-template-columns: 148px minmax(0, 1fr) 28px;
    padding: 0 24px;
  }
}

@media (max-width: 760px) {
  .question-breadcrumbs,
  .question-hero,
  .question-callout,
  .question-form-section,
  .question-answers {
    width: calc(100vw - 40px);
  }

  .question-hero {
    width: calc(100vw - 20px);
    min-height: 320px;
    margin-right: 0;
    margin-left: 20px;
    padding: 34px 24px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.9) 42%, rgba(255, 249, 239, 0.36) 100%),
      url("../img/video-hero-savior-wide.webp") 68% center / cover no-repeat;
  }

  .question-hero-copy {
    width: 100%;
    padding: 0;
  }

  .gold-divider.question-title-divider {
    margin-left: calc((min(430px, 100%) - 112px) / 2);
    margin-right: 0;
  }

  .question-hero p {
    max-width: 430px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.62;
  }

  .question-callout {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    margin-top: -12px;
    padding: 24px 22px;
  }

  .question-form-section {
    margin-top: 24px;
  }

  .question-form-card {
    padding: 26px 22px;
  }

  .question-form-heading h2 {
    font-size: 26px;
  }

  .question-form-bottom {
    display: grid;
    gap: 18px;
  }

  .question-captcha input {
    max-width: 100%;
  }

  .question-submit-button {
    width: 100%;
  }

  .question-callout-icon {
    width: 40px;
    height: 40px;
  }

  .question-ask-button {
    width: 100%;
    min-width: 0;
  }

  .question-answers {
    margin-top: 38px;
  }

  .question-answers h2 {
    font-size: 26px;
  }

  .question-item summary {
    grid-template-columns: 1fr 28px;
    gap: 14px;
    min-height: 0;
    padding: 18px 20px;
  }

  .question-category {
    grid-column: 1 / -1;
  }

  .question-item summary strong {
    font-size: 18px;
  }

  .question-answer {
    padding: 22px 20px 30px;
  }

  .question-answer-body p:not(.question-answer-label) {
    font-size: 15px;
    line-height: 1.66;
  }
}

@media (max-width: 460px) {
  .question-hero h1 {
    font-size: 30px;
  }

  .question-callout {
    grid-template-columns: 1fr;
  }

  .question-form-card {
    padding: 24px 18px;
  }

  .question-field textarea {
    min-height: 168px;
    padding: 16px;
  }

  .question-callout-icon {
    justify-self: start;
  }

  .question-search {
    min-height: 54px;
    padding: 0 16px;
  }

}

.video-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 46px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 241, 231, 0.94) 58%, rgba(255, 249, 239, 0.98) 100%);
}

.video-page .inner-breadcrumbs {
  padding-top: 28px;
}

.video-hero,
.video-feature,
.video-list {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.video-hero {
  margin-top: 24px;
  padding: 0;
  background: transparent;
}

.video-hero-copy {
  width: max-content;
  max-width: 100%;
}

.video-title-group {
  width: max-content;
  max-width: 100%;
}

.video-hero h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

.video-lead {
  display: flex;
  max-width: 490px;
  margin: 34px 0 0;
  color: rgba(63, 44, 31, 0.86);
  font-family: var(--font-heading);
  font-size: 16.5px;
  line-height: 1.58;
}

.video-lead img {
  flex: 0 0 82px;
  width: 82px;
  height: 94px;
  margin: -6px 6px 0 0;
  object-fit: contain;
}

.video-feature {
  overflow: hidden;
  width: min(91vw, 1320px);
  margin-top: 28px;
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 18px 42px rgba(63, 44, 31, 0.12);
}

.video-player-wrap {
  background: #241910;
}

.video-player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-feature-body {
  position: relative;
  padding: 28px 36px 36px;
}

.video-feature-body h2 {
  max-width: 740px;
  padding-right: 54px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.26;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: rgba(63, 44, 31, 0.68);
  font-size: 14px;
}

.video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-meta img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.video-info {
  max-width: 760px;
  margin-top: 20px;
}

.video-info summary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(122, 77, 37, 0.38);
  border-radius: 4px;
  color: var(--color-wood);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  background: rgba(255, 249, 239, 0.52);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.video-info summary::-webkit-details-marker {
  display: none;
}

.video-info summary::after {
  width: 7px;
  height: 7px;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.video-info[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.video-info summary:hover {
  border-color: rgba(167, 122, 29, 0.68);
  background: rgba(255, 249, 239, 0.78);
  transform: translateY(-2px);
}

.video-info-content {
  padding-top: 18px;
}

.video-info-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(63, 44, 31, 0.86);
  font-size: 15px;
  line-height: 1.72;
}

.video-share-icon {
  position: absolute;
  top: 24px;
  right: 36px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(192, 108, 14, 0.75);
  border-radius: 5px;
  background: rgba(255, 252, 247, 0.98);
  color: var(--color-wood);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.video-share-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.video-share-icon:hover {
  border-color: var(--color-old-gold);
  background: rgba(167, 122, 29, 0.08);
  color: var(--color-old-gold);
  transform: translateY(-1px);
}

.video-share-popover {
  position: absolute;
  top: 62px;
  right: 36px;
  z-index: 10;
  width: min(520px, calc(100% - 72px));
  padding: 18px;
  border: 1px solid rgba(122, 77, 37, 0.14);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 38px rgba(63, 44, 31, 0.13);
}

.video-share-popover h3 {
  margin: 0 0 12px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.25;
}

.video-share-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 4px;
  border: 1px solid rgba(122, 77, 37, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.video-share-row:focus-within {
  border-color: rgba(167, 122, 29, 0.46);
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(167, 122, 29, 0.1);
}

.video-share-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--color-dark-wood);
  font: inherit;
  font-size: 14px;
}

.video-share-row input:focus {
  outline: none;
}

.video-watch-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(192, 108, 14, 0.75);
  border-radius: 5px;
  background: transparent;
  color: var(--color-wood);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.video-copy-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(122, 77, 37, 0.18);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.72);
  color: var(--color-wood);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.video-copy-button:hover {
  border-color: rgba(167, 122, 29, 0.58);
  background: rgba(255, 249, 239, 0.96);
  color: var(--color-old-gold);
}

.video-watch-link:hover {
  border-color: var(--color-old-gold);
  background: rgba(167, 122, 29, 0.08);
  color: var(--color-old-gold);
  transform: translateY(-1px);
}

.video-list {
  margin-top: 44px;
}

.video-section-head {
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
}

.video-section-head h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.video-card:hover {
  border-color: rgba(167, 122, 29, 0.42);
  box-shadow: 0 18px 38px rgba(63, 44, 31, 0.12);
  transform: translateY(-2px);
}

.video-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #2b2119;
}

.video-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.video-card:hover .video-card-media img {
  transform: scale(1.025);
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(28, 21, 16, 0.82);
  color: var(--color-ivory);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.video-card-body {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px 22px 22px;
}

.video-category {
  color: var(--color-wood);
  font-size: 13px;
  font-weight: 700;
}

.video-card time {
  margin-top: 10px;
  color: rgba(63, 44, 31, 0.55);
  font-size: 13px;
}

.video-card h3 {
  margin: 18px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.38;
}

.video-watch-link {
  gap: 10px;
  width: max-content;
  margin-top: auto;
  padding: 0 18px;
}

.video-watch-link span {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.video-pagination {
  display: flex;
}

.photos-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 46px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 241, 231, 0.94) 58%, rgba(255, 249, 239, 0.98) 100%);
}

.photos-hero,
.photos-grid {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.photos-hero {
  margin-top: 24px;
}

.photos-hero h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

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

.photo-album-card {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.photo-album-card:hover {
  border-color: rgba(167, 122, 29, 0.42);
  box-shadow: 0 18px 38px rgba(63, 44, 31, 0.12);
  transform: translateY(-2px);
}

.photo-album-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  background: var(--color-paper);
}

.photo-album-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-album-card:hover .photo-album-image > img {
  transform: scale(1.025);
}

.photo-count {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  min-width: 64px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.94);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(63, 44, 31, 0.12);
}

.photo-count img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.photo-album-body {
  padding: 22px 26px 24px;
}

.photo-album-body h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.photo-album-body time {
  display: block;
  margin-top: 12px;
  color: rgba(63, 44, 31, 0.66);
  font-size: 15px;
  line-height: 1.4;
}

.photos-pagination {
  padding-top: 38px;
}

.photo-album-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 46px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 241, 231, 0.94) 58%, rgba(255, 249, 239, 0.98) 100%);
}

.photo-album-hero,
.photo-album-description,
.photo-album-gallery-section,
.photo-album-footer {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.photo-album-hero {
  margin-top: 24px;
}

.photo-album-title-row {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
}

.photo-album-hero h1 {
  max-width: 840px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

.photo-slideshow-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 296px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid rgba(167, 122, 29, 0.58);
  border-radius: var(--radius-md);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.4);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.photo-slideshow-button span {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.photo-slideshow-button:hover,
.photo-slideshow-button[aria-pressed="true"] {
  color: var(--color-ivory);
  border-color: rgba(167, 122, 29, 0.72);
  background: linear-gradient(180deg, #9d7419, #805b08);
  box-shadow: 0 12px 26px rgba(128, 91, 8, 0.16);
  transform: translateY(-1px);
}

.photo-album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
  color: rgba(63, 44, 31, 0.68);
  font-size: 15px;
  font-weight: 700;
}

.photo-album-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.photo-album-meta img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.photo-album-meta img[src*="iconPhotocamera"] {
  width: 22px;
  height: 22px;
}

.photo-album-description {
  margin-top: 46px;
}

.photo-album-description p {
  max-width: 930px;
  margin: 0;
  color: rgba(63, 44, 31, 0.8);
  font-size: 19px;
  line-height: 1.85;
}

.photo-album-divider {
  width: 112px;
  margin: 34px auto 0;
}

.photo-album-gallery-section {
  margin-top: 36px;
}

.photo-album-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.photo-album-gallery button {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photo-album-gallery button:focus-visible {
  outline: 2px solid #a77a1d;
  outline-offset: 4px;
}

.photo-album-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(63, 44, 31, 0.1);
  transition:
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.photo-album-gallery button:hover img {
  filter: brightness(1.04);
  box-shadow: 0 16px 30px rgba(63, 44, 31, 0.14);
  transform: translateY(-2px);
}

.photo-album-footer {
  display: flex;
  margin-top: 34px;
}

.articles-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 48px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 241, 231, 0.94) 58%, rgba(255, 249, 239, 0.98) 100%);
}

.articles-hero,
.articles-featured,
.articles-grid {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.articles-hero {
  position: relative;
  min-height: 320px;
  margin-top: 18px;
  padding-top: 34px;
}

.articles-hero::before {
  content: "";
  position: absolute;
  top: -92px;
  right: -28px;
  height: 460px;
  z-index: 0;
  width: min(86vw, 1120px);
  background:
    radial-gradient(ellipse at 72% 48%, rgba(247, 232, 211, 0.62) 0%, rgba(247, 232, 211, 0.34) 30%, rgba(255, 249, 239, 0) 66%),
    radial-gradient(ellipse at 58% 54%, rgba(255, 249, 239, 0.34) 0%, rgba(255, 249, 239, 0.16) 34%, rgba(255, 249, 239, 0) 68%),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 54%);
  background-blend-mode: normal, normal, multiply, normal;
  opacity: 0.64;
  mask-image:
    radial-gradient(ellipse at 74% 48%, #000 0%, rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0.48) 56%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  -webkit-mask-image:
    radial-gradient(ellipse at 74% 48%, #000 0%, rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0.48) 56%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  pointer-events: none;
}

.articles-hero-copy {
  position: relative;
  z-index: 2;
  width: min(500px, 45vw);
  min-width: 0;
}

.articles-hero h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.gold-divider.articles-title-divider {
  width: 112px;
  height: 14px;
  margin: 26px auto 0;
}

.articles-hero-copy p {
  max-width: 470px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
}

.articles-hero-copy p img {
  float: left;
  width: 118px;
  height: auto;
  margin: 2px 18px 0 0;
}

.articles-description-break {
  display: block;
  clear: both;
}

.articles-hero-image {
  display: block;
  position: absolute;
  top: -50px;
  right: 36px;
  z-index: 1;
  width: min(82vw, 1060px);
  max-width: none;
  height: 460px;
  max-height: none;
  object-fit: contain;
  object-position: right center;
  opacity: 0.78;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.articles-featured {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.articles-featured figure {
  min-height: 315px;
  margin: 0;
}

.articles-featured figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articles-featured-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px 30px 28px;
}

.articles-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.articles-featured-label::before {
  content: "★";
  font-size: 15px;
  line-height: 1;
}

.articles-featured h2,
.article-card h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-weight: 700;
}

.articles-featured h2 {
  max-width: 560px;
  font-size: 30px;
  line-height: 1.28;
}

.articles-featured-body > p:not(.articles-featured-label) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 16px;
  line-height: 1.72;
}

.articles-featured-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 30px;
}

.articles-featured time,
.article-card time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(63, 44, 31, 0.68);
  font-size: 14px;
  line-height: 1.4;
}

.articles-featured time img,
.article-card time img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.articles-featured a,
.article-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-wood);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease;
}

.articles-featured a {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(167, 122, 29, 0.54);
  border-radius: var(--radius-md);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.38);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.articles-featured a:hover {
  border-color: rgba(167, 122, 29, 0.78);
  color: var(--color-ivory);
  background: var(--color-old-gold);
}

.article-card a:hover {
  color: var(--color-old-gold);
}

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

.article-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  min-height: 192px;
  padding: 16px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 12px 30px rgba(63, 44, 31, 0.06);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.article-card:hover {
  border-color: rgba(167, 122, 29, 0.36);
  box-shadow: 0 16px 34px rgba(63, 44, 31, 0.1);
  transform: translateY(-2px);
}

.article-card > img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 6px;
  object-fit: cover;
}

.article-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.article-card h2 {
  font-size: 18px;
  line-height: 1.38;
}

.article-card time {
  margin-top: 20px;
}

.article-card a {
  margin-top: auto;
}

.articles-pagination {
  padding-top: 38px;
}

@media (max-width: 1180px) {
  .media-feature-grid,
  .media-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-useful {
    grid-template-columns: 1fr;
  }

  .media-submit {
    padding: 22px 0 0;
    border-top: 1px solid rgba(167, 122, 29, 0.26);
    border-left: 0;
  }

  .articles-hero {
    min-height: 340px;
  }

  .articles-featured {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
  }

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

  .sacrament-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sacrament-panel {
    grid-template-columns: 1fr;
  }

  .sacrament-memory-card {
    min-height: 650px;
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.18);
  }

  .sacrament-memory-church {
    height: 230px;
  }
}

@media (max-width: 760px) {
  .media-hero,
  .media-feature-grid,
  .media-latest,
  .media-useful,
  .sacraments-content {
    width: calc(100vw - 40px);
  }

  .media-hero {
    width: calc(100vw - 20px);
    min-height: 360px;
    margin-right: 0;
    margin-left: 20px;
    padding: 34px 0 180px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.92) 52%, rgba(255, 249, 239, 0.26) 74%, rgba(255, 249, 239, 0) 100%),
      url("../img/banmedia-generated.png?v=3");
    background-position: center, right bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
  }

  .media-hero-copy {
    width: 100%;
  }

  .media-hero h1 {
    font-size: 38px;
  }

  .media-hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .sacraments-preparation-page .sacraments-hero {
    width: calc(100vw - 40px);
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 34px 0 18px;
    background: transparent;
  }

  .sacraments-preparation-page .sacraments-hero .media-hero-copy {
    width: 100%;
  }

  .media-feature-grid,
  .media-material-grid,
  .media-useful-items {
    grid-template-columns: 1fr;
  }

  .sacrament-tabs {
    grid-template-columns: 1fr;
  }

  .sacrament-tab {
    justify-content: flex-start;
    min-height: 62px;
    padding: 14px 22px;
  }

  .sacrament-tab.active::after {
    right: auto;
    width: 4px;
    height: 100%;
  }

  .sacrament-panel {
    min-height: 0;
  }

  .sacrament-memory-card {
    min-height: 620px;
    padding: 46px 24px 235px;
  }

  .sacrament-memory-title {
    font-size: 27px;
  }

  .sacrament-memory-text {
    font-size: 15px;
  }

  .sacrament-memory-church {
    right: 4%;
    left: 4%;
    width: 92%;
    height: 215px;
  }

  .sacrament-detail {
    padding: 38px 20px 34px;
  }

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

  .sacrament-title-divider {
    grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
    gap: 18px;
  }

  .sacrament-qa-list {
    margin-top: 30px;
  }

  .sacrament-qa-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 18px;
  }

  .sacrament-qa-icon {
    width: 50px;
    height: 50px;
  }

  .sacrament-qa-icon img {
    width: 29px;
    height: 29px;
  }

  .sacrament-closing-note {
    gap: 16px;
    padding: 22px 18px;
    font-size: 15px;
  }

  .media-feature-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 0 2px 16px;
  }

  .media-icon-ring {
    width: 62px;
    height: 62px;
  }

  .media-feature-card {
    min-height: 0;
  }

  .media-useful {
    padding: 22px;
  }

  .media-section-head {
    align-items: flex-start;
  }

  .articles-hero,
  .articles-featured,
  .articles-grid {
    width: calc(100vw - 40px);
  }

  .articles-hero {
    display: block;
    min-height: 0;
    margin-top: 22px;
    padding-top: 0;
  }

  .articles-hero::before {
    top: auto;
    right: -54px;
    bottom: -30px;
    width: calc(100% + 108px);
    height: 330px;
    opacity: 0.52;
    mask-image: radial-gradient(ellipse at 50% 56%, #000 0%, rgba(0, 0, 0, 0.88) 34%, rgba(0, 0, 0, 0.46) 62%, rgba(0, 0, 0, 0) 82%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 56%, #000 0%, rgba(0, 0, 0, 0.88) 34%, rgba(0, 0, 0, 0.46) 62%, rgba(0, 0, 0, 0) 82%);
    mask-composite: initial;
    -webkit-mask-composite: initial;
  }

  .articles-hero-copy {
    width: 100%;
    padding-top: 0;
  }

  .articles-hero h1 {
    font-size: 38px;
  }

  .gold-divider.articles-title-divider {
    margin-top: 24px;
  }

  .articles-hero-copy p {
    max-width: 100%;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.74;
  }

  .articles-hero-copy p img {
    width: 82px;
    margin-right: 14px;
  }

  .articles-hero-image {
    position: static;
    width: min(100%, 620px);
    margin: 26px auto 0;
    height: auto;
    max-height: 220px;
    object-position: center;
    opacity: 0.58;
  }

  .articles-featured {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .articles-featured figure {
    min-height: 220px;
  }

  .articles-featured-body {
    padding: 24px 22px 22px;
  }

  .articles-featured h2 {
    font-size: 25px;
  }

  .articles-featured-footer {
    display: grid;
    gap: 18px;
    justify-content: stretch;
    padding-top: 24px;
  }

  .articles-featured a {
    justify-content: center;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 14px;
  }

  .article-card > img {
    width: 128px;
    height: 128px;
  }

  .article-card h2 {
    font-size: 18px;
  }

  .article-card time {
    margin-top: 14px;
  }

  .articles-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 1180px) {
  .split-hero,
  .service-hero,
  .worship-schedule-hero,
  .worship-schedule-content,
  .schedule-hero {
    grid-template-columns: 1fr;
  }

  .compact-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .schedule-card {
    width: auto;
  }

  .worship-side-panel {
    position: static;
  }

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

  .worship-status-panel {
    grid-template-columns: 1fr;
  }

  .worship-fast-banner {
    grid-template-columns: 72px minmax(160px, 0.72fr) 1px minmax(280px, 1.28fr);
    padding-right: min(24vw, 230px);
  }

  .worship-fast-badge {
    width: 72px;
    height: 72px;
  }

  .worship-fast-text {
    font-size: 15px;
  }

  .worship-fast-church {
    right: 0;
    width: min(24vw, 220px);
    max-height: 116px;
    opacity: 0.92;
  }

  .worship-next-service {
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.16);
  }

  .worship-filter-bar .reset-filter {
    margin-left: 0;
  }

  .communion-diary {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .communion-diary-intro {
    min-height: 760px;
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.16);
  }

  .communion-diary-content {
    padding: 64px 48px 42px;
  }

  .communion-brief {
    grid-template-columns: 1fr;
  }

  .communion-brief-intro {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.2);
  }

  .communion-brief-intro a {
    grid-column: 2;
  }

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

  .communion-brief-steps li + li::before {
    display: none;
  }

  .communion-accent {
    grid-column: 1 / -1;
  }

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

@media (max-width: 920px) {
  .inner-page {
    background-attachment: scroll;
  }

  .page-hero-copy {
    padding: 28px;
  }

  .hero-photo {
    min-height: 320px;
  }

  .three-columns,
  .schedule-layout,
  .schedule-board,
  .wide-band {
    grid-template-columns: 1fr;
  }

  .schedule-original {
    position: static;
  }

  .wide-band a + a {
    border-top: 1px solid rgba(167, 122, 29, 0.18);
    border-left: 0;
  }

  .worship-fast-banner {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px 18px;
    min-height: 0;
    padding: 20px 24px 120px;
  }

  .worship-fast-badge {
    width: 66px;
    height: 66px;
  }

  .worship-fast-badge img {
    width: 28px;
    height: 28px;
  }

  .worship-fast-divider {
    display: none;
  }

  .worship-fast-text {
    grid-column: 1 / -1;
    max-width: 100%;
    font-size: 16px;
  }

  .worship-fast-church {
    width: min(62vw, 240px);
    max-height: 120px;
  }

  .news-grid,
  .media-layout {
    grid-template-columns: 1fr;
  }

  .large-tile {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .inner-breadcrumbs,
  .page-hero,
  .worship-schedule-hero,
  .worship-filter-bar,
  .worship-schedule-content,
  .worship-week,
  .services-communion-section,
  .content-grid,
  .wide-band,
  .schedule-layout,
  .schedule-board,
  .news-grid,
  .news-tools,
  .news-pagination,
  .media-layout {
    width: calc(100vw - 40px);
  }

  .inner-breadcrumbs {
    padding-top: 20px;
  }

  .page-hero-copy {
    padding: 22px;
  }

  .page-hero-copy h1 {
    font-size: 28px;
  }

  .worship-schedule-screen {
    padding-bottom: 44px;
  }

  .worship-schedule-hero {
    padding-top: 18px;
  }

  .worship-status-panel {
    width: 100%;
  }

  .worship-fast-banner {
    padding: 18px 18px 112px;
  }

  .worship-fast-summary p {
    font-size: 13px;
  }

  .worship-fast-summary h2 {
    margin-top: 10px;
    font-size: 26px;
  }

  .worship-fast-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .worship-fast-church {
    width: min(72vw, 230px);
    max-height: 110px;
  }

  .worship-next-service,
  .worship-fast-status {
    padding: 22px;
  }

  .worship-next-service {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .worship-next-service > div:nth-child(3),
  .worship-next-service a {
    grid-column: 2;
  }

  .worship-status-icon {
    width: 50px;
    height: 50px;
  }

  .worship-fast-status {
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    gap: 14px;
  }

  .worship-fast-status img {
    width: 44px;
    height: 44px;
  }

  .worship-filter-bar {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .worship-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .worship-filter-bar button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .worship-title-block,
  .worship-day,
  .worship-side-panel {
    padding: 22px;
  }

  .worship-breadcrumbs {
    padding-top: 20px;
  }

  .worship-day {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .worship-day::before {
    display: none;
  }

  .worship-day::after {
    display: none;
  }

  .worship-day time {
    font-size: 20px;
  }

  .worship-day h2 {
    padding-right: 0;
    font-size: 22px;
  }

  .worship-day p {
    font-size: 16px;
  }

  .worship-date-card {
    min-height: 500px;
  }

  .worship-date-head {
    min-height: 0;
    padding: 22px;
  }

  .worship-service-groups {
    padding: 0 22px 22px;
  }

  .worship-date-head div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .worship-weekday {
    font-size: 24px;
  }

  .worship-service-line {
    grid-template-columns: 48px 22px minmax(0, 1fr);
    gap: 10px;
  }

  .worship-service-line p {
    max-width: calc(100vw - 150px);
    font-size: 15px;
  }

  .worship-week {
    grid-template-columns: 1fr;
  }

  .schedule-toolbar,
  .week-switcher {
    width: 100%;
  }

  .week-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }

  .week-switcher a,
  .week-switcher span,
  .print-card .print-schedule {
    width: auto;
  }

  .print-schedule {
    width: 100%;
  }

  .communion-diary-intro {
    min-height: 700px;
    padding: 64px 28px 0;
  }

  .communion-diary-lead {
    font-size: 30px;
  }

  .communion-diary-text {
    font-size: 18px;
  }

  .communion-church-image {
    right: 4%;
    left: 4%;
    width: 92%;
    max-height: 300px;
  }

  .communion-diary-content {
    padding: 42px 22px 28px;
  }

  .communion-eyebrow {
    font-size: 14px;
  }

  .communion-diary-content h2 {
    font-size: 31px;
  }

  .communion-intro-text {
    font-size: 17px;
  }

  .communion-qa-list {
    padding: 10px 18px;
  }

  .communion-qa-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 24px 0;
  }

  .communion-qa-item + .communion-qa-item::before {
    right: 0;
    left: 94px;
  }

  .communion-qa-icon {
    width: 72px;
    height: 72px;
  }

  .communion-qa-icon img {
    width: 46px;
    height: 46px;
  }

  .communion-qa-copy h3 {
    font-size: 19px;
  }

  .communion-qa-copy p,
  .communion-closing-note {
    font-size: 15px;
  }

  .communion-qa-cross {
    display: none;
  }

  .communion-closing-note {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
    padding: 20px;
  }

  .communion-brief {
    gap: 24px;
    padding: 24px 22px;
  }

  .communion-brief-intro {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .communion-brief-intro a {
    grid-column: auto;
  }

  .communion-brief-steps {
    grid-template-columns: 1fr;
  }

  .communion-brief-steps li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .communion-brief-steps li > img {
    width: 72px;
    height: 72px;
    padding: 18px;
  }

  .communion-accent {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 34px 24px;
  }

  .communion-accent-image {
    min-height: 0;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(167, 122, 29, 0.22);
  }

  .communion-accent-image img {
    width: min(210px, 86%);
  }

  .communion-accent-copy {
    gap: 16px;
    width: 100%;
    padding-left: 0;
  }

  .communion-accent-copy h2 {
    font-size: 28px;
  }

  .communion-accent-quote {
    width: calc(100% - 10px);
    font-size: 21px;
  }

  .communion-accent-text {
    width: calc(100% - 10px);
    max-width: 280px;
    font-size: 15px;
  }

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

  .info-card,
  .news-card,
  .media-tile,
  .schedule-card {
    padding: 22px;
  }

  .news-card {
    padding: 0;
  }

  .news-card-body {
    padding: 22px;
  }

  .schedule-list article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .schedule-hero-actions,
  .schedule-hero-actions .button {
    width: 100%;
  }

  .schedule-summary-card,
  .schedule-original-card,
  .schedule-day {
    padding: 22px;
  }

  .schedule-day {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .schedule-date span {
    font-size: 24px;
  }

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

  .service-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .service-row p,
  .schedule-note {
    font-size: 16px;
  }

  .news-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-tools a {
    padding: 0 12px;
    font-size: 12px;
  }

  .news-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .news-card h2,
  .schedule-list h2,
  .info-card h2,
  .media-tile h2 {
    font-size: 22px;
  }

  .large-tile,
  .large-tile img {
    min-height: 360px;
  }

  .news-detail {
    width: calc(100vw - 40px);
  }

  .article-detail-page .news-detail-header h1 {
    white-space: normal;
  }

  .article-audio {
    flex-direction: column;
    align-items: stretch;
  }

  .article-audio-button {
    width: 100%;
  }

  .article-detail-page .article-detail-image {
    padding: 0;
  }

  .article-detail-page .article-detail-image::before {
    content: none;
  }

  .article-detail-page .article-detail-image img {
    width: 100%;
    max-height: 320px;
  }

  .news-detail-header,
  .news-detail-content,
  .news-detail-footer {
    padding: 22px;
  }

  .news-detail-content p {
    font-size: 16px;
    line-height: 1.68;
  }

  .news-gallery {
    padding: 22px;
  }

  .news-gallery h2 {
    font-size: 24px;
  }

  .news-gallery-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-gallery-controls {
    width: 100%;
  }

  .news-gallery-controls button {
    width: 100%;
  }

  .news-gallery-grid {
    grid-auto-columns: 100%;
  }

  .gallery-lightbox {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-content: center;
    padding: 72px 20px 24px;
  }

  .gallery-lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-lightbox-figure img {
    max-height: calc(100vh - 190px);
  }

  .gallery-lightbox-figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .gallery-lightbox-arrow {
    width: 100%;
    height: 48px;
  }

  .gallery-lightbox-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
  }

  .gallery-lightbox-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
  }

  .news-detail-footer .button {
    width: 100%;
  }
}

/* Contacts redesign */
.contacts-page {
  min-height: 100vh;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.96) 0%, rgba(247, 241, 231, 0.98) 54%, #efe5d3 100%),
    url("../img/hero-church-garden-wide.png");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.contacts-screen {
  position: relative;
  min-height: 100vh;
  padding-bottom: 64px;
  overflow-x: hidden;
}

.contacts-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.96) 0%, rgba(255, 249, 239, 0.9) 48%, rgba(255, 249, 239, 0.7) 100%),
    linear-gradient(180deg, rgba(247, 241, 231, 0.12) 0%, rgba(239, 229, 211, 0.86) 100%);
  pointer-events: none;
}

.contacts-header,
.contacts-breadcrumbs,
.contacts-main {
  position: relative;
  z-index: 2;
}

.contacts-header {
  z-index: 20;
}

.contacts-breadcrumbs {
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding-top: 28px;
}

.contacts-main {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(560px, 1fr);
  gap: 18px;
  align-items: stretch;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding: 34px 0 0;
}

.contacts-left,
.contacts-side {
  display: grid;
  gap: 18px;
}

.contacts-left {
  grid-template-rows: auto minmax(360px, 1fr) auto;
}

.contacts-side {
  grid-template-rows: auto minmax(0, 1fr);
}

.contacts-intro {
  min-width: 0;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.contacts-intro h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.contacts-title-group {
  width: max-content;
  max-width: 100%;
}

.contacts-title-divider {
  width: 112px;
  height: 14px;
  margin: 26px auto 0;
}

.contacts-intro .lead {
  max-width: 460px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  line-height: 1.72;
}

.contacts-actions {
  gap: 14px;
  margin-top: 28px;
}

.contacts-actions .button {
  min-width: 194px;
  min-height: 50px;
}

.contacts-actions .button-secondary {
  min-width: 260px;
}

.button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.button-primary .button-icon {
  filter: brightness(0) invert(1);
}

.contacts-vk .button-icon {
  width: 25px;
  height: 18px;
}

.contacts-card {
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
  backdrop-filter: none;
}

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

.info-card,
.route-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 18px;
  min-height: 162px;
  padding: 18px;
}

.card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-label {
  color: var(--color-wood);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.info-card > div > strong {
  display: block;
  margin-top: 16px;
  color: var(--color-dark-wood);
  font-size: 16px;
  line-height: 1.52;
}

.info-card p,
.route-card p {
  margin: 18px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  margin-left: -38px;
}

.card-actions a,
.inline-copy {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--color-wood);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.card-actions a:hover,
.inline-copy:hover {
  color: var(--color-old-gold);
}

.card-actions img,
.inline-copy img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.inline-copy.copied {
  color: #3f6f3b;
}

.inline-copy.copy-error {
  color: #9b3c2e;
}

.services-near-card {
  min-height: 236px;
}

.near-services {
  display: grid;
  gap: 13px;
  margin-top: 20px;
  color: var(--color-dark-wood);
  font-size: 14px;
  line-height: 1.5;
}

.near-services p {
  margin: 0;
}

.near-services span {
  display: block;
  margin-bottom: 8px;
  color: #3f2c1f;
  font-size: 15px;
  font-weight: 700;
}

.near-services strong {
  margin-right: 12px;
  color: #3f2c1f;
  font-weight: 700;
}

.schedule-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: var(--color-wood);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.schedule-link:hover {
  color: var(--color-wood);
}

.map-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.map-frame {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(239, 229, 211, 0.82)),
    url("../img/hero-church-garden-wide.png");
  background-position: center;
  background-size: cover;
}

.map-frame iframe,
.map-static-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-frame iframe {
  z-index: 2;
}

.map-static-fallback {
  z-index: 1;
  object-fit: cover;
}

.connection-card,
.requisites-card {
  padding: 24px;
}

.route-card {
  min-height: 116px;
}

.route-card h2,
.requisites-card h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
}

.route-card h2 {
  color: var(--color-wood);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  margin-left: -38px;
}

.contact-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--color-dark-wood);
  transition: color 180ms ease;
}

.contact-list a:hover {
  color: var(--color-old-gold);
}

.contact-list strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.contact-list small {
  display: block;
  margin-top: 5px;
  color: rgba(63, 44, 31, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.contact-mini-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  margin-top: 5px;
}

.contact-mini-icon.vk-icon {
  width: 22px;
  height: 15px;
  margin-top: 3px;
}

.contact-list a[href*="vk.com"] .vk-icon {
  margin-top: 6px;
}

.requisites-card p {
  margin: 12px 0 18px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.requisites-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.requisites-list div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(167, 122, 29, 0.18);
}

.requisites-list dt {
  color: var(--color-dark-wood);
  font-size: 14px;
}

.requisites-list dd {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-right: 30px;
  color: var(--color-dark-wood);
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.copy-requisite {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: rgba(122, 77, 37, 0.72);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.copy-requisite img {
  width: 14px;
  height: 15px;
  object-fit: contain;
}

.copy-requisite:hover,
.copy-requisite:focus-visible {
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.96);
}

.copy-requisite.copied {
  color: #3f6f3b;
  background: rgba(237, 247, 234, 0.92);
}

.copy-requisite.copy-error {
  color: #9b3c2e;
  background: rgba(255, 241, 237, 0.92);
}

.copy-all-requisites {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(167, 122, 29, 0.72);
  border-radius: 4px;
  color: var(--color-wood);
  background: rgba(255, 252, 247, 0.78);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.copy-all-requisites img {
  width: 17px;
  height: 18px;
  object-fit: contain;
}

.copy-all-requisites:hover,
.copy-all-requisites:focus-visible {
  border-color: var(--color-old-gold);
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.92);
}

.copy-all-requisites.copied {
  color: #3f6f3b;
  border-color: rgba(63, 111, 59, 0.46);
  background: rgba(237, 247, 234, 0.92);
}

.copy-all-requisites.copy-error {
  color: #9b3c2e;
  border-color: rgba(155, 60, 46, 0.42);
  background: rgba(255, 241, 237, 0.92);
}

@media (max-width: 1180px) {
  .contacts-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contacts-left,
  .contacts-side {
    grid-template-rows: auto;
  }

  .map-frame {
    aspect-ratio: 560 / 418;
  }
}

@media (max-width: 920px) {
  .contacts-page {
    background-attachment: scroll;
  }

  .contacts-main,
  .contacts-breadcrumbs {
    width: min(91vw, 720px);
  }

  .contacts-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contacts-main,
  .contacts-breadcrumbs {
    width: calc(100vw - 48px);
  }

  .contacts-main {
    padding: 41px 0 28px;
  }

  .contacts-intro {
    padding: 0;
  }

  .contacts-intro h1 {
    max-width: 330px;
    font-size: 38px;
    line-height: 1.2;
  }

  .contacts-intro .lead {
    max-width: 330px;
  }

  .contacts-actions .button,
  .contacts-actions .button-secondary {
    width: 100%;
    min-width: 0;
  }

  .info-card,
  .route-card,
  .connection-card,
  .requisites-card {
    padding: 20px;
  }

  .route-card {
    display: none;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* About page redesign */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  z-index: 30;
}

.nav-dropdown::after {
  position: absolute;
  top: 100%;
  right: -18px;
  left: -18px;
  height: 18px;
  content: "";
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown > a::before {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  order: 2;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  display: grid;
  min-width: 226px;
  padding: 10px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.96);
  box-shadow: 0 18px 44px rgba(63, 44, 31, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0);
  transition: opacity 180ms ease;
}

.nav-dropdown-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 12px;
  content: "";
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.nav-dropdown-menu a {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--color-dark-wood);
  font-size: 13px;
  text-transform: none;
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(215, 181, 109, 0.16);
}

.help-page .inner-screen {
  padding-bottom: 36px;
}

.help-hero {
  min-height: 0;
  aspect-ratio: 2640 / 608;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 1) 0%, rgba(255, 249, 239, 1) 42%, rgba(255, 249, 239, 0.86) 52%, rgba(255, 249, 239, 0.42) 66%, rgba(255, 249, 239, 0.06) 82%),
    url("../img/about/img_help_churchl.webp");
  background-color: var(--color-ivory);
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% auto;
}

@media (max-width: 1300px) {
  .help-hero {
    min-height: 430px;
    background-position: center, right center;
    background-size: 100% 100%, auto 100%;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .help-hero {
    min-height: 500px;
  }

  .help-hero .media-hero-copy {
    width: min(430px, 56vw);
  }
}

@media (min-width: 761px) and (max-width: 1060px) {
  .help-hero {
    overflow: hidden;
  }

  .help-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 0;
    width: 68%;
    content: "";
    background: linear-gradient(90deg, rgba(255, 249, 239, 1) 0%, rgba(255, 249, 239, 1) 62%, rgba(255, 249, 239, 0.82) 82%, rgba(255, 249, 239, 0) 100%);
    pointer-events: none;
  }

  .help-hero::after {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 3px;
    height: 96px;
    content: "";
    background: var(--color-ivory);
    pointer-events: none;
  }

  .help-hero .media-hero-copy {
    position: relative;
    z-index: 1;
  }
}

.help-donation,
.help-needs,
.help-quote,
.help-thanks {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.help-donation {
  margin-top: 30px;
}

.help-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.help-section-title h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.help-title-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: rgba(167, 122, 29, 0.52);
}

.help-title-line::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-soft-gold);
  content: "";
  background: var(--color-ivory);
  transform: translateY(-50%) rotate(45deg);
}

.help-title-line:first-child::after {
  right: -4px;
}

.help-title-line:last-child::after {
  left: -4px;
}

.help-method-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.12fr);
  gap: 20px;
  margin-top: 26px;
}

.help-method-grid > * {
  min-width: 0;
}

.help-card,
.help-payment-note,
.help-needs-grid article,
.help-quote {
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.help-card {
  min-width: 0;
  padding: 30px 26px 26px;
}

.help-card-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.help-card-head h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.help-card-head p {
  margin: 8px 0 0;
  color: rgba(63, 44, 31, 0.72);
  font-size: 15px;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.help-card-icon {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 181, 109, 0.5);
  border-radius: 50%;
  background: rgba(255, 249, 239, 0.9);
}

.help-card-icon::before {
  width: 34px;
  height: 26px;
  border: 2px solid var(--color-soft-gold);
  border-radius: 4px;
  content: "";
}

.help-card-icon-image::before,
.help-card-icon-image::after {
  content: none;
}

.help-card-icon-image img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.help-card-icon-card::after {
  position: absolute;
  width: 22px;
  height: 2px;
  content: "";
  background: var(--color-soft-gold);
  transform: translateY(-4px);
}

.help-card-icon-bank::before {
  width: 36px;
  height: 28px;
  border: 0;
  border-bottom: 3px solid var(--color-soft-gold);
  border-radius: 0;
  background:
    linear-gradient(var(--color-soft-gold), var(--color-soft-gold)) 5px 11px / 3px 14px no-repeat,
    linear-gradient(var(--color-soft-gold), var(--color-soft-gold)) 16px 11px / 3px 14px no-repeat,
    linear-gradient(var(--color-soft-gold), var(--color-soft-gold)) 27px 11px / 3px 14px no-repeat,
    linear-gradient(135deg, transparent 47%, var(--color-soft-gold) 48% 52%, transparent 53%) center 0 / 36px 12px no-repeat,
    linear-gradient(var(--color-soft-gold), var(--color-soft-gold)) center 9px / 34px 2px no-repeat;
}

.help-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.help-form label {
  display: grid;
  gap: 10px;
  color: var(--color-dark-wood);
  font-size: 13px;
  font-weight: 700;
}

.help-amount-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.92);
}

.help-amount-field input,
.help-form select,
.help-form input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 0;
  color: rgba(63, 44, 31, 0.84);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  outline: 0;
}

.help-amount-field input {
  font-size: 24px;
}

.help-amount-field > span {
  color: var(--color-dark-wood);
  font-size: 22px;
}

.help-amount-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.help-amount-presets button,
.help-form select,
.help-form input[type="email"] {
  min-height: 46px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.92);
}

.help-amount-presets button {
  color: var(--color-dark-wood);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.help-amount-presets button.active,
.help-amount-presets button:hover {
  border-color: rgba(192, 108, 14, 0.62);
  color: var(--color-old-gold);
  background: rgba(215, 181, 109, 0.16);
}

.help-form select,
.help-form input[type="email"] {
  padding: 0 18px;
}

.help-submit {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  color: #fff9ef;
  background: linear-gradient(180deg, #c7972e 0%, #a97710 100%);
  box-shadow: 0 16px 30px rgba(167, 122, 29, 0.24);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.help-pay-note {
  margin: 0;
  color: rgba(63, 44, 31, 0.56);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.help-pay-note a,
.help-consent-link {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--color-old-gold);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.help-pay-note a:hover,
.help-consent-link:hover {
  color: var(--color-wood);
}

.help-requisites-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  margin-top: 34px;
}

.help-requisites-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.help-requisites-list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
}

.help-requisites-list dt {
  color: rgba(63, 44, 31, 0.5);
  font-size: 13px;
}

.help-requisites-list dd {
  margin: 0;
  color: var(--color-dark-wood);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

.help-qr {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
}

.help-qr img {
  width: 184px;
  height: 184px;
  padding: 12px;
  border: 1px solid rgba(215, 181, 109, 0.72);
  border-radius: 6px;
  background: var(--color-ivory);
}

.help-qr figcaption {
  margin: 0;
  color: rgba(63, 44, 31, 0.62);
  font-size: 13px;
  line-height: 1.42;
  text-align: center;
}

.help-requisite-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.help-outline-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #c06c0e;
  border-radius: 6px;
  color: var(--color-wood);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.help-outline-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.help-outline-button:hover,
.help-outline-button:focus-visible {
  color: var(--color-old-gold);
  background: rgba(215, 181, 109, 0.12);
}

.help-payment-note {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 24px 28px;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(90deg, rgba(247, 232, 211, 0.2), rgba(255, 249, 239, 0.18) 50%, rgba(247, 232, 211, 0.22)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    linear-gradient(90deg, rgba(247, 232, 211, 0.9), rgba(255, 249, 239, 0.72) 50%, rgba(247, 232, 211, 0.88)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 56%),
    #f2e3d0;
  box-shadow:
    inset 0 0 0 1px rgba(185, 144, 62, 0.08),
    0 18px 44px rgba(63, 44, 31, 0.06);
}

.help-payment-note::after {
  position: absolute;
  right: 24px;
  bottom: -30px;
  z-index: 1;
  width: 520px;
  height: 190px;
  content: "";
  background: url("../img/about/img_donate.webp") right bottom / contain no-repeat;
  opacity: 0.58;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 14%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 14%, #000 34%);
  pointer-events: none;
}

.help-info-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--color-old-gold);
}

.help-info-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.help-payment-note p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.help-payment-note strong {
  color: var(--color-dark-wood);
}

.help-needs {
  margin-top: 44px;
}

.help-needs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.help-needs-grid article {
  display: grid;
  min-height: 230px;
  justify-items: center;
  align-content: start;
  padding: 28px 18px 24px;
  text-align: center;
}

.help-needs-grid img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.help-needs-grid h3 {
  margin: 22px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.32;
}

.help-needs-grid p {
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.68);
  font-size: 14px;
  line-height: 1.58;
}

.help-quote {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 178px;
  margin-top: 34px;
  padding: 18px 285px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(247, 232, 211, 0.2), rgba(255, 249, 239, 0.18) 50%, rgba(247, 232, 211, 0.22)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    linear-gradient(90deg, rgba(247, 232, 211, 0.9), rgba(255, 249, 239, 0.72) 50%, rgba(247, 232, 211, 0.88)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 56%),
    #f2e3d0;
  box-shadow:
    inset 0 0 0 1px rgba(185, 144, 62, 0.08),
    0 18px 44px rgba(63, 44, 31, 0.06);
  text-align: center;
}

.help-quote-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.help-quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.22;
}

.help-quote-divider {
  width: 200px;
  margin-top: 16px;
}

.help-quote figcaption {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #b9903e;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.help-quote-candle,
.help-quote-temple {
  position: absolute;
  bottom: 0;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 0.78;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.help-quote-candle {
  left: 26px;
  height: 93%;
  opacity: 0.55;
  filter: saturate(0.8);
  object-position: left bottom;
}

.help-quote-temple {
  right: 28px;
  height: 93%;
  opacity: 0.7;
  filter: saturate(0.8);
  object-position: right bottom;
}

.help-thanks {
  margin-top: 42px;
  color: rgba(63, 44, 31, 0.68);
  font-size: 17px;
  line-height: 1.62;
  text-align: center;
}

body.help-consent-open {
  overflow: hidden;
}

.help-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.help-consent-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.help-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 44, 31, 0.38);
  backdrop-filter: blur(10px);
}

.help-consent-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(247, 232, 211, 0.2), rgba(255, 249, 239, 0.18) 50%, rgba(247, 232, 211, 0.22)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    var(--color-ivory);
  box-shadow: 0 24px 70px rgba(63, 44, 31, 0.2);
}

.help-consent-content {
  min-height: 0;
  overflow-y: auto;
  padding: 34px 38px 26px;
  scrollbar-color: var(--color-wood) transparent;
  scrollbar-width: thin;
}

.help-consent-content::-webkit-scrollbar {
  width: 6px;
}

.help-consent-content::-webkit-scrollbar-track {
  background: transparent;
}

.help-consent-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--color-wood);
}

.help-consent-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark-wood);
}

.help-consent-content h2 {
  margin: 0 0 22px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

.help-consent-content p {
  margin: 0 0 16px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  line-height: 1.68;
}

.help-consent-content strong {
  color: var(--color-dark-wood);
}

.help-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 38px 24px;
  border-top: 1px solid rgba(167, 122, 29, 0.18);
  background: rgba(255, 249, 239, 0.82);
}

.help-consent-accept,
.help-consent-close {
  min-width: 136px;
  min-height: 46px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.help-consent-accept {
  border: 0;
  color: #fff9ef;
  background: linear-gradient(180deg, #c7972e 0%, #a97710 100%);
  box-shadow: 0 12px 24px rgba(167, 122, 29, 0.18);
}

.help-consent-close {
  border: 1px solid #c06c0e;
  color: var(--color-wood);
  background: transparent;
}

.help-policy {
  position: relative;
  z-index: 2;
  width: min(91vw, 920px);
  margin: 18px auto 0;
  padding: 34px 0 72px;
}

.help-policy-header {
  width: min(760px, 100%);
}

.help-policy h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.help-policy .media-title-divider {
  margin-right: auto;
  margin-left: auto;
}

.help-policy-content {
  margin-top: 34px;
  padding: 34px 38px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(247, 232, 211, 0.2), rgba(255, 249, 239, 0.18) 50%, rgba(247, 232, 211, 0.22)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    rgba(255, 249, 239, 0.92);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.08);
}

.help-policy-content p {
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

.help-policy-content p + p {
  margin-top: 18px;
}

.help-policy-content strong {
  color: var(--color-dark-wood);
}

@media (max-width: 1180px) {
  .help-method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .help-quote {
    padding-right: 170px;
    padding-left: 170px;
  }
}

@media (max-width: 900px) {
  .help-requisites-body {
    grid-template-columns: 1fr;
  }

  .help-qr {
    justify-self: center;
  }

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

  .help-quote {
    padding: 42px 44px 30px;
  }

  .help-quote-candle,
  .help-quote-temple {
    display: none;
  }
}

@media (max-width: 760px) {
  .help-donation,
  .help-needs,
  .help-quote,
  .help-thanks {
    width: calc(100vw - 40px);
  }

  .help-page .media-hero {
    width: calc(100vw - 40px);
    margin-right: auto;
    margin-left: auto;
  }

  .help-hero {
    min-height: 360px;
    aspect-ratio: auto;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.92) 52%, rgba(255, 249, 239, 0.28) 74%, rgba(255, 249, 239, 0) 100%),
      url("../img/about/img_help_churchl.webp");
    background-position: center, right bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%, auto 100%;
  }

  .help-section-title {
    gap: 14px;
  }

  .help-section-title h2 {
    font-size: 24px;
  }

  .help-title-line {
    width: 34px;
  }

  .help-card {
    padding: 24px 18px 22px;
  }

  .help-card-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .help-card-icon {
    width: 52px;
    height: 52px;
  }

  .help-card-head h3 {
    font-size: 21px;
  }

  .help-amount-presets,
  .help-requisite-actions,
  .help-needs-grid {
    grid-template-columns: 1fr;
  }

  .help-requisites-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .help-payment-note {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .help-payment-note::after {
    display: none;
  }

  .help-quote blockquote {
    font-size: 22px;
  }

  .help-consent-modal {
    padding: 16px;
  }

  .help-consent-dialog {
    max-height: 88vh;
  }

  .help-consent-content {
    padding: 26px 22px 20px;
  }

  .help-consent-content h2 {
    font-size: 23px;
  }

  .help-consent-content p {
    font-size: 15px;
    line-height: 1.62;
  }

  .help-consent-actions {
    flex-direction: column;
    padding: 16px 22px 20px;
  }

  .help-consent-accept,
  .help-consent-close {
    width: 100%;
  }

  .help-policy {
    width: calc(100vw - 40px);
    padding-top: 34px;
  }

  .help-policy h1 {
    font-size: 32px;
  }

  .help-policy-content {
    padding: 24px 20px;
  }

  .help-policy-content p {
    font-size: 15px;
    line-height: 1.68;
  }

  .help-thanks {
    font-size: 15px;
  }
}

.about-redesign {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.97) 0%, rgba(247, 241, 231, 0.98) 52%, #efe5d3 100%),
    url("../img/about-new-church-crop.png");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.about-screen::before {
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.92) 48%, rgba(255, 249, 239, 0.76) 100%),
    linear-gradient(180deg, rgba(247, 241, 231, 0.2) 0%, rgba(239, 229, 211, 0.92) 100%);
}

.about-breadcrumbs,
.about-hero,
.about-section-menu,
.about-history,
.about-clergy {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 22px 0 34px;
}

.about-hero-copy {
  min-width: 0;
}

.about-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 1.12;
}

.about-hero-copy .lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.7;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.about-hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.about-church-card {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.82);
  box-shadow: var(--shadow-soft);
}

.about-church-card-old {
  min-height: 290px;
}

.about-church-card-new {
  min-height: 420px;
}

.about-church-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 22px 14px 92px;
  object-fit: contain;
}

.about-church-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(63, 44, 31, 0) 0%, rgba(63, 44, 31, 0.84) 34%, rgba(63, 44, 31, 0.94) 100%);
  color: var(--color-ivory);
}

.about-church-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 249, 239, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-church-card figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.35;
}

.about-section-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.about-section-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 22px 26px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.88);
  box-shadow: var(--shadow-subtle);
  transition: border-color 180ms ease, transform 180ms ease;
}

.about-section-menu a:hover {
  border-color: rgba(167, 122, 29, 0.45);
  transform: translateY(-2px);
}

.about-section-menu span {
  color: var(--color-old-gold);
  font-family: var(--font-heading);
  font-size: 22px;
}

.about-section-menu strong {
  color: var(--color-dark-wood);
  font-size: 18px;
}

.about-history,
.about-clergy {
  padding-top: 74px;
}

.about-section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.about-section-heading h2 {
  max-width: 820px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.18;
}

.about-history-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.about-timeline {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.about-timeline article,
.about-story,
.clergy-placeholder {
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.about-timeline article {
  padding: 22px;
}

.about-timeline span {
  display: block;
  color: var(--color-old-gold);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
}

.about-timeline p {
  margin: 12px 0 0;
  color: rgba(63, 44, 31, 0.76);
  font-size: 15px;
  line-height: 1.6;
}

.about-story {
  padding: clamp(26px, 3vw, 44px);
}

.about-story p {
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 18px;
  line-height: 1.82;
}

.about-story p + p {
  margin-top: 20px;
}

.about-story-photo {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 30px 0;
  padding: 22px;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: var(--radius-md);
  background: rgba(239, 229, 211, 0.58);
}

.about-story-photo img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.about-story-photo figcaption {
  max-width: 420px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.45;
}

.about-clergy {
  padding-bottom: 78px;
}

.clergy-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 3vw, 38px);
}

.clergy-placeholder span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(167, 122, 29, 0.32);
  border-radius: 50%;
  color: var(--color-old-gold);
  font-size: 26px;
}

.clergy-placeholder h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 27px;
  line-height: 1.25;
}

.clergy-placeholder p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.clergy-hero,
.clergy-content {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.clergy-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.78fr);
  gap: 34px;
  align-items: center;
  padding: 22px 0 40px;
}

.clergy-hero-copy {
  min-width: 0;
}

.clergy-hero-copy h1 {
  max-width: 640px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.12;
}

.clergy-hero-copy .lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.7;
}

.clergy-hero-image {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.84);
  box-shadow: var(--shadow-soft);
}

.clergy-hero-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 26px;
  object-fit: contain;
}

.clergy-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 78px;
}

.clergy-main-card,
.clergy-info-grid article {
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(14px);
}

.clergy-main-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
}

.clergy-main-card > span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(167, 122, 29, 0.32);
  border-radius: 50%;
  color: var(--color-old-gold);
  font-size: 27px;
}

.clergy-role {
  margin: 0 0 12px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clergy-main-card h2,
.clergy-info-grid h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  line-height: 1.28;
}

.clergy-main-card h2 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.clergy-main-card p,
.clergy-info-grid p {
  color: rgba(63, 44, 31, 0.76);
  line-height: 1.7;
}

.clergy-main-card p {
  margin: 16px 0 28px;
  font-size: 17px;
}

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

.clergy-info-grid article {
  min-height: 240px;
  padding: 26px;
}

.clergy-info-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clergy-info-grid h3 {
  font-size: 24px;
}

.clergy-info-grid p {
  margin: 14px 0 0;
  font-size: 16px;
}

@media (max-width: 1180px) {
  .about-hero,
  .about-history-layout,
  .clergy-hero,
  .clergy-content {
    grid-template-columns: 1fr;
  }

  .about-timeline {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-dropdown {
    display: grid;
    gap: 8px;
    padding: 0;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 8px 0 8px 16px;
    color: rgba(63, 44, 31, 0.74);
  }

  .about-redesign {
    background-attachment: scroll;
  }

  .about-hero-gallery,
  .about-section-heading,
  .about-timeline,
  .clergy-placeholder,
  .clergy-info-grid {
    grid-template-columns: 1fr;
  }

  .about-church-card,
  .about-church-card-new,
  .about-church-card-old {
    min-height: 300px;
  }

  .clergy-placeholder .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .about-breadcrumbs,
  .about-hero,
  .about-section-menu,
  .about-history,
  .about-clergy {
    width: calc(100vw - 48px);
  }

  .clergy-hero,
  .clergy-content {
    width: calc(100vw - 48px);
  }

  .about-hero {
    padding-top: 18px;
  }

  .about-hero-actions,
  .about-hero-actions .button,
  .about-section-menu {
    width: 100%;
  }

  .about-section-menu {
    grid-template-columns: 1fr;
  }

  .about-story-photo {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .about-story-photo figcaption {
    font-size: 21px;
  }

  .about-story p {
    font-size: 16px;
  }

  .clergy-hero-image {
    min-height: 280px;
  }

  .clergy-main-card .button {
    width: 100%;
  }
}

/* History page */
.history-page {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 250, 242, 0.64), transparent 28%),
    linear-gradient(180deg, #fff9ef 0%, #f9f0e4 48%, #f7efe5 100%);
  overflow-x: hidden;
}

.history-screen {
  position: relative;
  min-height: 100vh;
  padding-bottom: 36px;
  overflow-x: hidden;
}

.history-screen::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 720px;
  content: "";
  background: url("../img/history/historyBan2-fade-v13.webp") right top / 100% 735px no-repeat;
  pointer-events: none;
}

.history-screen::after {
  content: none;
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .history-screen::before {
    background-size: 100% auto;
  }

  .history-page .history-hero {
    min-height: max(690px, calc(39.3048vw + 160px));
  }
}

.history-header,
.history-hero,
.history-facts,
.history-path,
.history-saint,
.history-spas,
.history-authors,
.history-new-temple,
.history-construction {
  position: relative;
  z-index: 2;
}

.history-header {
  width: min(90vw, 1360px);
  z-index: 6;
}

.history-hero {
  min-height: 850px;
  margin-top: -118px;
  padding-top: 118px;
  background: transparent;
}

.history-hero-inner {
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding-top: 28px;
}

.history-breadcrumbs {
  width: min(91vw, 1320px);
  margin: 0 auto 52px;
  padding-top: 0;
}

.history-hero-copy {
  max-width: 570px;
  padding: 0 0 64px;
  min-width: 0;
}

.history-hero-copy h1,
.history-path h2,
.history-saint h2,
.history-spas h2,
.history-authors h2,
.history-new-temple h2,
.history-construction h2 {
  margin: 0;
  color: #2f281f;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}

.history-hero-copy h1 {
  font-size: clamp(28px, 2.35vw, 38px);
  font-weight: 700;
  line-height: 1.18;
}

.history-hero-subtitle {
  margin: 18px 0 0;
  color: #986818;
  font-family: var(--font-heading);
  font-size: clamp(26px, 1.9vw, 32px);
  line-height: 1.24;
}

.history-hero-lead {
  margin: 42px 0 0;
  color: #171717;
  font-size: 19px;
  line-height: 1.85;
}

.history-spas .button img,
.history-construction .button img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.history-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(86vw, 1320px);
  margin: -222px auto 0;
  border: 1px solid rgba(167, 122, 29, 0.2);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 22px 42px rgba(63, 44, 31, 0.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.history-facts article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 218px;
  padding: 30px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.history-facts article + article {
  border-left: 1px solid rgba(167, 122, 29, 0.18);
}

.history-facts small,
.history-authors small {
  display: block;
  margin-bottom: 12px;
  color: #cf8f2a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.history-authors small {
  color: #161616;
}

.history-facts strong {
  display: block;
  color: #141414;
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.history-facts p {
  margin: 18px 0 0;
  color: #171717;
  font-size: 15px;
  line-height: 1.65;
}

.history-fact-icon {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  color: #cf8f2a;
}

.history-icon-church::before,
.history-icon-temple::before,
.history-icon-first-temple::before,
.history-icon-saint-patron::before {
  display: none;
}

.history-icon-church::after,
.history-icon-temple::after,
.history-icon-first-temple::after,
.history-icon-saint-patron::after {
  background: currentColor;
  content: "";
  mask: url("../img/icon/service-church.svg") center / contain no-repeat;
}

.history-icon-first-temple {
  border-bottom: 0;
}

.history-icon-church::after,
.history-icon-temple::after,
.history-icon-first-temple::after {
  content: none;
}

.history-icon-church img,
.history-icon-temple img,
.history-icon-first-temple img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  transform: translate(-10px, -10px);
}

.history-icon-church img {
  width: auto;
  height: 90px;
  margin: 0 auto;
  transform: translateY(-10px);
}

.history-icon-saint-patron::after {
  content: none;
}

.history-icon-saint-patron img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  transform: translate(-10px, -10px);
}

.history-icon-temple {
  transform: none;
}

.history-icon-saint {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.history-icon-saint::before {
  position: absolute;
  top: 15px;
  left: 21px;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.history-icon-saint::after {
  position: absolute;
  right: 13px;
  bottom: 9px;
  left: 13px;
  height: 27px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  content: "";
}

.history-icon-cross::before {
  position: absolute;
  top: 3px;
  left: 31px;
  width: 4px;
  height: 58px;
  background: currentColor;
  content: "";
}

.history-icon-cross::after {
  position: absolute;
  top: 17px;
  left: 15px;
  width: 36px;
  height: 4px;
  background: currentColor;
  box-shadow: 5px 16px 0 -1px currentColor;
  content: "";
}

.history-path,
.history-authors,
.history-new-temple,
.history-construction {
  width: min(91vw, 1210px);
  margin: 0 auto;
  text-align: center;
}

.history-path {
  width: min(91vw, 1320px);
  padding-top: 42px;
  padding-bottom: 20px;
}

.history-new-temple,
.history-construction {
  width: min(91vw, 1320px);
}

.history-path h2,
.history-authors h2,
.history-new-temple h2,
.history-construction h2 {
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.25;
}

.history-path h2 {
  color: #2f281f;
  font-size: clamp(28px, 2.05vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
}

.history-new-temple h2,
.history-construction h2 {
  font-size: clamp(24px, 1.78vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.history-ornament {
  display: grid;
  grid-template-columns: 64px 22px 64px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 12px auto 22px;
  color: #d2a85b;
}

.history-ornament span {
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.history-ornament i {
  position: relative;
  display: block;
  width: 22px;
  height: 18px;
}

.history-ornament i::before,
.history-ornament i::after {
  position: absolute;
  left: 50%;
  content: "";
  background: currentColor;
  transform: translateX(-50%);
}

.history-ornament i::before {
  top: 0;
  width: 2px;
  height: 18px;
}

.history-ornament i::after {
  top: 7px;
  width: 18px;
  height: 2px;
}

.history-path .history-ornament {
  grid-template-columns: 110px 30px 110px;
  gap: 14px;
  margin: 22px auto 38px;
  color: #b98227;
}

.history-path .history-ornament span {
  position: relative;
  background: currentColor;
}

.history-path .history-ornament span::before,
.history-path .history-ornament span::after {
  position: absolute;
  top: 50%;
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.history-path .history-ornament span:first-child::before {
  left: 0;
  display: block;
}

.history-path .history-ornament span:last-child::after {
  right: 0;
  display: block;
}

.history-path .history-ornament i {
  display: grid;
  width: 30px;
  height: 34px;
  place-items: center;
}

.history-path .history-ornament i::before,
.history-path .history-ornament i::after {
  display: none;
}

.history-path .history-ornament i img {
  display: block;
  width: 27px;
  height: 29px;
  object-fit: contain;
}

.history-path-body {
  position: relative;
  min-height: 450px;
  padding: 16px 0 10px;
  overflow: hidden;
}

.history-path-body::before,
.history-path-body::after {
  display: none;
}

.history-path-body::before {
  top: 0;
  bottom: 0;
  left: 280px;
  width: 180px;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 239, 0.92) 54%, #fff9ef 92%);
}

.history-path-body::after {
  top: 0;
  right: 238px;
  bottom: 0;
  width: 180px;
  background: linear-gradient(90deg, #fff9ef 8%, rgba(255, 249, 239, 0.9) 48%, transparent);
}

.history-path-left,
.history-path-right {
  position: absolute;
  z-index: 0;
  width: auto;
  object-fit: contain;
  filter: sepia(0.28) saturate(0.9) contrast(1.04);
  mix-blend-mode: multiply;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.history-path-left {
  top: 14px;
  left: 0;
  height: 420px;
  opacity: 0.48;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 10%, #000 18%, #000 62%, rgba(0, 0, 0, 0.46) 76%, transparent 96%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 10%, #000 20%, #000 70%, rgba(0, 0, 0, 0.38) 84%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 10%, #000 18%, #000 62%, rgba(0, 0, 0, 0.46) 76%, transparent 96%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 10%, #000 20%, #000 70%, rgba(0, 0, 0, 0.38) 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.history-path-right {
  top: 46px;
  right: 0;
  height: 320px;
  opacity: 0.52;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 14%, #000 24%, #000 76%, rgba(0, 0, 0, 0.5) 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 10%, #000 20%, #000 72%, rgba(0, 0, 0, 0.36) 86%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 14%, #000 24%, #000 76%, rgba(0, 0, 0, 0.5) 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 10%, #000 20%, #000 72%, rgba(0, 0, 0, 0.36) 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.history-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  max-width: 650px;
  margin: 0 auto;
  padding: 10px 0;
  text-align: left;
}

.history-timeline::before {
  display: none;
}

.history-timeline article {
  --timeline-date-size: 86px;
  --timeline-date-half: 43px;
  --timeline-marker-top: 17px;
  --timeline-connector-width: 40px;
  --timeline-line-width: 2px;
  --timeline-line-half: 1px;
  --timeline-dot-size: 13px;
  --timeline-dot-half: 6.5px;

  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-date-size) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.history-timeline article::before {
  position: absolute;
  top: var(--timeline-marker-top);
  left: var(--timeline-date-size);
  width: var(--timeline-connector-width);
  height: 1px;
  background: #d7b56d;
  content: "";
}

.history-timeline article:not(:last-child)::after {
  position: absolute;
  top: var(--timeline-marker-top);
  height: calc(100% + 34px);
  left: calc(var(--timeline-date-size) + var(--timeline-connector-width) - var(--timeline-line-half));
  width: var(--timeline-line-width);
  background: #d7b56d;
  content: "";
}

.history-timeline time {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--timeline-date-size);
  height: var(--timeline-date-size);
  margin-top: calc(var(--timeline-marker-top) - var(--timeline-date-half));
  place-items: center;
  border: 1px solid rgba(167, 122, 29, 0.34);
  border-radius: 50%;
  background: #fff9ef;
  color: #3f2c1f;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.history-timeline time::after {
  position: absolute;
  top: var(--timeline-date-half);
  left: calc(100% + var(--timeline-connector-width) - var(--timeline-dot-half));
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border: 2px solid #d7b56d;
  border-radius: 50%;
  background: #a87519;
  content: "";
  transform: translateY(-50%);
}

.history-timeline h3 {
  margin: 6px 0 12px;
  color: #996918;
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.35vw, 23px);
  line-height: 1.25;
}

.history-timeline p {
  max-width: 490px;
  margin: 0;
  color: rgba(28, 27, 25, 0.86);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.history-saint {
  display: grid;
  grid-template-columns: minmax(270px, 345px) minmax(0, 1fr);
  align-items: stretch;
  width: min(91vw, 1320px);
  min-height: 270px;
  margin: 26px auto 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.94) 0%, rgba(255, 252, 247, 0.98) 42%, rgba(255, 249, 239, 0.94) 100%);
  box-shadow: 0 18px 44px rgba(63, 44, 31, 0.08);
}

.history-saint-image img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.1);
  transform-origin: center top;
}

.history-saint-copy {
  display: flex;
  min-width: 0;
  padding: 28px 77px 26px;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.history-saint h2 {
  font-size: clamp(24px, 1.78vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.history-saint p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.7);
  font-size: 16px;
  line-height: 1.58;
}

.history-saint blockquote {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  max-width: 745px;
  margin: 20px 0 0;
  padding: 16px 22px 15px;
  border: 1px solid rgba(167, 122, 29, 0.28);
  border-radius: 7px;
  background: rgba(255, 249, 239, 0.62);
}

.history-saint blockquote img {
  width: 29px;
  height: 25px;
  margin-top: 1px;
  opacity: 0.46;
}

.history-saint blockquote p,
.history-saint blockquote cite {
  grid-column: 2;
}

.history-saint blockquote p {
  position: relative;
  margin: 0;
  padding-left: 0;
  color: #986818;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.48;
}

.history-saint blockquote p::before {
  content: none;
}

.history-saint cite {
  display: block;
  margin-top: 10px;
  color: rgba(122, 77, 37, 0.74);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.history-spas {
  display: grid;
  grid-template-columns: minmax(660px, 1fr) minmax(0, 1fr);
  width: min(91vw, 1320px);
  min-height: 390px;
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 18px 44px rgba(63, 44, 31, 0.08);
}

.history-spas-copy {
  position: relative;
  z-index: 2;
  padding: 36px 34px;
  text-align: left;
}

.history-spas h2 {
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.history-spas .history-ornament {
  grid-template-columns: 110px 30px 110px;
  gap: 14px;
  justify-content: start;
  margin: 22px 0 26px;
  color: #b98227;
}

.history-spas .history-ornament span {
  position: relative;
  background: currentColor;
}

.history-spas .history-ornament span::before,
.history-spas .history-ornament span::after {
  position: absolute;
  top: 50%;
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.history-spas .history-ornament span:first-child::before {
  left: 0;
  display: block;
}

.history-spas .history-ornament span:last-child::after {
  right: 0;
  display: block;
}

.history-spas .history-ornament i {
  display: grid;
  width: 30px;
  height: 34px;
  place-items: center;
}

.history-spas .history-ornament i::before,
.history-spas .history-ornament i::after {
  display: none;
}

.history-spas .history-ornament i img {
  display: block;
  width: 27px;
  height: 29px;
  object-fit: contain;
}

.history-spas h3 {
  margin: 0 0 22px;
  color: #3f2c1f;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

.history-spas p {
  max-width: 510px;
  margin: 0 0 16px;
  color: rgba(63, 44, 31, 0.74);
  font-size: 16px;
  line-height: 1.65;
}

.history-spas .button {
  min-width: 210px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 16px;
  font-size: 12px;
}

.history-spas figure {
  position: relative;
  min-height: 390px;
  margin: 0;
}

.history-spas figure::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 34%;
  background: linear-gradient(90deg, rgba(255, 252, 247, 0.98), rgba(255, 252, 247, 0));
  content: "";
}

.history-spas figure > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: sepia(0.34) saturate(0.72);
}

.history-spas figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 249, 239, 0.9);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  text-shadow: 0 2px 8px rgba(31, 22, 16, 0.58);
}

.history-authors {
  width: min(91vw, 1320px);
  padding-top: 28px;
}

.history-authors h2 {
  font-size: clamp(24px, 1.78vw, 34px);
  font-weight: 700;
}

.history-authors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.history-authors article {
  min-height: 176px;
  padding: 20px 18px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 12px 30px rgba(63, 44, 31, 0.07);
}

.history-authors h3 {
  margin: 0;
  color: #3f2c1f;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.history-authors p {
  margin: 10px 0 0;
  color: rgba(63, 44, 31, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.history-new-temple {
  padding-top: 28px;
}

.history-new-temple > p {
  margin: 14px 0 24px;
  color: #996918;
  font-size: 15px;
  font-weight: 600;
}

.history-thrones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 12px 30px rgba(63, 44, 31, 0.07);
  overflow: hidden;
}

.history-thrones article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 22px 28px;
  text-align: left;
}

.history-thrones article + article {
  border-left: 1px solid rgba(167, 122, 29, 0.16);
}

.history-thrones img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.history-thrones strong {
  display: block;
  margin-bottom: 5px;
  color: #996918;
  font-family: var(--font-heading);
  font-size: 16px;
}

.history-thrones span {
  display: block;
  color: #3f2c1f;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.history-construction {
  padding-top: 28px;
}

.history-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.history-gallery button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.history-gallery button[hidden],
.history-gallery-toggle[hidden] {
  display: none;
}

.history-gallery button:focus-visible {
  outline: 2px solid #a77a1d;
  outline-offset: 4px;
}

.history-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(63, 44, 31, 0.1);
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.history-gallery button:hover img {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.history-construction .button {
  min-width: 196px;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .history-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-facts article {
    min-height: 170px;
    padding: 22px 20px;
  }

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

  .history-path-left,
  .history-path-right {
    display: none;
  }

  .history-authors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }

  .history-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .history-screen::before {
    display: none;
  }

  .history-hero {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.96) 0%, rgba(255, 249, 239, 0.82) 54%, rgba(255, 249, 239, 0.16) 100%),
      url("../img/history/historyBan2.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }

  .history-hero-copy {
    padding-bottom: 130px;
  }

  .history-facts {
    margin-top: -72px;
  }

  .history-saint,
  .history-spas,
  .history-thrones {
    grid-template-columns: 1fr;
  }

  .history-saint-image img {
    height: 330px;
  }

  .history-saint h2 {
    margin-top: 20px;
  }

  .history-spas figure {
    order: -1;
  }

  .history-spas h2 {
    white-space: normal;
  }

  .history-spas figure::before {
    display: none;
  }

  .history-thrones article + article {
    border-top: 1px solid rgba(167, 122, 29, 0.16);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .history-screen {
    max-width: 100vw;
  }

  .history-header,
  .history-hero-inner,
  .history-facts,
  .history-path,
  .history-saint,
  .history-spas,
  .history-authors,
  .history-new-temple,
  .history-construction {
    width: min(350px, calc(100vw - 40px));
    margin-right: 20px;
    margin-left: 20px;
  }

  .history-hero-copy h1 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .history-hero-subtitle {
    font-size: 22px;
  }

  .history-hero-lead br {
    display: none;
  }

  .history-hero-actions,
  .history-hero-actions .button {
    width: 100%;
  }

  .history-facts,
  .history-authors-grid,
  .history-gallery {
    grid-template-columns: 1fr;
  }

  .history-facts article {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 138px;
    padding: 22px 18px;
  }

  .history-fact-icon {
    width: 52px;
    height: 52px;
  }

  .history-icon-church::before,
  .history-icon-temple::before,
  .history-icon-first-temple::before,
  .history-icon-saint-patron::before {
    inset: 16px 5px 4px;
  }

  .history-icon-church::after,
  .history-icon-temple::after,
  .history-icon-first-temple::after,
  .history-icon-saint-patron::after {
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
  }

  .history-icon-first-temple::after {
    inset: 7px;
  }

  .history-icon-saint-patron::after {
    inset: 4px 8px;
  }

  .history-icon-saint::before {
    top: 12px;
    left: 16px;
  }

  .history-icon-saint::after {
    right: 9px;
    left: 9px;
  }

  .history-icon-cross::before {
    left: 24px;
    height: 48px;
  }

  .history-icon-cross::after {
    left: 10px;
    width: 32px;
  }

  .history-timeline::before {
    left: 38px;
  }

  .history-timeline article {
    --timeline-date-size: 76px;
    --timeline-date-half: 38px;
    --timeline-marker-top: 16px;
    --timeline-connector-width: 24px;

    grid-template-columns: var(--timeline-date-size) minmax(0, 1fr);
    gap: 40px;
  }

  .history-timeline article::before {
    top: var(--timeline-marker-top);
    left: var(--timeline-date-size);
    width: var(--timeline-connector-width);
  }

  .history-timeline article:not(:last-child)::after {
    top: var(--timeline-marker-top);
    height: calc(100% + 34px);
    left: calc(var(--timeline-date-size) + var(--timeline-connector-width) - var(--timeline-line-half));
  }

  .history-timeline time {
    width: var(--timeline-date-size);
    height: var(--timeline-date-size);
    font-size: 15px;
  }

  .history-timeline time::after {
    left: calc(100% + var(--timeline-connector-width) - var(--timeline-dot-half));
  }

  .history-saint-copy,
  .history-spas-copy {
    padding: 26px 22px;
  }

  .history-saint-image img {
    height: 280px;
  }

  .history-thrones article {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 20px;
  }

  .history-thrones img {
    width: 58px;
    height: 58px;
  }

  .history-gallery img {
    aspect-ratio: 16 / 9;
  }
}

.worship-print-schedule {
  display: none;
}

@media print {
  .worship-schedule-page,
  .worship-schedule-page * {
    color: #000 !important;
  }

  .site-header,
  .worship-breadcrumbs,
  .week-switcher a,
  .week-switcher span::after,
  .print-schedule,
  .worship-fast-banner,
  .worship-filter-bar,
  .worship-week,
  .worship-current-badge,
  .worship-service-line > img,
  .communion-accent,
  .communion-diary,
  .worship-schedule-screen::before {
    display: none !important;
  }

  .worship-schedule-screen {
    padding: 0 !important;
    background: #fff !important;
  }

  .worship-schedule-hero {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
  }

  .worship-title-block {
    display: block !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .worship-title-block h1 {
    max-width: none !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .schedule-toolbar,
  .week-switcher,
  .week-switcher span {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
  }

  .week-switcher span {
    color: #3f2c1f !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  .worship-print-schedule {
    display: grid !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    visibility: visible !important;
  }

  .worship-print-row {
    display: grid !important;
    grid-template-columns: 86px 118px 62px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #d6d6d6 !important;
    background: transparent !important;
    break-inside: avoid !important;
  }

  .worship-print-day-start {
    margin-top: 9px !important;
    padding-top: 13px !important;
    border-top: 1px solid #a8a8a8 !important;
  }

  .worship-print-row span {
    display: block !important;
    min-width: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .worship-print-head {
    padding: 10px 0 !important;
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
  }

  .worship-print-head span,
  .worship-print-row span:nth-child(1),
  .worship-print-row span:nth-child(2),
  .worship-print-row span:nth-child(3) {
    font-weight: 800 !important;
  }

  .worship-print-row span:nth-child(3) {
    white-space: nowrap !important;
  }
}

/* Clergy redesign */
.clergy-page-v2 {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 255, 255, 0.9), transparent 26%),
    radial-gradient(circle at 14% 20%, rgba(255, 249, 239, 0.92), transparent 34%),
    linear-gradient(180deg, #fffaf2 0%, #f8efe5 56%, #f6eee4 100%);
}

.clergy-header {
  width: min(91vw, 1360px);
}

.clergy-breadcrumbs,
.clergy-layout,
.clergy-container {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.clergy-breadcrumbs {
  display: flex;
  z-index: 4;
  gap: 9px;
  align-items: center;
  padding-top: 28px;
  color: rgba(63, 44, 31, 0.58);
  font-size: 14px;
  font-weight: 600;
}

.clergy-page-v2 .clergy-breadcrumbs {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
}

.clergy-breadcrumbs a {
  color: var(--color-wood);
  transition: color 180ms ease;
}

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

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

.clergy-hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(520px, 0.76fr) minmax(560px, 1.24fr);
  align-items: start;
  width: min(91vw, 1320px);
  min-height: 535px;
  margin: 18px auto 0;
  padding: 34px 0 18px;
  overflow: visible;
}

.clergy-hero-stage::before {
  position: absolute;
  top: -54px;
  right: calc((100vw - 100%) / -2);
  bottom: -54px;
  left: calc((100vw - 100%) / -2);
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(255, 250, 242, 0) 0%, rgba(255, 250, 242, 0.18) 62%, #fffaf2 100%);
  pointer-events: none;
}

.clergy-hero-stage::after {
  position: absolute;
  right: calc((100vw - 100%) / -2);
  bottom: -44px;
  left: 0;
  z-index: -1;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, rgba(255, 250, 242, 0), #fffaf2 86%);
  pointer-events: none;
}

.clergy-hero-bg {
  position: absolute;
  top: -54px;
  right: calc((100vw - 100%) / -2);
  bottom: -54px;
  left: calc((100vw - 100%) / -2);
  z-index: -2;
  background: url("../img/clergy/clergy-hero-bg-v2.webp") center top / cover no-repeat;
  filter: saturate(0.96) contrast(0.96) brightness(1.02);
  opacity: 0.9;
  pointer-events: none;
}

.clergy-hero-text {
  position: relative;
  max-width: 560px;
  align-self: start;
  padding-top: 0;
  padding-bottom: 260px;
}

.clergy-hero-text h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  color: #2f281f;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  text-transform: none;
}

.clergy-title-divider {
  position: relative;
  z-index: 1;
  display: block;
  width: 112px;
  height: 14px;
  margin: 26px auto 0;
}

.clergy-title-divider::after {
  background: #fffaf2;
}

.clergy-hero-lead {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 520px;
  margin-top: 26px;
}

.clergy-hero-lead p {
  margin: 0;
  color: rgba(63, 44, 31, 0.82);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
}

.clergy-hero-lead img {
  float: left;
  width: 110px;
  margin: 2px 18px 2px 0;
  shape-margin: 10px;
}

.clergy-hero-sketch {
  position: absolute;
  top: 184px;
  right: auto;
  left: -78px;
  bottom: auto;
  z-index: 0;
  width: min(52vw, 650px);
  max-width: none;
  opacity: 0.5;
  filter: sepia(0.26) saturate(0.9) brightness(1.02) contrast(1.02);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.clergy-bishop {
  position: relative;
  align-self: stretch;
  min-height: 500px;
}

.clergy-bishop::before {
  position: absolute;
  right: 14px;
  bottom: -22px;
  z-index: 0;
  width: min(56vw, 680px);
  height: 560px;
  content: "";
  background:
    radial-gradient(ellipse at 52% 48%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 30%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.1) 72%, rgba(255, 255, 255, 0) 92%);
  filter: blur(26px);
  pointer-events: none;
}

.clergy-bishop::after {
  position: absolute;
  top: -122px;
  right: -22px;
  z-index: 0;
  width: min(50vw, 620px);
  height: 130px;
  content: "";
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.86) 0%, rgba(255, 250, 242, 0.52) 36%, rgba(255, 250, 242, 0.16) 58%, rgba(255, 250, 242, 0) 100%);
  filter: blur(18px);
  pointer-events: none;
}

.clergy-arch {
  position: absolute;
  right: 81px;
  bottom: 42px;
  z-index: 1;
  display: block;
  width: min(43vw, 464px);
  max-height: 590px;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.58) brightness(1.08);
  opacity: 0.76;
  pointer-events: none;
}

.clergy-bishop-photo {
  position: absolute;
  right: 71px;
  bottom: 76px;
  z-index: 3;
  display: block;
  width: min(45vw, 500px);
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
}

.clergy-bishop-card {
  position: absolute;
  right: 56px;
  bottom: -93px;
  z-index: 4;
  width: min(513px, 82%);
  min-height: 300px;
  padding: 60px 48px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.clergy-bishop-card::after {
  position: absolute;
  right: 34px;
  bottom: -22px;
  left: 34px;
  z-index: -2;
  height: 48px;
  content: "";
  border-radius: 50%;
  background: rgba(92, 60, 32, 0.24);
  filter: blur(24px);
  pointer-events: none;
}

.clergy-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 36px rgba(63, 44, 31, 0.12));
  pointer-events: none;
}

.clergy-bishop-card p {
  margin: 0 0 14px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clergy-bishop-card h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.22;
}

.clergy-bishop-card h2 span {
  white-space: nowrap;
}

.clergy-card-venzel {
  display: block;
  width: 174px;
  height: auto;
  margin: 12px auto 6px;
  object-fit: contain;
}

.clergy-bishop-meta {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  gap: 20px;
  align-items: end;
  margin-top: 0;
}

.clergy-bishop-meta-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(63, 44, 31, 0.78);
  font-size: 13px;
  line-height: 1.36;
}

.clergy-bishop-meta-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.clergy-bishop-meta-item img[src*="iconCalendar3"],
.clergy-bishop-meta-item img[src*="iconKrest2"] {
  filter:
    drop-shadow(0.18px 0 #b9903e)
    drop-shadow(0 0.18px #b9903e);
}

.clergy-bishop-emblem {
  width: 76px;
  max-height: 74px;
  justify-self: center;
  object-fit: contain;
}

.clergy-rector-section {
  position: relative;
  z-index: 0;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding-top: 74px;
  padding-bottom: 46px;
  background: #fef9f1;
  box-shadow: 0 0 0 100vmax #fef9f1;
  clip-path: inset(0 -100vmax);
}

.clergy-rector-divider {
  position: relative;
  top: 30px;
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(90deg, rgba(167, 122, 29, 0), rgba(167, 122, 29, 0.36) 16%, rgba(167, 122, 29, 0.42) 84%, rgba(167, 122, 29, 0));
}

.clergy-rector-divider::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid var(--color-old-gold);
  border-radius: 50%;
  background: #fffaf2;
  transform: translateX(-50%);
}

.clergy-rector-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(0, 1fr);
  gap: clamp(56px, 5.3vw, 92px);
  align-items: start;
  margin-top: 60px;
}

.clergy-rector-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 36%),
    #eee5da;
  box-shadow: 0 18px 42px rgba(63, 44, 31, 0.08);
}

.clergy-rector-photo::before {
  position: absolute;
  inset: 58px 42px 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 249, 239, 0.68) 0%, rgba(255, 246, 230, 0.44) 36%, rgba(226, 196, 157, 0.16) 64%, rgba(226, 196, 157, 0) 82%);
  filter: blur(28px);
  opacity: 0.82;
  pointer-events: none;
}

.clergy-rector-photo img {
  position: relative;
  z-index: 2;
  display: block;
  width: 88%;
  height: 586px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
}

.clergy-rector-content {
  max-width: 650px;
  padding-top: 34px;
}

.clergy-rector-more {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(185, 144, 62, 0.88);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.76) 40%, rgba(255, 255, 255, 0) 58%) -120% 0 / 220% 100% no-repeat,
    rgba(255, 250, 242, 0.54);
  box-shadow: 0 10px 26px rgba(63, 44, 31, 0);
  cursor: pointer;
  transition:
    background-position 520ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.clergy-rector-more::before,
.clergy-rector-more::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  content: "";
  background: #b9903e;
  transform: translate(-50%, -50%);
  transition:
    background 180ms ease,
    transform 260ms ease;
}

.clergy-rector-more::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.clergy-rector-more:hover {
  border-color: #a77a1d;
  background-color: rgba(255, 249, 239, 0.96);
  background-position: 120% 0, 0 0;
  box-shadow:
    0 14px 30px rgba(63, 44, 31, 0.11),
    0 0 0 5px rgba(185, 144, 62, 0.08);
  transform: translateY(-2px);
}

.clergy-rector-more:hover::before {
  background: #a77a1d;
  transform: translate(-50%, -50%) rotate(180deg);
}

.clergy-rector-more:hover::after {
  background: #a77a1d;
  transform: translate(-50%, -50%) rotate(270deg);
}

.clergy-rector-more:active {
  box-shadow:
    0 8px 18px rgba(63, 44, 31, 0.08),
    0 0 0 4px rgba(185, 144, 62, 0.06);
  transform: translateY(0);
}

.clergy-rector-label {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 26px;
  color: #b9903e;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.clergy-rector-label span {
  color: #b9903e;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.clergy-rector-content h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.gold-divider.clergy-rector-title-divider {
  width: 170px;
  margin: 24px 0 0 68px;
}

.clergy-rector-text {
  max-width: 570px;
  margin: 24px 0 0;
  color: #1f1f1f;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.76;
}

.clergy-rector-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 44px 0 0;
  color: var(--color-dark-wood);
}

.clergy-rector-facts div {
  display: grid;
  min-height: 106px;
  align-content: start;
  justify-items: center;
  padding: 0 26px;
  border-left: 1px solid rgba(185, 144, 62, 0.32);
  text-align: center;
}

.clergy-rector-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.clergy-rector-facts img {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  object-fit: contain;
}

.clergy-rector-facts dt {
  margin: 0 0 12px;
  color: #b9903e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.clergy-rector-facts dd {
  margin: 0;
  color: var(--color-dark-wood);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.24;
}

.clergy-rector-button {
  display: inline-flex;
  min-width: 424px;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 40px;
  padding: 0 28px 0 22px;
  border: 1px solid rgba(185, 144, 62, 0.72);
  border-radius: 6px;
  color: #1f1f1f;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 250, 242, 0.68);
  cursor: pointer;
  box-shadow: 0 0 0 rgba(185, 144, 62, 0);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.clergy-rector-button span {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid #b9903e;
  border-radius: 50%;
}

.clergy-rector-button span::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #b9903e;
  transform: translate(-40%, -50%);
}

.clergy-rector-button::after {
  margin-left: auto;
  color: #b9903e;
  font-size: 30px;
  line-height: 1;
  content: "→";
  transition: color 180ms ease;
}

.clergy-rector-button:hover {
  border-color: #b9903e;
  color: var(--color-dark-wood);
  background: rgba(255, 246, 231, 0.98);
  box-shadow:
    0 0 0 4px rgba(185, 144, 62, 0.08),
    0 10px 22px rgba(63, 44, 31, 0.06);
}

.clergy-rector-button:hover::after {
  color: #a77a1d;
}

.clergy-rector-quote {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 178px;
  margin: 30px 0 0;
  padding: 18px 285px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(247, 232, 211, 0.2), rgba(255, 249, 239, 0.18) 50%, rgba(247, 232, 211, 0.22)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    linear-gradient(90deg, rgba(247, 232, 211, 0.9), rgba(255, 249, 239, 0.72) 50%, rgba(247, 232, 211, 0.88)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 56%),
    #f2e3d0;
  box-shadow:
    inset 0 0 0 1px rgba(185, 144, 62, 0.08),
    0 18px 44px rgba(63, 44, 31, 0.06);
}

.clergy-quote-candle,
.clergy-quote-temple {
  position: absolute;
  bottom: 0;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 0.78;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.clergy-quote-candle {
  left: 26px;
  height: 93%;
  opacity: 0.55;
  filter: saturate(0.8);
  object-position: left bottom;
}

.clergy-quote-temple {
  right: 28px;
  height: 93%;
  opacity: 0.7;
  filter: saturate(0.8);
  object-position: right bottom;
}

.clergy-quote-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.clergy-rector-quote blockquote {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.22;
  text-align: center;
}

.clergy-quote-divider {
  width: 200px;
  margin-top: 16px;
}

.clergy-rector-quote figcaption {
  margin-top: 8px;
  color: #b9903e;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.clergy-clerics-section {
  position: relative;
  z-index: 0;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding: 14px 0 58px;
  background: #fef9f1;
  box-shadow: 0 0 0 100vmax #fef9f1;
  clip-path: inset(0 -100vmax);
}

.clergy-clerics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.clergy-cleric-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.66);
  box-shadow: 0 16px 36px rgba(63, 44, 31, 0.05);
  transition: box-shadow 180ms ease;
}

.clergy-cleric-card.is-hidden {
  display: none;
}

.clergy-cleric-card.is-expanded {
  grid-column: 1 / -1;
  grid-template-columns: minmax(290px, 330px) minmax(0, 1fr);
  grid-template-rows: 1fr;
  height: 372px;
  min-height: 372px;
  box-shadow:
    0 22px 50px rgba(63, 44, 31, 0.08),
    inset 0 0 0 1px rgba(185, 144, 62, 0.03);
}

.clergy-cleric-photo {
  position: relative;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 36%),
    #eee5da;
}

.clergy-cleric-photo::before {
  position: absolute;
  inset: 40px 24px 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255, 249, 239, 0.68) 0%, rgba(255, 246, 230, 0.44) 38%, rgba(226, 196, 157, 0.16) 66%, rgba(226, 196, 157, 0) 84%);
  filter: blur(24px);
  opacity: 0.78;
  pointer-events: none;
}

.clergy-cleric-card.is-expanded .clergy-cleric-photo {
  min-height: 372px;
}

.clergy-cleric-photo img {
  position: relative;
  left: 50%;
  z-index: 2;
  display: block;
  width: 123%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  transition: none;
}

.clergy-cleric-card.is-expanded .clergy-cleric-photo img {
  width: 123%;
  transform: translateX(-50%);
}

.clergy-cleric-info {
  min-width: 0;
  padding: 18px 58px 24px 28px;
  text-align: center;
  background: rgba(255, 249, 239, 0.9);
}

.clergy-cleric-card.is-expanded .clergy-cleric-info {
  padding: 42px 76px 42px 52px;
  text-align: left;
  background: transparent;
}

.clergy-cleric-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(185, 144, 62, 0.9);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.clergy-cleric-toggle::before,
.clergy-cleric-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  content: "";
  background: #b9903e;
  transform: translate(-50%, -50%);
  transition: transform 260ms ease, background 180ms ease;
}

.clergy-cleric-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.clergy-cleric-card.is-expanded .clergy-cleric-toggle {
  top: 24px;
  right: 24px;
}

.clergy-cleric-card.is-expanded .clergy-cleric-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.clergy-cleric-toggle:hover {
  border-color: #a77a1d;
  background: rgba(255, 247, 232, 0.98);
  box-shadow:
    0 0 0 4px rgba(185, 144, 62, 0.12),
    0 8px 18px rgba(63, 44, 31, 0.14);
}

.clergy-cleric-toggle:hover::before,
.clergy-cleric-toggle:hover::after {
  background: #a77a1d;
}

.clergy-cleric-rank {
  margin: 0;
  color: #b9903e;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.clergy-cleric-card h3 {
  max-width: 300px;
  margin: 8px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.clergy-cleric-card:not(.is-expanded) h3 {
  margin-right: auto;
  margin-left: auto;
}

.clergy-cleric-card.is-expanded h3 {
  max-width: none;
  font-size: 28px;
}

.clergy-cleric-divider {
  display: none;
  width: 62px;
  height: 10px;
  margin: 15px 0 0;
}

.clergy-cleric-card.is-expanded .clergy-cleric-divider {
  display: block;
}

.clergy-cleric-divider::before {
  top: 5px;
}

.clergy-cleric-divider::after {
  top: 2px;
  width: 6px;
  height: 6px;
}

.clergy-cleric-summary {
  display: none;
  max-width: 280px;
  margin: 16px 0 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: 14px;
  line-height: 1.58;
}

.clergy-cleric-card.is-expanded .clergy-cleric-summary {
  display: block;
  max-width: 420px;
}

.clergy-cleric-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.clergy-cleric-card.is-expanded .clergy-cleric-details {
  height: auto;
  margin-top: 44px;
  opacity: 1;
}

.clergy-cleric-details div {
  min-height: 88px;
  padding: 0 32px;
  border-left: 1px solid rgba(185, 144, 62, 0.26);
}

.clergy-cleric-details div:first-child {
  padding-left: 0;
  border-left: 0;
}

.clergy-cleric-details dt {
  color: #b9903e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.clergy-cleric-details dd {
  margin: 12px 0 0;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.55;
}

.clergy-cleric-details dd span {
  color: rgba(31, 31, 31, 0.58);
}

.clergy-ministry-directions {
  position: relative;
  z-index: 0;
  width: min(91vw, 1320px);
  margin: 0 auto;
  padding: 6px 0 58px;
  background: #fef9f1;
  box-shadow: 0 0 0 100vmax #fef9f1;
  clip-path: inset(0 -100vmax);
}

.clergy-ministry-directions::before {
  display: block;
  height: 1px;
  margin: 0 0 28px;
  content: "";
  background: linear-gradient(90deg, rgba(167, 122, 29, 0), rgba(167, 122, 29, 0.25) 16%, rgba(167, 122, 29, 0.32) 84%, rgba(167, 122, 29, 0));
}

.clergy-ministry-directions .clergy-section-heading {
  margin-bottom: 36px;
}

.clergy-ministry-directions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.clergy-ministry-directions-grid article {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 178px;
  padding: 0 24px;
  text-align: center;
}

.clergy-ministry-directions-grid article + article {
  border-left: 1px solid rgba(185, 144, 62, 0.25);
}

.clergy-ministry-directions-grid img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(54%)
    sepia(42%)
    saturate(680%)
    hue-rotate(2deg)
    brightness(94%)
    contrast(89%);
}

.clergy-ministry-directions-grid h3 {
  margin: 22px 0 0;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
  text-transform: uppercase;
}

.clergy-ministry-directions-grid p {
  margin: 14px 0 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.clergy-final-quote-section {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: #17130f;
}

.clergy-final-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 178px;
  margin: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.08), rgba(18, 15, 12, 0.34) 34%, rgba(18, 15, 12, 0.42) 50%, rgba(18, 15, 12, 0.34) 66%, rgba(18, 15, 12, 0.08)),
    radial-gradient(ellipse at 50% 48%, rgba(12, 10, 8, 0.34), rgba(12, 10, 8, 0) 52%),
    url("../img/clergy/clergy-final-quote-bg.webp") center / cover no-repeat,
    #17130f;
  text-align: center;
}

.clergy-final-quote::before,
.clergy-final-quote::after {
  display: none;
}

.clergy-final-quote-top {
  position: relative;
  top: 13px;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px 24px 112px;
  gap: 18px;
  align-items: center;
}

.clergy-final-quote-top span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(211, 180, 111, 0), rgba(211, 180, 111, 0.62));
}

.clergy-final-quote-top span:last-child {
  background: linear-gradient(90deg, rgba(211, 180, 111, 0.62), rgba(211, 180, 111, 0));
}

.clergy-final-quote-top img {
  display: block;
  width: 24px;
  height: 35px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.38));
}

.clergy-final-quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #e3c98c;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.28;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.clergy-final-quote-divider {
  position: relative;
  bottom: 7px;
  z-index: 1;
  display: block;
  width: 112px;
  height: auto;
  margin: 0 auto;
  opacity: 0.92;
  transform: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.32));
}

.clergy-final-quote-divider::after {
  display: none;
}

.clergy-panel-open {
  overflow: hidden;
}

.clergy-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.clergy-panel-open .clergy-panel-overlay {
  opacity: 1;
  visibility: visible;
}

.clergy-rector-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(40vw, 560px);
  min-width: 470px;
  height: 100vh;
  padding: 34px 34px 0;
  color: var(--color-dark-wood);
  background:
    radial-gradient(circle at 0 16%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(247, 232, 211, 0.44), rgba(255, 250, 242, 0.98) 18%),
    #fffaf2;
  box-shadow:
    -18px 0 48px rgba(63, 44, 31, 0.13),
    inset 1px 0 0 rgba(185, 144, 62, 0.09);
  transform: translateX(105%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.clergy-panel-open .clergy-rector-panel {
  transform: translateX(0);
}

.clergy-panel-open .gallery-lightbox {
  z-index: 120;
}

.clergy-rector-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.clergy-rector-panel-head h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.clergy-rector-panel-head p {
  margin: 8px 0 0;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.3;
}

.clergy-panel-close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.clergy-panel-close::before,
.clergy-panel-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 2px;
  content: "";
  background: #1f1f1f;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.clergy-panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.clergy-panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.clergy-panel-close:hover::before,
.clergy-panel-close:hover::after {
  background: #b9903e;
}

.clergy-panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 34px -6px 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(63, 44, 31, 0.12);
}

.clergy-panel-tabs button {
  position: relative;
  display: grid;
  min-height: 88px;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 0 4px 17px;
  border: 0;
  color: rgba(31, 31, 31, 0.58);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease;
}

.clergy-panel-tabs button::after {
  position: absolute;
  right: 15%;
  bottom: 0;
  left: 15%;
  height: 3px;
  content: "";
  border-radius: 999px 999px 0 0;
  background: #b9903e;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.clergy-panel-tabs button.active,
.clergy-panel-tabs button:hover {
  color: #b9903e;
}

.clergy-panel-tabs button.active::after {
  transform: scaleX(1);
}

.clergy-tab-icon {
  display: block;
  width: 34px;
  height: 30px;
  object-fit: contain;
  opacity: 0.62;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.clergy-panel-tabs button.active .clergy-tab-icon,
.clergy-panel-tabs button:hover .clergy-tab-icon {
  opacity: 1;
}

.clergy-panel-scroll {
  min-height: 0;
  margin: 0 -14px 0 0;
  padding: 28px 14px 34px 0;
  overflow-y: auto;
  scrollbar-color: rgba(63, 44, 31, 0.32) transparent;
  scrollbar-width: thin;
}

.clergy-panel-scroll::-webkit-scrollbar {
  width: 7px;
}

.clergy-panel-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(63, 44, 31, 0.28);
}

.clergy-panel-tab {
  animation: clergyPanelFade 220ms ease both;
}

@keyframes clergyPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clergy-panel-tab h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.clergy-panel-tab p,
.clergy-panel-list {
  margin: 20px 0 0;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.68;
}

.clergy-panel-tab p + p {
  margin-top: 18px;
}

.clergy-panel-tab strong {
  font-weight: 700;
}

.clergy-panel-divider {
  width: 112px;
  margin: 12px 0 0;
}

.clergy-panel-wide-divider {
  width: 100%;
  margin: 24px 0 22px;
}

#rector-tab-bio .clergy-panel-wide-divider {
  margin-top: 23px;
  margin-bottom: 23px;
}

.clergy-panel-video-description + .clergy-panel-wide-divider {
  margin-top: 20px;
  margin-bottom: 20px;
}

.clergy-panel-photo {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 6px;
}

.clergy-panel-list {
  display: grid;
  gap: 14px;
  padding-left: 20px;
}

.clergy-panel-video {
  position: relative;
  margin: 12px 0 18px;
  overflow: hidden;
  border-radius: 6px;
  background: #241a14;
  cursor: pointer;
}

.clergy-panel-video-poster,
.clergy-panel-video-player {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: cover;
  object-position: center 24%;
}

.clergy-panel-video-poster {
  opacity: 0.82;
}

.clergy-panel-video-player {
  background: #241a14;
}

.clergy-panel-video-player[hidden] {
  display: none;
}

.clergy-panel-video.is-playing .clergy-panel-video-poster,
.clergy-panel-video.is-playing .clergy-panel-video-play,
.clergy-panel-video.is-playing .clergy-panel-video-bar {
  display: none;
}

.clergy-panel-video.is-playing {
  cursor: default;
}

.clergy-panel-video.is-preview-open .clergy-panel-video-play,
.clergy-panel-video.is-preview-open .clergy-panel-video-bar {
  display: none;
}

.clergy-panel-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.clergy-panel-video-play::after {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  content: "";
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #fff;
  transform: translate(-36%, -50%);
  transition: border-left-color 180ms ease;
}

.clergy-panel-video:hover .clergy-panel-video-play {
  border-color: #c83228;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.48),
    0 6px 16px rgba(63, 44, 31, 0.22);
  transform: translate(-50%, -50%) scale(1.08);
}

.clergy-panel-video:hover .clergy-panel-video-play::after {
  border-left-color: #c83228;
}

.clergy-panel-video-bar {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.clergy-panel-video-bar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: #b9903e;
}

.clergy-panel-tab time {
  display: block;
  margin-top: 10px;
  color: rgba(31, 31, 31, 0.56);
  font-size: 15px;
}

.clergy-panel-subtitle {
  margin-top: 0 !important;
  font-size: 24px !important;
}

.clergy-panel-sermons {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.clergy-panel-sermons article {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.clergy-panel-sermon-cover {
  position: relative;
  display: block;
  width: 168px;
  height: 106px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #241a14;
  cursor: pointer;
}

.clergy-panel-sermon-cover img {
  width: 168px;
  height: 106px;
  object-fit: cover;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.clergy-panel-sermon-cover span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.clergy-panel-sermon-cover span::after {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid rgba(255, 255, 255, 0.92);
  transform: translate(-36%, -50%);
  transition: border-left-color 180ms ease;
}

.clergy-panel-sermons article:hover .clergy-panel-sermon-cover img,
.clergy-panel-sermon-cover:hover img {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.clergy-panel-sermon-cover:hover span {
  border-color: #c83228;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.48),
    0 6px 16px rgba(63, 44, 31, 0.22);
  transform: translate(-50%, -50%) scale(1.08);
}

.clergy-panel-sermon-cover:hover span::after {
  border-left-color: #c83228;
}

.clergy-panel-sermons h4 {
  margin: 0;
}

.clergy-panel-sermons article > div {
  display: grid;
  min-height: 106px;
  align-content: space-between;
}

.clergy-panel-sermons h4 button {
  display: block;
  padding: 0;
  border: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.22;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease;
}

.clergy-panel-sermons h4 button:hover {
  color: #b9903e;
}

.clergy-panel-sermons span {
  display: block;
  margin: 0;
  color: rgba(31, 31, 31, 0.58);
  font-size: 14px;
  line-height: 1.2;
}

.clergy-panel-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 14px;
  margin-top: 34px;
}

.clergy-panel-gallery button {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.clergy-panel-gallery button:focus-visible {
  outline: 2px solid #a77a1d;
  outline-offset: 4px;
}

.clergy-panel-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.68 / 1;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 12px 26px rgba(63, 44, 31, 0.11);
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.clergy-panel-gallery button:hover img {
  filter: brightness(1.05);
  transform: scale(1.025);
}

.clergy-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.76fr) minmax(430px, 0.88fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
  padding: 0 0 40px;
}

.clergy-intro {
  position: relative;
  min-height: 360px;
  padding-top: 0;
}

.clergy-role-label,
.cleric-card p {
  margin: 0;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.clergy-intro h1,
.clergy-section-heading h2,
.contact-intro-card h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
}

.clergy-intro h1 {
  font-size: clamp(28px, 2.35vw, 38px);
  font-weight: 700;
}

.clergy-intro > p {
  max-width: 410px;
  margin: 30px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 17px;
  line-height: 1.85;
}

.clergy-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

.clergy-hero-actions .button {
  min-width: 290px;
  justify-content: center;
}

.clergy-sketch {
  position: absolute;
  width: 520px;
  max-width: 100%;
  opacity: 0.09;
  filter: sepia(1) saturate(1.25);
  pointer-events: none;
}

.clergy-sketch-hero {
  right: 18px;
  bottom: 10px;
  z-index: -1;
}

.bishop-card,
.rector-feature,
.cleric-card,
.ministry-card,
.priest-contact,
.contact-action-grid article {
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.76);
  box-shadow: 0 16px 42px rgba(63, 44, 31, 0.06);
}

.bishop-card {
  overflow: hidden;
}

.bishop-photo {
  height: 300px;
  background: #eee0d2;
}

.bishop-photo img,
.rector-photo img,
.cleric-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.bishop-caption {
  padding: 18px 24px 20px;
  text-align: center;
  background: rgba(255, 249, 239, 0.94);
}

.bishop-caption p {
  margin: 0 0 8px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.bishop-caption h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.65vw, 26px);
  line-height: 1.27;
}

.gold-divider {
  position: relative;
  display: block;
  width: 112px;
  height: 14px;
  margin: 26px auto 0;
}

.gold-divider::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(167, 122, 29, 0), rgba(167, 122, 29, 0.92) 38%, rgba(167, 122, 29, 0.92) 62%, rgba(167, 122, 29, 0));
}

.gold-divider::after {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid var(--color-old-gold);
  border-radius: 50%;
  background: #fff9ef;
  transform: translateX(-50%);
}

.rector-feature {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  overflow: hidden;
}

.rector-photo {
  align-self: stretch;
  min-height: 0;
  height: 330px;
  background: #eee0d2;
}

.bishop-photo img,
.cleric-card > img,
.rector-photo img {
  object-fit: cover;
  object-position: center 16%;
}

.bishop-photo img {
  object-fit: contain;
  object-position: center top;
}

.cleric-card > img {
  object-position: center 8%;
}

.rector-info {
  padding: clamp(22px, 2.4vw, 30px) clamp(26px, 3vw, 36px);
  background: rgba(255, 249, 239, 0.7);
}

.rector-info h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.clergy-role-label {
  margin-top: 12px;
}

.rector-info > p:not(.clergy-role-label) {
  max-width: 610px;
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.rector-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.rector-badges span {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--color-dark-wood);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.rector-badges img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.clergy-section {
  padding-top: 32px;
}

.clergy-section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.clergy-section-heading h2 {
  font-size: clamp(24px, 2vw, 32px);
}

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

.cleric-card {
  overflow: hidden;
  text-align: center;
}

.cleric-card > img {
  height: 170px;
  background: #eee0d2;
}

.cleric-card div {
  min-height: 176px;
  padding: 18px 22px 22px;
  background: rgba(255, 249, 239, 0.92);
}

.cleric-card h3,
.ministry-card h3,
.contact-action-grid h3 {
  margin: 12px 0 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.28;
}

.cleric-card span {
  display: block;
  min-height: 44px;
  margin-top: 10px;
  color: rgba(63, 44, 31, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.small-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(167, 122, 29, 0.55);
  border-radius: 4px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.small-link:hover {
  color: var(--color-ivory);
  background: var(--color-old-gold);
}

.cleric-card .small-link span {
  display: inline;
  min-height: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.ministry-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  min-height: 235px;
  padding: 36px 32px 30px;
  overflow: hidden;
}

.ministry-card > img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.ministry-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.ministry-person {
  margin: 8px 0 0;
  color: var(--color-dark-wood);
  font-weight: 700;
}

.ministry-card p:not(.ministry-person) {
  margin: 16px 0 0;
  color: rgba(63, 44, 31, 0.72);
  font-size: 14px;
  line-height: 1.72;
}

.ministry-card-decor::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 220px;
  height: 150px;
  content: "";
  background: url("../img/church-transparent.png") center / contain no-repeat;
  opacity: 0.12;
  filter: sepia(1) saturate(1.2);
}

.text-arrow {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  color: var(--color-old-gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.text-arrow:hover,
.small-link:hover {
  text-decoration: none;
}

.priest-contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.52fr);
  gap: 26px;
  margin-top: 50px;
  margin-bottom: 58px;
  padding: 26px;
  overflow: hidden;
  background: rgba(255, 249, 239, 0.64);
}

.contact-intro-card {
  position: relative;
  min-height: 315px;
  padding: 18px 16px 20px 24px;
}

.contact-intro-card h2 {
  font-size: clamp(24px, 2vw, 32px);
}

.contact-intro-card p {
  max-width: 330px;
  margin: 28px 0 0;
  color: rgba(63, 44, 31, 0.76);
  font-size: 16px;
  line-height: 1.78;
}

.contact-intro-card .button {
  margin-top: 28px;
}

.contact-sketch {
  left: -170px;
  bottom: -92px;
  width: 360px;
}

.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contact-action-grid article {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px 24px 26px;
  background: rgba(255, 249, 239, 0.82);
}

.contact-action-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.contact-action-grid h3 {
  margin-top: 20px;
  font-size: 19px;
}

.contact-action-grid p {
  margin: 18px 0 0;
  color: rgba(63, 44, 31, 0.7);
  font-size: 14px;
  line-height: 1.66;
}

.contact-action-grid .text-arrow {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .clergy-hero-stage {
    grid-template-columns: minmax(520px, 0.9fr) minmax(360px, 1.1fr);
    min-height: 560px;
  }

  .clergy-bishop {
    --clergy-arch-width: min(42vw, 370px);
    justify-self: center;
    width: min(42vw, 430px);
    min-height: 520px;
  }

  .clergy-bishop::before {
    right: 50%;
    bottom: -10px;
    width: min(48vw, 520px);
    height: 500px;
    transform: translateX(50%);
  }

  .clergy-bishop::after {
    right: 50%;
    width: min(44vw, 480px);
    transform: translateX(50%);
  }

  .clergy-arch {
    right: 50%;
    bottom: 96px;
    width: var(--clergy-arch-width);
    transform: translateX(50%);
  }

  .clergy-bishop-photo {
    right: 50%;
    bottom: 130px;
    width: calc(var(--clergy-arch-width) * 1.22);
    transform: translateX(50%);
  }

  .clergy-bishop-card {
    right: 50%;
    bottom: -18px;
    width: min(430px, 100%);
    min-height: 284px;
    padding: 54px 40px 30px;
    transform: translateX(50%);
  }

  .clergy-bishop-card h2 {
    font-size: 20px;
  }

  .clergy-bishop-meta {
    grid-template-columns: minmax(96px, 1fr) 62px minmax(96px, 1fr);
    gap: 8px;
    align-items: start;
    margin-top: 2px;
  }

  .clergy-bishop-meta-item {
    gap: 6px;
    font-size: 11px;
    line-height: 1.24;
  }

  .clergy-bishop-meta-item span {
    max-width: 108px;
  }

  .clergy-bishop-emblem {
    width: 58px;
  }

  .clergy-layout,
  .rector-feature,
  .priest-contact {
    grid-template-columns: 1fr;
  }

  .clergy-rector-main {
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    gap: 44px;
  }

  .clergy-rector-photo,
  .clergy-rector-photo img {
    height: 380px;
    min-height: 380px;
  }

  .clergy-rector-content h2 {
    font-size: 29px;
  }

  .clergy-rector-facts div {
    padding: 0 20px;
  }

  .clergy-rector-quote {
    padding: 0 160px;
  }

  .clergy-rector-quote blockquote {
    font-size: 24px;
  }

  .clergy-clerics-grid {
    gap: 22px;
  }

  .clergy-cleric-card.is-expanded {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .clergy-cleric-card.is-expanded .clergy-cleric-info {
    padding: 38px 62px 38px 42px;
  }

  .clergy-cleric-details div {
    padding: 0 20px;
  }

  .clergy-ministry-directions-grid article {
    padding: 0 16px;
  }

  .clergy-final-quote blockquote {
    font-size: 26px;
  }

  .clergy-intro {
    min-height: 340px;
    padding-top: 0;
  }

  .bishop-photo {
    height: 320px;
  }

  .rector-photo {
    height: 300px;
  }

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

@media (max-width: 980px) {
  .clergy-rector-panel {
    width: min(520px, 92vw);
    min-width: 0;
  }

  .clergy-hero-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .clergy-hero-stage::before {
    inset: 210px 0 0;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.36), #fffaf2 92%);
  }

  .clergy-hero-bg {
    inset: 190px -8vw 0 22%;
    background-position: center top;
    background-size: auto 560px;
    opacity: 0.36;
  }

  .clergy-hero-text {
    max-width: 560px;
    padding-bottom: 160px;
  }

  .clergy-hero-sketch {
    right: auto;
    left: 0;
    bottom: -24px;
    width: min(74vw, 500px);
    display: none;
  }

  .clergy-bishop {
    --clergy-arch-width: min(66vw, 390px);
    justify-self: stretch;
    width: 100%;
    min-height: 560px;
  }

  .clergy-arch {
    right: 50%;
    bottom: 122px;
    width: var(--clergy-arch-width);
    transform: translateX(50%);
  }

  .clergy-bishop-photo {
    right: 50%;
    bottom: 156px;
    width: calc(var(--clergy-arch-width) * 1.22);
    transform: translateX(50%);
  }

  .clergy-bishop-card {
    right: 50%;
    bottom: 10px;
    width: min(430px, 92%);
    transform: translateX(50%);
  }

  .clergy-header {
    width: min(91vw, 1360px);
  }

  .cleric-grid,
  .ministry-grid,
  .rector-badges {
    grid-template-columns: 1fr;
  }

  .clergy-rector-section {
    padding-top: 18px;
  }

  .clergy-rector-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .clergy-rector-photo {
    max-width: 480px;
  }

  .clergy-rector-content {
    max-width: none;
    padding-top: 0;
  }

  .clergy-rector-facts {
    max-width: 680px;
  }

  .clergy-rector-quote {
    min-height: 76px;
    padding: 0 108px;
  }

  .clergy-rector-quote blockquote {
    font-size: 22px;
  }

  .clergy-clerics-grid {
    grid-template-columns: 1fr;
  }

  .clergy-cleric-card.is-hidden {
    display: none;
  }

  .clergy-cleric-card.is-expanded {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  }

  .clergy-cleric-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .clergy-cleric-card.is-expanded .clergy-cleric-details {
    height: auto;
  }

  .clergy-cleric-details div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .clergy-ministry-directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .clergy-ministry-directions-grid article {
    min-height: 0;
  }

  .clergy-ministry-directions-grid article + article {
    border-left: 0;
  }

  .clergy-ministry-directions-grid article:nth-child(even) {
    border-left: 1px solid rgba(185, 144, 62, 0.25);
  }

  .clergy-final-quote {
    min-height: 168px;
  }

  .clergy-final-quote blockquote {
    font-size: 24px;
    line-height: 1.3;
  }

  .clergy-final-quote-divider {
    width: 104px;
  }

  .clergy-final-quote-top {
    grid-template-columns: 98px 22px 98px;
    gap: 16px;
  }

  .clergy-final-quote-top img {
    width: 22px;
    height: 32px;
  }

  .ministry-card {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 620px) {
  .clergy-rector-panel {
    width: 100vw;
    padding: 24px 20px 0;
  }

  .clergy-rector-panel-head h2 {
    font-size: 25px;
  }

  .clergy-panel-tabs {
    gap: 0;
    margin-top: 22px;
    overflow-x: auto;
  }

  .clergy-panel-tabs button {
    min-width: 96px;
    min-height: 78px;
    font-size: 11px;
  }

  .clergy-panel-scroll {
    margin-right: -8px;
    padding-right: 8px;
  }

  .clergy-panel-tab h3 {
    font-size: 24px;
  }

  .clergy-panel-video-poster,
  .clergy-panel-video-player {
    height: 205px;
  }

  .clergy-panel-sermons article {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .clergy-panel-sermon-cover,
  .clergy-panel-sermon-cover img {
    width: 128px;
    height: 90px;
  }

  .clergy-panel-sermons article > div {
    min-height: 90px;
  }

  .clergy-panel-gallery {
    grid-template-columns: 1fr;
  }

  .clergy-breadcrumbs,
  .clergy-hero-stage,
  .clergy-layout,
  .clergy-container {
    width: calc(100vw - 40px);
  }

  .clergy-hero-stage {
    padding: 34px 0 26px;
  }

  .clergy-hero-stage::before {
    inset: 310px -20px 0;
  }

  .clergy-hero-bg {
    inset: 300px -70px 0 -10px;
    background-size: auto 430px;
    opacity: 0.3;
  }

  .clergy-hero-text h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  .clergy-title-divider {
    margin: 26px auto 0;
  }

  .clergy-hero-lead {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    max-width: 100%;
    margin-top: 24px;
  }

  .clergy-hero-lead img {
    width: 68px;
    margin-right: 12px;
  }

  .clergy-hero-lead p {
    max-width: 544px;
    font-size: 15px;
    line-height: 1.6;
  }

  .clergy-hero-sketch {
    bottom: 0;
    width: min(105vw, 430px);
    opacity: 0.48;
  }

  .clergy-bishop {
    --clergy-arch-width: min(84vw, 330px);
    margin-top: 38px;
    min-height: 565px;
  }

  .clergy-arch {
    bottom: 172px;
    width: var(--clergy-arch-width);
  }

  .clergy-bishop-photo {
    bottom: 148px;
    width: calc(var(--clergy-arch-width) * 1.38);
  }

  .clergy-bishop-card {
    bottom: 8px;
    box-sizing: border-box;
    width: calc(100vw - 56px);
    min-height: 274px;
    padding: 72px 18px 26px;
  }

  .clergy-bishop-card h2 {
    font-size: 18px;
  }

  .clergy-bishop-card h2 span {
    white-space: normal;
  }

  .clergy-bishop-meta {
    grid-template-columns: 1fr 58px 1fr;
    gap: 4px;
  }

  .clergy-bishop-meta-item {
    font-size: 10px;
  }

  .clergy-bishop-meta-item span {
    max-width: 74px;
    overflow-wrap: break-word;
  }

  .clergy-bishop-meta-item img {
    width: 23px;
    height: 23px;
  }

  .clergy-bishop-emblem {
    width: 54px;
  }

  .clergy-layout {
    gap: 28px;
    padding-top: 36px;
  }

  .clergy-rector-section {
    width: calc(100vw - 40px);
    padding-top: 18px;
  }

  .clergy-rector-divider {
    margin-bottom: 18px;
  }

  .clergy-rector-photo,
  .clergy-rector-photo img {
    height: 330px;
    min-height: 330px;
  }

  .clergy-rector-content h2 {
    font-size: 26px;
  }

  .gold-divider.clergy-rector-title-divider {
    margin-right: auto;
    margin-left: auto;
  }

  .clergy-rector-text {
    font-size: 14px;
    line-height: 1.68;
  }

  .clergy-rector-facts {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .clergy-rector-facts div,
  .clergy-rector-facts div:first-child {
    padding: 0 0 0 18px;
    border-left: 1px solid rgba(185, 144, 62, 0.32);
  }

  .clergy-rector-button {
    width: 100%;
    min-width: 0;
    margin-top: 26px;
  }

  .clergy-rector-quote {
    gap: 10px;
    padding: 22px 20px 82px;
    text-align: center;
  }

  .clergy-quote-candle {
    left: 10px;
    height: 74px;
  }

  .clergy-quote-temple {
    right: 10px;
    height: 64px;
  }

  .clergy-rector-quote blockquote {
    font-size: 20px;
  }

  .clergy-rector-quote figcaption {
    font-size: 15px;
  }

  .clergy-clerics-section {
    width: calc(100vw - 40px);
    padding-bottom: 44px;
  }

  .clergy-clerics-grid {
    gap: 18px;
  }

  .clergy-cleric-card,
  .clergy-cleric-card.is-expanded {
    grid-template-columns: 1fr;
    height: auto;
  }

  .clergy-cleric-photo,
  .clergy-cleric-card.is-expanded .clergy-cleric-photo {
    min-height: 290px;
  }

  .clergy-cleric-photo img,
  .clergy-cleric-card.is-expanded .clergy-cleric-photo img {
    left: auto;
    width: min(72%, 260px);
    margin: 0 auto;
    transform: none;
  }

  .clergy-cleric-info,
  .clergy-cleric-card.is-expanded .clergy-cleric-info {
    padding: 26px 24px 30px;
  }

  .clergy-cleric-toggle {
    top: 18px;
    right: 18px;
  }

  .clergy-cleric-card.is-expanded .clergy-cleric-toggle {
    top: 18px;
    right: 18px;
  }

  .clergy-cleric-details,
  .clergy-cleric-card.is-expanded .clergy-cleric-details {
    grid-template-columns: 1fr;
  }

  .clergy-cleric-card.is-expanded .clergy-cleric-details {
    height: auto;
    margin-top: 30px;
  }

  .clergy-cleric-details div,
  .clergy-cleric-details div:first-child,
  .clergy-cleric-details div:nth-child(odd) {
    min-height: 0;
    padding: 0 0 0 18px;
    border-left: 1px solid rgba(185, 144, 62, 0.26);
  }

  .clergy-ministry-directions {
    width: calc(100vw - 40px);
    padding-bottom: 44px;
  }

  .clergy-ministry-directions-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .clergy-ministry-directions-grid article,
  .clergy-ministry-directions-grid article:nth-child(even) {
    padding: 0 18px 28px;
    border-left: 0;
    border-bottom: 1px solid rgba(185, 144, 62, 0.18);
  }

  .clergy-ministry-directions-grid article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .clergy-final-quote-section {
    width: 100%;
    padding: 0;
  }

  .clergy-final-quote {
    gap: 14px;
    min-height: 188px;
    padding: 0 22px;
  }

  .clergy-final-quote blockquote {
    font-size: 21px;
    line-height: 1.32;
  }

  .clergy-final-quote-top {
    grid-template-columns: minmax(54px, 1fr) 20px minmax(54px, 1fr);
    width: min(230px, 82%);
    gap: 14px;
  }

  .clergy-final-quote-top img {
    width: 20px;
    height: 29px;
  }

  .clergy-final-quote-divider {
    width: 96px;
  }

  .clergy-intro {
    min-height: auto;
    padding-bottom: 150px;
  }

  .clergy-hero-actions,
  .clergy-hero-actions .button,
  .contact-intro-card .button {
    width: 100%;
  }

  .clergy-hero-actions .button {
    min-width: 0;
  }

  .bishop-photo {
    height: 280px;
  }

  .rector-photo {
    height: 260px;
  }

  .rector-info,
  .ministry-card,
  .priest-contact,
  .contact-action-grid article {
    padding: 24px;
  }

  .rector-badges span {
    justify-items: start;
    text-align: left;
  }

  .cleric-card > img {
    height: 170px;
  }

  .ministry-card,
  .contact-action-grid {
    grid-template-columns: 1fr;
  }

  .priest-contact {
    gap: 18px;
  }
}

@media (max-width: 460px) {
  .clergy-bishop-card {
    width: calc(100vw - 44px);
    min-height: 248px;
    padding: 54px 14px 20px;
  }

  .clergy-bishop-card p {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .clergy-bishop-card h2 {
    font-size: 16px;
    line-height: 1.15;
  }

  .clergy-card-venzel {
    width: 132px;
    margin: 8px auto 2px;
  }

  .clergy-bishop-meta {
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    gap: 2px;
    align-items: start;
  }

  .clergy-bishop-meta-item {
    gap: 4px;
    font-size: 8.5px;
    line-height: 1.16;
  }

  .clergy-bishop-meta-item span {
    max-width: 68px;
  }

  .clergy-bishop-meta-item img {
    width: 19px;
    height: 19px;
  }

  .clergy-bishop-emblem {
    width: 44px;
    max-height: 54px;
  }
}

@media (max-width: 515px) {
  .clergy-rector-more {
    right: 10px;
  }
}

@media (min-width: 561px) and (max-width: 620px) {
  .clergy-bishop {
    --clergy-arch-width: min(66vw, 390px);
    min-height: 560px;
  }

  .clergy-arch {
    bottom: 122px;
    width: var(--clergy-arch-width);
  }

  .clergy-bishop-photo {
    bottom: 156px;
    width: calc(var(--clergy-arch-width) * 1.22);
  }

  .clergy-bishop-card {
    bottom: 10px;
    width: min(430px, 92%);
    min-height: 287px;
    padding: 58px 40px 30px;
  }

  .clergy-bishop-card h2 {
    font-size: 20px;
  }

  .clergy-bishop-meta {
    grid-template-columns: minmax(96px, 1fr) 62px minmax(96px, 1fr);
    gap: 8px;
    align-items: start;
    margin-top: 2px;
  }

  .clergy-bishop-meta-item {
    gap: 6px;
    font-size: 11px;
    line-height: 1.24;
  }

  .clergy-bishop-meta-item span {
    max-width: 108px;
  }

  .clergy-bishop-emblem {
    width: 58px;
  }
}

@media (max-width: 1180px) {
  .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .photo-album-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .video-hero,
  .video-feature,
  .video-list,
  .photos-hero,
  .photos-grid {
    width: calc(100vw - 40px);
  }

  .video-hero {
    margin-top: 22px;
    padding: 0;
    background: transparent;
  }

  .video-hero-copy {
    width: max-content;
    max-width: 100%;
  }

  .video-hero h1 {
    font-size: 36px;
  }

  .video-lead {
    max-width: 100%;
    font-size: 16px;
  }

  .video-lead img {
    flex-basis: 62px;
    width: 62px;
    height: 82px;
  }

  .video-feature {
    margin-top: 28px;
  }

  .video-feature-body {
    padding: 22px 20px 26px;
  }

  .video-feature-body h2 {
    font-size: 24px;
  }

  .video-share-icon {
    top: 20px;
    right: 20px;
  }

  .video-share-popover {
    top: 58px;
    right: 20px;
    width: calc(100% - 40px);
  }

  .video-share-row {
    gap: 6px;
  }

  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .video-card-body {
    min-height: 210px;
  }

  .photos-hero {
    margin-top: 22px;
  }

  .photos-hero h1 {
    font-size: 36px;
  }

  .photos-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .photo-album-hero,
  .photo-album-description,
  .photo-album-gallery-section,
  .photo-album-footer {
    width: calc(100vw - 40px);
  }

  .photo-album-hero {
    margin-top: 22px;
  }

  .photo-album-title-row {
    display: grid;
    gap: 22px;
  }

  .photo-album-hero h1 {
    font-size: 36px;
  }

  .photo-slideshow-button {
    width: 100%;
    min-width: 0;
  }

  .photo-album-description p {
    font-size: 16px;
    line-height: 1.72;
  }

  .photo-album-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .photo-album-body {
    padding: 20px 22px 22px;
  }

  .photo-album-body h2 {
    font-size: 22px;
  }

  .photos-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 1100px) {
  .site-header,
  .inner-header,
  .history-header,
  .clergy-header {
    width: calc(100vw - 40px);
    grid-template-columns: 92px 1fr 48px;
  }

  .menu-button {
    grid-column: 3;
    justify-self: end;
    margin-right: 0;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .history-page .site-header.is-menu-open .main-nav {
    width: min(680px, calc(100vw - 96px));
    max-height: calc(100svh - 160px);
    gap: 6px;
    padding: 22px;
    font-size: 16px;
  }

  .history-page .site-header.is-menu-open .main-nav > a,
  .history-page .site-header.is-menu-open .nav-dropdown > a {
    padding: 17px 18px;
    border-radius: 8px;
  }

  .history-page .site-header.is-menu-open .nav-dropdown-menu {
    padding: 0 0 12px 18px;
  }

  .history-page .site-header.is-menu-open .nav-dropdown-menu a {
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.35;
  }
}

/* Памятки */
.memos-page .memos-hero {
  background-color: var(--color-ivory);
  background-image:
    linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.92) 30%, rgba(255, 249, 239, 0.16) 43%, rgba(255, 249, 239, 0) 52%),
    url("../memos/memos-hero-v5.webp?v=1");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
}

.memos-page .memos-hero .media-hero-copy p {
  max-width: 455px;
}

.memo-filters,
.memo-catalog {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.memo-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.memo-filter {
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 12px;
  border: 1px solid rgba(167, 122, 29, 0.19);
  border-radius: var(--radius-md);
  color: var(--color-dark-wood);
  background: rgba(255, 252, 247, 0.76);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.memo-filter img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.memo-filter:hover,
.memo-filter:focus-visible {
  color: var(--color-old-gold);
  border-color: rgba(167, 122, 29, 0.44);
  box-shadow: 0 14px 30px rgba(63, 44, 31, 0.08);
  transform: translateY(-2px);
}

.memo-filter.active {
  border-color: rgba(167, 122, 29, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 56%),
    rgba(242, 225, 189, 0.76);
  box-shadow: 0 12px 28px rgba(128, 91, 8, 0.08);
}

.memo-catalog {
  margin-top: 36px;
  padding-bottom: 72px;
}

.memo-catalog h2 {
  margin: 0 0 18px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
}

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

.memo-card {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  padding: 30px 30px 24px;
  border: 1px solid rgba(167, 122, 29, 0.19);
  border-radius: var(--radius-md);
  color: inherit;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.94), transparent 40%),
    rgba(255, 252, 247, 0.78);
  box-shadow: 0 10px 28px rgba(63, 44, 31, 0.035);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.memo-card[hidden] {
  display: none;
}

.memo-card:hover,
.memo-card:focus-visible {
  border-color: rgba(167, 122, 29, 0.46);
  box-shadow: 0 18px 38px rgba(63, 44, 31, 0.1);
  transform: translateY(-2px);
}

.memo-card h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.32;
}

.memo-card p {
  max-width: 240px;
  margin: 16px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.58;
}

.memo-card-arrow {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-wood);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.memo-card:hover .memo-card-arrow,
.memo-card:focus-visible .memo-card-arrow {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.memo-detail-hero {
  position: relative;
  z-index: 2;
  width: calc(100vw - ((100vw - min(91vw, 1320px)) / 2));
  min-height: 304px;
  margin: 18px 0 0 calc((100vw - min(91vw, 1320px)) / 2);
  padding: 34px 0;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.94) 34%, rgba(255, 249, 239, 0.2) 53%, rgba(255, 249, 239, 0) 72%),
    url("../memos/memo-first-visit-hero.webp?v=1");
  background-color: var(--color-ivory);
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
}

.memo-detail-breadcrumbs {
  width: min(91vw, 1320px);
  margin: 0 auto;
}

.memo-detail-hero-copy {
  width: min(520px, 48vw);
}

.memo-detail-hero h1 {
  max-width: 530px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.1vw, 38px);
  font-weight: 700;
  line-height: 1.18;
}

.memo-detail-hero-copy p {
  max-width: 430px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
}

.memo-detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
  width: min(91vw, 1320px);
  margin: 34px auto 0;
  padding-bottom: 78px;
  align-items: start;
}

.memo-detail-article {
  min-width: 0;
}

.memo-detail-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(63, 44, 31, 0.84);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.memo-detail-toc,
.memo-detail-note,
.memo-sidebar-card {
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.82), transparent 42%),
    rgba(255, 249, 239, 0.92);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.055);
}

.memo-detail-toc {
  max-width: 760px;
  margin: 0 0 28px;
  padding: 26px 30px;
}

.memo-detail-toc h2,
.memo-sidebar-card h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.32;
}

.memo-detail-toc ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--color-old-gold);
  font-weight: 800;
}

.memo-detail-toc a {
  color: rgba(63, 44, 31, 0.82);
  font-size: 15px;
  line-height: 1.45;
  transition: color 180ms ease;
}

.memo-detail-toc a:hover {
  color: var(--color-old-gold);
}

.memo-detail-section {
  max-width: 760px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.14);
}

.memo-detail-section + .memo-detail-section {
  padding-top: 24px;
}

.memo-detail-section h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.32;
}

.memo-detail-section p {
  margin: 12px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.memo-detail-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 20px 24px;
  color: var(--color-dark-wood);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.86), transparent 42%),
    rgba(255, 244, 222, 0.82);
}

.memo-detail-note strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.memo-detail-note p {
  margin: 6px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.memo-detail-sidebar {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 22px;
}

.memo-sidebar-card {
  padding: 28px 30px;
}

.memo-sidebar-divider {
  width: 96px;
  height: 12px;
  margin: 18px auto 16px;
}

.memo-sidebar-card p {
  margin: 18px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.memo-sidebar-links,
.memo-related-links {
  display: grid;
  gap: 0;
}

.memo-sidebar-links a,
.memo-related-links a {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: rgba(63, 44, 31, 0.84);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 180ms ease;
}

.memo-sidebar-links a + a,
.memo-related-links a + a {
  border-top: 1px solid rgba(167, 122, 29, 0.1);
}

.memo-sidebar-links a:hover,
.memo-sidebar-links a.active,
.memo-related-links a:hover {
  color: var(--color-old-gold);
}

.memo-related-links span,
.memo-sidebar-button span {
  color: var(--color-wood);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.memo-related-links a:hover span,
.memo-sidebar-button:hover span {
  color: var(--color-old-gold);
  transform: translateX(3px);
}

.memo-sidebar-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  color: var(--color-dark-wood);
  background: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.memo-sidebar-button:hover {
  color: var(--color-old-gold);
  border-color: rgba(167, 122, 29, 0.34);
  background: rgba(255, 249, 239, 0.78);
  box-shadow: 0 12px 28px rgba(63, 44, 31, 0.08);
}

.memo-clothes-page .memo-detail-hero-copy {
  width: min(570px, 48vw);
}

.memo-clothes-page .memo-detail-hero h1 {
  max-width: 570px;
}

.memo-clothes-page .memo-detail-hero-copy p {
  max-width: 500px;
}

.memo-clothes-toc ol {
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 42px;
}

.memo-clothes-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: start;
}

.memo-detail-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 21px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.memo-detail-list li::marker {
  color: var(--color-old-gold);
}

.memo-clothes-important {
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 244, 222, 0.68);
}

.memo-clothes-important strong {
  display: block;
  color: var(--color-dark-wood);
  font-size: 15px;
}

.memo-clothes-important p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.memo-clothes-rule-section {
  border-bottom: 0;
}

.memo-clothes-rule,
.memo-detail-quote {
  position: relative;
  margin: 18px 0 0;
  padding: 22px 28px 22px 48px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 244, 222, 0.68);
}

.memo-clothes-rule::before,
.memo-detail-quote::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 24px;
  width: 2px;
  background: var(--color-old-gold);
  content: "";
}

.memo-clothes-rule::after,
.memo-detail-quote::after {
  position: absolute;
  top: 16px;
  left: 31px;
  color: var(--color-old-gold);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
  content: "“";
}

.memo-clothes-rule p,
.memo-detail-quote p {
  margin: 0;
  color: rgba(63, 44, 31, 0.86);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.memo-candle-page .memo-detail-hero {
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.94) 33%, rgba(255, 249, 239, 0.24) 53%, rgba(255, 249, 239, 0) 72%),
    url("../memos/memo-candle-hero.png?v=1");
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
}

.memo-candle-page .memo-detail-hero-copy {
  width: min(550px, 46vw);
}

.memo-candle-page .memo-detail-hero h1 {
  max-width: 550px;
}

.memo-candle-page .memo-detail-hero-copy p {
  max-width: 470px;
}

.memo-candle-steps {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 24px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.memo-candle-steps li {
  padding-left: 7px;
}

.memo-candle-steps li::marker {
  color: var(--color-old-gold);
  font-weight: 800;
}

.memo-detail-quote {
  max-width: 700px;
}

.memo-candle-final-section {
  border-bottom: 0;
}

.memo-health-page .memo-detail-hero {
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.94) 34%, rgba(255, 249, 239, 0.22) 54%, rgba(255, 249, 239, 0) 72%),
    url("../memos/memo-health-note-hero.png?v=1");
  background-position: center, right 48%;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
}

.memo-health-page .memo-detail-hero-copy {
  width: min(560px, 47vw);
}

.memo-health-page .memo-detail-hero h1 {
  max-width: 560px;
}

.memo-health-page .memo-detail-hero-copy p {
  max-width: 495px;
}

.memo-health-toc ol {
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 42px;
}

.memo-health-intro {
  margin-top: 14px;
  padding: 18px 24px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 244, 222, 0.62);
}

.memo-health-intro p {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--color-old-gold);
}

.memo-health-status {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

.memo-health-status-good {
  border-color: rgba(55, 142, 76, 0.18);
  background: rgba(235, 248, 237, 0.58);
}

.memo-health-status-bad {
  border-color: rgba(187, 48, 48, 0.16);
  background: rgba(255, 239, 239, 0.58);
}

.memo-health-status-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.memo-health-status-good .memo-health-status-icon,
.memo-health-status-good .memo-detail-list li::marker {
  color: #3d9a54;
}

.memo-health-status-bad .memo-health-status-icon,
.memo-health-status-bad .memo-detail-list li::marker {
  color: #c43b3b;
}

.memo-health-status .memo-detail-list {
  margin-top: 0;
}

.memo-health-status p {
  margin-top: 10px;
  font-size: 15px;
}

.memo-health-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.memo-health-principles > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.memo-health-principles span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-old-gold);
  background: rgba(242, 225, 189, 0.52);
  font-size: 20px;
}

.memo-health-principles span img {
  width: 18px;
  height: 24px;
  object-fit: contain;
}

.memo-health-principles p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.memo-health-examples {
  display: grid;
  grid-template-columns: 150px 150px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
}

.memo-health-name-card,
.memo-health-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.14);
  border-radius: var(--radius-md);
}

.memo-health-name-card {
  padding: 16px 18px;
}

.memo-health-name-good {
  background: rgba(235, 248, 237, 0.48);
}

.memo-health-name-bad {
  background: rgba(255, 239, 239, 0.48);
}

.memo-health-name-card h3,
.memo-health-table-wrap h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
}

.memo-health-name-good h3 {
  color: #338848;
}

.memo-health-name-bad h3 {
  color: #b72f2f;
}

.memo-health-name-card ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.memo-health-table-wrap h3 {
  padding: 12px 14px 8px;
}

.memo-health-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(63, 44, 31, 0.82);
  font-size: 13px;
}

.memo-health-table-wrap th,
.memo-health-table-wrap td {
  padding: 6px 10px;
  border-top: 1px solid rgba(167, 122, 29, 0.12);
  text-align: left;
}

.memo-health-table-wrap th {
  color: var(--color-dark-wood);
  background: rgba(242, 225, 189, 0.28);
}

.memo-health-submit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px 28px;
  align-items: start;
}

.memo-health-submit-section > h2 {
  grid-column: 1;
  grid-row: 1;
}

.memo-health-steps {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: health-step;
  list-style: none;
}

.memo-health-steps li {
  position: relative;
  min-height: 28px;
  padding: 4px 0 0 38px;
  color: rgba(63, 44, 31, 0.82);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  counter-increment: health-step;
}

.memo-health-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-ivory);
  background: var(--color-old-gold);
  font-size: 13px;
  font-weight: 800;
  content: counter(health-step);
}

.memo-health-submit-note {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 244, 222, 0.56);
}

.memo-health-submit-note span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-old-gold);
  border-radius: 50%;
  color: var(--color-old-gold);
  font-family: Georgia, serif;
}

.memo-health-submit-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.memo-health-faq-section {
  border-bottom: 0;
}

.memo-health-faq {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
}

.memo-health-faq details + details {
  border-top: 1px solid rgba(167, 122, 29, 0.12);
}

.memo-health-faq summary {
  position: relative;
  padding: 13px 42px 13px 18px;
  color: var(--color-dark-wood);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.memo-health-faq summary::-webkit-details-marker {
  display: none;
}

.memo-health-faq summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--color-old-gold);
  font-size: 18px;
  content: "+";
  transform: translateY(-50%);
}

.memo-health-faq details[open] summary::after {
  content: "−";
}

.memo-health-faq details p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .memo-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .memo-detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
  }

  .memo-sidebar-card {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .memos-page .memos-hero,
  .memo-detail-hero,
  .memo-filters,
  .memo-catalog {
    width: calc(100vw - 40px);
  }

  .memos-page .memos-hero {
    min-height: 410px;
    margin-right: auto;
    margin-left: auto;
    padding: 34px 0 205px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.95) 45%, rgba(255, 249, 239, 0.46) 68%, rgba(255, 249, 239, 0.04) 100%),
      url("../memos/memos-hero-v5.webp?v=1");
    background-position: center, right bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
  }

  .memos-page .memos-hero .media-hero-copy p {
    max-width: 100%;
  }

  .memo-detail-hero {
    min-height: 520px;
    margin-right: auto;
    margin-left: auto;
    padding: 28px 0 250px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.95) 44%, rgba(255, 249, 239, 0.5) 68%, rgba(255, 249, 239, 0.05) 100%),
      url("../memos/memo-first-visit-hero.webp?v=1");
    background-position: center, right bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
  }

  .memo-detail-breadcrumbs {
    width: calc(100vw - 40px);
  }

  .memo-detail-hero-copy {
    width: 100%;
  }

  .memo-detail-hero h1 {
    max-width: 100%;
    font-size: 38px;
  }

  .memo-detail-hero-copy p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.72;
  }

  .memo-clothes-page .memo-detail-hero {
    min-height: 690px;
    padding-bottom: 330px;
  }

  .memo-clothes-page .memo-detail-hero-copy,
  .memo-clothes-page .memo-detail-hero-copy p {
    width: 100%;
    max-width: 100%;
  }

  .memo-clothes-page .memo-detail-hero h1 {
    max-width: 100%;
    font-size: 34px;
  }

  .memo-candle-page .memo-detail-hero {
    min-height: 620px;
    padding-bottom: 285px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.96) 48%, rgba(255, 249, 239, 0.52) 70%, rgba(255, 249, 239, 0.06) 100%),
      url("../memos/memo-candle-hero.png?v=1");
    background-position: center, 63% bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
  }

  .memo-candle-page .memo-detail-hero-copy,
  .memo-candle-page .memo-detail-hero-copy p {
    width: 100%;
    max-width: 100%;
  }

  .memo-candle-page .memo-detail-hero h1 {
    max-width: 100%;
    font-size: 34px;
  }

  .memo-health-page .memo-detail-hero {
    min-height: 700px;
    padding-bottom: 340px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.96) 48%, rgba(255, 249, 239, 0.52) 70%, rgba(255, 249, 239, 0.06) 100%),
      url("../memos/memo-health-note-hero.png?v=1");
    background-position: center, 68% bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
  }

  .memo-health-page .memo-detail-hero-copy,
  .memo-health-page .memo-detail-hero-copy p {
    width: 100%;
    max-width: 100%;
  }

  .memo-health-page .memo-detail-hero h1 {
    max-width: 100%;
    font-size: 34px;
  }

  .memo-health-toc ol {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .memo-health-principles,
  .memo-health-examples {
    grid-template-columns: 1fr;
  }

  .memo-health-examples {
    gap: 12px;
  }

  .memo-health-submit-section {
    display: block;
  }

  .memo-health-steps {
    margin-top: 16px;
  }

  .memo-health-submit-note {
    margin-top: 20px;
  }

  .memo-clothes-toc ol {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .memo-clothes-guidance {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .memo-clothes-important {
    margin-top: 0;
  }

  .memo-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    width: calc(100vw - 40px);
    margin-top: 30px;
    padding-bottom: 56px;
  }

  .memo-detail-sidebar {
    position: static;
  }

  .memo-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }

  .memo-filter {
    min-height: 112px;
    padding: 15px 10px;
    font-size: 14px;
  }

  .memo-filter img {
    width: 36px;
    height: 36px;
  }

  .memo-catalog {
    margin-top: 30px;
    padding-bottom: 54px;
  }

  .memo-grid {
    grid-template-columns: 1fr;
  }

  .memo-card {
    min-height: 210px;
    padding: 26px 24px 22px;
  }
}

@media (max-width: 420px) {
  .memo-filters {
    grid-template-columns: 1fr;
  }

  .memo-filter {
    min-height: 76px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 14px 20px;
    text-align: left;
  }
}

/* Services page */
.services-page .inner-screen {
  min-height: 100vh;
  padding-bottom: 30px;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.96) 0%, rgba(247, 241, 231, 0.94) 60%, rgba(255, 249, 239, 0.96) 100%);
}

.services-page .inner-screen::before {
  display: none;
}

.services-page .inner-breadcrumbs {
  padding-top: 28px;
}

.services-hero-banner,
.services-content {
  position: relative;
  z-index: 2;
}

.services-hero-banner {
  width: calc(100vw - ((100vw - min(91vw, 1320px)) / 2));
  min-height: 404px;
  margin-top: 18px;
  margin-right: 0;
  margin-left: calc((100vw - min(91vw, 1320px)) / 2);
  padding: 34px 0 58px;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.92) 31%, rgba(255, 249, 239, 0.56) 49%, rgba(255, 249, 239, 0.1) 72%),
    url("../img/sacraments/bantainstva.webp");
  background-color: var(--color-ivory);
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
}

.services-hero-copy {
  width: min(520px, 48vw);
}

.services-title-group {
  width: max-content;
  max-width: 100%;
}

.services-hero-banner h1 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.services-hero-banner p {
  max-width: 468px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.84);
  font-size: 17px;
  line-height: 1.72;
}

.services-content {
  display: grid;
  gap: 10px;
  width: min(91vw, 1320px);
  margin: -18px auto 0;
}

.services-wide-card,
.services-small-card,
.services-start-card,
.services-help-card {
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.72), transparent 34%),
    rgba(255, 249, 239, 0.92);
  box-shadow: 0 12px 32px rgba(63, 44, 31, 0.07);
}

.services-wide-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 0.94fr);
  min-height: 352px;
  overflow: hidden;
}

.services-card-image {
  min-height: 332px;
  padding: 14px;
}

.services-card-image img {
  width: 100%;
  height: 100%;
  min-height: 306px;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: cover;
}

.services-card-body {
  min-width: 0;
  padding: 36px 44px 32px;
}

.services-card-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.services-card-heading h2,
.services-start-card h2,
.services-help-card h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.28;
}

.services-icon-ring {
  display: inline-flex;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(247, 241, 231, 0.88);
}

.services-icon-ring img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.services-schedule-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 300px);
  gap: 34px;
  align-items: center;
  margin-top: 28px;
}

.services-timeline {
  --services-timeline-x: 5px;
  position: relative;
  display: grid;
  gap: 19px;
  padding-left: 36px;
}

.services-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: var(--services-timeline-x);
  width: 1px;
  content: "";
  background: rgba(167, 122, 29, 0.7);
}

.services-timeline::after {
  position: absolute;
  right: auto;
  bottom: 6px;
  left: calc(var(--services-timeline-x) - 2px);
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--color-old-gold);
}

.services-day {
  position: relative;
}

.services-day::before {
  position: absolute;
  top: 7px;
  left: calc((var(--services-timeline-x) - 36px) - 3px);
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  content: "";
  background: var(--color-old-gold);
}

.services-day:nth-child(2)::before {
  top: 5px;
  left: calc((var(--services-timeline-x) - 36px) - 7px);
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-old-gold);
  background: var(--color-ivory);
}

.services-day:nth-child(2)::after {
  position: absolute;
  top: -32px;
  left: calc((var(--services-timeline-x) - 36px) - 2px);
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--color-old-gold);
  box-shadow: 0 72px 0 var(--color-old-gold);
}

.services-day span {
  color: rgba(63, 44, 31, 0.7);
  font-size: 15px;
}

.services-day p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.45;
}

.services-day time {
  color: var(--color-graphite);
  font-weight: 800;
}

.services-reminder {
  min-height: 186px;
  padding: 28px 26px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.76);
}

.services-reminder-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  margin-right: 14px;
  vertical-align: middle;
}

.services-reminder-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.services-reminder strong {
  color: var(--color-dark-wood);
  font-size: 15px;
}

.services-reminder p {
  margin: 24px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.services-reminder a,
.services-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-wood);
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease;
}

.services-reminder a {
  margin-top: 24px;
}

.services-link {
  margin-top: 28px;
}

.services-reminder a:hover,
.services-link:hover {
  color: var(--color-old-gold);
}

.services-sacrament-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-bottom: 1px solid rgba(167, 122, 29, 0.24);
}

.services-sacrament-tabs a {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px 16px;
  color: rgba(63, 44, 31, 0.68);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease;
}

.services-sacrament-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: transparent;
}

.services-sacrament-tabs a.active,
.services-sacrament-tabs a:hover {
  color: var(--color-wood);
}

.services-sacrament-tabs a.active::after {
  background: var(--color-old-gold);
}

.services-sacrament-tabs img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.services-sacrament-text {
  max-width: 560px;
  margin-top: 30px;
}

.services-sacrament-text h3 {
  max-width: 360px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.42;
}

.services-sacrament-text p,
.services-small-card p,
.services-help-card p {
  margin: 22px 0 0;
  color: rgba(63, 44, 31, 0.76);
  font-size: 15px;
  line-height: 1.6;
}

.services-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.services-small-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.services-small-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.services-small-body {
  padding: 22px 54px 28px;
}

.services-small-body .services-card-heading {
  gap: 14px;
}

.services-small-body .services-icon-ring {
  width: 42px;
  height: 42px;
  background: transparent;
}

.services-small-body .services-icon-ring img {
  width: 32px;
  height: 32px;
}

.services-list-links {
  display: grid;
  gap: 18px;
  max-width: 270px;
  margin-top: 28px;
}

.services-list-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-dark-wood);
  font-size: 15px;
  font-weight: 800;
  transition: color 180ms ease;
}

.services-list-links a:hover {
  color: var(--color-old-gold);
}

.services-list-links span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.services-list-links img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.services-notes-card {
  position: relative;
}

.services-note-scene {
  position: relative;
  min-height: 166px;
  margin-top: 22px;
}

.services-note-blank {
  position: absolute;
  top: 0;
  left: 0;
  width: min(310px, 62%);
  filter: drop-shadow(0 12px 18px rgba(63, 44, 31, 0.14));
}

.services-note-pen {
  position: absolute;
  right: 8%;
  bottom: -12px;
  width: min(150px, 26%);
  filter: drop-shadow(0 12px 16px rgba(63, 44, 31, 0.16));
}

.services-start-card {
  padding: 24px 42px 28px;
  text-align: center;
}

.services-start-card h2 {
  font-size: 28px;
}

.services-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.services-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.services-steps li + li::before {
  position: absolute;
  top: 48px;
  right: calc(50% + 54px);
  width: calc(100% - 96px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(167, 122, 29, 0.16), rgba(167, 122, 29, 0.7) 50%, rgba(167, 122, 29, 0.16));
}

.services-step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 29, 0.32);
  border-radius: 50%;
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.services-steps img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.services-steps strong {
  max-width: 174px;
  color: var(--color-graphite);
  font-size: 14px;
  line-height: 1.25;
}

.services-help-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 50px 22px 44px;
}

.services-help-card > img {
  width: 96px;
  height: 96px;
  opacity: 0.42;
}

.services-help-card h2 {
  max-width: 650px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
}

.services-help-card p {
  margin-top: 8px;
}

.services-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-end;
}

.services-outline-button,
.services-primary-button {
  display: inline-flex;
  min-width: 190px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.services-outline-button {
  border: 1px solid rgba(167, 122, 29, 0.54);
  color: var(--color-wood);
  background: rgba(255, 249, 239, 0.7);
}

.services-primary-button {
  color: var(--color-ivory);
  background: linear-gradient(180deg, #b98014, #8e6309);
  box-shadow: 0 10px 24px rgba(128, 91, 8, 0.18);
}

.services-outline-button:hover,
.services-primary-button:hover {
  border-color: rgba(167, 122, 29, 0.72);
  background: linear-gradient(180deg, #9d7419, #805b08);
  color: var(--color-ivory);
}

@media (max-width: 1180px) {
  .services-wide-card,
  .services-schedule-layout,
  .services-help-card {
    grid-template-columns: 1fr;
  }

  .services-card-image {
    min-height: 260px;
  }

  .services-card-image img {
    min-height: 236px;
  }

  .services-help-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .services-hero-copy {
    width: min(520px, 58vw);
  }

  .services-two-column,
  .services-steps {
    grid-template-columns: 1fr;
  }

  .services-steps li + li::before {
    display: none;
  }

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

@media (max-width: 760px) {
  .services-hero-banner,
  .services-content {
    width: calc(100vw - 40px);
  }

  .services-hero-banner {
    width: calc(100vw - 20px);
    min-height: 430px;
    margin-right: 0;
    margin-left: 20px;
    padding: 34px 0 190px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.99) 0%, rgba(255, 249, 239, 0.94) 48%, rgba(255, 249, 239, 0.32) 72%, rgba(255, 249, 239, 0) 100%),
      url("../img/sacraments/bantainstva.webp");
    background-position: center, right bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
  }

  .services-hero-copy {
    width: calc(100% - 20px);
  }

  .services-hero-banner h1 {
    font-size: 38px;
  }

  .services-hero-banner p {
    max-width: 100%;
    font-size: 16px;
  }

  .services-content {
    margin-top: -10px;
  }

  .services-card-body,
  .services-start-card,
  .services-help-card {
    padding: 26px 22px;
  }

  .services-small-body {
    padding: 24px 22px 26px;
  }

  .services-small-image {
    height: 168px;
  }

  .services-card-heading {
    align-items: flex-start;
    gap: 14px;
  }

  .services-card-heading h2,
  .services-start-card h2 {
    font-size: 24px;
  }

  .services-schedule-layout {
    gap: 24px;
  }

  .services-sacrament-tabs {
    grid-template-columns: 1fr;
  }

  .services-sacrament-tabs a {
    justify-content: flex-start;
  }

  .services-note-scene {
    min-height: 138px;
  }

  .services-help-card {
    grid-template-columns: 1fr;
  }

  .services-help-card > img {
    width: 74px;
    height: 74px;
  }

  .services-help-actions {
    gap: 12px;
  }

  .services-outline-button,
  .services-primary-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .services-day p {
    grid-template-columns: 1fr;
  }

  .services-note-blank {
    width: 72%;
  }

  .services-note-pen {
    width: 32%;
  }
}

/* Parish life: Sunday school */
.parish-page {
  min-height: 100vh;
  overflow: hidden;
  color: var(--color-dark-wood);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 249, 239, 0.88), transparent 44%),
    var(--color-warm-milk);
}

.parish-hero-screen {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--color-warm-milk);
}

.parish-hero-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 404px;
  margin-top: 18px;
  margin-right: 0;
  margin-left: 0;
  padding: 34px 0 58px;
  background-color: var(--color-warm-milk);
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 1) 0%, rgba(247, 241, 231, 0.94) 27%, rgba(247, 241, 231, 0.28) 36%, rgba(247, 241, 231, 0) 44%),
    url("../img/lifep/life.webp");
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.parish-hero-screen::after {
  display: none;
}

.parish-breadcrumbs,
.parish-hero-copy,
.parish-content {
  position: relative;
  z-index: 2;
  width: min(91vw, 1320px);
  margin-right: auto;
  margin-left: auto;
}

.parish-breadcrumbs {
  padding-top: 28px;
}

.parish-hero-copy {
  margin-top: 0;
  padding-top: 0;
}

.parish-hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
}

.parish-hero-copy .media-title-divider {
  margin-top: 26px;
}

.parish-hero-copy p {
  max-width: 470px;
  margin: 26px 0 0;
  color: rgba(63, 44, 31, 0.82);
  font-size: 17px;
  line-height: 1.72;
}

.parish-content {
  padding: 16px 0 72px;
}

.parish-section {
  padding-top: 54px;
}

.parish-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.parish-section-title h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.parish-section-title > .gold-divider {
  width: 112px;
  height: 14px;
  margin-top: 26px;
}

.parish-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 34px;
}

.parish-direction-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-subtle);
}

.parish-direction-image {
  height: 310px;
  background-image: url("../img/lifep/life.webp");
  background-repeat: no-repeat;
  background-size: auto 360px;
}

.parish-direction-image.parish-direction-image-children {
  background-image: url("../img/lifep/chshcool.webp");
  background-position: center;
  background-size: cover;
}

.parish-direction-image.parish-direction-image-adults {
  background-image: url("../img/lifep/vzshcool.webp");
  background-position: center;
  background-size: cover;
}

.parish-direction-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  margin: -44px auto 0;
  border: 1px solid rgba(167, 122, 29, 0.7);
  border-radius: 50%;
  background: var(--color-ivory);
}

.parish-direction-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.parish-direction-body {
  padding: 10px 38px 34px;
  text-align: center;
}

.parish-direction-body h3,
.parish-lessons-grid h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-weight: 400;
}

.parish-direction-body h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
}

.parish-direction-body > p {
  max-width: 500px;
  min-height: 54px;
  margin: 12px auto 0;
  color: rgba(46, 42, 37, 0.66);
  font-size: 15px;
  line-height: 1.6;
}

.parish-direction-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 56px;
  min-height: 46px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.parish-direction-meta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(46, 42, 37, 0.84);
  font-size: 15px;
}

.parish-direction-meta li:first-child {
  justify-self: end;
}

.parish-direction-meta li + li {
  justify-self: start;
}

.parish-direction-meta::after {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(167, 122, 29, 0.42);
  transform: translateX(-50%);
}

.parish-direction-meta img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.parish-outline-button {
  display: inline-flex;
  min-width: 210px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 12px 26px;
  border: 1px solid var(--color-old-gold);
  border-radius: 4px;
  color: #966a10;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.parish-outline-button:hover {
  color: var(--color-ivory);
  background: var(--color-old-gold);
  transform: translateY(-2px);
}

.parish-lessons {
  padding-top: 58px;
}

.parish-lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.parish-lessons-grid article {
  min-height: 226px;
  padding: 34px 28px 28px;
  border: 1px solid rgba(167, 122, 29, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.56);
  text-align: center;
}

.parish-lessons-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.parish-lessons-grid h3 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
}

.parish-lessons-grid p {
  margin: 10px auto 0;
  color: rgba(46, 42, 37, 0.64);
  font-size: 15px;
  line-height: 1.55;
}

.parish-schedule {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px);
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 30px 58px;
  border: 1px solid rgba(167, 122, 29, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.76);
  box-shadow: var(--shadow-subtle);
}

.parish-schedule-icon {
  grid-column: 1;
  grid-row: 1;
  width: 94px;
  height: 94px;
  justify-self: end;
  object-fit: contain;
  opacity: 0.86;
}

.parish-schedule-copy {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  text-align: center;
}

.parish-schedule::after {
  display: none;
}

.parish-section-title-compact h2 {
  font-size: 28px;
}

.parish-section-title-compact > .gold-divider {
  width: 112px;
  height: 14px;
  margin-top: 26px;
}

.parish-schedule dl {
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
}

.parish-schedule dl > div {
  display: grid;
  grid-template-columns: 120px 150px;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  padding: 7px 0;
  border-bottom: 1px solid rgba(167, 122, 29, 0.14);
}

.parish-schedule dl > div:last-child {
  border-bottom: 0;
}

.parish-schedule dt,
.parish-schedule dd {
  margin: 0;
  font-size: 16px;
}

.parish-schedule dd span {
  color: rgba(46, 42, 37, 0.62);
}

.parish-schedule dd strong {
  color: var(--color-dark-wood);
  font-size: 18px;
}

.parish-schedule-copy > p {
  margin: 14px 0 0;
  color: rgba(46, 42, 37, 0.58);
  font-size: 13px;
  text-align: center;
}

.parish-join {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 680px) 110px;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 236px;
  margin-top: 42px;
  padding: 34px 70px;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.62), rgba(255, 252, 247, 0.56) 50%, rgba(255, 249, 239, 0.64)),
    url("../img/quote-paper-texture.webp") center / cover no-repeat,
    linear-gradient(90deg, rgba(247, 232, 211, 0.9), rgba(255, 249, 239, 0.72) 50%, rgba(247, 232, 211, 0.88)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 56%),
    #f2e3d0;
  box-shadow:
    inset 0 0 0 1px rgba(185, 144, 62, 0.08),
    0 18px 44px rgba(63, 44, 31, 0.06);
  overflow: hidden;
}

.parish-join-church {
  position: absolute;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: 260px;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.34;
  pointer-events: none;
}

.parish-join-church-left {
  top: 5px;
  bottom: auto;
  left: 0;
  height: calc(100% - 10px);
}

.parish-join-church.parish-join-church-right {
  right: 0;
  opacity: 0.34;
  filter: sepia(0.55) saturate(0.9) hue-rotate(-8deg) brightness(0.88) contrast(1.35);
}

.parish-join-copy,
.parish-join-mark {
  position: relative;
  z-index: 1;
}

.parish-join-copy {
  grid-column: 2;
  text-align: center;
}

.parish-join::after {
  grid-column: 3;
  grid-row: 1;
  content: "";
}

.parish-join-mark {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(167, 122, 29, 0.62);
  border-radius: 50%;
}

.parish-join-mark img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.parish-section-title-left {
  width: 100%;
  max-width: 100%;
  align-items: center;
  text-align: center;
}

.parish-section-title-left h2 {
  font-size: 28px;
}

.parish-section-title-left > .gold-divider {
  margin-top: 26px;
  margin-right: auto;
  margin-left: auto;
}

.parish-join p {
  max-width: 660px;
  margin: 14px auto 0;
  color: rgba(46, 42, 37, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.parish-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 30px;
}

.parish-phone img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .parish-hero-banner {
    min-height: 390px;
    background-position: center, 55% top;
  }

  .parish-direction-image {
    height: 260px;
    background-size: auto 310px;
  }

  .parish-direction-body {
    padding-right: 26px;
    padding-left: 26px;
  }

  .parish-direction-meta {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .parish-hero-banner {
    min-height: 390px;
    background-position: center, 60% top;
  }

  .parish-hero-copy h1 {
    font-size: 38px;
  }

  .parish-hero-copy p {
    max-width: 350px;
    font-size: 16px;
  }

  .parish-direction-grid {
    gap: 20px;
  }

  .parish-direction-image {
    height: 220px;
    background-size: auto 270px;
  }

  .parish-direction-body h3 {
    font-size: 24px;
  }

  .parish-direction-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .parish-direction-meta li:first-child,
  .parish-direction-meta li + li {
    justify-self: center;
  }

  .parish-direction-meta::after {
    top: 50%;
    right: 28px;
    bottom: auto;
    left: 28px;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
  }

  .parish-schedule,
  .parish-join {
    padding-right: 34px;
    padding-left: 34px;
  }

  .parish-schedule {
    grid-template-columns: minmax(0, 420px);
  }

  .parish-join {
    grid-template-columns: 90px minmax(0, 1fr) 90px;
    gap: 14px;
  }

  .parish-join-church {
    width: auto;
    height: 100%;
    max-width: 190px;
    opacity: 0.24;
  }
}

@media (max-width: 760px) {
  .parish-hero-banner {
    width: 100%;
    min-height: 430px;
    margin-right: 0;
    margin-left: 0;
    padding: 34px 0 190px;
    background-image:
      linear-gradient(180deg, rgba(255, 249, 239, 0.97) 0%, rgba(255, 249, 239, 0.96) 52%, rgba(255, 249, 239, 0.78) 72%, rgba(247, 241, 231, 0.48) 88%, rgba(247, 241, 231, 0.86) 100%),
      url("../img/lifep/life.webp");
    background-position: center, 72% bottom;
    background-size: 100% 100%, auto 420px;
  }

  .parish-breadcrumbs {
    width: calc(100vw - 40px);
  }

  .parish-hero-copy,
  .parish-content {
    width: calc(100vw - 40px);
  }

  .parish-hero-copy {
    padding-top: 38px;
  }

  .parish-hero-copy p {
    max-width: 520px;
  }

  .parish-direction-grid,
  .parish-lessons-grid {
    grid-template-columns: 1fr;
  }

  .parish-direction-image {
    height: 300px;
    background-size: cover;
  }

  .parish-direction-image-children {
    background-position: 63% center;
  }

  .parish-direction-image-adults {
    background-position: 88% center;
  }

  .parish-direction-body > p {
    min-height: 0;
  }

  .parish-direction-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }

  .parish-direction-meta li:first-child {
    justify-self: end;
  }

  .parish-direction-meta li + li {
    justify-self: start;
  }

  .parish-direction-meta::after {
    top: 7px;
    right: auto;
    bottom: 7px;
    left: 50%;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
  }

  .parish-lessons-grid article {
    min-height: 0;
  }

  .parish-schedule,
  .parish-join {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 24px;
    text-align: center;
  }

  .parish-join {
    min-height: 360px;
  }

  .parish-join-copy,
  .parish-join-mark {
    grid-column: 1;
  }

  .parish-join-mark {
    grid-row: auto;
  }

  .parish-join::after {
    display: none;
  }

  .parish-schedule-icon {
    width: 84px;
    height: 84px;
    justify-self: center;
  }

  .parish-schedule-copy,
  .parish-schedule-icon {
    grid-column: 1;
    grid-row: auto;
  }

  .parish-schedule::after {
    display: none;
  }

  .parish-section-title-left {
    align-items: center;
    text-align: center;
  }

  .parish-section-title-left > .gold-divider {
    margin-right: auto;
    margin-left: auto;
  }

  .parish-join p {
    margin-right: auto;
    margin-left: auto;
  }

  .parish-join-church {
    width: auto;
    height: 100%;
    max-width: 150px;
    opacity: 0.18;
  }
}

@media (max-width: 430px) {
  .parish-hero-banner {
    min-height: 430px;
    background-image:
      linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.97) 56%, rgba(255, 249, 239, 0.82) 74%, rgba(247, 241, 231, 0.5) 88%, rgba(247, 241, 231, 0.88) 100%),
      url("../img/lifep/life.webp");
    background-position: center, 70% bottom;
    background-size: 100% 100%, auto 350px;
  }

  .parish-hero-copy h1 {
    font-size: 38px;
  }

  .parish-section {
    padding-top: 44px;
  }

  .parish-section-title h2 {
    font-size: 28px;
  }

  .parish-direction-image {
    height: 220px;
  }

  .parish-direction-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .parish-direction-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .parish-direction-meta li:first-child,
  .parish-direction-meta li + li {
    justify-self: center;
  }

  .parish-direction-meta::after {
    top: 50%;
    right: 28px;
    bottom: auto;
    left: 28px;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
  }

  .parish-schedule dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .parish-section-title-left h2 {
    font-size: 28px;
  }

  .parish-phone {
    font-size: 23px;
  }
}
/* Treby page */
.treby-page .inner-screen {
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 241, 231, 0.96) 100%);
}

.treby-page .inner-screen::before {
  display: none;
}

.treby-hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.92) 30%, rgba(255, 249, 239, 0.46) 51%, rgba(255, 249, 239, 0.04) 72%),
    url("../img/sacraments/bantreby.webp");
  background-color: var(--color-ivory);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.treby-hero::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 156px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.52) 0%, rgba(255, 249, 239, 0) 100%);
  pointer-events: none;
}

.treby-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 155px;
  content: "";
  background: linear-gradient(180deg, rgba(247, 241, 231, 0) 0%, rgba(247, 241, 231, 0.94) 100%);
  pointer-events: none;
}

.treby-header {
  position: relative;
  z-index: 4;
}

.treby-header .main-nav > a,
.treby-header .main-nav > .nav-dropdown > a {
  margin: -7px -9px;
  padding: 7px 9px;
  border-radius: 4px;
  text-shadow: 0 1px 14px rgba(255, 249, 239, 0.72);
}

.treby-header .main-nav > a:hover,
.treby-header .main-nav > a:focus-visible,
.treby-header .main-nav > .nav-dropdown > a:hover,
.treby-header .main-nav > .nav-dropdown > a:focus-visible {
  color: var(--color-dark-wood);
  background: rgba(255, 249, 239, 0.72);
  box-shadow: 0 8px 24px rgba(63, 44, 31, 0.1);
  text-shadow: none;
}

.treby-hero-inner {
  position: relative;
  z-index: 3;
}

.treby-breadcrumbs {
  padding-top: 26px;
}

.treby-hero-copy {
  width: min(500px, 46vw);
  margin-left: calc((100vw - min(91vw, 1320px)) / 2);
  padding-top: 43px;
}

.treby-hero-copy .media-title-group {
  width: min(430px, 100%);
}

.treby-hero-copy .media-title-divider {
  margin-top: 24px;
}

.treby-hero-copy p {
  max-width: 430px;
  margin: 26px 0 0;
  color: rgba(46, 42, 37, 0.88);
  font-size: 17px;
  line-height: 1.72;
}

.treby-content {
  position: relative;
  z-index: 4;
  width: min(91vw, 1320px);
  margin: 34px auto 0;
  padding-bottom: 48px;
}

.treby-list {
  display: grid;
  gap: 10px;
}

.treby-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 232px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.94), transparent 34%),
    rgba(255, 249, 239, 0.9);
  box-shadow: 0 12px 30px rgba(63, 44, 31, 0.06);
}

.treby-card-image {
  height: 216px;
  min-height: 216px;
  padding: 8px 0 8px 8px;
}

.treby-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 216px;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: cover;
  object-position: center;
}

.treby-card:nth-child(1) .treby-card-image img {
  object-position: center;
}

.treby-card:nth-child(2) .treby-card-image img,
.treby-card:nth-child(3) .treby-card-image img {
  object-position: center;
}

.treby-card:nth-child(4) .treby-card-image img {
  object-position: center;
}

.treby-card:nth-child(5) .treby-card-image img {
  object-position: center;
}

.treby-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 28px clamp(58px, 7vw, 118px) 28px clamp(42px, 5vw, 78px);
}

.treby-card-copy {
  max-width: 440px;
}

.treby-card-copy h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: clamp(27px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.18;
}

.treby-card-copy p {
  margin: 18px 0 0;
  color: rgba(46, 42, 37, 0.86);
  font-size: 16px;
  line-height: 1.64;
}

.treby-card-copy a {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  color: var(--color-old-gold);
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.treby-card-copy a:hover {
  color: var(--color-wood);
  transform: translateX(2px);
}

.treby-contact {
  display: grid;
  grid-template-columns: 86px minmax(280px, 1fr) minmax(260px, 310px) minmax(240px, 280px);
  gap: 28px;
  align-items: center;
  margin-top: 14px;
  padding: 31px 40px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.92), transparent 32%),
    rgba(255, 249, 239, 0.9);
  box-shadow: 0 16px 34px rgba(63, 44, 31, 0.06);
}

.treby-contact-icon {
  display: grid;
  width: 75px;
  height: 75px;
  place-items: center;
  border-radius: 50%;
  background: rgba(167, 122, 29, 0.09);
}

.treby-contact-icon img {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.treby-contact-copy h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
}

.treby-contact-copy p {
  max-width: 500px;
  margin: 8px 0 0;
  color: rgba(63, 44, 31, 0.78);
  font-size: 15px;
  line-height: 1.58;
}

.treby-phone,
.treby-request {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.treby-phone {
  border: 1px solid rgba(167, 122, 29, 0.22);
  color: var(--color-dark-wood);
  background: rgba(255, 249, 239, 0.72);
  font-size: 20px;
}

.treby-phone img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.treby-request {
  padding: 0 28px;
  color: #fff9ef;
  background: linear-gradient(180deg, #c9932a, #9f6a12);
  font-size: 15px;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(122, 77, 37, 0.18);
  transition: background 180ms ease, transform 180ms ease;
}

.treby-request:hover {
  background: linear-gradient(180deg, #d4a13f, #a87619);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .treby-card {
    grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  }

  .treby-card-body {
    padding: 30px 34px;
  }

  .treby-contact {
    grid-template-columns: 76px minmax(280px, 1fr) minmax(240px, 300px);
  }

  .treby-request {
    grid-column: 2 / -1;
    width: min(280px, 100%);
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .treby-hero {
    min-height: 650px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.18) 0%, rgba(255, 249, 239, 0.06) 54%, rgba(247, 241, 231, 0.68) 100%),
      url("../img/sacraments/bantreby.webp");
    background-position: center, 64% center;
    background-size: 100% 100%, cover;
  }

  .treby-hero::before {
    inset: 118px 20px auto;
    height: 420px;
    border: 1px solid rgba(167, 122, 29, 0.12);
    border-radius: var(--radius-md);
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.84), rgba(255, 249, 239, 0.58)),
      radial-gradient(circle at 90% 100%, rgba(255, 255, 255, 0.4), transparent 42%);
    box-shadow: 0 18px 42px rgba(63, 44, 31, 0.1);
    backdrop-filter: blur(10px);
  }

  .treby-hero-copy {
    width: min(520px, calc(100vw - 72px));
    margin-left: 36px;
    padding-top: 34px;
  }

  .treby-card {
    grid-template-columns: 1fr;
  }

  .treby-card-image {
    padding: 8px 8px 0;
  }

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

  .treby-contact {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    padding: 26px 24px;
  }

  .treby-phone,
  .treby-request {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .treby-hero {
    min-height: 650px;
  }

  .treby-breadcrumbs {
    width: calc(100vw - 72px);
  }

  .treby-hero-copy p {
    max-width: 100%;
    font-size: 16px;
  }

  .treby-content {
    width: calc(100vw - 40px);
    margin-top: 28px;
  }

  .treby-card-body {
    grid-template-columns: 1fr;
    padding: 28px 24px 30px;
    text-align: center;
  }

  .treby-card-copy {
    max-width: 100%;
  }

  .treby-card-copy a {
    justify-content: center;
  }

  .treby-contact {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .treby-contact-copy p {
    max-width: 100%;
  }

  .treby-phone {
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .treby-hero::before {
    height: 455px;
  }

  .treby-card-image,
  .treby-card-image img {
    height: 186px;
    min-height: 186px;
  }

  .treby-card-copy h2 {
    font-size: 26px;
  }

  .treby-card-copy p,
  .treby-contact-copy p {
    font-size: 14px;
  }

  .treby-phone,
  .treby-request {
    min-height: 58px;
  }
}

@media (max-width: 340px) {
  .treby-hero {
    min-height: 690px;
  }

  .treby-hero::before {
    height: 510px;
  }
}

/* Treby wedding detail page */
.treby-detail-page .inner-screen {
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.98) 0%, rgba(247, 241, 231, 0.96) 100%);
}

.treby-detail-page .inner-screen::before {
  display: none;
}

.treby-detail-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 249, 239, 0.9) 33%, rgba(255, 249, 239, 0.42) 54%, rgba(255, 249, 239, 0.06) 76%),
    url("../img/sacraments/treby_venchanie_hero_wide.png");
  background-color: var(--color-ivory);
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.treby-detail-hero::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 150px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.56) 0%, rgba(255, 249, 239, 0) 100%);
  pointer-events: none;
}

.treby-detail-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, rgba(247, 241, 231, 0) 0%, rgba(247, 241, 231, 0.95) 100%);
  pointer-events: none;
}

.treby-detail-header,
.treby-detail-hero-inner {
  position: relative;
  z-index: 3;
}

.treby-detail-breadcrumbs {
  padding-top: 26px;
}

.treby-detail-hero-copy {
  width: min(520px, 47vw);
  margin-left: calc((100vw - min(91vw, 1320px)) / 2);
  padding-top: 42px;
}

.treby-detail-hero-copy .media-title-divider,
.wedding-about-copy .media-title-divider,
.wedding-contact-copy .media-title-divider,
.wedding-section-title .media-title-divider {
  margin-top: 24px;
}

.treby-detail-hero-copy p {
  max-width: 430px;
  margin: 26px 0 0;
  color: rgba(46, 42, 37, 0.88);
  font-size: 17px;
  line-height: 1.72;
}

.treby-detail-content {
  position: relative;
  z-index: 4;
  width: min(91vw, 1320px);
  margin: -8px auto 0;
  padding-bottom: 50px;
}

.wedding-about-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  gap: 46px;
  align-items: center;
  overflow: hidden;
  padding: 24px 52px 24px 24px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.06);
}

.wedding-about-image img {
  display: block;
  width: 100%;
  height: 315px;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: cover;
  object-position: center;
}

.wedding-about-copy h2,
.wedding-section-title h2,
.wedding-preparation-note h2,
.wedding-contact-copy h2 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.wedding-about-copy p,
.wedding-preparation-note p,
.wedding-contact-copy p {
  margin: 26px 0 0;
  color: rgba(46, 42, 37, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.wedding-about-copy p + p {
  margin-top: 20px;
}

.wedding-section {
  margin-top: 28px;
}

.wedding-section-title {
  display: grid;
  justify-items: center;
  text-align: center;
}

.wedding-needed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.wedding-needed-grid article {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.74);
  text-align: center;
}

.wedding-needed-grid h3 {
  margin: 0;
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.3;
}

.wedding-needed-grid p {
  margin: 14px 0 0;
  color: rgba(46, 42, 37, 0.74);
  font-size: 14px;
  line-height: 1.58;
}

.wedding-process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 62px;
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.wedding-process-list li {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 14px;
  color: var(--color-dark-wood);
  text-align: center;
}

.wedding-process-list li:not(:last-child)::after {
  position: absolute;
  top: 30px;
  right: -42px;
  color: var(--color-old-gold);
  content: "→";
  font-size: 22px;
  font-weight: 700;
}

.wedding-process-list span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(167, 122, 29, 0.14);
  border-radius: 50%;
  color: var(--color-old-gold);
  background: rgba(255, 249, 239, 0.86);
  box-shadow: 0 12px 28px rgba(63, 44, 31, 0.07);
  font-family: var(--font-heading);
  font-size: 24px;
}

.wedding-process-list strong {
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.35;
}

.wedding-preparation-note {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-top: 34px;
  padding: 28px 48px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.92), rgba(255, 249, 239, 0.78)),
    url("../img/church-transparent.png");
  background-position: center, right bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%, 330px auto;
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.06);
}

.wedding-note-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: rgba(167, 122, 29, 0.09);
}

.wedding-note-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.wedding-preparation-note p {
  max-width: 680px;
  margin-top: 10px;
}

.wedding-note-link {
  min-height: 48px;
  margin-top: 18px;
  padding: 0 24px;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.wedding-faq-list {
  margin-top: 24px;
  border: 1px solid rgba(167, 122, 29, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 249, 239, 0.72);
}

.wedding-faq-list details + details {
  border-top: 1px solid rgba(167, 122, 29, 0.16);
}

.wedding-faq-list summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: var(--color-dark-wood);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.wedding-faq-list summary::-webkit-details-marker {
  display: none;
}

.wedding-faq-list summary::after {
  color: var(--color-old-gold);
  content: "⌄";
  font-size: 18px;
  line-height: 1;
}

.wedding-faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.wedding-faq-list p {
  margin: 0;
  padding: 0 24px 18px;
  color: rgba(46, 42, 37, 0.76);
  font-size: 15px;
  line-height: 1.62;
}

.wedding-contact-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 14px 34px rgba(63, 44, 31, 0.06);
}

.wedding-contact-image img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: center;
}

.wedding-contact-copy {
  padding: 26px 42px 26px 0;
}

.wedding-contact-copy p {
  max-width: 600px;
  margin-top: 24px;
}

.wedding-contact-actions {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(220px, 270px);
  gap: 26px;
  margin-top: 22px;
}

.wedding-materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.wedding-materials-grid a {
  display: grid;
  min-height: 150px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 18px;
  align-content: start;
  padding: 24px 22px;
  border: 1px solid rgba(167, 122, 29, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 239, 0.78);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wedding-materials-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(63, 44, 31, 0.08);
}

.wedding-materials-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wedding-materials-grid strong {
  color: var(--color-dark-wood);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
}

.wedding-materials-grid span,
.wedding-materials-grid em {
  grid-column: 2;
  color: rgba(46, 42, 37, 0.74);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.wedding-materials-grid em {
  color: var(--color-old-gold);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .wedding-needed-grid,
  .wedding-materials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wedding-contact-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .treby-detail-hero {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(255, 249, 239, 0.9) 0%, rgba(255, 249, 239, 0.72) 45%, rgba(247, 241, 231, 0.48) 100%),
      url("../img/sacraments/treby_venchanie_hero_wide.png");
    background-position: center, center bottom;
    background-size: 100% 100%, cover;
  }

  .treby-detail-hero-copy {
    width: min(520px, calc(100vw - 72px));
    margin-left: 36px;
    padding-top: 34px;
  }

  .treby-detail-content {
    width: calc(100vw - 40px);
    margin-top: 24px;
  }

  .wedding-about-card,
  .wedding-contact-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .wedding-about-copy,
  .wedding-contact-copy {
    padding: 28px 24px 30px;
  }

  .wedding-about-image img,
  .wedding-contact-image img {
    height: 260px;
    border-radius: 0;
  }

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

  .wedding-process-list {
    gap: 22px;
  }

  .wedding-process-list li:not(:last-child)::after {
    right: -22px;
  }

  .wedding-preparation-note {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 30px 24px;
    text-align: center;
    background-size: 100% 100%, 210px auto;
  }
}

@media (max-width: 620px) {
  .treby-detail-hero {
    min-height: 620px;
  }

  .treby-detail-breadcrumbs {
    width: calc(100vw - 72px);
  }

  .treby-detail-hero-copy p {
    font-size: 16px;
  }

  .wedding-about-copy h2,
  .wedding-section-title h2,
  .wedding-preparation-note h2,
  .wedding-contact-copy h2 {
    font-size: 24px;
  }

  .wedding-needed-grid,
  .wedding-materials-grid,
  .wedding-process-list {
    grid-template-columns: 1fr;
  }

  .wedding-needed-grid article {
    min-height: 0;
    padding: 24px 22px;
  }

  .wedding-process-list li:not(:last-child)::after {
    position: static;
    display: block;
    margin-top: 4px;
    content: "↓";
  }

  .wedding-contact-actions .treby-phone,
  .wedding-contact-actions .treby-request {
    width: 100%;
    font-size: 17px;
  }

  .wedding-faq-list summary {
    min-height: 58px;
    padding: 0 18px;
  }

  .wedding-faq-list p {
    padding: 0 18px 18px;
  }
}

@media (max-width: 430px) {
  .treby-detail-hero {
    min-height: 650px;
  }

  .wedding-about-image img,
  .wedding-contact-image img {
    height: 220px;
  }

  .wedding-materials-grid a {
    min-height: 0;
  }
}
