/* Кольори: тепле світло, оливкова зелень паростка, золото світанку */
:root {
  --bg: #fbf8f2;
  --warm: #f7efe2;
  --peach: #f4dcc4;
  --sage: #e9eddf;
  --sage-2: #d6dfc8;
  --green: #4f7a5f;
  --green-dark: #2f5241;
  --gold: #c99a4b;

  --text: #2d3a33;
  --text-soft: #5d6a62;
  --white: #fffdf8;

  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* нічого не вилазить за край екрана — сторінка не гойдається вбік */
html,
body { overflow-x: hidden; }

/* «clip» не завжди зупиняє Android: там сторінку тоді розпирає вшир, і краї обрізає. Лишаємо «hidden». */

/* ---------- великий шрифт у налаштуваннях телефона (Android «Розмір шрифту», режим для слабкого зору) ----------
   Шрифт росте, а ширина екрана — ні. Тому: довгі слова переносяться, блоки можуть стискатися,
   нічого не має фіксованої ширини тексту. */
h1, h2, h3, p, li, a, button, span, figcaption, blockquote {
  overflow-wrap: break-word;
}

h1, h2, h3, .hero-kicker, .schedule-what, .step, .toc-main, .card, .teaser-title, .album-title, .news-body {
  hyphens: auto;
  -webkit-hyphens: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.2;
  color: var(--green-dark);
}

h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--green-dark);
}

p { margin: 0; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  max-width: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  font: 600 16px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn > span { min-width: 0; }

.btn-main {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(47, 82, 65, 0.22);
}

.btn-main:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 253, 248, 0.7);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1.5px var(--sage-2);
}

.btn-ghost:hover { background: var(--white); transform: translateY(-2px); }

.btn:focus-visible,
.lang-switch button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .dot { fill: currentColor; stroke: none; }

/* ---------- перемикач мов ---------- */

/* ---------- верхня панель: логотип, розділи, мова, «Меню» ---------- */

/* панель закріплена вгорі; її висоту JS кладе в --header-h, і сторінка починається під нею */
body { padding-top: var(--header-h, 68px); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: rgba(251, 248, 242, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--sage-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  color: var(--green-dark);
  text-decoration: none;
}

.brand-logo {
  flex: none;
  width: 26px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 25;
  stroke-linejoin: miter;
}

.brand-name { font: 600 20px/1.15 var(--font-serif); white-space: nowrap; }
.brand:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* розділи в рядок — лише на широкому екрані */
.main-nav { display: none; }

.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }

.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  font: 600 15px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-top:hover,
.has-sub.is-open > .nav-top { background: var(--sage); }
.nav-top[aria-current="page"],
.has-sub.is-current > .nav-top { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 12px 12px 4px 4px; }
.nav-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.has-sub.is-open .chev { transform: rotate(180deg); }

/* випадаючий список */
.sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(45, 58, 51, 0.16), inset 0 0 0 1px var(--sage-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
}

/* «місток», щоб мишка не губила список між кнопкою і ним */
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.18s; }

.sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--green-dark);
  font: 600 16px var(--font-serif);
  text-decoration: none;
}

.sub a:hover, .sub a[aria-current="page"] { background: var(--sage); }
.sub a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }




.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: 600 14px var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(47, 82, 65, 0.25);
  transition: background 0.2s;
}

.menu-btn:hover { background: var(--green-dark); }
.menu-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.menu-icon { display: grid; gap: 3.5px; width: 16px; }
.menu-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.menu-icon i:nth-child(2) { width: 70%; }

/* меню: шторка справа (на телефоні — на весь екран) */
.menu { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.menu.is-open { visibility: visible; }

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 58, 51, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.menu.is-open .menu-backdrop { opacity: 1; }

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  background: var(--bg);
  box-shadow: -20px 0 50px rgba(45, 58, 51, 0.18);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu.is-open .menu-panel { transform: none; }

.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-title { font: 600 22px var(--font-serif); color: var(--green-dark); }

.menu-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 18px;
  cursor: pointer;
}

.menu-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.menu-info {
  margin-top: 18px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.menu-when { font: 600 22px var(--font-serif); color: var(--green-dark); }
.menu-place { margin-top: 10px; font-weight: 600; }
.menu-address { color: var(--text-soft); }
.menu-actions { display: grid; gap: 10px; margin-top: 18px; }

.menu-links { display: grid; margin-top: 10px; }

.menu-group {
  margin-top: 18px;
  padding: 0 6px 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.menu-links a.menu-sub { padding-left: 20px; font-size: 18px; }
.menu-links a[aria-current="page"] { color: var(--green); }
.menu-links a[aria-current="page"]::after { content: "•"; }

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 6px;
  border-bottom: 1px solid var(--sage-2);
  color: var(--green-dark);
  font: 600 19px var(--font-serif);
  text-decoration: none;
}

.menu-links a::after { content: "→"; font-family: var(--font-sans); color: var(--gold); transition: transform 0.2s; }
.menu-links a:hover::after { transform: translateX(4px); }
.menu-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* щоб заголовок розділу не ховався під верхньою панеллю після переходу з меню */
section[id] { scroll-margin-top: calc(var(--header-h, 68px) + 8px); }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 4px 18px rgba(45, 58, 51, 0.12);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: 600 13px var(--font-sans);
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--green);
  color: var(--white);
}

