/* Медичний код громад — прототип головної (Д233, 31.10.2026).
   Палітра — з оригінального логотипа (forum-logo.png) і орієнтирів ТЗ Лариси v2 §2.
   Сітка 8 px; контейнер 1200 px; секції 96/48 px. */

:root {
  --navy-950: #071D35;   /* ТЗ: найглибший — підвал */
  --navy-900: #03275B;   /* логотип: темно-синій — перший екран, темні секції */
  --navy-700: #0B3857;   /* ТЗ: другий синій — картки на темному */
  --teal-600: #087D85;   /* ТЗ: бірюзовий кнопок — білий текст 4.9:1 */
  --teal-500: #009DA0;   /* логотип: бірюзовий — лише великі номери й акценти */
  --gold-400: #FCAB26;   /* логотип: зірка — дата й тонкі риски на темному, не більше */
  --surface: #F6F8FA;
  --card: #FFFFFF;
  --line: #DCE3EA;
  --text: #152330;
  --muted: #4A5B6C;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C3D2E3;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --pad-x: 16px;
  --section-y: 48px;

  --font-display: "Montserrat", "Arial", sans-serif;
  --font-body: "Open Sans", "Segoe UI", "Arial", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* відгук на дотик: швидкий старт */

  /* Зерно: тонкий «друкарський» шум на темних блоках — глибина й без смуг у градієнтах (статичне, без руху) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --pad-x: 32px; --section-y: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; color: var(--navy-900); }
h3 { font-size: 20px; font-weight: 700; color: var(--navy-900); }
p { margin: 0; }

.wrap {
  max-width: var(--container); margin: 0 auto;
  /* вирізи екрана телефона (viewport-fit=cover) не зʼїдають поле */
  padding-inline: max(var(--pad-x), env(safe-area-inset-left)) max(var(--pad-x), env(safe-area-inset-right));
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--card); }
/* Заголовки секцій — по центру (Люмі, 31.10 21:2x: «зміщені, а не центровані»). Виміряно на 1440:
   усі 11 стояли ліворуч, середина тексту на 230–430 px лівіше середини екрана, а сітки карток під ними — симетричні */
.section__head {
  display: grid; gap: 16px; justify-items: center; text-align: center;
  max-width: 760px; margin: 0 auto 48px;
}
.section__lead { color: var(--muted); font-size: 18px; max-width: 640px; text-wrap: pretty; }
.section__head .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.section__head .eyebrow::before, .section__head .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.5;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}

/* ── Прототипна мітка ─────────────────────────────── */
.proto {
  background: var(--gold-400);
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px var(--pad-x);
}

/* ── 01 Шапка ─────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.header__logo img { height: 44px; width: auto; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.burger {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--navy-900); cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--line); background: var(--card); }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--pad-x) 16px; display: grid; }
.mobile-nav a {
  display: block; padding: 12px 0; color: var(--text);
  text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line);
}
@media (min-width: 1200px) {   /* 8 пунктів меню: на 1100 сторінка розпиралась до 1146 — виміряно */
  .nav { display: block; }
  .header__actions { margin-left: 24px; }
  .burger, .mobile-nav { display: none !important; }
  .header__logo img { height: 60px; }
}

/* ── Кнопки ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }   /* кнопка «чує» натиск */
.btn--primary { background: var(--teal-600); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--navy-900); background: transparent; }
.btn--on-dark.btn--ghost { color: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Наведення — лише там, де є миша: на телефоні дотик лишав «залиплий» колір */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--teal-600); }
  .btn--primary:hover { background: #066A71; }
  .btn--ghost:hover { background: rgba(3, 39, 91, 0.06); }
  .btn--on-dark.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
}

