/* «Християнська церква», Черкаси — система сайту «Літопис».
   Порядок: шрифти → токени → основа → КНОПКИ → компоненти → глави → сторінки. */

/* ── Шрифти (локальні, повна кирилиця) ─────────────────────────────────── */
@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/vollkorn-cyrillic-normal-400-900.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Vollkorn'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/vollkorn-latin-normal-400-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vollkorn'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url('../fonts/vollkorn-cyrillic-italic-400-900.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Vollkorn'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url('../fonts/vollkorn-latin-italic-400-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/golos-text-cyrillic-normal-400-900.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/golos-text-latin-normal-400-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Токени ─────────────────────────────────────────────────────────────── */
:root {
  /* палітра з ролями */
  --paper: #FFFFFF;
  --paper-2: #F2F1EE;
  --ink: #212121;
  --ink-2: #57534D;
  --night: #1B1A18;
  --night-2: #262422;
  --night-ink: #F3EFE8;
  --night-ink-2: #B9B2A6;
  --gold: #CF9C63;
  --gold-hover: #DBAE7B;
  --gold-deep: #94642F;
  --focus: #1F5FBF;

  /* гарнітури */
  --serif: 'Vollkorn', 'Georgia', serif;
  --sans: 'Golos Text', 'Segoe UI', system-ui, sans-serif;

  /* шкала ×1.333 від 18 */
  --fs-meta: 0.8125rem;   /* 13 */
  --fs-small: 0.9375rem;  /* 15 */
  --fs-body: 1.125rem;    /* 18 */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem); /* 19–22 */
  --fs-h3: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);       /* 22–28 */
  --fs-h2: clamp(2.125rem, 1.2rem + 2.9vw, 3.5rem);        /* 34–56 */
  --fs-h1: clamp(2.75rem, 1.2rem + 5.2vw, 5.5rem);         /* 44–88 */
  --fs-year: clamp(7rem, 4rem + 11vw, 15rem);              /* число року */
  --lh-tight: 1.06;
  --lh-head: 1.1;
  --lh-body: 1.6;

  /* простір */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section: var(--s-10);
  --gutter: 24px;
  --gap-spread: var(--s-9);
  --wrap: 1312px;
  --pad: 64px;

  /* одна геометрія: пігулка для того, що натискається; 18px для того, що несе медіа */
  --r: 18px;
  --r-pill: 999px;

  /* шапка */
  --head-h: 80px;

  /* рух */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.2, .7, .2, 1);
  --t-ui: .2s;
  --t-in: .8s;
  --ns-reveal-dur: .8s;
  --ns-reveal-ease: cubic-bezier(.16, 1, .3, 1);
  --ns-reveal-shift: 32px;
  --ns-stagger: 80ms;

  /* фото */
  --tone-archive: none; /* один теплий тон запечено у файли кадрів */
}
@media (max-width: 1100px) { :root { --pad: 40px; --gap-spread: var(--s-8); } }
@media (max-width: 640px) {
  :root { --pad: 20px; --section: 72px; --gap-spread: var(--s-6); --r: 14px; --head-h: 64px; --fs-body: 1.0625rem; }
}

/* ── Основа ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); font-variant-numeric: lining-nums;
  line-height: var(--lh-body); font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, blockquote, figure, dl, dd { margin: 0; }
ul[role=list], ol[role=list] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: var(--lh-head); margin: 0; text-wrap: balance; color: inherit; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.015em; margin-bottom: .5em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; margin-bottom: .55em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; margin-bottom: .45em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: var(--s-3); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.measure { max-width: 60ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-2); }
.nums { font-variant-numeric: lining-nums tabular-nums; }
.old { font-variant-numeric: oldstyle-nums proportional-nums; }

/* ── КНОПКИ — єдина система ─────────────────────────────────────────────── */
.btn { --btn-bg: var(--ink); --btn-ink: var(--paper); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px;
  border-radius: var(--r-pill); border: 1.5px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-ink);
  font: 500 1rem/1 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui), border-color var(--t-ui) var(--ease-ui), transform var(--t-ui) var(--ease-ui); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { --btn-bg: #3A3836; }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--gold); --btn-ink: var(--ink); }
.btn--primary:hover { --btn-bg: var(--gold-hover); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-ink: var(--paper); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .4; pointer-events: none; }
.on-night .btn--ghost { --btn-ink: var(--night-ink); --btn-line: var(--night-ink); }
.on-night .btn--ghost:hover { --btn-bg: var(--night-ink); --btn-ink: var(--night); }
.on-night :focus-visible { outline-color: var(--gold); }

.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--gold);
  transition: color var(--t-ui) var(--ease-ui), text-decoration-color var(--t-ui) var(--ease-ui); }
.link:hover { color: var(--gold-deep); text-decoration-color: currentColor; }
.link svg { width: 16px; height: 16px; flex: none; }
.on-night .link { color: var(--night-ink); }
.on-night .link:hover { color: var(--gold); }

/* тег стрічки (вибір свята, фільтр) — та сама пігулка */
.chip { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 500 1rem/1 var(--sans);
  white-space: nowrap; cursor: pointer; transition: background-color var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui), border-color var(--t-ui) var(--ease-ui); }
.chip:hover { background: var(--paper-2); }
.chip[aria-selected=true], .chip[aria-pressed=true] { background: var(--ink); color: var(--paper); }

/* плашка-eyebrow: золото + чорнило */
.plate { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--ink); font: 600 var(--fs-meta)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s-5); }
.plate--paper { background: var(--paper); }
.plate--quiet { background: var(--paper-2); }
.meta { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); color: var(--ink);
  transition: box-shadow var(--t-ui) var(--ease-ui); }
