/* =====================================================================
   Церква «Спасіння» — стиль сайту.
   Ідея: «відчинені двері». Арка з логотипа й вікон храму, теплий папір,
   темно-синє чорнило, золото як у вітражі. Інформація подана, як у
   недільному бюлетені: розклад — програмою, заявка — карткою зв'язку.
   ===================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --paper-3: #e1d8c6;
  --ink: #13284a;
  --ink-2: #2a3f63;
  --brand: #1b3a69;
  --muted: #586276;
  --line: rgba(19, 40, 74, .16);
  --line-2: rgba(19, 40, 74, .3);
  --gold: #d9a066;
  --gold-soft: #ecd2b0;
  --gold-ink: #8a5520;
  --live: #c8372d;
  --ok: #2f7a4a;

  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mark: "Jost", var(--sans);

  --wrap: 1240px;
  --pad: 20px;
}
@media (min-width: 768px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Типографіка ---------- */
.display, .h1, .h2, .h3, .prose h2, .prose h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.005em; }
.display { font-size: clamp(54px, 10vw, 128px); line-height: .9; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
.h1 { font-size: clamp(44px, 7vw, 92px); line-height: .95; }
.h2 { font-size: clamp(36px, 5vw, 62px); line-height: 1; }
.h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.kicker {
  display: block; font: 600 12.5px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-ink);
}
.time { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

/* Посилання зі стрілкою — основний спосіб «куди далі» */
.go {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; transition: gap .2s, color .2s;
}
.go::after { content: "→"; font-family: var(--sans); }
.go:hover { gap: .8em; color: var(--brand); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #cf9356; border-color: #cf9356; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Арка (з логотипа): фото у формі дверей з внутрішньою лінією ---------- */
.arch { position: relative; margin: 0; }
.arch__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 40% 40% 0 0; background: var(--paper-3); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; }
.arch__img::after {
  content: ""; position: absolute; inset: 14px 14px -2px 14px; border: 1.5px solid rgba(244, 239, 230, .75); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0; pointer-events: none;
}
.arch--tall .arch__img { aspect-ratio: 3 / 4; border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; }
.arch--tall .arch__img::after { border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; }
.arch figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.arch__step { height: 6px; margin: 6px 6% 0; background: var(--ink); } /* «сходинка» під дверима, як на логотипі */
.arch__step + .arch__step { margin: 4px 0 0; }

/* ---------- Плашка «наживо» ---------- */
.livebar { display: none; background: var(--live); color: #fff; text-align: center; font: 600 14px/1.3 var(--sans); padding: 9px var(--pad); text-decoration: none; }
body.is-live .livebar { display: block; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Шапка ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mast.is-scrolled { border-bottom-color: var(--line); }
.mast__top { display: none; }
@media (min-width: 1024px) {
  .mast__top { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 6px; font-size: 13px; color: var(--muted); }
  .mast__top a { text-decoration: none; }
  .mast__top a:hover { color: var(--ink); }
}
.mast__row { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); flex: none; }
.brand img { width: 40px; height: 39px; }
.wordmark { font-family: var(--mark); text-transform: uppercase; line-height: 1; font-size: 24px; letter-spacing: .05em; }
.wordmark small { display: block; font-size: 8.5px; letter-spacing: .2em; margin-bottom: 4px; font-weight: 500; }
.nav { display: none; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: none; }
.mast__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.live-flag { display: none; align-items: center; gap: 6px; color: var(--live); font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
body.is-live .live-flag { display: inline-flex; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; font-weight: 600; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.mast .btn--gold { display: none; }
@media (min-width: 640px) { .mast .btn--gold { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .mast__actions { margin-left: 8px; }
  .menu-btn { display: none; }
}

/* ---------- Мобільне меню ---------- */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper); overflow-y: auto; padding: 18px var(--pad) 110px; transform: translateY(-102%); transition: transform .32s ease; }
.menu.is-open { transform: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu__close { height: 44px; padding: 0 16px; border: 1.5px solid rgba(244, 239, 230, .5); background: transparent; color: var(--paper); border-radius: 2px; font-weight: 600; cursor: pointer; }
.menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(244, 239, 230, .14); text-decoration: none; font: 600 30px/1.1 var(--serif); }
.menu nav a small { font: 400 14px/1 var(--sans); color: rgba(244, 239, 230, .6); }
.menu__meta { margin-top: 28px; font-size: 15px; color: rgba(244, 239, 230, .75); }
.menu__meta a { color: var(--gold-soft); }

/* ---------- Секції ---------- */
.sec { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sec { padding: 112px 0; } }
.sec--flush { border-top: 0; }
.sec__head { display: grid; gap: 14px; margin-bottom: 40px; }
@media (min-width: 900px) {
  .sec__head--side { grid-template-columns: 5fr 7fr; align-items: end; gap: 40px; }
}
.sec__head p { margin: 0; color: var(--muted); max-width: 34em; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* ---------- Перший екран ---------- */
.hero { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; padding-top: 56px; padding-bottom: 96px; }
}
.hero__lead { margin: 26px 0 30px; }
.next { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0 18px; margin-bottom: 28px; display: grid; gap: 4px; max-width: 560px; }
.next__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 600 clamp(26px, 3.4vw, 34px)/1.1 var(--serif); }
.next__when .time { color: var(--brand); }
.next__where { color: var(--ink-2); }
.next__in { font-size: 14px; color: var(--gold-ink); font-weight: 600; }
.hero .arch { max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .hero .arch { justify-self: end; } }

/* ---------- Розклад як друкована програма ---------- */
.program { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.program li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.program__day { grid-column: 1 / -1; font: italic 500 19px/1 var(--serif); color: var(--gold-ink); }
.program li.is-same .program__day { display: none; }
.program__what b { display: block; font-weight: 600; }
.program__what small { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.program__time { align-self: start; font: 600 28px/1 var(--serif); color: var(--brand); }
.program__time a { text-decoration: none; }
@media (min-width: 700px) {
  .program li { grid-template-columns: 150px 1fr auto; align-items: baseline; }
  .program__day { grid-column: auto; }
  .program li.is-same .program__day { display: block; visibility: hidden; }
}

/* ---------- Вперше у нас ---------- */
.firsts { display: grid; gap: 0; margin: 0 0 32px; padding: 0; }
.firsts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.firsts dt { font: 600 22px/1.2 var(--serif); margin-bottom: 4px; }
.firsts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) {
  .firsts { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* ---------- Онлайн (темна смуга) ---------- */
.online { background: var(--ink); color: var(--paper); border-top: 0; }
.online .h2, .online .h3 { color: var(--paper); }
.online .h2 em { color: var(--gold); }
.online p { color: rgba(244, 239, 230, .78); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #0a1527; overflow: hidden; }
.screen img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; background: transparent; color: var(--paper); cursor: pointer; font: 600 16px/1 var(--sans);
}
.screen__play i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid var(--paper); transition: background .2s, color .2s; }
.screen__play:hover i { background: var(--paper); color: var(--ink); }
.screen__play svg { width: 28px; height: 28px; margin-left: 4px; }
.screen__tag { position: absolute; left: 0; top: 0; padding: 8px 14px; background: rgba(10, 21, 39, .75); font: 600 13px/1 var(--sans); letter-spacing: .06em; }
body.is-live .screen__tag { background: var(--live); }
.playlists { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(244, 239, 230, .2); }
.playlists li { flex: 1 1 50%; border-bottom: 1px solid rgba(244, 239, 230, .2); }
@media (min-width: 900px) { .playlists li { flex: 1 1 0; border-bottom: 0; border-right: 1px solid rgba(244, 239, 230, .2); } .playlists li:last-child { border-right: 0; } }
.playlists a { display: block; padding: 16px 16px 16px 0; text-decoration: none; font-weight: 600; color: var(--paper); }
@media (min-width: 900px) { .playlists a { padding: 18px; } .playlists li:first-child a { padding-left: 0; } }
.playlists a:hover { color: var(--gold); }

/* ---------- Картка зв'язку (заявка) ---------- */
.kartka-wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) { .kartka-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.kartka {
  position: relative; background: #fbf8f2; border: 1px solid var(--line-2); padding: 28px 22px 26px 30px;
}
/* перфорація зліва, як у відривної картки */
.kartka::before {
  content: ""; position: absolute; left: 12px; top: 14px; bottom: 14px; border-left: 2px dotted var(--line-2);
}
@media (min-width: 600px) { .kartka { padding: 38px 40px 34px 48px; } .kartka::before { left: 18px; } }
.kartka__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--ink); padding-bottom: 12px; margin-bottom: 22px; }
.kartka__no { font: italic 500 16px/1 var(--serif); color: var(--muted); white-space: nowrap; }
.choice { border: 0; margin: 0 0 18px; padding: 0; }
.choice legend, .lf label { font: 600 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.choice__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 18px; }
.choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { flex: none; width: 24px; height: 24px; border: 1.5px solid var(--ink); display: grid; place-items: center; background: #fff; }
.choice__box::after { content: ""; width: 12px; height: 12px; background: var(--ink); transform: scale(0); transition: transform .15s; }
.choice__item input:checked + .choice__box::after { transform: none; }
.choice__item input:focus-visible + .choice__box { outline: 2px solid var(--brand); outline-offset: 3px; }
.lf { margin-bottom: 18px; }
.lf label { display: block; margin-bottom: 2px; }
.lf__row { display: flex; align-items: end; gap: 10px; }
.lf input, .lf textarea {
  width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent;
  font-size: 19px; outline: none;
}
.lf textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.lf input:focus, .lf textarea:focus { border-bottom-color: var(--gold); box-shadow: 0 1.5px 0 var(--gold); }
.lf input.is-bad, .lf textarea.is-bad { border-bottom-color: var(--live); }
.lf-pair { display: grid; gap: 0 24px; }
@media (min-width: 600px) { .lf-pair { grid-template-columns: 1fr 1fr; } }
.geo-btn { flex: none; height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); background: transparent; border-radius: 2px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.geo-btn:hover { background: var(--ink); color: var(--paper); }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); margin: 6px 0 22px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.kartka__error { color: var(--live); font-size: 15px; margin: 12px 0 0; }
.kartka__fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.kartka__done { text-align: left; }
.kartka__done .h3 { margin: 6px 0 10px; }
.stamp { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--ok); color: var(--ok); font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); }
.routed { margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }

/* Довідник церков поруч */
.dir__empty { border-top: 1.5px solid var(--ink); padding-top: 18px; color: var(--ink-2); }
.dir__empty .h3 { margin-bottom: 10px; }
.dir__title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.dir__list { list-style: none; margin: 0; padding: 0; }
.dir__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dir__name { display: flex; align-items: baseline; gap: 10px; font: 600 23px/1.15 var(--serif); }
.dir__name::after { content: ""; flex: 1; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); order: 1; }
.dir__name .dist { order: 2; font: 600 14px/1 var(--sans); color: var(--gold-ink); white-space: nowrap; }
.dir__meta { font-size: 15px; color: var(--muted); margin-top: 4px; }
.dir__links { display: flex; gap: 18px; margin-top: 8px; font-size: 15px; }
.dir__links a { font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Індекс (служіння) ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 20px 0; text-decoration: none; position: relative; }
.index__name { font: 600 clamp(28px, 4vw, 44px)/1 var(--serif); transition: color .2s, transform .25s; }
.index__note { grid-column: 1; color: var(--muted); font-size: 15.5px; }
.index__aud { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; color: var(--gold-ink); font-weight: 600; text-align: right; white-space: nowrap; }
.index a:hover .index__name { color: var(--brand); transform: translateX(6px); }
.index__thumb { display: none; }
@media (min-width: 1000px) {
  .index a { grid-template-columns: 5fr 5fr 2fr; }
  .index__note { grid-column: 2; grid-row: 1; }
  .index__aud { grid-column: 3; grid-row: 1; }
  .index__thumb {
    display: block; position: absolute; right: 18%; top: 50%; width: 132px; aspect-ratio: 4 / 5; transform: translateY(-50%) scale(.92);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0; overflow: hidden; opacity: 0; transition: opacity .2s, transform .25s; pointer-events: none; z-index: 2;
  }
  .index__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .index a:hover .index__thumb { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ---------- Новини (газетна верстка) ---------- */
.press { display: grid; gap: 32px; }
@media (min-width: 900px) { .press { grid-template-columns: 7fr 5fr; gap: 56px; } }
.story { text-decoration: none; display: grid; gap: 14px; }
.story__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story__img img { transform: scale(1.03); }
.story__meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.story__meta b { color: var(--gold-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; }
.story__title { font: 600 clamp(28px, 3.2vw, 40px)/1.08 var(--serif); }
.story:hover .story__title { color: var(--brand); }
.story p { margin: 0; color: var(--ink-2); }
.headlines { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.headlines li { border-bottom: 1px solid var(--line); }
.headlines a { display: grid; gap: 6px; padding: 18px 0; text-decoration: none; }
.headlines .story__title { font-size: clamp(23px, 2.4vw, 28px); }
.headlines a:hover .story__title { color: var(--brand); }

/* ---------- Пожертви ---------- */
.give { display: grid; gap: 40px; }
@media (min-width: 900px) { .give { grid-template-columns: 6fr 6fr; gap: 72px; } }
.verse { margin: 0; font: italic 500 clamp(26px, 3vw, 36px)/1.25 var(--serif); color: var(--ink); }
.verse cite { display: block; margin-top: 14px; font: 600 14px/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.ways { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ways > li { border-bottom: 1px solid var(--line); }
.ways summary, .ways .ways__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; text-decoration: none; font: 600 24px/1.15 var(--serif); }
.ways summary::-webkit-details-marker { display: none; }
.ways summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--gold-ink); transition: transform .2s; }
.ways details[open] summary::after { transform: rotate(45deg); }
.ways .ways__row::after { content: "→"; font: 400 22px/1 var(--sans); color: var(--gold-ink); }
.req-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15.5px; }
.req-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 12px 8px 0; vertical-align: top; width: 34%; }
.req-table td { padding: 8px 0; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 15px; word-break: break-all; }
.copy-btn { margin-left: 8px; border: 1px solid var(--line-2); background: transparent; border-radius: 2px; padding: 2px 8px; font: 600 12px/1.6 var(--sans); cursor: pointer; }
.progress { margin-top: 26px; }
.progress__bar { height: 3px; background: var(--line); margin: 10px 0 6px; }
.progress__bar i { display: block; height: 100%; background: var(--gold); }

/* ---------- Як нас знайти ---------- */
.visit { display: grid; gap: 40px; }
@media (min-width: 900px) { .visit { grid-template-columns: 5fr 7fr; gap: 64px; } }
.visit__addr { font: 600 clamp(30px, 3.6vw, 44px)/1.1 var(--serif); margin: 0 0 6px; }
.contacts { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.contacts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts span { color: var(--muted); font-size: 15px; }
.contacts a { font-weight: 600; text-decoration: none; text-align: right; }
.contacts a:hover { color: var(--brand); text-decoration: underline; text-decoration-color: var(--gold); }
.map { min-height: 340px; border: 1px solid var(--line-2); background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.9) sepia(.15) contrast(.95); }

/* ---------- Підвал ---------- */
.foot { background: var(--ink); color: rgba(244, 239, 230, .78); padding: 64px 0 120px; font-size: 15.5px; }
@media (min-width: 1100px) { .foot { padding-bottom: 48px; } }
.foot a { text-decoration: none; color: inherit; }
.foot a:hover { color: var(--gold); }
.foot__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 4fr 2fr 2fr 2fr 2fr; } }
.foot__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot__brand { grid-column: auto; } }
.foot__brand .brand { color: var(--paper); }
.foot__brand p { margin: 18px 0 0; max-width: 22em; }
.foot h3 { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(244, 239, 230, .14); font-size: 13.5px; color: rgba(244, 239, 230, .55); }