/* ── 02 Перший екран ─────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900);
  color: var(--on-dark);
}
/* Сітку-«клітинки» прибрано (Люмі, 31.10 19:0x): прикраса без змісту. Замість неї — три шари зі змістом:
   знак форуму (коло людей навколо зірки — громади разом), два світла кольорів логотипа, що повільно дихають,
   і зерно. Рух лише transform, 28–34 с: тло живе, але не кличе погляд від тексту. */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(820px, 125vw); aspect-ratio: 1;
  right: max(-260px, -20vw); top: 50%; transform: translateY(-50%);
  background: url("mark-white.png") center / contain no-repeat;
  opacity: 0.055;
}
@media (max-width: 899px) {
  .hero::before { top: auto; bottom: -22%; right: -38%; transform: none; width: 115vw; }
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; border-radius: 50%; }
.hero__bg::before {
  width: 90vmax; height: 90vmax; right: -35vmax; top: -45vmax;
  background: radial-gradient(closest-side, rgba(0, 157, 160, 0.34), transparent);
  animation: glow-a 28s ease-in-out infinite alternate;
}
.hero__bg::after {
  width: 70vmax; height: 70vmax; left: -30vmax; bottom: -45vmax;
  background: radial-gradient(closest-side, rgba(252, 171, 38, 0.16), transparent);
  animation: glow-b 34s ease-in-out infinite alternate;
}
@keyframes glow-a { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.1); } }
@keyframes glow-b { to { transform: translate3d(6vmax, -5vmax, 0) scale(1.08); } }
.hero::after, .section--dark::after, .banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: 0.08; mix-blend-mode: overlay;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 32px;
  padding-block: 64px 56px;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.35fr 1fr; align-items: end; padding-block: 112px 96px; }
}
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  font-size: clamp(36px, 7.4vw, 76px);
  font-weight: 800; letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: 16px;
}
.hero__slogan {
  margin-top: 24px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35;
}
.hero__desc { margin-top: 16px; color: var(--on-dark-muted); max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__cta .btn { flex: 1 1 100%; }   /* на телефоні — одразу на всю ширину: з резервним шрифтом обидві кнопки
                                         влазили в ряд і перестрибували, коли довантажувався Montserrat (видно на відео 31.10) */
@media (min-width: 600px) { .hero__cta .btn { flex: 0 0 auto; } }
/* До 899 перший екран — одна колонка, і ліве вирівнювання з рваним правим краєм читалось як «з'їхало ліворуч»
   (Люмі, 31.10 22:3x; виміряно на 390: середина заголовка на 35 px лівіше центру, а заголовки розділів нижче — по центру).
   На комп'ютері ліворуч лишається: там текст урівноважує друга колонка з карткою фактів. */
@media (max-width: 899px) {
  .hero__inner > div { text-align: center; }
  .hero__desc { margin-inline: auto; }
  .hero__cta { justify-content: center; }
}
/* Метаінформація ТЗ §5.1: на телефоні картка фактів нижче першого екрана — дата й місто мусять бути вгорі */
.hero__meta {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--gold-400);
}
@media (min-width: 900px) { .hero__meta { display: none; } }
@media (max-width: 899px) { .facts__date { display: none; } }   /* дата вже стоїть під заголовком — не двічі */

.facts {
  display: grid; gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 29, 53, 0.42);
  padding: 24px;
}
.facts__date {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3vw, 32px); color: var(--gold-400); line-height: 1.2;
}
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--on-dark-muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }
.safety {
  display: flex; gap: 12px; align-items: flex-start;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px; color: var(--on-dark-muted);
}
.safety svg { flex: none; color: var(--gold-400); margin-top: 3px; }