.site-head__in { display: flex; align-items: center; gap: var(--s-5); height: var(--head-h); transition: height .25s var(--ease-ui); }
.site-head.is-compact { box-shadow: 0 1px 0 rgba(33,33,33,.10); }
.site-head.is-compact .site-head__in { height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink); transition: background-color var(--t-ui) var(--ease-ui); }
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current=page] { background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--gold); }
.site-head__cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--r-pill); border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; flex: none; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head__cta { margin-left: auto; }
  .site-head__cta + .nav-toggle { margin-left: 0; }
}
@media (max-width: 640px) {
  .brand img { height: 34px; }
  .site-head__cta { display: none; }
  .site-head__cta + .nav-toggle, .nav-toggle { margin-left: auto; }
  .hide-sm { display: none; }
  .site-head.is-compact .site-head__in { height: 60px; }
}

/* мобільне меню — модальний діалог, суцільний фон */
.menu { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.menu::backdrop { background: var(--paper); }
.menu[open] { display: flex; flex-direction: column; }
.menu__head { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); padding-inline: var(--pad); }
.menu__close { width: 48px; height: 48px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu__close svg { width: 22px; height: 22px; }
.menu__list { list-style: none; margin: 0; padding: var(--s-5) var(--pad); display: grid; gap: 2px; }
.menu__list a { display: flex; align-items: baseline; justify-content: space-between; min-height: 56px; padding: 6px 0;
  font: 500 clamp(2rem, 1.4rem + 3vw, 2.75rem)/1.1 var(--serif); text-decoration: none; color: var(--ink); font-variant-numeric: lining-nums; }
.menu__list a[aria-current=page] { color: var(--gold-deep); }
.menu__foot { margin-top: auto; padding: var(--s-6) var(--pad) var(--s-7); display: grid; gap: var(--s-4); background: var(--paper-2); }
.menu__foot p { font-size: var(--fs-small); color: var(--ink-2); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ── Глави (спільне) ────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--tight { padding-top: var(--s-8); }
.section__head { margin-bottom: var(--s-8); }
.section__head h2 { max-width: 20ch; }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-spread); align-items: start; }
.spread--center { align-items: center; }
@media (max-width: 900px) { .spread { grid-template-columns: 1fr; } }

.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--archive img { filter: var(--tone-archive); }
.cap { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
.cap b { font-weight: 600; color: var(--ink); }
.on-night .cap { color: var(--night-ink-2); }
.on-night .cap b { color: var(--night-ink); }

/* фасад відео / мапи (механіка — ns-embed.css; вигляд — тут) */
.facade { position: relative; border-radius: var(--r); overflow: hidden; background: var(--night); }
.facade .ns-embed { --ns-embed-bg: var(--night); border-radius: inherit; }
.facade .ns-embed > button { position: relative; z-index: 1; }
.facade .ns-embed { aspect-ratio: auto; position: absolute; inset: 0; }
.facade .ns-embed::before { content: none; }
.facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.facade:hover .facade__poster { transform: scale(1.04); }
.facade__play { width: 64px; height: 64px; border-radius: var(--r-pill); border: 0; background: var(--gold); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: transform var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); }
.facade__play:hover { background: var(--gold-hover); transform: scale(1.05); }
.facade__play svg { width: 26px; height: 26px; margin-left: 3px; }
.facade__play--map svg { margin-left: 0; }
.facade__date { position: absolute; left: var(--s-4); top: var(--s-4); z-index: 2; margin: 0; pointer-events: none; }
.facade.is-playing .facade__date { display: none; }

/* ── 1 · Герой «Вода» ───────────────────────────────────────────────────── */
/* Петля з фільму громади «Хрещення 2015» на всю ширину. Двоє людей стоять у лівій
   половині кадру до лінії води, тому заголовок, титр і квиток найближчого зібрання
   займають праву колонку над відкритою водою. Тінь кадру — однотонна. */
.hero { position: relative; background: var(--night); color: #fff; }
.hero__frame { position: relative; height: clamp(600px, calc(100svh - var(--head-h)), 960px); overflow: hidden; background: #46505C;
  clip-path: inset(0 var(--hero-inset, 0px) round var(--hero-r, 0px)); }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 42%; }
.hero__video { opacity: 0; clip-path: inset(0 100% 0 0); }
.hero__video.is-playing { opacity: 1; }
.hero__media::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--wipe, 0) * 100%); width: 2px; background: var(--gold);
  opacity: 0; pointer-events: none; }
.hero__media[style*="--wipe"]::after { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: rgba(20, 19, 17, .30); pointer-events: none; }
.hero__in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: flex-end;
  padding: 0 max(var(--pad), calc((100% - 1600px) / 2)) clamp(24px, 4vh, 48px); }