/* ---------- перший екран ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h, 68px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 56px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--warm) 0%, #fbf1e4 55%, var(--bg) 100%);
}

/* м'яке «світанкове» сяйво за паростком */
.hero-glow {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(760px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 220, 196, 0.95) 0%, rgba(244, 220, 196, 0.45) 38%, rgba(247, 239, 226, 0) 68%);
  animation: glow 9s ease-in-out infinite alternate;
}

@keyframes glow {
  from { transform: translateX(-50%) scale(0.94); opacity: 0.85; }
  to { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

.hero-inner {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 640px;
}

/* логотип церкви на першому екрані: лінії малюються по черзі — основа, рамка, хрест */
.hero-logo {
  display: block;
  width: 62px;
  height: 103px;
  margin: 0 auto 22px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 25;
  stroke-linejoin: miter;
}

.hero-logo path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-logo .lg-base { animation: draw 0.7s ease forwards; }
.hero-logo .lg-frame { animation: draw 1.1s ease 0.3s forwards; }
.hero-logo .lg-l, .hero-logo .lg-r { animation: draw 0.8s ease 0.9s forwards; }
.hero-logo .lg-cross { animation: draw 0.8s ease 1.3s forwards; }
.hero-logo .lg-bar { animation: draw 0.5s ease 1.8s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leaf-fill { to { fill: rgba(79, 122, 95, 0.18); } }

.hero-kicker,
.hero-title,
.hero-when,
.hero-buttons {
  opacity: 0;
  animation: rise 0.9s ease forwards;
}

.hero-kicker { animation-delay: 0.5s; }
.hero-title { animation-delay: 0.7s; }
.hero-when { animation-delay: 1s; }
.hero-buttons { animation-delay: 1.2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.hero-title {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.05;
  color: var(--green-dark);
}

.hero-church {
  display: block;
  font-size: clamp(22px, 5vw, 28px);
  font-style: italic;
  font-weight: 500;
  color: var(--text-soft);
}

.hero-name {
  display: block;
  margin-top: 6px;
  font-size: clamp(40px, 11.5vw, 84px);
  letter-spacing: -0.01em;
}

.hero-when {
  display: inline-block;
  max-width: 100%;
  margin-top: 22px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.75);
  font-family: var(--font-serif);
  font-size: clamp(19px, 4.6vw, 23px);
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 14px rgba(201, 154, 75, 0.15);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- розділи ---------- */

.section {
  padding: 76px 20px;
  text-align: center;
}

.section > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-light { background: var(--bg); }
.section-sage { background: linear-gradient(180deg, var(--bg) 0%, var(--sage) 22%, var(--sage) 78%, var(--bg) 100%); }
.section-warm { background: linear-gradient(180deg, var(--bg) 0%, var(--warm) 25%, var(--warm) 75%, var(--bg) 100%); }

.lead {
  max-width: 560px;
  color: var(--text-soft);
}

/* ---------- розклад ---------- */

.schedule {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.schedule-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.schedule-item.main {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(47, 82, 65, 0.25);
}

.schedule-item:not(.main) .schedule-time { color: var(--green-dark); }

.schedule-item.main h3,
.schedule-item.main .schedule-day { color: var(--white); }
.schedule-item.main p { color: rgba(255, 253, 248, 0.85); }

.schedule-when {
  display: flex;
  flex-direction: column;
}

.schedule-day {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.schedule-time {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--peach);
}

.schedule-item p {
  font-size: 15.5px;
  color: var(--text-soft);
}

/* ---------- вперше у нас ---------- */

.cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.card p {
  font-size: 15.5px;
  color: var(--text-soft);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 50%;
  background: var(--sage);
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon .dot { fill: var(--green); stroke: none; }

/* ---------- хто ми ---------- */

.about-text {
  max-width: 600px;
  display: grid;
  gap: 16px;
  font-size: 18px;
}

/* ---------- молодь ---------- */

#youth .btn { margin-top: 24px; }

/* ---------- як нас знайти ---------- */

.find {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  text-align: left;
}

.find-info {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.find-time {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-dark);
}

.find-place {
  margin-top: 14px;
  font-weight: 600;
}

.find-address { color: var(--text-soft); }

.find-buttons {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.map {
  width: 100%;
  min-height: 300px;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--sage);
}

/* ---------- контакти ---------- */

.pastor {
  max-width: 380px;
  margin-top: 28px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.pastor-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.pastor-name {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--green-dark);
}

.pastor .btn { margin-top: 18px; }

/* ---------- підвал ---------- */

.footer {
  padding: 34px 20px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--bg);
  border-top: 1px solid var(--sage-2);
}

.footer p:first-child {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--green-dark);
}

/* ---------- поява при прокручуванні ---------- */

/* ховаємо лише коли працює JS (без нього все одразу видно); без розмиття — воно гальмує гортання */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- паросток уздовж сторінки (лише широкий екран) ---------- */

main { position: relative; }

.vine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 470px);
  width: 40px;
  z-index: 1;
  pointer-events: none;
}

.vine-svg { display: block; width: 40px; overflow: visible; }

.vine-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.55;
}

.vine-leaf {
  position: absolute;
  width: 30px;
  height: 20px;
  overflow: visible;
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.vine-leaf path { fill: rgba(79, 122, 95, 0.22); stroke: var(--green); stroke-width: 1.4; stroke-linejoin: round; }
.vine-leaf .vein { fill: none; stroke-width: 1; opacity: 0.6; }
.vine-leaf.is-right { left: 20px; transform-origin: 0 50%; transform: rotate(-25deg) scale(0); }
.vine-leaf.is-left { left: -10px; transform-origin: 100% 50%; transform: scaleX(-1) rotate(-25deg) scale(0); }
.vine-leaf.is-right.is-open { opacity: 1; transform: rotate(-25deg) scale(1); }
.vine-leaf.is-left.is-open { opacity: 1; transform: scaleX(-1) rotate(-25deg) scale(1); }

/* розділи — над стеблом не перекриваються, бо стебло стоїть лівіше від тексту */
.section { position: relative; }

/* ---------- маленький паросток над заголовком (телефон і планшет) ---------- */

.mini-sprout { display: none; width: 40px; height: 40px; margin: 0 auto 4px; overflow: visible; }
.mini-sprout path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mini-sprout.is-visible .ms-stem { animation: draw 0.7s ease 0.15s forwards; }
.mini-sprout.is-visible .ms-leaf { animation: draw 0.8s ease 0.6s forwards, leaf-fill 0.6s ease 1.2s forwards; }
.mini-sprout.is-visible .ms-leaf-r { animation-delay: 0.85s, 1.45s; }

@media (max-width: 999px) {
  .albums { grid-template-columns: repeat(2, 1fr); }
  .vine { display: none; }
  .mini-sprout { display: block; }
}

/* ---------- м'яке світло за заголовками розділів ---------- */

.section > h2 { position: relative; isolation: isolate; }
.section > h2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, 92vw);
  height: 180px;
  margin: -90px 0 0 calc(min(440px, 92vw) / -2);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 220, 196, 0.8), rgba(244, 220, 196, 0));
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-36px) scale(0.95); }
  to { transform: translateX(36px) scale(1.05); }
}

