/* ==========================================================================
   Нілачала — лендинг
   Mobile-first: базові правила написані для телефону, @media (min-width) — для ширших екранів.
   Кольори задає data-scheme; JS плавно перефарбовує сторінку під блок посередині екрана.
   ========================================================================== */

/* Кольорові токени зареєстровані, щоб браузер міг їх плавно анімувати */
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #17142c; }
@property --fg     { syntax: '<color>'; inherits: true; initial-value: #f3ece0; }
@property --muted  { syntax: '<color>'; inherits: true; initial-value: #bdb5c6; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #f4b63f; }
@property --line   { syntax: '<color>'; inherits: true; initial-value: rgba(243, 236, 224, .14); }
@property --card   { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .04); }
@property --btn-bg { syntax: '<color>'; inherits: true; initial-value: #f4b63f; }
@property --btn-fg { syntax: '<color>'; inherits: true; initial-value: #17142c; }

:root {
  --font-serif: 'Literata', Georgia, 'Times New Roman', serif;
  --font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lede: clamp(1.125rem, 1.04rem + .4vw, 1.375rem);
  --fs-h1: clamp(2.375rem, 1.55rem + 3.9vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.6vw, 3.75rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .45vw, 1.5rem);

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 12vw, 168px);
  --max: 1240px;
  --radius: clamp(16px, 2vw, 24px);
  --header-h: 64px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── Кольорові схеми блоків ─────────────────────────────────────────────── */
html[data-scheme="night"], html:not(.js) [data-scheme="night"] {
  --bg: #17142c; --fg: #f3ece0; --muted: #bdb5c6; --accent: #f4b63f;
  --line: rgba(243, 236, 224, .14); --card: rgba(255, 255, 255, .04);
  --btn-bg: #f4b63f; --btn-fg: #17142c;
}
html[data-scheme="indigo"], html:not(.js) [data-scheme="indigo"] {
  --bg: #26205a; --fg: #f5efe4; --muted: #cbc4dd; --accent: #f7c35c;
  --line: rgba(245, 239, 228, .16); --card: rgba(255, 255, 255, .06);
  --btn-bg: #f4b63f; --btn-fg: #17142c;
}
html[data-scheme="paper"], html:not(.js) [data-scheme="paper"] {
  --bg: #f6f0e6; --fg: #1d1a2e; --muted: #5e586b; --accent: #b4441a;
  --line: rgba(29, 26, 46, .12); --card: #fffaf1;
  --btn-bg: #1d1a2e; --btn-fg: #f6f0e6;
}
html[data-scheme="saffron"], html:not(.js) [data-scheme="saffron"] {
  --bg: #f0a536; --fg: #1d1a2e; --muted: #44301c; --accent: #6b1f0f;
  --line: rgba(29, 26, 46, .2); --card: rgba(255, 248, 235, .32);
  --btn-bg: #1d1a2e; --btn-fg: #f6f0e6;
}
/* Зелений туласі — перший екран «Табло» */
html[data-scheme="tulasi"], html:not(.js) [data-scheme="tulasi"] {
  --bg: #1d3a2e; --fg: #f3e6c9; --muted: #c9cfb4; --accent: #f2a93b;
  --line: rgba(243, 230, 201, .18); --card: rgba(255, 255, 255, .05);
  --btn-bg: #f2a93b; --btn-fg: #13241c;
}
html:not(.js) [data-scheme] { background: var(--bg); color: var(--fg); }

/* Перефарбування під блок: токени перемикаються одразу, а плавно змінюється лише фон — окремий нерухомий шар під сторінкою.
   Плавна анімація самих токенів на html змушувала браузер щокадру перераховувати стилі всієї сторінки, і скрол гальмував;
   колір фону одного шару браузер змінює майже задарма. Кнопки й рамки згладжують зміну власними короткими переходами. */
html.js::after {
  content: ''; position: fixed; left: 0; right: 0; top: 0; z-index: -2; pointer-events: none;
  height: 100vh; height: 100lvh;
  background-color: var(--bg);
  transition: background-color .7s var(--ease);
}

/* ── База ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* Якорі: блок стає на самий верх екрана. Відступу під шапку не додаємо — при прокрутці вниз вона ховається,
   і на його місці виднівся край попереднього блоку; у секцій свій верхній відступ, більший за шапку. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b { font-weight: 600; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.nowrap, .w-glue { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ── Типографіка ────────────────────────────────────────────────────────── */
.h2 { font: 600 var(--fs-h2)/1.08 var(--font-serif); letter-spacing: -.015em; text-wrap: balance; }
.h2 em, .hero__title em, .final__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.micro { font-size: .875rem; color: var(--muted); }

/* ── Кнопки й посилання ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease-out);
}
.btn .icon:last-child { transition: transform .35s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { scale: .97; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--fg)); }
.btn--ghost { border-color: color-mix(in srgb, var(--fg) 45%, transparent); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: .92rem; }

/* Одна головна кнопка в блоці, друга дія — текстове посилання: на телефоні кнопки не стоять стовпчиком */
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.actions .link-arrow { align-self: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding-block: 8px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: gap .35s var(--ease-out), background-size .35s var(--ease-out);
}
.link-arrow:hover { gap: 16px; }

@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
  .actions .link-arrow { align-self: auto; }
}

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--fg);
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s;
}
.admin-bar .header { top: 46px; }
@media (min-width: 783px) { .admin-bar .header { top: 32px; } }
.header.is-solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-110%); }
.header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
/* Логотип як маска: фарбується в колір тексту поточного блоку */
.brand__logo {
  display: block; width: 52px; aspect-ratio: 200 / 176; background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.brand__logo--lg { width: 96px; }
.brand__name { font: 600 1.3rem/1 var(--font-serif); }

.nav { display: none; }
.header__cta { display: none; }

.burger {
  position: relative; width: 48px; height: 48px; margin-right: -12px;
  border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.burger__line {
  position: absolute; left: 13px; width: 22px; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: top .45s var(--ease-out), transform .45s var(--ease-out);
}
.burger__line:nth-child(1) { top: 20px; }
.burger__line:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: -1; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg); color: var(--fg);
  clip-path: circle(0% at calc(100% - 44px) 32px); visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 32px); visibility: visible; transition: clip-path .8s var(--ease-out); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font: 600 clamp(2rem, 8vw, 2.75rem)/1.15 var(--font-serif); text-decoration: none;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu__foot { display: flex; flex-direction: column; gap: 20px; }