.hero__col { width: min(480px, 35%); }
.hero__col > .ticket { width: min(600px, 46vw); margin-left: calc(100% - min(600px, 46vw)); }
.hero__kicker { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); }
.hero__title { margin: 0 0 var(--s-4); font-size: clamp(3.5rem, 1rem + 5.6vw, 7rem); line-height: .98; letter-spacing: -0.025em; color: #fff; }
.hero__title em { display: block; font-style: italic; font-weight: 500; }
@media (max-width: 1360px) { .hero__kicker .hide-md { display: none; } }
.hero__titre { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--s-6); font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero__titre .old { font: 400 1.875rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }
.hero__pause { position: absolute; z-index: 3; top: var(--s-5); right: var(--pad); width: 44px; height: 44px; border-radius: var(--r-pill); border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(20,19,17,.42); color: #fff; display: inline-grid; place-items: center; cursor: pointer; transition: background-color var(--t-ui) var(--ease-ui); }
.hero__pause:hover { background: rgba(20,19,17,.7); }
.hero__pause[hidden] { display: none; }
.hero__pause svg { width: 18px; height: 18px; }
.hero__pause .i-play, .hero__pause[aria-pressed=true] .i-pause { display: none; }
.hero__pause[aria-pressed=true] .i-play { display: block; }
.hero :focus-visible { outline-color: #fff; }

/* квиток: основна частина + корінець із перфорацією; надсічки — маска з двох кіл */
.ticket { --seam: 58%; position: relative; display: grid; grid-template-columns: var(--seam) 1fr; color: var(--ink); background: var(--paper); border-radius: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='11'/%3E%3C/svg%3E") calc(var(--seam) - 11px) -11px / 22px 22px no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='11'/%3E%3C/svg%3E") calc(var(--seam) - 11px) calc(100% + 11px) / 22px 22px no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  -webkit-mask-composite: xor, xor;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='11'/%3E%3C/svg%3E") calc(var(--seam) - 11px) -11px / 22px 22px no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='11'/%3E%3C/svg%3E") calc(var(--seam) - 11px) calc(100% + 11px) / 22px 22px no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask-composite: exclude, exclude; }
.ticket__main { padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); display: grid; align-content: center; gap: 6px; }
.ticket__label { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.ticket__when { font: 500 clamp(1.5rem, 1.1rem + .9vw, 2rem)/1.15 var(--serif); font-variant-numeric: lining-nums; text-wrap: balance; }
.ticket__when .nowrap { white-space: nowrap; }
.ticket__where { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.ticket__stub { padding: var(--s-5) var(--s-5) var(--s-5) var(--s-5); display: grid; gap: 4px; align-content: center; justify-items: start; border-left: 2px dashed #CBC4B8; }
.ticket__days { display: grid; gap: 0; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--s-2); }
.ticket__days b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.ticket__stub .btn { height: 48px; padding: 0 22px; }
.ticket__stub .link { min-height: 44px; font-size: var(--fs-small); }

@media (max-width: 1100px) {
  .hero__frame { height: auto; overflow: visible; clip-path: none; background: var(--night); }
  .hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .hero__shade { bottom: auto; aspect-ratio: 16 / 9; width: 100%; }
  .hero__in { position: relative; display: block; padding: 0 var(--pad) var(--s-7); margin-top: -168px; }
  .hero__col { width: 100%; }
  .hero__title em { display: inline; }
  .ticket, .hero__col > .ticket { --seam: 60%; width: 100%; max-width: 640px; margin-left: 0; }
}
@media (max-width: 640px) {
  .hero__media, .hero__shade { aspect-ratio: 3 / 3.6; }
  .hero__in { margin-top: -124px; padding-bottom: var(--s-6); }
  .hero__kicker { display: none; }
  .hero__title { font-size: clamp(2.75rem, 1.4rem + 7vw, 3.5rem); margin-bottom: var(--s-3); }
  .hero__title em { display: block; }
  .hero__titre { margin-bottom: var(--s-5); letter-spacing: .1em; }
  .hero__titre .old { font-size: 1.5rem; }
  .ticket { --seam: 100%; grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket__main { padding: var(--s-5) var(--s-5) var(--s-4); }
  .ticket__stub { border-left: 0; border-top: 2px dashed #CBC4B8; padding: var(--s-4) var(--s-5) var(--s-3); justify-items: stretch; }
  .ticket__days { display: flex; gap: var(--s-4); margin-bottom: var(--s-2); }
  .ticket__stub .btn { width: 100%; }
  .ticket__stub .link { justify-self: center; }
}

/* ── 2 · Цього тижня ────────────────────────────────────────────────────── */
.week__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-spread); align-items: start; }
.week__item .facade { aspect-ratio: 16 / 10; }
.week__item--lead .facade { aspect-ratio: 1 / 1; }
.week__side { display: grid; gap: var(--s-7); }
.week__side h2 { max-width: 14ch; }
.week__side .week__more { margin-top: calc(-1 * var(--s-5)); }
.week__item h3 { margin-top: var(--s-5); }
.week__item p { color: var(--ink-2); max-width: 46ch; }
.week__more { margin-top: var(--s-6); }
@media (max-width: 900px) { .week__grid { grid-template-columns: 1fr; } .week__item--lead { order: 2; } .week__item--lead .facade { aspect-ratio: 16 / 10; } .week__side { display: contents; } .week__side > div:first-child { order: 1; } .week__side > .week__item { order: 3; } .week__side > .week__more { order: 4; margin-top: 0; } }

/* ── 3 · Кредо: анафора (головна й «Віра») ────────────────────────────── */
.litany { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4); }
.litany li { font: 400 clamp(1.25rem, 1.05rem + .6vw, 1.5rem)/1.4 var(--serif); max-width: 34ch; font-variant-numeric: lining-nums; }
.litany em { font-style: italic; color: var(--gold-deep); }
.credo__media .frame { aspect-ratio: 4 / 5; }
.credo__media--static { position: static; }
.credo__media--static .frame { aspect-ratio: 4 / 3.2; }
.creed-full p:first-of-type { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.2; }

/* ── 3 · Кредо на весь екран ────────────────────────────────────────────── */
/* Берег, де громада хрестить, під однотонною тінню; кредо стоїть на воді. */
.credo-full { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; overflow: hidden; color: var(--night-ink); background: #2E3438; isolation: isolate; }
.credo-full__bg { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; }
.credo-full__bg picture, .credo-full__bg img { width: 100%; height: 100%; }
.credo-full__bg img { object-fit: cover; object-position: 50% 60%; }
.credo-full__shade { position: absolute; inset: 0; z-index: -1; background: rgba(22, 21, 19, .58); }
.credo-full__in { position: relative; padding-block: var(--s-10) var(--s-8); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: end; }
.credo-full h2 { font-size: clamp(2.375rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1.04; max-width: 15ch; color: #fff; margin-bottom: var(--s-6); }
.credo-full .litany li { color: var(--night-ink); max-width: 36ch; }
.credo-full .litany em { color: var(--gold); }
.credo-full .link { color: #fff; }
.credo-full .link:hover { color: var(--gold); }
.credo-full :focus-visible { outline-color: var(--gold); }
.credo-full__cap { justify-self: end; max-width: 30ch; font-size: var(--fs-small); line-height: 1.45; color: var(--night-ink-2); text-align: right; }
.credo-full__cap b { color: var(--night-ink); font-weight: 600; }
@media (max-width: 900px) {
  .credo-full__in { grid-template-columns: 1fr; padding-block: var(--s-9) var(--s-7); }
  .credo-full__cap { justify-self: start; text-align: left; }
}

/* ── 4 · Рік громади — стрічка свят ─────────────────────────────────────── */
/* П’ять кадрів поруч; відкрите свято розгортається на ширину, решта стоять
   вузькими смугами з вертикальною назвою. ≤900px — вертикальна гармошка. */
.feasts-sec__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 var(--s-8); margin-bottom: var(--s-7); }
.feasts-sec__head .plate { grid-column: 1 / -1; justify-self: start; }
.feasts-sec__head h2 { margin-bottom: 0; }
.feasts-sec__head .lead { max-width: 40ch; }
.feasts { display: flex; gap: 10px; height: clamp(520px, 62vh, 600px); }
.feast { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--night); color: #fff; }
/* ширина їде лише під час перемикання людиною: зміна розкладки (поворот, ресайз, повний знімок) — без проміжних кадрів */
.feasts.is-switching .feast { transition: flex-grow .8s cubic-bezier(.65,0,.25,1); }
.feast.is-open { flex-grow: 4.6; }
.feast__img[style*="--fx"] { object-position: var(--fx) 50%; }
.feast.is-open .feast__img[style*="--ox"] { object-position: var(--ox) 50%; }
.feast__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s var(--ease-out); }
.feast::after { content: ''; position: absolute; inset: 0; background: rgba(20,19,17,.42); transition: background-color .6s var(--ease-out); pointer-events: none; }
.feast.is-open::after { background: rgba(20,19,17,0); }
.feast:not(.is-open):hover .feast__img { transform: scale(1.04); }
.feast__tab { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: var(--s-5);
  border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.feast__name { font: 500 clamp(1.75rem, 1.2rem + 1.2vw, 2.375rem)/1 var(--serif); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.feast__when { font: 600 var(--fs-meta)/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; color: rgba(255,255,255,.9); }
.feast__tab:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: var(--r); }
.feast.is-open .feast__tab { pointer-events: none; opacity: 0; }
.feast__body { position: absolute; z-index: 3; left: var(--s-5); bottom: var(--s-5); width: min(420px, calc(100% - 2 * var(--s-5))); padding: var(--s-5) var(--s-6) var(--s-4);
  background: var(--paper); color: var(--ink); border-radius: 14px; opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .6s; }
.feast.is-open .feast__body { opacity: 1; transform: none; visibility: visible; transition-delay: .35s, .35s, 0s; }
.feast__body h3 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; margin-bottom: .3em; }
.feast__body p { font-size: 1rem; line-height: 1.55; }
.feast__years { margin-top: var(--s-3); font: 400 1.125rem/1.4 var(--serif); color: var(--ink); }
.feast__cap { margin-top: var(--s-2); font-size: var(--fs-small) !important; color: var(--ink-2); }
.feast__cap b { color: var(--ink); font-weight: 600; }
.feast__body .link { margin-top: 2px; }
html.no-js .feasts { display: grid; grid-template-columns: 1fr; height: auto; }
html.no-js .feast { min-height: 520px; }
html.no-js .feast__body { opacity: 1; visibility: visible; transform: none; }
html.no-js .feast__tab { display: none; }
@media (max-width: 900px) {
  .feasts-sec__head { grid-template-columns: 1fr; gap: var(--s-4) 0; margin-bottom: var(--s-6); }
  .feasts-sec__head .plate { margin-bottom: 0; }
  .feasts { flex-direction: column; height: auto; gap: 8px; }
  .feast { flex: none; height: 76px; }
  .feast.is-open { height: auto; }
  .feast__tab { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 var(--s-5); }
  .feast__name, .feast__when { writing-mode: horizontal-tb; transform: none; }
  .feast__name { font-size: 1.625rem; }
  .feast.is-open .feast__img { position: relative; height: auto; aspect-ratio: 16 / 10; }
  .feast__body { position: relative; left: auto; bottom: auto; width: auto; border-radius: 0; padding: var(--s-5); display: none; }
  .feast.is-open .feast__body { display: block; }
  .feast__body h3 { font-size: 2rem; }
}

/* ── 5 · Літопис — єдина темна глава ────────────────────────────────────── */
/* Рік за роком: велике число року липне до верху, поки йде його сторінка;
   кадри лежать шарами й на скролі розходяться з різною швидкістю. */
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .plate { background: var(--gold); color: var(--ink); }
.chron { padding-top: var(--section); }
.chron__intro { padding-bottom: var(--s-9); }
.chron__intro h2 { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.02; max-width: 13ch; margin-bottom: var(--s-5); }
.chron__intro p { color: var(--night-ink-2); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.55; }
.chron__rows { list-style: none; margin: 0 auto; display: grid; gap: var(--s-9); }
.chron__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--s-7); align-items: start; }
.chron__yearcol { align-self: stretch; }
.chron__year { position: sticky; top: calc(var(--head-h) + var(--s-6)); font: 400 clamp(6rem, 2.5rem + 8vw, 12.5rem)/.86 var(--serif); letter-spacing: -0.03em;
  color: var(--gold); font-variant-numeric: oldstyle-nums proportional-nums; transition: color .5s var(--ease-out), opacity .5s var(--ease-out); }
.chron__layers { position: relative; padding-bottom: var(--s-8); }
.chron__l { margin: 0; }
.chron__l .frame { aspect-ratio: 4 / 3; background: var(--night-2); }
.chron__l--tall .frame { aspect-ratio: 9 / 10; width: 78%; }
.chron__l--float { position: absolute; right: 0; bottom: 0; width: 56%; z-index: 2; }
.chron__l--float .frame { aspect-ratio: 16 / 10; box-shadow: 0 0 0 6px var(--night); }
.chron__l--chip { width: 62%; }
.chron__row--flip .chron__l--float { right: auto; left: -8%; }
.chron__row--flip .chron__l--main { margin-left: 12%; }
.chron__text { padding-top: var(--s-2); }
.chron__text h3 { font-size: var(--fs-h3); font-weight: 500; color: var(--night-ink); margin-bottom: .5em; }
.chron__text p { color: var(--night-ink-2); }
.chron__text p + p { margin-top: var(--s-3); }
.chron__note { font: 400 1.125rem/1.4 var(--serif); color: var(--gold) !important; }
.chron__outro { padding-block: var(--s-9) var(--section); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; }
.chron__outro p { color: var(--night-ink-2); max-width: 52ch; }
/* фінал стоїть у сітці рядків: кнопка під числами років, підпис — у колонці тексту;
   середня колонка лишається вільною для плаваючого кадру останнього року */
@media (min-width: 1101px) {
  .chron__outro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--s-7); }
  .chron__outro .btn { grid-column: 1; justify-self: start; }
  .chron__outro p { grid-column: 3; }
}
/* рух: активна сторінка — золоте число, решта тьмяніють */
html.has-js:not(.is-static) .chron__row .chron__year { opacity: .28; }
html.has-js:not(.is-static) .chron__row.is-active .chron__year { opacity: 1; }
@media (max-width: 1100px) {
  .chron__row { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
  .chron__text { grid-column: 2; }
}
@media (max-width: 900px) {
  .chron__intro { padding-bottom: var(--s-7); }
  .chron__rows { gap: var(--s-8); }
  .chron__row { grid-template-columns: 1fr; gap: var(--s-4); }
  .chron__text { grid-column: auto; }
  .chron__year { position: static; font-size: clamp(4.5rem, 3rem + 6vw, 6rem); }
  html.has-js:not(.is-static) .chron__row .chron__year { opacity: 1; }
  .chron__layers { padding-bottom: 0; }
  .chron__l--float { display: none; }
  .chron__l--tall .frame { width: 100%; aspect-ratio: 4 / 3; }
  .chron__row--flip .chron__l--main { margin-left: 0; }
  .chron__text p + p { display: none; }
  .chron__text p.cap { display: block; }
}

/* титульна картка запису — коли кадру немає */
.titlecard { display: grid; align-content: center; justify-items: start; gap: var(--s-3); aspect-ratio: 16 / 10; padding: var(--s-7); border-radius: var(--r);
  background: var(--night-2); color: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(207,156,99,.35); }
.titlecard__kind { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.titlecard__name { font: 500 clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem)/1.08 var(--serif); font-variant-numeric: lining-nums; text-wrap: balance; }
.titlecard__date { font: 400 1.375rem/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--night-ink-2); }
.titlecard--small { aspect-ratio: auto; padding: var(--s-5) var(--s-6); gap: var(--s-2); box-shadow: inset 0 0 0 1px rgba(207,156,99,.35), 0 0 0 6px var(--night); }
.titlecard--small .titlecard__name { font-size: clamp(1.25rem, 1rem + .6vw, 1.625rem); }
.titlecard--small .titlecard__date { font-size: 1.125rem; }
.titlecard--paper { background: var(--paper-2); color: var(--ink); box-shadow: none; }
.titlecard--paper .titlecard__kind { color: var(--gold-deep); }
.titlecard--paper .titlecard__date { color: var(--ink-2); }