/* ---------- вірш: слова загоряються під час гортання ---------- */

.verse-band {
  padding: 40px 20px 90px;
  text-align: center;
  background: var(--bg);
}

.word-verse { max-width: 780px; margin: 0 auto; }

.word-verse blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 5.2vw, 44px);
  line-height: 1.35;
  color: var(--green-dark);
}

.vw { transition: opacity 0.35s ease, color 0.35s ease; }
.js .vw { opacity: 0.18; }
.js .vw.is-lit { opacity: 1; }

.word-verse figcaption {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- найближче богослужіння ---------- */

.next-service {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin: 4px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 15.5px;
}

.next-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(79, 122, 95, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 122, 95, 0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(79, 122, 95, 0); }
}

/* ---------- кнопка «Як нас знайти» завжди поруч ---------- */

.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: 600 16px var(--font-sans);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(47, 82, 65, 0.3);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.sticky-cta b { font-weight: 600; opacity: 0.8; padding-left: 9px; border-left: 1px solid rgba(255, 253, 248, 0.35); }
.sticky-cta { flex-wrap: wrap; justify-content: center; max-width: calc(100% - 40px); text-align: center; }
.sticky-cta span, .sticky-cta b { min-width: 0; }
.sticky-cta:hover { background: var(--green-dark); }
.sticky-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.youth-leader { margin-top: 22px; }

/* ---------- «Хто ми»: посилання на віровчення ---------- */

.about-beliefs { font-weight: 600; color: var(--green-dark); }
#about .btn { margin-top: 26px; }

/* ---------- сторінка «Віровчення» ---------- */

.read-progress { position: fixed; inset: var(--header-h, 68px) 0 auto; height: 3px; z-index: 50; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

.page-hero {
  padding: 48px 20px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--warm) 0%, var(--bg) 100%);
}

.page-hero > * { max-width: 720px; margin-left: auto; margin-right: auto; }

.back-home {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.back-home:hover { text-decoration: underline; }
.page-kicker { opacity: 1; animation: none; }

.page-title {
  margin: 12px auto 0;
  font: 600 clamp(40px, 9vw, 64px)/1.1 var(--font-serif);
  color: var(--green-dark);
}

.lang-note:empty { display: none; }
.lang-note {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
}

.page-lead { margin-top: 24px; display: grid; gap: 12px; color: var(--text-soft); font-size: 16px; }

.creed { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }

.toc {
  margin: 8px 0 56px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
  scroll-margin-top: calc(var(--header-h, 68px) + 8px);
}

.toc h2 { font-size: 26px; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.toc li { min-width: 0; }
.toc li { border-top: 1px solid var(--sage-2); padding: 10px 0; }
.toc li:first-child { border-top: 0; }

.toc-main {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--green-dark);
  font: 600 18px/1.35 var(--font-serif);
  text-decoration: none;
}

.toc-main:hover span:last-child { text-decoration: underline; }
.toc-main > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.toc-subs a { overflow-wrap: anywhere; }
.toc-num { flex: none; min-width: 2.4em; color: var(--gold); font-family: var(--font-sans); font-size: 14px; font-weight: 600; }

.toc-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px calc(2.4em + 12px); }
.toc-subs a {
  max-width: 100%;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 13.5px;
  text-decoration: none;
}

.toc-subs a:hover { background: var(--sage-2); }
.toc a:focus-visible, .to-toc:focus-visible, .back-home:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.creed-section { padding-top: 24px; scroll-margin-top: calc(var(--header-h, 68px) + 8px); }
.creed-section + .creed-section { margin-top: 40px; border-top: 1px solid var(--sage-2); }