/* ---------- Нижня панель на телефоні ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(244, 239, 230, .97); border-top: 1px solid var(--line-2); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--ink); }
.dock svg { width: 23px; height: 23px; }
.dock__live { position: relative; }
body.is-live .dock__live { color: var(--live); }
body.is-live .dock__live::before { content: ""; position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
@media (min-width: 1100px) { .dock { display: none; } }

/* ---------- Внутрішні сторінки ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { padding: 40px 0 48px; display: grid; gap: 32px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 72px; } .page-head--img { grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; } }
.page-head .lead { margin: 22px 0 0; }
.page-head .arch { max-width: 360px; width: 100%; }
.page-body { display: grid; gap: 48px; padding-bottom: 96px; }
@media (min-width: 1000px) { .page-body--aside { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 72px; } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); align-self: start; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.facts b, .facts a { font-weight: 600; }
@media (min-width: 1000px) { .aside-sticky { position: sticky; top: 100px; } }

/* Текст статей і сторінок */
.prose { max-width: 42em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin: 1.6em 0 .5em; }
.prose h3 { font-size: clamp(23px, 2.4vw, 28px); line-height: 1.15; margin: 1.4em 0 .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--ink); }
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 1.4em; margin-bottom: .4em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: .42em; height: .42em; background: var(--gold); transform: rotate(45deg); }
.prose ol { padding-left: 1.4em; }
.prose ol > li { margin-bottom: .4em; padding-left: .2em; }
.prose ol > li::marker { font-family: var(--serif); font-weight: 700; color: var(--gold-ink); }
.prose blockquote { border-left: 2px solid var(--gold); padding: .2em 0 .2em 1.1em; font: italic 500 1.25em/1.45 var(--serif); color: var(--ink); }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; }
.prose .table-wrap table { margin: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose thead th { border-bottom: 1.5px solid var(--ink); font-weight: 600; }
.prose img { margin: 1.4em 0; }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Хаб «Церква» — зміст розділу */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 18px; padding: 22px 0; text-decoration: none; }
.toc a::before { counter-increment: toc; content: counter(toc, upper-roman); font: italic 500 18px/1 var(--serif); color: var(--gold-ink); min-width: 2.2em; }
.toc b { font: 600 clamp(26px, 3.4vw, 40px)/1.05 var(--serif); }
.toc small { grid-column: 2; font-size: 15.5px; color: var(--muted); }
.toc a::after { content: "→"; grid-row: 1; grid-column: 3; color: var(--gold-ink); }
.toc a:hover b { color: var(--brand); }