/* роки аудіоархіву з кількістю записаних зібрань */
.sermon-years { display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.sermon-years__path { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.sermon-years__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4) var(--s-4); }
.sermon-years__grid li { display: grid; gap: 2px; }
.sermon-years__grid b { font: 400 1.625rem/1 var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; }
.sermon-years__grid span { font-size: .875rem; line-height: 1.3; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.sermon-years--night { background: var(--night-2); color: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(207,156,99,.35); }
.sermon-years--night .sermon-years__path { color: var(--gold); }
.sermon-years--night .sermon-years__grid b { color: var(--night-ink); }
.sermon-years--night .sermon-years__grid span { color: var(--night-ink-2); }
@media (max-width: 640px) {
  .mosaic__item .titlecard { padding: var(--s-4); gap: var(--s-2); }
  .mosaic__item .titlecard__name { font-size: 1.125rem; }
  .mosaic__item .titlecard__date { font-size: 1rem; }
  .mosaic__item .titlecard__kind { letter-spacing: .08em; }
}
@media (max-width: 640px) { .sermon-years { padding: var(--s-5); } .sermon-years__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sermon-years__grid b { font-size: 1.375rem; } }

/* ── 6 · Вперше в неділю ────────────────────────────────────────────────── */
.first h2 { max-width: 13ch; }
.first__where { font-size: var(--fs-lead); margin-bottom: var(--s-5); max-width: 36ch; }
.first__facts { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-6); }
.first__facts dt { font: 600 var(--fs-meta)/1.9 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.first__facts dd { font-variant-numeric: lining-nums; }
.first__actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.map-facade { aspect-ratio: 4 / 3; }
.map-facade .facade__poster { filter: grayscale(1) contrast(1.02) brightness(1.02); }
.map-facade + .cap { margin-top: var(--s-2); }
@media (min-width: 901px) { .first .spread > :first-child { order: 2; } }

/* ── Колофон ────────────────────────────────────────────────────────────── */
.colophon { background: var(--paper-2); color: var(--ink); padding-block: var(--s-9) var(--s-7); font-size: var(--fs-small); }
.colophon__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s-7); }
.colophon__brand img { height: 36px; width: auto; margin-bottom: var(--s-4); }
.colophon__brand p { color: var(--ink-2); max-width: 32ch; }
.colophon h2 { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s-3); }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.colophon a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); gap: 6px; }
.colophon a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.colophon a svg { width: 14px; height: 14px; }
.colophon address { font-style: normal; line-height: 1.7; }
.colophon__base { margin-top: var(--s-8); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  justify-content: space-between; color: var(--ink-2); font-size: var(--fs-meta); letter-spacing: .02em; }
@media (max-width: 1000px) { .colophon__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .colophon__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ── Внутрішні сторінки ─────────────────────────────────────────────────── */
.page-hero { padding-block: var(--s-8) var(--s-8); }
.page-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-spread); align-items: end; }
.page-hero h1 { margin-bottom: 0; max-width: 12ch; }
.page-hero .lead { max-width: 40ch; }
.crumbs { margin-bottom: var(--s-5); font-size: var(--fs-small); color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: '/'; color: var(--ink-2); flex-shrink: 0; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* пара днів (зібрання) */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.day { background: var(--paper-2); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.day .frame { border-radius: 0; aspect-ratio: 16 / 9; }
.day__body { padding: var(--s-6); }
.day__when { font: 500 clamp(2.5rem, 1.6rem + 3vw, 4.25rem)/1 var(--serif); font-variant-numeric: lining-nums; margin-bottom: var(--s-3); }
.day__body p { color: var(--ink-2); max-width: 40ch; }
@media (max-width: 900px) { .days { grid-template-columns: 1fr; } }

/* зібрання: одна широка сцена залу + перелік частин */
.scene__head { margin-bottom: var(--s-7); }
.scene__head h2 { margin-bottom: 0; }
.scene__wide { margin-block: 0 var(--s-8); }
.scene__wide .frame { aspect-ratio: 1280 / 480; }
.scene__wide .cap { margin-top: var(--s-3); }
.scene__parts { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
.scene__intro { position: sticky; top: calc(var(--head-h) + var(--s-6)); max-width: 30ch; }
.parts { margin: 0; display: grid; gap: var(--s-6); }
.part { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); align-items: baseline; padding: var(--s-5) var(--s-6); border-radius: var(--r); background: var(--paper-2); }
.part dt { font: 500 clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem)/1.08 var(--serif); }
.part dd { margin: 0; }
.part dd p { color: var(--ink-2); max-width: 46ch; }
.part__rec { margin-top: var(--s-2); font-size: var(--fs-small); }
@media (max-width: 900px) {
  .scene__parts { grid-template-columns: 1fr; gap: var(--s-5); }
  .scene__intro { position: static; }
  .part { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5); }
  .scene__wide .frame { aspect-ratio: 16 / 9; }
  .scene__wide .frame img { object-position: 38% 50%; }
}