.creed-section h2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  font-size: clamp(28px, 6vw, 36px);
}

.creed-num { font: 600 14px var(--font-sans); letter-spacing: 0.12em; color: var(--gold); }

.creed-section h3 { margin: 30px 0 10px; font-size: 22px; scroll-margin-top: calc(var(--header-h, 68px) + 8px); }

.creed-section p,
.creed-section li { font-size: 17.5px; line-height: 1.75; }

.creed-section p + p { margin-top: 14px; }
.creed-section p, .creed-section li { overflow-wrap: anywhere; }
.creed-section ul { margin: 10px 0 16px; padding-left: 1.2em; display: grid; gap: 6px; }
.creed-section li::marker { color: var(--green); }

/* біблійні посилання — дрібніше й світліше, щоб не заважали читати */
.ref { font-size: 0.84em; color: var(--text-soft); white-space: normal; }

/* посилання на вірш: наведіть / натисніть — з'явиться віконце з текстом */
.vref {
  color: var(--green-dark);
  text-decoration: underline dotted rgba(79, 122, 95, 0.55);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(79, 122, 95, 0.15);
}
.vref:hover, .vref[aria-describedby] { background: var(--sage); text-decoration-style: solid; }
.vref:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.vtip {
  position: absolute;
  z-index: 55; /* над кнопкою «Зміст», під меню */
  width: min(340px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(45, 58, 51, 0.18), inset 0 0 0 1px var(--sage-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s, transform 0.16s;
}
.vtip.is-open { opacity: 1; transform: none; }
.vtip-ref { font: 600 14px var(--font-sans); color: var(--green-dark); margin-bottom: 6px; }
.vtip-text { font: 400 16px/1.6 var(--font-serif); color: var(--text); }
.vtip-text sup { font: 600 10px var(--font-sans); color: var(--gold); margin-right: 3px; }
.vtip-more {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 0;
  font: 600 14.5px var(--font-sans);
  color: var(--green);
}
.vtip-src { font-size: 12px; color: var(--text-soft); }

.to-toc {
  display: inline-block;
  margin-top: 22px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.toc-fab {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(47, 82, 65, 0.3);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toc-fab.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toc-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- пошта ---------- */

.contact-mail { margin-top: 14px; max-width: 100%; }
.contact-mail span, .menu-mail span { overflow-wrap: anywhere; }
.menu-mail { font-size: 14.5px; }

/* ---------- «Віровчення»: посилання на повну версію ---------- */

.creed-full { margin-top: 22px; font-size: 15px; color: var(--text-soft); }
.creed-full span:first-child { display: block; }
.creed-full a { color: var(--green-dark); font-weight: 600; }

/* ---------- сторінка «Членство» ---------- */

.page-membership .page-lead { display: block; }
.membership { max-width: 720px; margin: 0 auto; padding: 0 20px 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.step-main { box-shadow: 0 0 0 2px var(--sage-2), 0 12px 34px rgba(47, 82, 65, 0.12); }

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green-dark);
  font: 600 20px var(--font-serif);
}

.step h2 { font-size: 22px; margin: 6px 0 6px; }
.step p { color: var(--text-soft); }
.step-link { display: inline-block; margin-top: 10px; color: var(--green-dark); font-weight: 600; }
.step-call { margin-top: 14px; }

.download { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; justify-items: start; }
.download-word { color: var(--green-dark); font-weight: 600; font-size: 15px; padding: 6px 0; }
.privacy-note { margin-top: 14px; font-size: 14px; }

/* ---------- новини й галерея: позначки «приклад» ---------- */

.demo-banner {
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff4dc;
  color: #6b4d12;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px #f0d9a8;
}

.demo-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff4dc;
  color: #6b4d12;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

.news-meta { color: var(--green); font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }

/* головна: три останні новини */
.news-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px auto 26px; text-align: left; }

.teaser {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.teaser:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45, 58, 51, 0.12); }
.teaser:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.teaser-title { font: 600 18px/1.35 var(--font-serif); color: var(--green-dark); }

/* сторінка «Новини» */
.news-page, .gallery-page { max-width: 820px; margin: 0 auto; padding: 0 20px 96px; }
.gallery-page { max-width: 1000px; }
.news-list { display: grid; gap: 18px; }

.news-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
  scroll-margin-top: calc(var(--header-h, 68px) + 8px);
}

.news-card:target { box-shadow: 0 0 0 3px var(--gold), 0 12px 30px rgba(45, 58, 51, 0.12); }
/* фото новини — у своїх пропорціях (афіша не обрізається); дуже високе — не вище екрана */
.news-img { display: block; width: 100%; height: auto; max-height: min(82vh, 860px); object-fit: contain; background: var(--sage); }
.news-body { padding: 22px 24px 26px; }
.news-body h2 { margin: 6px 0 10px; font-size: clamp(22px, 4.6vw, 28px); }
.news-body p:last-child { color: var(--text-soft); }

/* сторінка «Галерея» */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.album {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.album { grid-template-columns: minmax(0, 1fr); }
.album:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45, 58, 51, 0.12); }
.album:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.album-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sage); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.album:hover .album-cover img { transform: scale(1.04); }

