/* ============================================================
   БО «Українська аудіовізуальна фундація» — стилі сайту
   Кінематографічна темна тема · синій + жовтий акценти
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-deep: #070b17;
  --panel: #121a30;
  --panel-2: #16203c;
  --line: #23304f;
  --text: #e9edf8;
  --muted: #9aa6c4;
  --blue: #4f9dff;
  --blue-deep: #2563eb;
  --yellow: #ffd23f;
  --yellow-deep: #eab308;
  --danger: #ff6b6b;
  --radius: 14px;
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Плівкове зерно поверх усього */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .01em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.08rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-bottom: 18px; }
.section-sub { color: var(--muted); max-width: 760px; margin-bottom: 34px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #111; padding: 10px 16px; z-index: 1001; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--yellow);
  margin: 0 0 14px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: #14100a; box-shadow: 0 6px 24px rgba(255, 210, 63, .25); }
.btn-primary:hover { background: #ffdd66; }
.btn-primary:disabled { background: #6b6248; color: #2d2a20; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: rgba(79, 157, 255, .12); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--yellow); }
.btn-lg { font-size: 1rem; padding: 16px 32px; }
.btn-donate { background: transparent; border-color: var(--yellow); color: var(--yellow); padding: 9px 18px; }
.btn-donate:hover { background: rgba(255, 210, 63, .12); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 16, 32, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; min-width: 0; }
.logo-mark { height: 46px; width: auto; flex: none; }
.footer-brand .logo-mark { height: 64px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-full { font-family: var(--font-display); font-size: .76rem; font-weight: 600; line-height: 1.25; color: var(--text); max-width: 250px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { color: var(--muted); font-weight: 500; font-size: .95rem; text-decoration: none !important; }
.site-nav > a:hover { color: var(--text); }
.site-nav > a[aria-current="page"] { color: var(--yellow); }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.lang-switch a { font-family: var(--font-mono); font-size: .78rem; padding: 4px 8px; border-radius: 5px; color: var(--muted); text-decoration: none !important; }
.lang-switch a.active { background: var(--blue-deep); color: #fff; }
.lang-switch a:hover:not(.active) { color: var(--text); }
.nav-toggle { display: none; }

.translation-notice {
  background: #1c2745;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  padding: 8px 20px;
}

/* ---------- Герой ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
/* «Промінь проєктора» */
.hero-glow {
  position: absolute; inset: -40% -10% auto;
  height: 130%;
  background:
    radial-gradient(42% 55% at 68% 18%, rgba(79, 157, 255, .17), transparent 70%),
    radial-gradient(34% 45% at 22% 80%, rgba(255, 210, 63, .10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-title { margin: 0 0 22px; }
.hero-title .accent { color: var(--yellow); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.event-meta { color: var(--yellow); margin: 0 0 16px; font-size: .95rem; }

.page-head { padding: 70px 0 8px; }

/* ---------- Головна: featured ---------- */
.featured-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 44px; align-items: center; }
.featured-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.donate-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.donate-strip p { color: var(--muted); margin: 6px 0 0; max-width: 560px; }

/* ---------- Проєкти ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.project-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease;
}
a.project-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.project-card img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.project-card-visual { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(140deg, #101a38, #1b2a55); }
.project-card-visual svg { width: 130px; }
.project-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.project-card-body p { color: var(--muted); margin: 0; }
.project-date { color: var(--yellow) !important; font-size: .8rem; }
.link-more { color: var(--blue); font-weight: 600; margin-top: auto; padding-top: 10px; }
.project-card-stub { opacity: .65; border-style: dashed; }

/* ---------- Розклад ---------- */
.sched-day { margin-bottom: 34px; }
.sched-date { color: var(--yellow); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
.sched-row {
  display: grid;
  grid-template-columns: 130px 120px 1fr auto;
  gap: 14px; align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(35, 48, 79, .6);
  border-radius: 8px;
}
.sched-row:hover { background: rgba(79, 157, 255, .06); }
.sched-time { color: var(--text); }
.sched-hall { color: var(--muted); font-size: .9rem; }
.sched-film { color: var(--text); font-weight: 600; }
a.sched-film:hover { color: var(--blue); text-decoration: none; }
.sched-note { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.badge {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid;
}
.badge-free { color: #7ee2a8; border-color: rgba(126, 226, 168, .4); background: rgba(126, 226, 168, .08); }
.badge-paid { color: var(--yellow); border-color: rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .08); }
.badge-inv  { color: var(--blue); border-color: rgba(79, 157, 255, .45); background: rgba(79, 157, 255, .08); }

/* ---------- Картки фільмів ---------- */
.films-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.film-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.film-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.film-poster { aspect-ratio: 2/3; width: 100%; object-fit: cover; }
.poster-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(160deg, rgba(79, 157, 255, .2), transparent 55%),
    linear-gradient(20deg, rgba(255, 210, 63, .16), transparent 50%),
    var(--panel-2);
  text-align: center; padding: 20px;
}
.poster-placeholder span { font-family: var(--font-display); font-size: 1.15rem; }
.poster-placeholder small { color: var(--muted); font-family: var(--font-mono); }
.film-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.film-card-body h3 { margin: 0; }
.film-alt-titles { color: var(--muted); font-size: .85rem; margin: 0; font-style: italic; }
.film-meta { color: var(--muted); margin: 0; font-size: .82rem; }
.film-awards { color: var(--yellow); font-size: .85rem; margin: 0; }
.film-blurb { color: var(--muted); margin: 2px 0 0; font-size: .95rem; }
.film-tba { color: var(--yellow); font-size: .82rem; margin: 4px 0 0; }
.todo-inline { color: var(--yellow); border-bottom: 1px dashed var(--yellow); }

/* ---------- Гості ---------- */
.guests-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-bottom: 36px; }
.guest-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: var(--radius); padding: 24px 26px; }
.guest-card p { color: var(--muted); margin: 0 0 6px; }
.guest-role { color: var(--yellow) !important; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Партнери ---------- */
.funder-credit {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(79, 157, 255, .1), rgba(255, 210, 63, .06));
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.funder-credit p { margin: 0; max-width: 640px; }
.funder-logo { flex: none; display: block; }
.funder-logo img { display: block; height: 64px; width: auto; }
.funder-logo-slot {
  flex: none; display: grid; place-items: center;
  min-width: 150px; min-height: 76px;
  background: #dde5f4; color: #16233f;
  border-radius: 10px; padding: 10px 18px;
}
.funder-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: center; }
/* Партнери: ряди «підпис + плитки однакового розміру» */
.pg { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pg-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pg-label { margin: 0; padding-top: 12px; color: var(--muted); font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; line-height: 1.5; font-weight: 500; }
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pg-tile {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 84px; padding: 14px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none !important; font-size: .95rem; line-height: 1.3;
  transition: border-color .2s, transform .2s;
}
.pg-logo { max-height: 48px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.pg-name { min-width: 0; font-weight: 600; }
a.pg-tile:hover, a.pg-tile:focus-visible { border-color: var(--blue); transform: translateY(-1px); }
@media (max-width: 760px) { .pg-row { grid-template-columns: 1fr; gap: 10px; } .pg-label { padding-top: 0; } }

/* ---------- Донати ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.donate-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.donate-card p { color: var(--muted); }
.req-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.req-list dt { color: var(--muted); font-size: .88rem; }
.req-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Банер «Метелики» ---------- */
.butterfly-banner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border: 1px solid var(--yellow);
  background:
    radial-gradient(60% 120% at 10% 50%, rgba(255, 210, 63, .12), transparent 60%),
    var(--panel);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 40px;
}
.bb-icon { width: 60px; flex: none; color: var(--bg-deep); animation: flutter 5s ease-in-out infinite; }
.bb-text { flex: 1 1 340px; }
.bb-text p { margin: 0; color: var(--muted); }
.bb-text strong { color: var(--text); }

/* ---------- Метелики: сторінка ---------- */
.hero-butterflies { background: radial-gradient(70% 100% at 50% 0%, #131d3d, var(--bg)); }
.butterfly-field { position: absolute; inset: 0; pointer-events: none; }
.fly { position: absolute; width: 54px; opacity: .8; animation: float 9s ease-in-out infinite; }
.fly-1 { top: 18%; right: 12%; }
.fly-2 { top: 58%; right: 26%; width: 36px; animation-delay: -3s; }
.fly-3 { top: 30%; right: 42%; width: 26px; animation-delay: -6s; opacity: .5; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-26px) rotate(8deg); } }
@keyframes flutter { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.stat-card { background: var(--panel); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 26px 28px; }
.stat-card:nth-child(2) { border-top-color: var(--yellow); }
.stat-card:nth-child(3) { border-top-color: #7ee2a8; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; margin: 0 0 8px; }
.stat-label { color: var(--muted); margin: 0; font-size: .95rem; }
.stats-caveat { color: var(--muted); font-size: .85rem; margin-top: 22px; }

.timeline { list-style: none; padding: 0; margin: 0 0 34px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(35, 48, 79, .6); }
.timeline-date { color: var(--yellow); }
.timeline p { margin: 0; color: var(--muted); }

.section-cta { text-align: center; }
.join-steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
  padding: 0; margin: 36px 0; text-align: left;
}
.join-steps li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 58px 26px 26px; position: relative; color: var(--muted);
}
.join-steps li::before {
  content: counter(step);
  position: absolute; top: 18px; left: 24px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--bg-deep);
  background: var(--yellow);
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
}
.join-steps li:nth-child(2)::before { background: var(--blue); color: #fff; }
.hashtags { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hashtag { background: var(--panel-2); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--yellow); }
.partners-list { columns: 2; gap: 40px; color: var(--muted); padding-left: 20px; }
.partners-list li { margin-bottom: 8px; break-inside: avoid; }

/* ---------- Проза / Про нас ---------- */
/* Контейнер лишається на всю ширину (єдина ліва межа сітки); обмежуємо лише ширину рядка тексту */
.prose > * { max-width: 780px; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.note { border-left: 3px solid var(--yellow); padding-left: 16px; }

/* ---------- Контакти ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.contact-card p { margin: 0 0 8px; }
.contact-form { max-width: 560px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: .92rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-hint { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 54px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-name { font-weight: 600; margin: 10px 0 0; }
.footer-muted { color: var(--muted); font-size: .87rem; margin: 0; }
.footer-heading { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--yellow); margin: 0 0 4px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-langs { margin-top: 10px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- Анімації появи ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fly, .bb-icon { animation: none; }
}

/* ---------- Адаптивність ---------- */
@media (max-width: 920px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-media { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ''; display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: transform .2s ease;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(-90deg) translateX(-6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { opacity: 0; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    padding: 16px 22px 22px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .btn-donate { margin-top: 8px; }
  .lang-switch { margin-top: 12px; }
}
@media (max-width: 820px) {
  .brand-full { max-width: 38vw; font-size: .72rem; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 52px 0; }
  .sched-row { grid-template-columns: 1fr auto; grid-template-areas: 'time badge' 'film film' 'hall hall'; gap: 4px 12px; padding: 14px 10px; }
  .sched-time { grid-area: time; }
  .sched-hall { grid-area: hall; }
  .sched-film { grid-area: film; }
  .sched-row .badge { grid-area: badge; justify-self: end; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .partners-list { columns: 1; }
  .donate-strip { padding: 28px 24px; }
}

/* ============================================================
   Проєкти: вкладки, статуси, план 2027, «Долучитися»
   ============================================================ */

/* Бейджі статусу */
.pill {
  display: inline-block;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; border: 1px solid; white-space: nowrap;
  vertical-align: middle;
}
.pill-confirmed, .pill-active { color: #7ee2a8; border-color: rgba(126, 226, 168, .45); background: rgba(126, 226, 168, .08); }
.pill-open { color: var(--yellow); border-color: rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .1); }
.pill-planned, .pill-work { color: var(--blue); border-color: rgba(79, 157, 255, .45); background: rgba(79, 157, 255, .08); }
.pill-negotiating { color: #ffb36b; border-color: rgba(255, 179, 107, .45); background: rgba(255, 179, 107, .08); }
.pill-done { color: var(--muted); border-color: var(--line); background: rgba(154, 166, 196, .08); }
.hero-status { margin: 0 0 18px; }
.project-card-top { margin: 0 0 4px; }
.more-link { margin-top: 26px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.hero-actions.center { justify-content: center; }

/* Вкладки «Актуальні / Реалізовані» (без JS обидві панелі видно) */
.tabs { display: flex; gap: 8px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.tab {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent;
  padding: 12px 18px; cursor: pointer; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--yellow); border-bottom-color: var(--yellow); }
.tab-count {
  font-family: var(--font-mono); font-size: .75rem; margin-left: 6px;
  background: var(--panel-2); border-radius: 999px; padding: 2px 8px; color: var(--muted);
}
.tab-panel[hidden] { display: none; }
.project-card-visual-year span { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; color: var(--yellow); opacity: .85; }

/* План заходів 2027 */
.plan { list-style: none; margin: 34px 0 0; padding: 0; border-left: 2px solid var(--line); }
.plan-item { display: grid; grid-template-columns: 170px 1fr; gap: 22px; padding: 0 0 34px 26px; position: relative; }
.plan-item::before {
  content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 999px; background: var(--yellow); box-shadow: 0 0 0 4px var(--bg);
}
.plan-when { color: var(--yellow); padding-top: 1px; }
.plan-body h3 { margin: 0 0 8px; line-height: 1.35; }
.plan-body h3 .pill { margin-left: 8px; }
.plan-body p { color: var(--muted); margin: 0; max-width: 720px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 34px; }
.who-grid .guest-card h3 { margin-bottom: 8px; }

/* Сторінка «Долучитися» */
.hero-join { background: radial-gradient(70% 100% at 80% 0%, #15213f, var(--bg)); }
.way-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.way-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; scroll-margin-top: 90px; }
.way-card h3 { color: var(--yellow); margin-bottom: 12px; }
.way-card p { color: var(--muted); }
.way-sub { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text) !important; margin: 18px 0 6px; }
.way-list, .terms, .join-list { margin: 8px 0 14px; padding-left: 20px; color: var(--muted); }
.way-list li, .terms li, .join-list li { margin-bottom: 7px; }
.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 10px; }
.rights-grid h3 { margin-bottom: 14px; }
.steps-list { list-style: none; counter-reset: stp; padding: 0; margin: 0; }
.steps-list li {
  counter-increment: stp; position: relative; padding: 0 0 18px 48px; color: var(--muted);
}
.steps-list li::before {
  content: counter(stp); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--yellow); color: var(--bg-deep); font-family: var(--font-display); font-weight: 800; font-size: .85rem;
}
.terms { list-style: none; padding: 0; }
.terms li { border-left: 3px solid var(--blue); padding-left: 14px; }
.section-sub.center { text-align: center; }
.join-project .join-list { list-style: none; max-width: 760px; margin: 22px auto 30px; padding: 0; text-align: left; }
.join-project .join-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}

@media (max-width: 820px) {
  .plan-item { grid-template-columns: 1fr; gap: 6px; }
  .tab { padding: 10px 12px; font-size: .88rem; }
}

/* ============================================================
   Мережа «Сузір'я»
   ============================================================ */
.hero-network { background: radial-gradient(60% 90% at 85% 10%, #162244, var(--bg)); }
.project-card-visual-stars svg { width: 78%; max-width: 280px; }
.network-strip { border-color: rgba(79, 157, 255, .45); background: linear-gradient(120deg, #101a38, var(--panel-2)); }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.tier-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 26px 26px 20px; }
.tier-card:nth-child(2) { border-top-color: var(--yellow); }
.tier-card:nth-child(3) { border-top-color: #7ee2a8; }
.tier-card h3 { margin-bottom: 6px; }
.tier-who { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.tier-rows { margin: 0; display: grid; gap: 0; }
.tier-rows dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); margin-top: 14px; }
.tier-rows dd { margin: 3px 0 0; color: var(--text); }
.steps-wide { max-width: 760px; }
.rights-terms { max-width: 820px; }
.rights-terms li { margin-bottom: 12px; }
.network-form { margin: 26px auto 0; text-align: left; }
.network-form select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
}
.network-form select:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* ============================================================
   ТАЛАН
   ============================================================ */
.hero-talan { background: radial-gradient(70% 100% at 15% 0%, #1b1d27, var(--bg)); }
.talan-facts { margin-top: 18px; }
.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.event-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.event-card h3 { margin: 6px 0 4px; }
.event-card p { color: var(--muted); }
.event-card-top { margin: 0; }
.event-card-when { color: var(--yellow) !important; margin: 0 0 10px; }
.talan-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.talan-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.credits-strip { margin-top: 26px; background: #0e1424; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.credits-strip img { max-width: 720px; width: 100%; margin: 0 auto; opacity: .9; }

/* Посилання на соцмережі */
.social-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 500; text-decoration: none !important; }
.social-link:hover { color: var(--text); }
.fb-icon { width: 20px; height: 20px; flex: none; }
.footer-social { color: var(--muted); }

/* Фото контактних осіб (необов'язкове) */
.contact-photo { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; border: 2px solid var(--line); margin-bottom: 14px; }

/* Картки людей з фото (ТАЛАН) */
.person-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin: 0 0 40px; }
.person-card { display: flex; gap: 20px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.person-photo { width: 112px; height: 112px; flex: none; border-radius: 999px; object-fit: cover; border: 2px solid var(--line); }
.person-card h3 { margin: 0 0 4px; }
.person-card p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.person-card .guest-role { margin-top: 0; }
@media (max-width: 480px) { .person-card { flex-direction: column; } }

/* Мережа «Сузір'я»: дві програми */
.program-grid .guest-card p { color: var(--muted); }
.rights-heading { margin: 40px 0 8px; }
#tiers .tab-panel { padding-top: 6px; }

/* ============================================================
   Сітка: однакова висота карток у рядку, CTA завжди внизу
   ============================================================ */
.projects-grid, .who-grid, .tier-grid, .way-grid, .event-cards, .contacts-grid,
.donate-grid, .stats-grid, .person-cards, .guests-grid, .films-grid { align-items: stretch; }
.project-card-body { flex: 1; }
.guest-card, .way-card, .contact-card, .donate-card, .event-card, .stat-card, .tier-card {
  display: flex; flex-direction: column;
}
.card-cta { margin-top: auto !important; padding-top: 16px; }
.card-cta .btn { display: inline-block; }
.guest-card h3, .way-card h3, .contact-card h3 { margin-top: 0; }

/* ============================================================
   Сітки без «сирітських» карток
   ============================================================ */
/* 5 карток: 3 у першому ряду + 2 розтягнуті в другому */
.grid-5 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.grid-5 > * { grid-column: span 2; }
.grid-5 > :nth-child(n+4) { grid-column: span 3; }
/* галерея: 4 в ряд → 2×2 */
.talan-gallery { grid-template-columns: repeat(4, 1fr); }
/* планшет: 2 колонки, непарна остання картка на всю ширину */
@media (max-width: 1100px) {
  .grid-5, .who-grid, .tier-grid, .stats-grid, .talan-gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > *, .grid-5 > :nth-child(n+4) { grid-column: span 1; }
  .grid-5 > :last-child:nth-child(odd), .who-grid > :last-child:nth-child(odd),
  .tier-grid > :last-child:nth-child(odd), .stats-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* телефон: одна колонка */
@media (max-width: 640px) {
  .grid-5, .who-grid, .tier-grid, .stats-grid, .talan-gallery { grid-template-columns: 1fr; }
  .grid-5 > :last-child:nth-child(odd), .who-grid > :last-child:nth-child(odd),
  .tier-grid > :last-child:nth-child(odd), .stats-grid > :last-child:nth-child(odd) { grid-column: auto; }
}

/* проєкти: 4 в ряд → 2×2 → 1 колонка */
@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* блок «Команда» усередині .prose не стискаємо до 780px */
.prose > .team-grid { max-width: none; }

/* форми: поля не розпирають сітку на вузьких екранах */
.contact-form { grid-template-columns: minmax(0, 1fr); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }

/* Стратегічні партнери: смуга під героєм — темна, у палітрі сайту; кольорові логотипи на м'яких пластинах */
.partner-strip { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-inner { display: flex; align-items: center; gap: 44px; padding-top: 20px; padding-bottom: 20px; }
.ps-label { margin: 0; flex: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); max-width: 9em; line-height: 1.5; }
.ps-list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 18px 40px; }
.ps-item { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; border-radius: 12px; padding: 6px 14px 6px 6px; margin: -6px -14px -6px -6px; transition: background .2s, transform .2s; }
.ps-item:hover, .ps-item:focus-visible { background: rgba(79, 157, 255, .12); transform: translateY(-1px); }
.ps-logo { height: 56px; width: 128px; object-fit: contain; flex: none; background: #dde5f4; border-radius: 10px; padding: 6px 12px; box-sizing: content-box; }
.ps-name { font-weight: 600; line-height: 1.3; max-width: 22em; font-size: .95rem; }
.ps-arrow { color: var(--yellow); font-weight: 700; }
@media (max-width: 1000px) { .ps-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ps-inner { flex-direction: column; align-items: flex-start; gap: 14px; } .ps-label { max-width: none; } .ps-list { grid-template-columns: 1fr; gap: 16px; } .ps-logo { height: 44px; width: 104px; } }

/* Стратегічні партнери: повний блок (картки-посилання) */
.sp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.sp-card:hover, .sp-card:focus-visible { border-color: var(--yellow); transform: translateY(-2px); }
.sp-logo { background: #dde5f4; border-radius: 10px; height: 110px; display: grid; place-items: center; padding: 14px 20px; }
.sp-logo img { max-height: 80px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.sp-name { margin: 0; font-weight: 600; text-align: center; }
.sp-link { margin-top: auto; text-align: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
@media (max-width: 640px) { .sp-grid { grid-template-columns: 1fr; } }
.footer-partners a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.thanks-lead > a { flex: none; display: block; }

/* Фото гостей і галерея з фестивалю */
.person-photo-lg { width: 132px; height: 132px; }
.gallery-title { margin: 44px 0 18px; }
.photo-grid { margin-bottom: 8px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; border-radius: 10px; border: 1px solid var(--line); }
.photo-grid > :nth-child(n+4) img { aspect-ratio: 3 / 2; }
.photo-grid figcaption { color: var(--muted); font-size: .85rem; line-height: 1.4; }
@media (max-width: 1100px) { .photo-grid img, .photo-grid > :nth-child(n+4) img { aspect-ratio: 4 / 5; } }

/* Велика подяка */
.thanks { background: radial-gradient(70% 120% at 10% 0%, rgba(255, 210, 63, .08), transparent 60%), var(--bg); border-top: 1px solid var(--line); }
.thanks-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 20px; }
.thanks-lead { display: flex; gap: 22px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; max-width: 900px; }
.thanks-lead img { height: 52px; width: auto; flex: none; background: #dde5f4; border-radius: 10px; padding: 6px 12px; box-sizing: content-box; }
.thanks-lead p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text); }
.thanks-more { color: var(--muted); font-size: .95rem; line-height: 1.65; max-width: 900px; margin: 0; }
@media (max-width: 760px) { .thanks-lead { flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; } .thanks-lead img { height: 44px; } }

/* Біо з фото (режисерка «ТАЛАНу») */
.bio-card { display: flex; gap: 34px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.bio-photo { width: 240px; height: 240px; flex: none; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.bio-body h3 { margin: 0 0 6px; font-size: 1.4rem; }
.bio-body p { color: var(--muted); margin: 10px 0 0; max-width: 760px; }
.bio-body .guest-role { margin-top: 0; }
@media (max-width: 760px) { .bio-card { flex-direction: column; padding: 22px; } .bio-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 320px; } }

/* Галерея 2×2 (горизонтальні фото) */
.gallery-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-2x2 figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery-2x2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gallery-2x2 figcaption { color: var(--muted); font-size: .88rem; line-height: 1.4; }
@media (max-width: 640px) { .gallery-2x2 { grid-template-columns: 1fr; } }