/* FAQ у тексті */
.faq-text { display: grid; gap: var(--s-7); }
.faq-text h3 { margin-bottom: .4em; }
.faq-text p { max-width: 58ch; }
.faq-text p + p { margin-top: var(--s-3); }
.sticky-aside { position: sticky; top: calc(var(--head-h) + var(--s-6)); }
@media (max-width: 900px) { .sticky-aside { position: static; } }

/* архів — роки й записи: липке число року, мозаїка кадрів, згорнутий перелік */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.annal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); padding-block: var(--s-8); }
.annal__head { position: sticky; top: calc(var(--head-h) + 88px); align-self: start; }
.annal__year { font: 400 clamp(5rem, 2.6rem + 6.4vw, 10rem)/.86 var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; letter-spacing: -0.03em; margin-bottom: var(--s-4); }
.annal__count { font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--s-3); }
.annal__head p:not(.annal__count) { color: var(--ink-2); max-width: 34ch; }
.annal__body { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.mosaic { display: grid; gap: 10px; }
.mosaic--1 { grid-template-columns: 1fr; height: clamp(260px, 27vw, 400px); }
.mosaic--2 { grid-template-columns: 1.45fr 1fr; height: clamp(230px, 21vw, 310px); }
.mosaic--3 { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; height: clamp(280px, 28vw, 410px); }
.mosaic--3 > :first-child { grid-row: 1 / 3; }
.mosaic:has(.mosaic__item--wide), .mosaic:not(:has(.frame)) { height: auto; }
.mosaic:not(:has(.frame)) .titlecard { min-height: 200px; }
.mosaic__item { position: relative; margin: 0; min-height: 0; min-width: 0; }
.mosaic__item .frame { height: 100%; }
.mosaic__item .titlecard { height: 100%; aspect-ratio: auto; padding: var(--s-6); }
.mosaic__item .titlecard__name { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); }
.mosaic__cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 12px; border-radius: var(--r-pill); background: var(--paper);
  font-size: .875rem; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosaic__cap b { color: var(--ink); font-weight: 600; }