.album-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(45, 58, 51, 0.75);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.album-info { display: grid; gap: 4px; padding: 14px 16px 18px; }
.album-title { font: 600 18px/1.3 var(--font-serif); color: var(--green-dark); }
.album-date { font-size: 13.5px; color: var(--text-soft); }

/* перегляд фото */
.viewer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(20, 26, 23, 0.94); color: var(--white); }
.viewer[hidden] { display: none; }
.viewer:not([hidden]) { animation: viewer-in 0.3s ease-out; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 0 16px; }
.viewer-img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: 12px; object-fit: contain; }
.viewer figcaption { font-size: 14px; opacity: 0.85; text-align: center; }
.viewer-count { margin-left: 8px; opacity: 0.7; }

.viewer-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.viewer-btn:hover { background: rgba(255, 255, 255, 0.28); }
.viewer-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.viewer-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.viewer-prev { left: 16px; top: 50%; margin-top: -26px; }
.viewer-next { right: 16px; top: 50%; margin-top: -26px; }

/* ---------- телефон ---------- */

@media (max-width: 720px) {
  .section { padding: 60px 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .find { grid-template-columns: minmax(0, 1fr); }
  .map { height: 280px; min-height: 0; }
  .schedule-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 20px; }
  .schedule-when { flex-wrap: wrap; }
  .schedule-when { flex-direction: row; align-items: baseline; gap: 12px; }
  .schedule-time { font-size: 28px; }
  .hero { padding: 32px 16px 44px; }
  .hero-buttons .btn { flex: 1 1 200px; }
  .verse-band { padding: 24px 16px 64px; }
  .page-hero { padding: 36px 16px 36px; }
  .creed { padding: 0 16px 96px; }
  .toc { padding: 22px 18px; }
  .toc-subs { margin-left: 0; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 18px; }
  .download .btn { width: 100%; }
  .membership { padding: 0 16px 96px; }
  .news-teaser { grid-template-columns: minmax(0, 1fr); }
  .news-page, .gallery-page { padding: 0 16px 96px; }
  .albums { grid-template-columns: minmax(0, 1fr); }
  .news-body { padding: 18px 18px 22px; }
  .viewer-prev, .viewer-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); margin-top: 0; width: 58px; height: 58px; }
  .viewer-prev { left: calc(50% - 70px); }
  .viewer-next { right: calc(50% - 70px); }
  .creed-section p, .creed-section li { font-size: 17px; }
  .sticky-cta {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    justify-content: center;
    border-radius: 18px 18px 0 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .sticky-cta b { border-left: 0; padding-left: 0; }
  .sticky-cta b::before { content: "· "; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* хто не любить руху — без анімацій */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .js .reveal, .hero-kicker, .hero-title, .hero-when, .hero-buttons { opacity: 1; transform: none; filter: none; }
  .hero-logo path, .mini-sprout path { stroke-dashoffset: 0; }
  .menu-panel, .menu-backdrop, .toc-fab { transition: none; }
  .mini-sprout .ms-leaf { fill: rgba(79, 122, 95, 0.18); }
  .js .vw { opacity: 1; }
}

/* ---------- галерея без фото ---------- */
.albums:has(.gallery-empty) { display: block; }
.gallery-empty {
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--sage-2);
  color: var(--text-soft);
  text-align: center;
  font: 500 19px/1.5 var(--font-serif);
}

/* ---------- окремі сторінки: Хто ми, Молодь, Діти ---------- */

.subpage { max-width: 760px; margin: 0 auto; padding: 0 20px 96px; }
.subpage .about-text { margin: 0 auto; }
.subpage .schedule { margin-top: 0; }
.subpage-h2 { margin-top: 48px; text-align: center; font-size: clamp(26px, 5vw, 32px); }
.subpage-actions { margin-top: 26px; text-align: center; }
.subpage .youth-leader { margin: 22px auto 0; text-align: center; }

.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

.link-card {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
  color: var(--text-soft);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.link-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(45, 58, 51, 0.12); }
.link-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.link-card-title { font: 600 21px/1.3 var(--font-serif); color: var(--green-dark); }
.link-card-title::after { content: " →"; font-family: var(--font-sans); color: var(--gold); }
.link-card-text { font-size: 15.5px; }

/* посилання на реєстрацію в розкладі (клуб для дітей) */
.schedule-link { display: inline-block; margin-top: 8px; padding: 4px 0; color: var(--green-dark); font-weight: 600; font-size: 15px; }
.schedule-btn { margin-top: 14px; }

/* ---------- сторінка «Контакти» ---------- */

.contacts { max-width: 1040px; margin: 0 auto; padding: 0 20px 96px; }
.contact-block + .contact-block { margin-top: 64px; }
.contact-block > h2 { text-align: center; }
.contacts .find { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }

.find-photo { display: block; min-height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--sage); }
.find-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 16px; margin-top: 30px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.contact-cards .pastor { max-width: none; margin: 0; }
.contact-mail-link { display: inline-block; margin-top: 6px; color: var(--green-dark); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06);
}

.contact-form h3 { font-size: 24px; margin: 0; }
.form-lead { color: var(--text-soft); margin-top: -6px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { display: grid; gap: 6px; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--green-dark); }
.field small { font-weight: 400; color: var(--text-soft); }

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--sage-2);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 var(--font-sans);
  transition: border-color 0.2s, background 0.2s;
}

.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(79, 122, 95, 0.18); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #b4553a; }