/* Поява першого екрана: один раз за відвідини, сходинкою по 60 мс — сторінка «збирається», а не блимає.
   Лише CSS: працює без скрипта; людям, що просили менше руху, — одразу все на місці */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > div > *, .facts { animation: rise 0.75s var(--ease-out) both; }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.11s; }
  .hero__meta { animation-delay: 0.17s; }
  .hero__slogan { animation-delay: 0.23s; }
  .hero__desc { animation-delay: 0.29s; }
  .hero__cta { animation-delay: 0.35s; }
  .facts { animation-delay: 0.41s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ── Смуга підтримки ─────────────────────────────── */
.support { background: var(--card); border-bottom: 1px solid var(--line); }
.support__row { display: grid; gap: 16px 40px; padding-block: 24px; align-items: center; }
@media (min-width: 900px) { .support__row { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); } }
.support__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.support__org { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.support__org img { height: 64px; width: auto; flex: none; }
.support__name { font-weight: 600; color: var(--navy-900); font-size: 15px; line-height: 1.5; }
.support__name span { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 899px) {   /* у стовпчик: логотип над назвою, усе по центру — як перший екран над смугою */
  .support__row { justify-items: center; text-align: center; }
  .support__org { flex-direction: column; gap: 8px; }
}
@media (hover: hover) and (pointer: fine) {
  .support__org:hover .support__name { text-decoration: underline; text-underline-offset: 0.2em; }
}

/* ── Картки ───────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 720px) and (max-width: 999px) { .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
/* пакети: ціни не переносяться, тож 5 колонок лише від 1200 (на 1000–1199 картка вилазила до 1146 — виміряно).
   minmax(0,1fr): без нього найширша ціна розпирала першу колонку, і ряд вилазив за контейнер на 9 px (1440, Д233) */
@media (min-width: 1000px) and (max-width: 1199px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1200px) { .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 8px; align-content: start;
  /* мʼяка двошарова тінь замість плаского контуру — картка лежить на сторінці, а не намальована на ній */
  box-shadow: 0 1px 2px rgba(3, 39, 91, 0.04), 0 14px 32px -18px rgba(3, 39, 91, 0.18);
}
.section--white .card { background: var(--surface); }
.card p { color: var(--muted); }
.card__tag {
  justify-self: start;
  font-size: 13px; font-weight: 700; color: var(--teal-600);
  background: rgba(8, 125, 133, 0.1); border-radius: 999px; padding: 4px 12px;
}

@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Оргкомітет */
.person { gap: 12px; }
.person__photo {
  width: 144px; height: 144px; border-radius: 50%;
  object-fit: cover; object-position: center 30%;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 2px rgba(0, 157, 160, 0.45);   /* бірюзове кільце логотипа */
  margin: 2px 0 8px 2px;
}
.card .person__links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; }
.person__links span { color: var(--muted); font-weight: 400; }

/* 04 нумеровані напрями */
.topic { grid-template-columns: auto 1fr; gap: 4px 20px; }
.topic__n {
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1;
  color: var(--teal-500);
}

/* 05 формати з іконками */
.icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(3, 39, 91, 0.06); color: var(--navy-900);
  margin-bottom: 8px;
}