.mosaic__cap svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: var(--ink); }
/* картка, що сама є записом року: уся площа веде на запис, окремого рядка в переліку немає */
.mosaic__go { position: absolute; inset: 0; z-index: 2; border-radius: var(--r); }
.mosaic__go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mosaic__item--link .titlecard { transition: background-color var(--t-ui) var(--ease-ui); }
.mosaic__item--link:hover .titlecard { background: #E7E4DE; }
.mosaic__item--link .frame img { transition: transform .6s var(--ease-out); }
.mosaic__item--link:hover .frame img { transform: scale(1.03); }
.titlecard__go { display: inline; margin-top: var(--s-2); font: 500 var(--fs-small)/1.5 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.titlecard__go svg { display: inline-block; width: 16px; height: 16px; margin-left: 2px; vertical-align: -3px; }
.annal__toggle { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--ink);
  font: 500 1rem/1 var(--sans); cursor: pointer; list-style: none; user-select: none; transition: background-color var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui); }
.annal__toggle::-webkit-details-marker { display: none; }
.annal__toggle:hover { background: var(--paper-2); }
.annal__toggle svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.annal__more[open] > .annal__toggle { background: var(--ink); color: var(--paper); }
.annal__more[open] > .annal__toggle svg { transform: rotate(180deg); }
.annal__more[open] > .annal__list { margin-top: var(--s-4); }
.records { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.record { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5);
  background: var(--paper-2); border-radius: var(--r); }