.contact-form .btn { justify-self: start; border: 0; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }

/* прихований рядок проти спаму */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status:empty { display: none; }
.form-status { padding: 12px 16px; border-radius: 14px; font-weight: 600; outline: none; }
.form-status.is-ok { background: var(--sage); color: var(--green-dark); }
.form-status.is-err { background: #fbe9e3; color: #8a3a22; }
.form-status-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.form-status-links a { color: inherit; overflow-wrap: anywhere; }
.contact-form .privacy-note { color: var(--text-soft); margin-top: 0; }

@media (max-width: 860px) {
  .contacts .find, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .find-photo { aspect-ratio: 4 / 3; min-height: 0; }
}

@media (max-width: 720px) {
  .subpage, .contacts { padding: 0 16px 96px; }
  .link-cards, .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 22px 18px; }
  .contact-form .btn { justify-self: stretch; }
}

/* широкий екран: розділи в рядок, кнопка «Меню» не потрібна (правило — в кінці, щоб перекрити .menu-btn) */
@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .header-tools { margin-left: 0; }
}

/* середня ширина (ноутбук, не на весь екран): розділи щільніше, біля логотипа без назви */
@media (min-width: 960px) and (max-width: 1239px) {
  .site-header { gap: 8px 10px; }
  .nav-top { padding: 0 9px; font-size: 14px; }
  .brand-name { display: none; }
}

/* вузький телефон: панель компактніша (наприкінці файлу, щоб перекрити загальні правила кнопок) */
@media (max-width: 480px) {
  .site-header { gap: 8px 10px; padding-left: 14px; padding-right: 14px; }
  .brand { gap: 8px; }
  .brand-logo { width: 22px; height: 37px; }
  .brand-name { font-size: 17px; }
  .menu-btn { padding: 0 13px 0 12px; }
  .header-tools { gap: 6px; }
}

@media (max-width: 340px) {
  .brand-name { display: none; }
}

/* великий шрифт: мова й «Меню» можуть перейти на окремий рядок, але не вилазять за край */
.header-tools { flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; }
.menu-btn, .lang-switch { max-width: 100%; }
.contact-mail-link, .contact-mail-link span { overflow-wrap: anywhere; word-break: break-word; }
.contact-mail-link { display: block; max-width: 100%; }

/* ---------- «Контакти»: картки людей у ряд, форма під ними ---------- */
.page-contacts .contact-grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.page-contacts .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-contacts .contact-form { max-width: 760px; width: 100%; margin: 10px auto 0; }
.person-phone { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--text); white-space: nowrap; }
.person-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.person-actions .btn { margin-top: 0; min-height: 46px; padding: 10px 18px; font-size: 15px; }
.page-find .contacts { padding-top: 0; }

@media (max-width: 960px) {
  .page-contacts .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .person-actions .btn { flex: 1 1 140px; }
  .person-phone { white-space: normal; }
}

/* ---------- перемикач мов: кнопка з поточною мовою + список ---------- */
.lang-switch { position: relative; display: block; padding: 0; background: none; box-shadow: none; }

.lang-switch .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--sage-2);
  color: var(--green-dark);
  font: 600 14px var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switch .lang-current:hover { background: var(--sage); }
.lang-switch .lang-current:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-switch.is-open .chev { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 45;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(45, 58, 51, 0.16), inset 0 0 0 1px var(--sage-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
}

.lang-switch.is-open .lang-list { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.18s; }

.lang-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--green-dark);
  font: 500 16px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.lang-list button b { min-width: 2em; font-size: 13px; letter-spacing: 0.04em; color: var(--text-soft); }
.lang-list button:hover { background: var(--sage); }
.lang-list button.active { background: var(--green); color: var(--white); }
.lang-list button.active b { color: rgba(255, 253, 248, 0.8); }
.lang-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* ---------- підвал: вхід для редакторів ---------- */
.footer-admin { margin-top: 10px; }
.footer-admin a, .footer-link { color: var(--text-soft); font-size: 13px; opacity: 0.75; }
.footer-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.footer-admin a { display: inline-block; padding: 4px 0; }
.privacy-dialog .news-body p { margin: 0 0 12px; overflow-wrap: anywhere; }
.privacy-dialog .news-body h2 { padding-right: 48px; }
.news-text p { color: var(--text-soft); }
.news-text p + p { margin-top: 10px; }