/* Список новин */
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 32px; padding: 0; list-style: none; font-size: 15.5px; }
.filters a { text-decoration: none; color: var(--muted); padding-bottom: 3px; border-bottom: 1.5px solid transparent; }
.filters a:hover { color: var(--ink); }
.filters a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; gap: 16px; padding: 22px 0; text-decoration: none; }
@media (min-width: 760px) { .news-list a { grid-template-columns: 240px 1fr; gap: 32px; align-items: start; } }
.news-list .story__img { aspect-ratio: 3 / 2; }
.news-list .story__title { font-size: clamp(24px, 2.6vw, 32px); }
.news-list p { margin: 8px 0 0; color: var(--ink-2); }
.news-list a:hover .story__title { color: var(--brand); }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; font-weight: 600; }
.pager a { text-decoration: none; border-bottom: 1.5px solid var(--gold); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { margin: 0 0 40px; }
.cover img { width: 100%; max-height: 620px; object-fit: cover; }

/* Довідник церков об'єднання */
.dir-tools { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 760px) { .dir-tools { grid-template-columns: 2fr 1fr; gap: 24px; } }
.dir-tools input, .dir-tools select { width: 100%; min-height: 50px; padding: 8px 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font-size: 19px; border-radius: 0; outline: none; }
.dir-tools input:focus, .dir-tools select:focus { border-bottom-color: var(--gold); }
.region { margin-top: 36px; }
.region h2 { font: 600 30px/1 var(--serif); margin: 0 0 8px; }
.union-map { height: 420px; border: 1px solid var(--line-2); margin-bottom: 40px; background: var(--paper-2); }

/* Сторінка служіння — форма «Хочу долучитися» */
.join { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.join .lf input { font-size: 17px; }

/* ---------- Плавна поява ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .rise.is-in { opacity: 1; transform: none; }
}

/* ---------- Друк ---------- */
@media print {
  .mast, .dock, .foot, .livebar, .menu { display: none !important; }
  body { background: #fff; }
}

/* =====================================================================
   «Добрий пастор» — база знань для лідерів. Та сама родина, але робочий
   вигляд настільної книги: зміст зліва, текст по центру, зміст статті справа.
   ===================================================================== */
.lb-top { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 40; }
.lb-top__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px var(--pad); max-width: 1440px; margin: 0 auto; }
.lb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.lb-brand b { display: block; font: 600 26px/1 var(--serif); }
.lb-brand small { display: block; font-size: 12.5px; color: rgba(244, 239, 230, .65); margin-top: 3px; }
.lb-search { position: relative; flex: 1 1 280px; max-width: 520px; order: 3; }
@media (min-width: 900px) { .lb-search { order: 0; margin-left: auto; } }
.lb-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.lb-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 0; border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 16px; }
.lb-links { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 15px; }
@media (min-width: 900px) { .lb-links { margin-left: 0; } }
.lb-links a, .lb-links button { color: var(--paper); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.lb-links a:hover, .lb-links button:hover { color: var(--gold); }
.lb-links form { margin: 0; }

.lb-grid { display: grid; max-width: 1440px; margin: 0 auto; }
@media (min-width: 1000px) { .lb-grid { grid-template-columns: 290px minmax(0, 1fr); } }
.lb-side { border-bottom: 1px solid var(--line); padding: 8px var(--pad); }
@media (min-width: 1000px) {
  .lb-side { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px 20px 40px var(--pad); position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto; }
}
.lb-tree summary { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 12px 0; cursor: pointer; }
@media (min-width: 1000px) { .lb-tree summary { pointer-events: none; list-style: none; padding-top: 0; } .lb-tree summary::-webkit-details-marker { display: none; } }
.lb-tree ul { list-style: none; margin: 0; padding: 0; }
.lb-tree li ul { margin: 2px 0 12px; }
.lb-tree a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid transparent; text-decoration: none; font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.lb-tree a:hover { color: var(--ink); border-left-color: var(--line-2); }
.lb-tree a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }
.lb-tree .lb-tree__sec { font: 600 20px/1.2 var(--serif); color: var(--ink); padding-left: 0; border-left: 0; margin-top: 10px; }
.lb-tree .lb-tree__sec[aria-current="page"] { color: var(--brand); }

.lb-main { padding: 0 var(--pad) 80px; min-width: 0; }
@media (min-width: 1000px) { .lb-main { padding: 0 56px 96px; } }
.lb-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); max-width: 52em; }
.lb-hero .h1 { font-size: clamp(40px, 5.4vw, 68px); }
.lb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.lb-meta span:first-child { color: var(--gold-ink); font-weight: 600; }
.lb-block { padding: 36px 0 0; max-width: 52em; }
.lb-article { display: grid; gap: 40px; padding-top: 36px; }
@media (min-width: 1280px) { .lb-article--toc { grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; } }
.lb-toc { display: none; }
@media (min-width: 1280px) {
  .lb-toc { display: block; position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
  .lb-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .lb-toc a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
  .lb-toc a:hover { color: var(--brand); }
}
.lb-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.lb-list li { border-bottom: 1px solid var(--line); }
.lb-list a { display: block; padding: 14px 0; text-decoration: none; }
.lb-list b { display: block; font: 600 22px/1.2 var(--serif); }
.lb-list span { font-size: 14px; color: var(--muted); }
.lb-list p { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); }
.lb-list a:hover b { color: var(--brand); }
.lb-list mark, .prose mark { background: var(--gold-soft); color: inherit; padding: 0 2px; }
.lb-cal { border: 1px solid var(--line-2); }
.lb-cal iframe { display: block; width: 100%; height: 600px; border: 0; }
.lb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px var(--pad); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); max-width: 1440px; margin: 0 auto; }
.lb-foot a { color: var(--ink); }