.record[hidden] { display: none; }
.record__date { font: 500 var(--fs-small)/1.3 var(--sans); font-variant-numeric: lining-nums tabular-nums; color: var(--ink-2); }
.record__title { font-weight: 500; line-height: 1.35; }
.record__kind { display: block; margin-top: 2px; font: 600 .75rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.record { position: relative; transition: background-color var(--t-ui) var(--ease-ui); }
.record__go { position: absolute; inset: 0; border-radius: var(--r); }
.record__go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.record:hover { background: #E7E4DE; }
.record:hover .record__title { text-decoration: underline; text-underline-offset: 3px; }
.annal__list .calendar + .records { margin-top: var(--s-2); }
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.calendar li[hidden] { display: none; }
.calendar a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: var(--s-2) var(--s-4); border-radius: var(--r);
  background: var(--paper-2); text-decoration: none; transition: background-color var(--t-ui) var(--ease-ui); }
.calendar a:hover { background: var(--gold); }
.calendar b { font: 500 1.125rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.calendar span { font-size: .875rem; color: var(--ink-2); }
.calendar a:hover span { color: var(--ink); }
@media (max-width: 900px) {
  .annal { grid-template-columns: 1fr; gap: var(--s-5); }
  .annal__head { position: static; }
  .mosaic, .mosaic--1, .mosaic--2, .mosaic--3 { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mosaic__item { aspect-ratio: 4 / 3; }
  .mosaic__item:has(.titlecard), .mosaic__item--wide { aspect-ratio: auto; }
  .mosaic--1 > .mosaic__item, .mosaic--3 > :first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  /* текстові картки (титр запису, сітка тек) — за висотою змісту, інакше 16:9 зрізає низ */
  .mosaic--1 > .mosaic__item--wide, .mosaic--1 > .mosaic__item:has(.titlecard) { aspect-ratio: auto; }
  /* кадр і титр запису — стовпчиком: кадр на всю ширину без зрізу, титр смугою під ним */
  .mosaic:has(.titlecard):has(.frame) { grid-template-columns: 1fr; }
  .mosaic:has(.titlecard) > .mosaic__item:has(.frame) { aspect-ratio: 16 / 9; }
  .mosaic:has(.titlecard):has(.frame) .titlecard { padding: var(--s-5); }
  .record { grid-template-columns: 1fr; padding-left: var(--s-4); }
  .record__date { grid-column: 1 / -1; }
}

/* віра */
.verses { columns: 2; column-gap: var(--s-9); }
.verse { break-inside: avoid; margin-bottom: var(--s-7); }
.verse q { quotes: '«' '»'; font: italic 400 clamp(1.25rem, 1.05rem + .5vw, 1.5rem)/1.45 var(--serif); display: block; max-width: 34ch; font-variant-numeric: lining-nums; }
.verse cite { display: block; margin-top: var(--s-2); font: 600 var(--fs-meta)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--gold-deep); }
@media (max-width: 900px) { .verses { columns: 1; } }
.creed-full p { font: 400 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1.45 var(--serif); max-width: 32ch; font-variant-numeric: lining-nums; }
.creed-full p + p { margin-top: var(--s-4); }

/* документ-титр */
.doc .frame { aspect-ratio: 16 / 9; }

/* наживо: останній ефір — головне медіа сторінки */
.live-hero__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-spread); align-items: end; margin-bottom: var(--s-7); }
.live-hero__head h1 { margin-bottom: 0; max-width: 9ch; }
.live-hero__head .first__actions { margin-top: var(--s-5); }
.live-player { margin: 0; }
.live-player__screen { aspect-ratio: 16 / 9; }
.live-player__badge { position: absolute; z-index: 2; left: var(--s-5); top: var(--s-5); display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 16px;
  border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 600 var(--fs-meta)/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.live-player__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-deep); flex: none; }
.facade.is-playing .live-player__badge { display: none; }
.doc--small { margin-top: var(--s-7); max-width: 520px; }
@media (max-width: 900px) {
  .live-hero .wrap { display: flex; flex-direction: column; }
  .live-hero__head { display: contents; }
  .live-hero__head > :first-child { order: 1; margin-bottom: var(--s-5); }
  .live-player { order: 2; margin-bottom: var(--s-6); }
  .live-hero__head > :last-child { order: 3; }
  .live-player__screen { aspect-ratio: 4 / 3; }
  .live-player__badge { left: var(--s-3); top: var(--s-3); font-size: .8125rem; max-width: calc(100% - 24px); }
}
@media (max-width: 640px) { .live-player__badge > span:last-child { display: grid; } }

/* ── Форма «Напишіть нам» (модуль contact) ──────────────────────────────── */
.form { display: grid; gap: var(--s-5); max-width: 560px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 500; font-size: 1rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid #8C877F;
  background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); transition: border-color var(--t-ui) var(--ease-ui), box-shadow var(--t-ui) var(--ease-ui); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,95,191,.25); }