/* ---------- сторінка редактора ---------- */
.page-admin { padding-top: 0; }
.admin-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  background: var(--white); box-shadow: 0 1px 0 var(--sage-2);
}
.page-admin .brand-name { display: inline; font-size: 18px; white-space: normal; }
.admin-user { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14px; border: 0; }
.btn-danger { background: #fbe9e3; color: #8a3a22; border: 0; }
.btn-danger:hover { background: #f6d6cb; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.admin { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }
.admin h1 { font: 600 clamp(26px, 5vw, 32px)/1.2 var(--font-serif); color: var(--green-dark); margin: 0; }
.admin h2 { font-size: 22px; margin: 0; }
.admin-card { padding: 24px 22px; border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06); }
.admin-card + .admin-card { margin-top: 16px; }
.admin-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.admin-center { text-align: center; color: var(--text-soft); }
.admin-lead, .admin-hint { color: var(--text-soft); font-size: 14.5px; }
.admin-lead { margin: 6px 0 18px; }
.admin-form { display: grid; gap: 14px; }
.admin-form .btn { justify-self: start; border: 0; }
.field-date input { max-width: 220px; }
.admin details { border-radius: 14px; background: var(--bg); padding: 10px 14px; }
.admin details[open] { display: grid; gap: 12px; }
.admin summary { cursor: pointer; font-weight: 600; color: var(--green-dark); }
.link-btn { margin-top: 12px; padding: 6px 0; border: 0; background: none; color: var(--green-dark); font: 600 14.5px var(--font-sans); text-decoration: underline; cursor: pointer; }
.oauth { display: grid; gap: 10px; margin-top: 10px; }
.oauth-btn { border: 0; width: 100%; }
.oauth-or { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 13px; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--sage-2); }
.admin-msg { position: sticky; top: 10px; z-index: 5; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; font-weight: 600; outline: none; }
.admin-msg.is-ok { background: var(--sage); color: var(--green-dark); }
.admin-msg.is-err { background: #fbe9e3; color: #8a3a22; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding: 5px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--sage-2); width: fit-content; max-width: 100%; }
.admin-tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--green-dark); font: 600 15px var(--font-sans); cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--green); color: var(--white); }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-panel > .admin-card { margin-bottom: 16px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-actions .btn { border: 0; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--white); box-shadow: 0 4px 16px rgba(45, 58, 51, 0.05); }
.admin-thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--sage); display: block; }
.admin-row-date { font-size: 13px; color: var(--text-soft); }
.admin-row-title { font: 600 17px/1.3 var(--font-serif); color: var(--green-dark); overflow-wrap: anywhere; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-empty { padding: 24px; border-radius: 18px; background: var(--white); color: var(--text-soft); text-align: center; }
.news-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.news-photo img { width: 160px; height: 100px; object-fit: cover; border-radius: 12px; }
.news-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.news-photo-actions .link-btn { margin-top: 0; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.admin-progress { margin: 12px 0; font-weight: 600; color: var(--green-dark); }
.photo-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--sage); aspect-ratio: 4 / 3; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cover { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(45, 58, 51, 0.8); color: var(--white); font-size: 12px; font-weight: 600; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 253, 248, 0.92); color: #8a3a22; font-size: 15px; cursor: pointer; }
.photo-grid .admin-empty { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .admin-row { grid-template-columns: 56px minmax(0, 1fr); }
  .admin-thumb { width: 56px; height: 42px; }
  .admin-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-form .btn { justify-self: stretch; }
}

/* ---------- тихі вірші по боках (широкий екран) ---------- */
.side-verses { position: absolute; top: 0; left: 0; right: 0; z-index: 2; overflow: hidden; pointer-events: none; }

.side-verse {
  --glow: 0;
  position: absolute;
  width: clamp(170px, calc(50vw - 600px), 280px);
  pointer-events: auto;
  text-decoration: none;
  color: var(--green-dark);
  opacity: calc(0.32 + var(--glow) * 0.48);
  transition: opacity 0.5s ease;
  will-change: transform;
}

.side-verse.is-left { left: max(28px, calc(50vw - 600px - clamp(170px, calc(50vw - 600px), 280px))); text-align: right; }
.side-verse.is-right { right: max(28px, calc(50vw - 600px - clamp(170px, calc(50vw - 600px), 280px))); text-align: left; }
.side-verse:hover { opacity: 1; }
.sv-text { display: block; font: italic 500 17px/1.6 var(--font-serif); }
.sv-ref { display: block; margin-top: 8px; font: 600 11.5px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.side-verse:hover .sv-ref::after { content: " ↗"; }

@media (max-width: 1499px) { .side-verses { display: none; } }
@media (prefers-reduced-motion: reduce) { .side-verse { transition: none; } }

/* ---------- новини: довгий текст згортається ---------- */
.news-text.is-collapsed {
  max-height: calc(1.65em * 7);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.news-text a { color: var(--green-dark); font-weight: 600; overflow-wrap: anywhere; }
.news-more {
  margin-top: 10px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font: 600 15px var(--font-sans);
  cursor: pointer;
}
.news-more:hover { background: var(--sage-2); }
.news-more:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.news-text p { line-height: 1.65; }

/* ---------- новини за розділами ---------- */
.news-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.news-filters button {
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--sage-2);
  color: var(--green-dark); font: 600 15px var(--font-sans); cursor: pointer;
}
.news-filters button[aria-pressed="true"] { background: var(--green); color: var(--white); box-shadow: none; }
.news-filters button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.news-tag {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  background: var(--sage); color: var(--green-dark); font-size: 12px; font-weight: 600; vertical-align: 1px;
}
.section-news { margin-top: 56px; }
.section-news .news-list { margin-top: 18px; text-align: left; }
.section-news-all { margin-top: 16px; text-align: center; }
.section-news-all a { color: var(--green-dark); font-weight: 600; }

/* ---------- блок з фото на сторінці («Про Radobot») ---------- */
.page-block { margin-top: 28px; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 24px rgba(45, 58, 51, 0.06); }
.block-img { display: block; width: 100%; height: auto; max-height: min(70vh, 640px); object-fit: contain; background: var(--sage); }
.block-body { padding: 22px 24px 26px; }
.block-body h2 { margin: 0 0 10px; font-size: clamp(22px, 4.6vw, 28px); }
@media (max-width: 720px) { .block-body { padding: 18px 18px 22px; } }
.field select { width: 100%; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--sage-2); border-radius: 14px; background: var(--bg); color: var(--text); font: 400 16px var(--font-sans); }
.field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(79, 122, 95, 0.18); }