.menu__contact { display: inline-flex; align-items: center; gap: 12px; font-size: 1.125rem; text-decoration: none; }

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .nav { display: flex; gap: clamp(20px, 2.5vw, 36px); }
  .nav a {
    position: relative; padding-block: 8px; font-size: .95rem; text-decoration: none;
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat;
    transition: background-size .35s var(--ease-out);
  }
  .nav a:hover { background-size: 100% 1.5px; }
  .header__cta { display: inline-flex; }
  .burger, .menu { display: none; }
  .brand__logo { width: 60px; }
}

/* ── 1. Перший екран ────────────────────────────────────────────────────── */
.hero, .final, .murti {
  --fg: #f3ece0; --muted: #e1d9cc; --accent: #f6bd4f; --btn-bg: #f4b63f; --btn-fg: #17142c;
  --line: rgba(243, 236, 224, .3);
  color: var(--fg);
}
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 calc(44px + env(safe-area-inset-bottom));
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #17142c; }
.hero__img { position: absolute; inset: -10% 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(18, 15, 38, .6) 0%, rgba(18, 15, 38, .05) 22%, rgba(18, 15, 38, .25) 42%,
    rgba(18, 15, 38, .86) 64%, rgba(18, 15, 38, .97) 100%);
}
.hero__inner { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font: 600 var(--fs-h1)/1.04 var(--font-serif); letter-spacing: -.02em; max-width: 13ch; text-wrap: balance; }
.hero__lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--muted); max-width: 42ch; text-wrap: pretty; }
.hero .actions { margin-top: 8px; }