.field [aria-invalid=true] { border-color: #B3261E; }
.field__err { color: #B3261E; font-size: .9375rem; min-height: 1.2em; }
.field__hint { color: var(--ink-2); font-size: .9375rem; }
.form__done { padding: var(--s-6); border-radius: var(--r); background: var(--paper-2); }
.form__done h3 { margin-bottom: .3em; }
.form__done[hidden] { display: none; }
[data-form-body][hidden] { display: none !important; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.lost { padding-block: var(--s-10); }
.lost__num { font: 400 clamp(7rem, 4rem + 12vw, 14rem)/.9 var(--serif); color: var(--gold-deep); font-variant-numeric: oldstyle-nums; margin-bottom: var(--s-5); }

/* ── Лист компонентів ───────────────────────────────────────────────────── */
.kit-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; padding-block: var(--s-5); }
.kit-swatch { width: 132px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); font-size: .875rem; }
.kit-swatch i { display: block; height: 72px; }
.kit-swatch span { display: block; padding: 8px 12px; }

/* ── Рух: стани (решта — ns-motion.css) ─────────────────────────────────── */
html.has-js:not(.is-static) .hero__media.is-pre { opacity: 0; transform: scale(1.06); }
html.has-js:not(.is-static) .hero__title.is-pre { opacity: 0; }
html.has-js:not(.is-static) .ticket.is-pre { opacity: 0; transform: translateY(18px); }
html.has-js:not(.is-static) .hero__fade.is-pre { opacity: 0; transform: translateY(16px); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__media, .hero__title, .ticket, .hero__fade { clip-path: none !important; transform: none !important; opacity: 1 !important; }
}
@media print { .site-head, .menu, .colophon { display: none; } }

/* шапкова кнопка на головній з'являється, коли кнопка героя пішла з екрана */
.is-home .site-head__cta { transition: opacity var(--t-ui) var(--ease-ui), visibility var(--t-ui); }
.is-home:not(.hero-cta-gone) .site-head__cta { opacity: 0; visibility: hidden; }
/* з повним меню: поки квиток на екрані, кнопка складена в нуль і меню стоїть під правим краєм — без порожнього місця */
@media (min-width: 1101px) {
  .is-home .site-head__cta { max-width: 280px; overflow: hidden; white-space: nowrap;
    transition: opacity var(--t-ui) var(--ease-ui), visibility var(--t-ui), max-width .45s var(--ease-out), padding .45s var(--ease-out), margin .45s var(--ease-out); }
  .is-home:not(.hero-cta-gone) .site-head__cta { max-width: 0; padding-inline: 0; margin-left: calc(-1 * var(--s-5)); border-width: 0; }
}

/* ── Доповнення внутрішніх сторінок ─────────────────────────────────────── */
.section--flush { padding-top: 0; }
.page-hero--tight { padding-bottom: var(--s-7); }
.annal[hidden] { display: none; }
.annals { padding-bottom: var(--s-9); }
.filter-bar { position: sticky; top: var(--head-h); z-index: 20; background: var(--paper); padding-block: var(--s-3); }
.site-head.is-compact + .menu + main .filter-bar { top: 64px; }
.chron-hero__years { font: 400 clamp(5rem, 2rem + 11vw, 11rem)/.9 var(--serif); color: var(--gold-deep); letter-spacing: -0.02em; margin-bottom: var(--s-6); font-variant-numeric: oldstyle-nums; }
.yt-feed:empty { display: none; }
.yt-feed { margin-top: var(--s-6); }
.audio { background: var(--paper-2); }
.contact-where__addr { font-size: var(--fs-h2); }
.contact-where__h { font-size: var(--fs-h3); margin-top: var(--s-8); }
.contact-where .map-facade { margin-top: var(--s-5); }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-form { background: var(--paper-2); border-radius: var(--r); padding: var(--s-7); align-self: start; }
.contact-form h2 { font-size: var(--fs-h2); }
.contact-form .lead { margin-bottom: var(--s-6); }
.talk { border-top: 0; }
.talk h2 { margin-bottom: 0; max-width: 16ch; }
.verses-section { background: var(--paper-2); }
blockquote.verse { margin: 0 0 var(--s-7); padding: 0; }
@media (max-width: 640px) {
  .contact-form { padding: var(--s-5); }
  .filter-bar { position: static; }
  .filter { gap: var(--s-2); }
}
/* сусідні білі глави не складають відступи */
.section:not(.band) + .section:not(.band) { padding-top: 0; }
.band { background: var(--paper-2); }
.recent { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.recent a { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: var(--s-3) var(--s-5); border-radius: var(--r);
  background: var(--paper-2); text-decoration: none; transition: background-color var(--t-ui) var(--ease-ui); }
.recent a:hover { background: var(--gold); }
.recent b { font: 500 1.25rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.recent span { font-size: .875rem; color: var(--ink-2); }
.recent a:hover span { color: var(--ink); }
@media (max-width: 900px) { .recent { grid-template-columns: 1fr 1fr; } }

@media (max-width: 640px) {
  .record { grid-template-columns: 5.4rem 1fr; gap: 10px; padding: 12px 14px; }
  .record__date { grid-column: auto; font-size: .875rem; }
  .record__title { font-size: 1rem; }
  .day .frame { aspect-ratio: 16 / 8; }
  .day__body { padding: var(--s-5); }
  .annal { padding-block: var(--s-6); gap: var(--s-4); }
  .annal__year { font-size: 4rem; }
  .annal__head .frame { aspect-ratio: 16 / 9; }
  .calendar { grid-template-columns: repeat(3, 1fr); }
  .calendar a { min-height: 56px; padding: 6px 10px; }
  .calendar b { font-size: 1rem; }
}

/* мобільний: мітки й колофон не дрібніші за 14 px */
@media (max-width: 640px) {
  :root { --fs-meta: 0.875rem; }
  .record__kind { font-size: 0.875rem; }
}