/* ---------- новини сіткою: 2–3 картки в ряд ---------- */
.news-page { max-width: 1120px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: stretch; }
.news-grid .news-card { display: flex; flex-direction: column; min-width: 0; }
.news-thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--sage); cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.03); }
.news-grid .news-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.news-grid .news-body h2 { font-size: 21px; margin: 4px 0 8px; }
.news-excerpt { color: var(--text-soft); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-excerpt p { display: inline; }
.news-excerpt p + p::before { content: " "; }
.news-excerpt a { pointer-events: none; color: inherit; font-weight: inherit; }
.news-grid .news-more { align-self: flex-start; margin-top: auto; }
.news-grid .news-excerpt { margin-bottom: 14px; }
.section-news .news-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* вікно з повною новиною */
.news-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(20, 26, 23, 0.35);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.news-dialog::backdrop { background: rgba(20, 26, 23, 0.6); }
.news-dialog[open] { animation: dialog-in 0.25s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
.news-dialog .news-img { max-height: min(70vh, 760px); }
.news-dialog .news-body { padding: 22px 26px 28px; }
.news-dialog .news-body h2 { margin: 6px 0 12px; font-size: clamp(22px, 4.6vw, 30px); }
.news-dialog-close {
  position: sticky; top: 10px; float: right; z-index: 2; margin: 10px 10px -54px 0;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 253, 248, 0.94); color: var(--green-dark); font-size: 17px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(45, 58, 51, 0.15);
}
.news-dialog-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dialog-open, .dialog-open body { overflow: hidden; }
@media (max-width: 720px) { .news-dialog .news-body { padding: 18px 18px 24px; } }
@media (prefers-reduced-motion: reduce) { .news-dialog[open] { animation: none; } .news-thumb img { transition: none; } }
.news-grid > .gallery-empty { grid-column: 1 / -1; }

/* редактор: вхід з кодом із телефона */
.mfa-status { font-weight: 600; color: var(--text-soft); }
.mfa-status.is-on { color: var(--green-dark); }
.mfa-steps { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }
.mfa-qr { display: block; width: 200px; height: 200px; max-width: 100%; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--sage-2); }
#mfa-secret { overflow-wrap: anywhere; font-size: .95em; }
.to-toc { display: inline-flex; align-items: center; min-height: 44px; }

/* новина: дата події (помітно) і дата публікації (дрібно) */
.news-published { color: var(--text-soft); font-weight: 500; }
.news-event {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 6px 12px; border-radius: 12px;
  background: var(--sage); color: var(--green-dark); font-weight: 600; font-size: 15px; line-height: 1.3;
}
.news-event .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.news-event.is-past { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sage-2); color: var(--text-soft); font-weight: 500; }
.teaser .news-event { margin: 0 0 8px; font-size: 14px; }

/* зворотний відлік до богослужіння */
.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px auto 4px; }
.countdown[hidden] { display: none; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 10px 10px 8px;
  border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--sage-2);
}
.cd-unit b { font: 600 28px/1.1 var(--font-serif); color: var(--green-dark); font-variant-numeric: tabular-nums; }
.cd-unit small { margin-top: 3px; font-size: 12.5px; color: var(--text-soft); }
@media (max-width: 400px) { .cd-unit { min-width: 64px; padding: 8px 6px 6px; } .cd-unit b { font-size: 24px; } }

/* підпис «Сайт створив …» */
.footer-credit { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.footer-credit a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* картка новини — коротко; імена й дати не переносити через дефіс */
.news-meta, .news-event { hyphens: none; -webkit-hyphens: none; }
.news-grid .news-meta:empty { display: none; }
.news-grid .news-excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
.news-grid .news-card h2 { margin-bottom: 12px; }
.news-grid .news-meta .news-tag:first-child { margin-left: 0; }

/* «Поділитися» у відкритій новині */
.news-share { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--sage-2); }
.news-share-title { margin: 0 0 10px; font-weight: 600; color: var(--green-dark); }
.news-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--sage); color: var(--green-dark); font: 600 14.5px var(--font-sans); text-decoration: none; cursor: pointer;
}
.share-btn .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-btn:hover { background: var(--sage-2); }
.share-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.share-main { background: var(--green); color: var(--white); }
.share-main:hover { background: var(--green-dark); }
.news-share-msg { margin: 8px 0 0; min-height: 1.2em; font-size: 14px; color: var(--green); }

/* оголошення вгорі сайту (вмикає пастор у редакторі) */
.announce { background: #f6e7c8; color: #5a4316; border-bottom: 1px solid #ead2a0; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: flex-start; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 12px 16px; }
.announce .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.announce p { flex: 1; margin: 0; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.announce-title { font-weight: 700; }
.announce-close { flex: none; width: 36px; height: 36px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 16px; cursor: pointer; }
.announce-close:hover { background: rgba(90, 67, 22, 0.1); }
.announce-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

/* редактор: галочка */
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green-dark); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }

/* «Додати на екран телефону» */
.footer-install { margin-top: 10px; }
.footer-install-hint { max-width: 34em; margin: 6px auto 0; font-size: 13px; color: var(--text-soft); }