@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 96px; }
  .hero__media { left: auto; width: 56%; background: none; }
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 26%, transparent 55%),
      linear-gradient(0deg, rgba(18, 15, 38, .55) 0%, transparent 35%);
  }
  .hero__inner { gap: 26px; }
  .hero__title { max-width: 11ch; }
  .js .hero__media { clip-path: inset(0 0 0 30%); transition: clip-path 1.6s var(--ease-out); }
  .js.is-loaded .hero__media { clip-path: inset(0 0 0 0); }
}

/* ── 1б. Перший екран «Табло» ───────────────────────────────────────────── */
.hb {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 20px) 0 calc(28px + env(safe-area-inset-bottom));
}
/* Фото — лише тонований фон знизу: сіре, напівпрозоре, над ним заголовок на чистому зеленому */
.hb__media {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, .6) 58%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, .6) 58%, #000 100%);
}
.hb__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .24; }
.hb__inner { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.hb__title { font: 600 clamp(2.25rem, 1.5rem + 3.4vw, 4.75rem)/1.03 var(--font-serif); letter-spacing: -.02em; max-width: 15ch; text-wrap: balance; }
.hb__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hb__foot { display: grid; gap: 22px; margin-top: auto; }
.hb__cta { display: grid; gap: 16px; }

/* Табло: клітинки з перекидними літерами */
.board { --cols: 12; display: grid; gap: 12px; }
.board__panel {
  position: relative; padding: 8px; border-radius: 14px; background: #0e1d17;
  box-shadow: inset 0 0 0 1px rgba(243, 230, 201, .08), 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.board__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; container-type: inline-size; }
html:not(.js) .board__grid { display: none; }
.flap {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 7; overflow: hidden;
  border-radius: 3px; perspective: 240px;
  background: linear-gradient(180deg, #213a2f 0 50%, #1a3026 50% 100%);
}
.flap.is-blank { background: linear-gradient(180deg, #172c23 0 50%, #13261d 50% 100%); }
.flap::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(0, 0, 0, .55); }
.flap__ch {
  display: block; transform-origin: 50% 50%; backface-visibility: hidden;
  font: 500 calc(100cqi / var(--cols) * .64)/1 'Oswald', 'Arial Narrow', sans-serif; color: #f7ebd0;
}
.board__static { padding: 10px 12px; font: 500 1.5rem/1.2 'Oswald', 'Arial Narrow', sans-serif; text-transform: uppercase; color: #f7ebd0; }
.js .board__static { display: none; }
.board__meta { display: flex; align-items: center; gap: 14px; }
.board__count { font: 500 .95rem/1 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.board__progress { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.board__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.board .link-arrow { padding-block: 6px; white-space: nowrap; }

/* Планшет і ширше: зміст першого екрана зібраний по центру, без порожнечі посередині */
@media (min-width: 600px) {
  .hb__inner { justify-content: center; }
  .hb__title { max-width: 20ch; }
  .hb__foot { margin-top: 12px; }
}
@media (min-width: 760px) {
  .board__panel { padding: 12px; border-radius: 18px; }
  .board__grid { gap: 4px; }
}
@media (min-width: 900px) {
  .hb { padding-bottom: 56px; }
  .hb__inner { gap: 32px; justify-content: center; }
  .hb__title { max-width: 20ch; }
  .hb__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; margin-top: 8px; }
  .hb__cta { justify-items: end; text-align: right; }
  .hb__media { left: 40%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
  .hb__media img { opacity: .2; }
}

/* ── 1в. Перший екран «Арка» ────────────────────────────────────────────── */
.ha {
  position: relative; overflow-x: clip; display: flex;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 16px) 0 calc(28px + env(safe-area-inset-bottom));
}
.ha__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ha__grid { flex: 1; display: grid; gap: 22px; align-content: center; }
.ha__title { position: relative; z-index: 2; font: 600 clamp(2.25rem, 1.5rem + 3.4vw, 5.1rem)/1.03 var(--font-serif); letter-spacing: -.02em; text-wrap: balance; }
.ha__title em { font-style: italic; font-weight: 500; color: var(--accent); }

/* Арка: фото обрізане різьбленим контуром, поруч — тонкий золотий контур тієї ж арки зі зсувом */
.ha__arch { position: relative; height: clamp(250px, 36svh, 460px); margin: 10px 8px 6px; }
.ha__photo { position: absolute; inset: 0; overflow: hidden; background: #241f40; -webkit-clip-path: url(#nl-arch-wide); clip-path: url(#nl-arch-wide); }
.ha__photo img { width: 100%; height: 100%; object-fit: cover; }
.ha__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 15, 38, .6)); }
.ha__outline {
  position: absolute; left: -10px; top: -10px; width: calc(100% + 20px); height: calc(100% + 10px);
  overflow: visible; pointer-events: none; transform: translate(10px, -6px);
  /* Саме transform, а не translate: таку анімацію браузер віддає відеокарті й не перемальовує сторінку щокадру */
  animation: nl-arch-float 16s ease-in-out infinite alternate;
}
.ha__arch.is-offscreen .ha__outline { animation-play-state: paused; }
.ha__outline path { fill: none; stroke: url(#nl-arch-gold); stroke-width: 1.2; opacity: .75; }
.ha__outline--tall { display: none; }
@keyframes nl-arch-float {
  0%   { transform: translate(10px, -6px); }
  45%  { transform: translate(-8px, -12px); }
  100% { transform: translate(12px, -2px); }
}

/* Плашка з питанням на фото: питання по черзі змінюються, натиск веде до відповіді */
.ha__q {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px;
  border-radius: 999px; text-decoration: none; color: #f3ece0;
  background: rgba(23, 20, 44, .74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(8, 6, 20, .35);
  font: 600 1.02rem/1.3 var(--font-serif);
  transition: background-color .25s, color .25s;
}
.ha__q span { flex: 1; min-width: 0; }
.ha__q .icon:first-child { color: var(--accent); }
.ha__q .icon:last-child { transition: transform .35s var(--ease-out); }
.ha__q:hover { background: var(--btn-bg); color: var(--btn-fg); }
.ha__q:hover .icon { color: inherit; }
.ha__q:hover .icon:last-child { transform: translateX(3px); }

.ha__body { display: grid; gap: 20px; }
.ha__meta { display: grid; gap: 6px; }
.ha__date { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--fg); }
.ha__date .icon { color: var(--accent); }
.ha__date b { font-weight: 600; color: var(--accent); }

/* Планшет лишається в одну колонку (арка на всю ширину), дві колонки — з 900px */
@media (min-width: 900px) {
  .ha__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto;
    column-gap: 24px; row-gap: 40px; align-items: end;
  }
  .ha__title { grid-column: 1 / 7; grid-row: 1; max-width: 12ch; }
  .ha__body { grid-column: 1 / 7; grid-row: 2; align-self: start; }
  .ha__arch {
    grid-column: 7 / 13; grid-row: 1 / 3; align-self: center; margin: 0 0 0 12px;
    height: auto; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--header-h) - 88px);
  }
  .ha__photo { -webkit-clip-path: url(#nl-arch-tall); clip-path: url(#nl-arch-tall); }
  .ha__photo::after { background: linear-gradient(180deg, transparent 58%, rgba(18, 15, 38, .55)); }
  .ha__outline--wide { display: none; }
  .ha__outline--tall { display: block; }
  .ha__q { left: -56px; right: auto; bottom: 32px; width: min(400px, calc(100% + 40px)); }
  .ha { padding-bottom: 48px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .ha__title { max-width: 16ch; }
  .ha__q { left: auto; right: 20px; bottom: 20px; width: min(420px, calc(100% - 40px)); }
}

/* ── Спільне для секцій ─────────────────────────────────────────────────── */
.section { position: relative; padding-block: var(--section); }
.section__head { display: flex; flex-direction: column; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 760px) {
  .section__foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── 2. Відповіді ───────────────────────────────────────────────────────── */
.answers__list { display: grid; gap: 12px; }
.answers__more { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qa {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: transform .7s var(--ease-out), border-color .3s;
}
.qa::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%);
}
.qa:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.qa:hover::before { opacity: 1; }
/* Картка без власного відступу зверху: при переході з першого екрана на відповідь лишаємо трохи повітря */
.qa { scroll-margin-top: 24px; }
.qa__n { font: 500 .8rem/1 var(--font-sans); letter-spacing: .12em; color: var(--accent); }
.qa__q { font: 600 var(--fs-h3)/1.25 var(--font-serif); text-wrap: balance; }
.qa__a { color: var(--muted); line-height: 1.55; text-wrap: pretty; }
/* Перехід із табло на конкретну відповідь: картка коротко підсвічується */
.qa:target, .qa.is-ping { border-color: var(--accent); animation: nl-qa-ping 1.8s var(--ease-out); }
@keyframes nl-qa-ping {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  to   { box-shadow: 0 0 0 18px transparent; }
}

@media (min-width: 640px) {
  .answers__list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .qa { padding: 30px 28px 32px; }
}
@media (min-width: 1024px) {
  .answers__list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .qa { min-height: 240px; }
}

/* ── 2б. Хто на нашому вівтарі: фото на весь блок, крізь краплю під курсором видно Божество ── */
/* Телефон: фото — окрема картка зверху, текст під нею (щоб не закривав Божества).
   Комп’ютер: фото на весь блок, текст зліва на темному градієнті. */
.murti {
  --frame-gap: clamp(10px, 2.2vw, 32px);
  position: relative; isolation: isolate; overflow: hidden;
}
/* Рамка: фото не на всю ширину екрана, а з відступом від фону сторінки, із заокругленими кутами
   й тонкою світлою лінією всередині — як паспарту в рамці картини */
.murti__frame {
  position: relative; overflow: hidden; margin: var(--frame-gap) var(--frame-gap) 0;
  height: min(72svh, 640px);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 0 0 1px rgba(243, 236, 224, .1), 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.murti__frame::after {
  content: ''; position: absolute; inset: 10px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(243, 236, 224, .24); border-radius: calc(var(--radius) - 2px);
}
.murti__stage { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #241f40; touch-action: pan-y; }
/* Темний градієнт під текстом — лише на комп’ютері, де текст лежить на фото */
.murti__shade { display: none; position: absolute; inset: 0; pointer-events: none; }
/* Текст не перехоплює мишу — крапля пливе і під ним */
.murti__inner { display: flex; pointer-events: none; padding-block: 28px 72px; }
.murti__panel { display: grid; gap: 18px; max-width: 34rem; }
.murti__hint { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--accent); }
.murti__hint-touch { display: none; }
@media (hover: none) {
  .murti__hint-mouse { display: none; }
  .murti__hint-touch { display: inline; }
}
@media (min-width: 900px) {
  .murti { display: flex; min-height: 100vh; min-height: 100svh; padding: var(--frame-gap); }
  .murti__frame { position: absolute; inset: var(--frame-gap); z-index: -1; height: auto; margin: 0; }
  .murti__shade {
    display: block;
    background: linear-gradient(90deg, rgba(18, 15, 38, .94) 0%, rgba(18, 15, 38, .82) 28%, rgba(18, 15, 38, .3) 50%, transparent 64%);
  }
  .murti__inner { align-items: center; padding-block: 120px; }
  .murti__frame::after { inset: 16px; }
  .murti__caption { top: calc(var(--header-h) + 12px); }
  .murti__panel { max-width: 31rem; }
}
.murti__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.murti__img--bottom { opacity: 0; }
.murti__stage[data-stylize] .murti__img--top { filter: grayscale(1) sepia(.5) contrast(1.15) brightness(.9); }
.murti__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.murti__stage.is-gl .murti__img { visibility: hidden; }
/* Запасний варіант без WebGL: кругла м’яка маска під курсором */
.murti__stage.is-fallback .murti__img--bottom {
  transition: opacity .3s;
  -webkit-mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 0 110px, transparent 170px);
  mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 0 110px, transparent 170px);
}
.murti__stage.is-fallback.is-active .murti__img--bottom { opacity: 1; }
.murti__caption {
  position: absolute; right: 16px; top: 20px; z-index: 2; width: fit-content; max-width: calc(100% - 32px); pointer-events: none;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; line-height: 1.3; color: #fff;
  background: rgba(20, 16, 36, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ── 3. Хто ми ──────────────────────────────────────────────────────────── */
.about__grid { display: grid; grid-template-areas: "head" "media" "body"; }
.about__head { grid-area: head; margin-bottom: 32px; }
.about__media { grid-area: media; position: relative; margin-bottom: 40px; }
.about__pic { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.about__pic img { width: 100%; height: 100%; object-fit: cover; }
.about__pic figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; line-height: 1.3; color: #fff;
  background: rgba(20, 16, 36, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.about__body { grid-area: body; display: flex; flex-direction: column; gap: 32px; }

.facts { display: grid; border-top: 1px solid var(--line); }
.facts > div { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { min-width: 5.5ch; font: 600 clamp(1.9rem, 1.5rem + 1.5vw, 2.9rem)/1 var(--font-serif); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts dd { color: var(--muted); }

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 0; }
  .facts > div { flex-direction: column; gap: 10px; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 20px; }
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;
    grid-template-areas: "head media" "body media";
    column-gap: clamp(48px, 7vw, 112px); align-items: start;
  }
  .about__media { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
  .about__pic { aspect-ratio: 1 / 1.05; }
  .about__head { margin-bottom: 36px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts > div { flex-direction: row; gap: 24px; padding: 18px 0; }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .facts > div { flex-direction: column; gap: 10px; }
  .facts dt { font-size: clamp(1.75rem, 1rem + 1.1vw, 2.4rem); }
}

/* ── 4. Неділя ──────────────────────────────────────────────────────────── */
.sunday__grid { display: grid; gap: 32px; }
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 600 1.375rem/1.25 var(--font-serif); font-variant-numeric: tabular-nums; }
.timeline b { display: block; font: 600 var(--fs-h3)/1.3 var(--font-serif); }
.timeline span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }

.sunday__program { display: grid; gap: 28px; align-content: start; }
.sunday__note { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.sunday__note .icon { margin-top: .2em; color: var(--accent); }

.sunday__card { display: flex; flex-direction: column; gap: 24px; padding: 24px 20px; border-radius: var(--radius); background: var(--card); }
.info { display: grid; gap: 14px; }
.info li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.info .icon { margin-top: .1em; color: var(--accent); }
.travel { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.travel__title { font: 600 var(--fs-h3)/1.3 var(--font-serif); }
.sunday__cta { display: grid; gap: 16px; }
.sunday__cta .btn { width: 100%; }
.sunday__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }

.gallery {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: flex; gap: 12px; margin-top: clamp(48px, 7vw, 96px);
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
  position: relative; display: block; flex: 0 0 80%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  scroll-snap-align: start; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: none;
}
.gallery__item:focus-visible { outline-offset: -4px; }
.gallery__pic { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery.is-dragging .gallery__item { pointer-events: none; }

@media (min-width: 600px) {
  .gallery__item { flex-basis: 44%; }
  .sunday__card { padding: 32px; }
}
@media (min-width: 900px) {
  .sunday__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
  .sunday__card { position: sticky; top: calc(var(--header-h) + 24px); }
  .gallery { gap: 20px; }
  .gallery__item { flex-basis: 30%; aspect-ratio: 3 / 4; }
}

/* ── 5. Часті питання ───────────────────────────────────────────────────── */
.faq__grid { display: grid; }
.faq__head { margin-bottom: 32px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 600 var(--fs-h3)/1.3 var(--font-serif); -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s, color .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  translate: -50% -50%; transition: rotate .45s var(--ease-out);
}
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.faq__item[open] .faq__icon::after { rotate: 0deg; }
.faq__item summary:hover .faq__icon { border-color: var(--fg); }
.faq__a { padding: 0 56px 26px 0; color: var(--muted); max-width: 62ch; }

/* Плавне розкриття там, де браузер це вміє */
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
}

/* ── 6. Фінал ───────────────────────────────────────────────────────────── */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 92vh; min-height: 92svh;
  padding: 160px 0 clamp(64px, 9vw, 120px);
}
/* Верх і низ фото розчиняються в прозорість, а не в колір блоку (низ – межа з підвалом): під ним видно спільний фон сторінки, який змінюється плавно.
   Градієнт кольором --bg перемикався миттєво, а фон сторінки – за .7 с, і на межі з попереднім блоком був видно шов. */
.final__media {
  position: absolute; inset: 0; z-index: -1; background: #17142c;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 90%, transparent 100%);
}
.final__img { position: absolute; inset: -10% 0; }
.final__img img { width: 100%; height: 100%; object-fit: cover; }
.final__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 15, 38, .15) 20%, rgba(18, 15, 38, .8) 70%, #17142c 100%);
}
.final__inner { display: flex; flex-direction: column; gap: 22px; }
.final__title { font: 600 clamp(2.75rem, 1.6rem + 5.5vw, 6.5rem)/1 var(--font-serif); letter-spacing: -.025em; max-width: 12ch; text-wrap: balance; }
.final .lede { color: var(--muted); }

/* Тихе запрошення підтримати: рядок тексту й посилання, біля якого мерехтять три зірочки.
   Кожна зірочка — одна анімація (прозорість + transform), її браузер віддає відеокарті. */
.support-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; max-width: 48ch; margin-top: 6px; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.support-note__link {
  position: relative; padding-bottom: 2px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.sparkles {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.5 6 3 9.5 12 12-9 2.5-11.5 6-12 12-.5-6-3-9.5-12-12 9-2.5 11.5-6 12-12z'/%3E%3C/svg%3E");
}
.sparkles i {
  position: absolute; width: 12px; height: 12px; pointer-events: none; opacity: 0; background: currentColor;
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
  animation: nl-twinkle 3.2s ease-in-out infinite;
}
.sparkles i:nth-child(1) { left: -17px; top: -4px; }
.sparkles i:nth-child(2) { right: -15px; top: -9px; width: 9px; height: 9px; animation-delay: 1.1s; }
.sparkles i:nth-child(3) { right: -23px; bottom: 0; width: 7px; height: 7px; animation-delay: 2.1s; }
@keyframes nl-twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  40%      { opacity: 1; transform: scale(1) rotate(45deg); }
  70%      { opacity: .2; transform: scale(.6) rotate(70deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles i { animation: none; opacity: .8; }
}

/* ── Підвал ─────────────────────────────────────────────────────────────── */
.footer { padding: clamp(56px, 8vw, 96px) 0 calc(112px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer__grid { display: grid; gap: 36px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; color: var(--muted); max-width: 30ch; }
.footer__brand .brand__logo { color: var(--fg); }
.footer__label { margin-bottom: 12px; font: 600 .75rem/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.footer p { color: var(--muted); }
.footer__link { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.footer__link:hover { color: var(--accent); }
.footer__link small { color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease-out);
}
.socials a:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; transform: translateY(-3px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--fg); text-decoration: underline; }

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ── Кнопка внизу екрана телефону ───────────────────────────────────────── */
.sticky-cta {
  position: fixed; inset: auto 0 0; z-index: 40;
  padding: 16px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--bg) 35%, color-mix(in srgb, var(--bg) 0%, transparent));
  transform: translateY(110%); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .5s var(--ease-out); }
.sticky-cta .btn { display: flex; width: 100%; max-width: 440px; margin-inline: auto; box-shadow: 0 10px 30px rgba(10, 8, 24, .28); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── Перегляд фото на весь екран ────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 9000; color: #f3ece0; touch-action: none; overscroll-behavior: contain;
  background: rgba(13, 11, 26, .95);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: pinch-zoom; }
.lightbox__img {
  --dx: 0px; --dy: 0px; --s: 1;
  width: auto; height: auto; max-width: calc(100vw - 24px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  user-select: none; -webkit-user-drag: none; cursor: zoom-in;
  transform: translate3d(var(--dx), var(--dy), 0) scale(var(--s));
  transition: transform .5s var(--ease-out), transform-origin .25s var(--ease-out), opacity .3s var(--ease);
}
.lightbox:not(.is-open) .lightbox__img { --s: .94; }
.lightbox__img.is-zoomed { --s: 2.2; cursor: zoom-out; }
.lightbox__img.is-panning { transition: opacity .3s var(--ease); }
.lightbox__bar {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px var(--gutter) calc(22px + env(safe-area-inset-bottom)); text-align: center; pointer-events: none;
}
.lightbox__count { font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; color: #bdb5c6; font-variant-numeric: tabular-nums; }
.lightbox__cap { max-width: 60ch; font-size: .95rem; line-height: 1.45; color: #e1d9cc; }
.lightbox__cap:empty { display: none; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(243, 236, 224, .24); border-radius: 50%; background: rgba(23, 20, 44, .6); color: inherit; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lightbox__btn:hover { background: #f4b63f; color: #17142c; border-color: transparent; }
.lightbox__btn:active { scale: .94; }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.admin-bar .lightbox__close { top: 58px; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; display: none; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
@media (min-width: 760px) {
  .lightbox__prev, .lightbox__next { display: grid; }
  .lightbox__img { max-width: calc(100vw - 200px); }
  .lightbox__close { right: 20px; }
}
@media (min-width: 783px) { .admin-bar .lightbox__close { top: 44px; } }

/* ── Поява при скролі ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--d, 0s) + var(--stagger, 0s));
  }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }

  .js [data-reveal="img"] { transition: clip-path 1.4s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--stagger, 0s)); }
  .js [data-reveal="img"]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10% round var(--radius)); }
  .js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js [data-reveal="img"] img { transition: scale 1.8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--stagger, 0s)), 0s; }
  .js [data-reveal="img"]:not(.is-in) img { scale: 1.2; }

  /* Заголовки з'являються по словах */
  /* Маска слова з запасом знизу: у курсиві «у», «д», «щ» опускаються нижче рядка й інакше обрізались */
  .js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .28em 0; margin: 0 -.1em -.28em 0; }
  .js [data-split] .w__i { display: inline-block; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 45ms); }
  .js [data-split]:not(.is-in) .w__i { transform: translateY(110%); }

  .js .hero__img img, .js .ha__photo img { transition: scale 2.2s var(--ease-out); }
  .js:not(.is-loaded) .hero__img img, .js:not(.is-loaded) .ha__photo img { scale: 1.12; }

  /* Паралакс фото першого екрана й фіналу рахує сам браузер разом зі скролом — без JS і без відставання на кадр.
     Фото вище й нижче блоку на 10% (inset: -10% 0), тож зсув ±7% його висоти не відкриває краї.
     Де scroll-driven animations не підтримуються, те саме робить landing.js. */
  @supports (animation-timeline: view()) {
    .hero__media, .final__media { view-timeline: --nl-parallax block; }
    .hero__img, .final__img { animation: nl-parallax linear both; animation-timeline: --nl-parallax; }
  }
}
@keyframes nl-parallax {
  from { transform: translate3d(0, -7%, 0); }
  to   { transform: translate3d(0, 7%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Курсор (лише миша) ─────────────────────────────────────────────────── */
.has-cursor, .has-cursor * { cursor: none !important; }
/* Адреси, телефони, пошта, реквізити: звичайний курсор, щоб зручно виділити й скопіювати (власний курсор тут ховаємо) */
.has-cursor [data-cursor-native], .has-cursor [data-cursor-native] * { cursor: auto !important; }
[data-cursor-native] { -webkit-user-select: text; user-select: text; -webkit-user-drag: none; }
.has-cursor #wpadminbar, .has-cursor #wpadminbar * { cursor: auto !important; }
/* Курсор у режимі difference видно на будь-якому фоні — і на фото, і на світлих блоках.
   Режим задаємо самому .cursor: він окремий шар (fixed + z-index), тож змішується зі сторінкою лише цілим. */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor__dot, .cursor__ring, .cursor__label { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; transition: opacity .25s; }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid #fff; border-radius: 50%;
  transition: background-color .3s, border-color .3s, opacity .3s;
}
.cursor__label {
  translate: -50% -50%; opacity: 0; white-space: pre; text-align: center;
  font: 600 .62rem/1.35 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--btn-fg);
  transition: opacity .25s;
}
.cursor.is-link .cursor__ring { background: #fff; }
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__ring { background: var(--btn-bg); border-color: transparent; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__label { opacity: 0; }

/* Магнітна кнопка після виходу курсора плавно повертається на місце */
.is-returning { transition: background-color .25s, color .25s, border-color .25s, transform .9s cubic-bezier(.16, 1, .3, 1) !important; }