.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 12px 0; text-decoration: none; }
.doc-list svg { grid-row: 1 / span 2; margin-top: 2px; color: var(--gold-ink); }
.doc-list__title { font-weight: 600; }
.doc-list__meta { font-size: 13.5px; color: var(--muted); }
.doc-list a:hover .doc-list__title { color: var(--brand); text-decoration: underline; text-decoration-color: var(--gold); }
.dir-tools select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%2313284a%27 stroke-width=%271.6%27/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }

/* =====================================================================
   Події — афіша як у бюлетені: дата великою цифрою, назва, час і місце
   ===================================================================== */
.agenda-month { margin: 40px 0 0; font: italic 500 24px/1 var(--serif); color: var(--gold-ink); text-transform: lowercase; }
.agenda-month:first-child { margin-top: 0; }
.agenda { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.agenda li { border-bottom: 1px solid var(--line); }
.agenda a { display: grid; grid-template-columns: 74px 1fr; gap: 4px 18px; align-items: center; padding: 16px 0; text-decoration: none; }
@media (min-width: 760px) { .agenda a { grid-template-columns: 96px 1fr auto; gap: 24px; padding: 20px 0; } }
.agenda__date { display: grid; justify-items: center; align-self: start; padding: 6px 0 8px; border: 1.5px solid var(--ink); border-radius: 46px 46px 0 0; /* маленька арка */ }
.agenda__date b { font: 600 34px/1 var(--serif); color: var(--brand); }
.agenda__date small { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.agenda__date i { font: italic 500 13px/1.2 var(--serif); color: var(--muted); }
.agenda__title { display: block; font: 600 clamp(22px, 2.6vw, 30px)/1.12 var(--serif); }
.agenda__meta { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.agenda a:hover .agenda__title { color: var(--brand); }
.badge { display: inline-block; padding: 5px 10px; border: 1.5px solid var(--gold); font: 600 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.badge--full { border-color: var(--line-2); color: var(--muted); }
.agenda .badge { grid-column: 2; justify-self: start; }
@media (min-width: 760px) { .agenda .badge { grid-column: 3; } }
.cal-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 15px; }
.cal-links a { font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* =====================================================================
   Архів проповідей
   ===================================================================== */
.sermon-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 32px; }
.sermon-tools .lf:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .sermon-tools { grid-template-columns: 2fr 1fr 1fr; gap: 12px 24px; } .sermon-tools .lf:first-child { grid-column: auto; } }
@media (min-width: 1100px) { .sermon-tools { grid-template-columns: 2fr 1.3fr 1fr 1fr .8fr; } }
.sermon-tools .lf { margin: 0; }
.sermon-tools select { width: 100%; min-height: 50px; padding: 8px 24px 8px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; font-size: 17px;
  appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%2313284a%27 stroke-width=%271.6%27/%3E%3C/svg%3E") no-repeat right 4px center; }
.sermons { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; }
@media (min-width: 640px) { .sermons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sermons { grid-template-columns: 1fr 1fr 1fr; } }
.sermon { display: grid; gap: 10px; text-decoration: none; }
.sermon__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.sermon__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.sermon:hover .sermon__img img { transform: scale(1.03); opacity: .85; }
.sermon__img::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(244, 239, 230, .92)
  url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%2313284a%27 d=%27M9 6.5v11l9-5.5z%27/%3E%3C/svg%3E") no-repeat 55% 50% / 22px; }
.sermon__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; background: rgba(10, 21, 39, .8); color: #fff; font: 600 12.5px/1.3 var(--sans); }
.sermon__title { font: 600 23px/1.15 var(--serif); }
.sermon:hover .sermon__title { color: var(--brand); }
.sermon__meta { font-size: 14.5px; color: var(--muted); }
.sermon__meta b { color: var(--gold-ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a, .chips span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); font-size: 14.5px; text-decoration: none; }
.chips a:hover { border-color: var(--gold); color: var(--brand); }
.lf select { width: 100%; min-height: 48px; padding: 8px 24px 8px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; font-size: 19px; outline: none;
  appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%2313284a%27 stroke-width=%271.6%27/%3E%3C/svg%3E") no-repeat right 4px center; }
.lf select:focus { border-bottom-color: var(--gold); }