/* ── 06 Як працює ────────────────────────────────── */
.section--dark {
  position: relative; isolation: isolate;
  background: radial-gradient(circle at 12% 0%, rgba(0, 157, 160, 0.22), transparent 45%), var(--navy-900);
  color: var(--on-dark);
}
.section--dark h2 { color: var(--on-dark); }
.section--dark .section__lead { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--gold-400); }
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.step {
  position: relative;
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 24px;
  display: grid; gap: 8px; align-content: start;
}
.step__n { font-family: var(--font-display); font-weight: 800; color: var(--gold-400); font-size: 15px; letter-spacing: 0.1em; }
.step h3 { color: var(--on-dark); letter-spacing: 0.06em; text-transform: uppercase; font-size: 18px; }
.step p { color: var(--on-dark-muted); }
.step:not(:last-child)::after {           /* стрілка послідовності */
  content: ""; position: absolute;
  left: 50%; bottom: -14px; width: 12px; height: 12px;
  border-right: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400);
  transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 1000px) {
  .step:not(:last-child)::after { left: auto; right: -27px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* ── Програма (формується) ───────────────────────── */
.timeline { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; max-width: 760px; }
.timeline li {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.timeline time { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* від 768 шрифт 17 px — «10:00–16:00» не вміщалось у 112 і ламалось на два рядки (виміряно на 1440) */
@media (min-width: 768px) { .timeline li { grid-template-columns: 136px 1fr; } }
.note {
  border-left: 4px solid var(--gold-400);
  background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 24px; color: var(--muted);
}

/* ── 08 Партнерство ──────────────────────────────── */
.package { gap: 12px; }
.card .package__price {   /* .card p фарбує текст сірим — ціні потрібна вища специфічність */
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; color: var(--navy-900);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.package--accent { border-color: var(--teal-600); box-shadow: inset 0 0 0 1px var(--teal-600); }
/* Телефон: п'ять пакетів у стовпчик займали ~900 px — рядок «назва й опис ↔ ціна» вдвічі коротший.
   Від 360: на 320 ціна не вміщалась поруч із «Спеціальний» і вилазила на 31 px (виміряно) — там лишається стовпчик */
@media (min-width: 360px) and (max-width: 719px) {
  .package { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px; }
  .package h3 { font-size: 18px; }
  .card .package__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; }
}
/* П'ять колонок: ціна вужча, а назва резервує два рядки — щоб ціни стояли на одній лінії */
@media (min-width: 1200px) {
  .package { padding: 20px; }
  .package h3 { font-size: 18px; min-height: 2.3em; }
  .card .package__price { font-size: 22px; }
}
.pkg-notes { display: grid; gap: 16px; margin: 32px auto 0; max-width: 860px; }
.pkg-notes > p { text-align: center; }
.neutral {
  display: grid; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: var(--surface);
}
.neutral strong { font-family: var(--font-display); color: var(--navy-900); letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }

/* ── 09 Слоган-банер ─────────────────────────────── */
.banner {
  position: relative; isolation: isolate; text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 157, 160, 0.38), transparent 60%),
    var(--navy-950);
  color: var(--on-dark);
  padding-block: 80px;
}
.banner p {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 4.6vw, 48px); line-height: 1.2; max-width: 900px;
  margin-inline: auto; text-wrap: balance;
}
.banner p span { color: var(--gold-400); }

/* ── 11 Реєстрація ───────────────────────────────── */
.reg { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.reg h3 { font-size: 24px; }
.card .reg__free {
  font-weight: 700; color: var(--teal-600);
  display: flex; gap: 8px; align-items: center;
}
.reg .btn { align-self: flex-start; margin-top: auto; }   /* обидві кнопки — на одній лінії внизу */
/* 720–899: дві колонки вузькі — «Реєстрація громад і КНП» ламалась у два рядки (кнопки розʼїжджались на 27 px) */
@media (max-width: 899px) { .reg { padding: 24px; } .reg .btn { padding-inline: 20px; } }

/* ── Часті питання ───────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 24px;
  transition: border-color 0.2s ease;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 36px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
/* плюс із двох рисок: відкрито — вертикальна лягає, і плюс стає мінусом рухом, а не заміною знака */
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: var(--teal-600);
  transition: transform 0.25s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
/* відповідь розгортається, а не зʼявляється стрибком (Chrome/Edge 131+; інші браузери — як раніше, миттєво) */
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding-bottom: 20px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .faq details:hover { border-color: rgba(8, 125, 133, 0.45); }
  .faq summary:hover { color: var(--teal-600); }
}

/* ── Поява блоків при гортанні (клас .js ставить скрипт у голові — без нього все видно одразу) ── */
.js .section__head, .js .grid > *, .js .steps > *, .js .timeline > li,
.js .faq > details, .js .pkg-notes, .js .banner p, .js .support__row > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out) var(--d, 0ms), transform 0.7s var(--ease-out) var(--d, 0ms);
}
/* вага 0,3,1 — вища за будь-яке «сховано» вище (.js .faq > details = 0,2,1): інакше питання лишились би невидимими */
html.js .is-in.is-in { opacity: 1; transform: none; }
.js .faq > details.is-in { transition: opacity 0.7s var(--ease-out) var(--d, 0ms), transform 0.7s var(--ease-out) var(--d, 0ms), border-color 0.2s ease; }

/* Менше руху — тло стоїть, плюс міняється без обертання, відповіді відкриваються одразу */
@media (prefers-reduced-motion: reduce) {
  .hero__bg::before, .hero__bg::after { animation: none; }
  .faq summary::before, .faq summary::after, .faq details::details-content { transition: none; }
}
/* Друк і PDF: усе видно, без проміжних станів руху */
@media print {
  .js .section__head, .js .grid > *, .js .steps > *, .js .timeline > li,
  .js .faq > details, .js .pkg-notes, .js .banner p, .js .support__row > * { opacity: 1 !important; transform: none !important; }
  .hero__inner > div > *, .facts { animation: none !important; }
}

/* ── 12 Підвал ───────────────────────────────────── */
.footer { background: var(--navy-950); color: var(--on-dark-muted); padding-block: 64px 32px; font-size: 15px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { color: var(--on-dark); font-size: 16px; margin-bottom: 12px; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--on-dark); text-transform: uppercase; }
.footer a { color: var(--on-dark); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; }
@media (max-width: 899px) {   /* одна колонка — по центру, у лад із рештою сторінки */
  .footer__grid, .footer__bottom { text-align: center; }
  .footer ul { justify-items: center; }
}

/* ── Сторінка політики конфіденційності (Д234) ─────── */
.legal__wrap { max-width: 840px; }
.legal__title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: var(--navy-900); }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--navy-900); }
.legal__date { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.legal__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.legal__box h3 { margin-bottom: 8px; }
.legal__back { text-align: center; margin-top: 40px; }
.legal__off:disabled { opacity: 0.7; cursor: default; }
