/* ==========================================================================
   ГО «Українське об'єднання «Наш Шлях»» — версія 2
   Структура за ескізом: випадне меню, обкладинка-слайдер, підзвітність,
   футер із повним дублюванням меню.
   ========================================================================== */

:root {
  --void: #05121F;
  --navy: #0C2438;
  --navy-lift: #163A56;
  --sky: #4CB2E8;
  --sky-dim: #2A7CB0;
  --gold: #F7D64A;
  --gold-deep: #E0B92A;
  --red: #E02020;
  --paper: #F2F5F8;
  --white: #FFFFFF;
  --ink: #0A1826;
  --muted: #5E7488;
  --muted-light: #93AEC2;
  --line: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(10, 24, 38, 0.10);
  --nav-h: 92px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; scroll-padding-top: 110px; }

body {
  background: var(--void); color: #E8F0F6;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.62; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; max-width: 100%; position: relative;
}

h1, h2, h3, h4 { font-family: 'Onest', -apple-system, sans-serif; letter-spacing: -0.015em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; width: 100%; }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

.mono {
  font-family: 'JetBrains Mono', monospace; font-size: 0.76rem;
  letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ==================== ШАПКА ==================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 18, 31, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
header.solid { background: rgba(5, 18, 31, 0.96); }
header .wrap { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 20px rgba(247, 214, 74, 0.28);
}
.brand-txt { font-family: 'Onest', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.15; }
.brand-txt span {
  display: block; font-family: 'JetBrains Mono', monospace; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.12em; color: var(--sky); margin-top: 3px;
}

/* головне меню з випадними списками */
nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 8px;
  font-size: 0.94rem; font-weight: 500; color: #DCE8F1;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active { background: rgba(255,255,255,0.07); color: #fff; }
.nav-link.active { color: var(--gold); }
.nav-link .caret {
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: 0.55; transition: transform .25s, opacity .2s;
}
.nav-item:hover .caret { transform: rotate(225deg) translateY(-2px); opacity: 1; }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px;
  background: rgba(12, 36, 56, 0.98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 9px; opacity: 0; visibility: hidden; transform: translateY(-7px);
  transition: opacity .22s, transform .22s, visibility .22s;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.9rem; color: #C3D6E4; transition: background .18s, color .18s, padding-left .18s;
}
.dropdown a:hover { background: rgba(247, 214, 74, 0.12); color: var(--gold); padding-left: 18px; }
.dropdown .dd-group {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); padding: 12px 14px 6px;
}
.dropdown hr { border: none; border-top: 1px solid var(--line); margin: 7px 4px; }

/* права частина шапки */
.head-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang { display: flex; gap: 2px; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; }
.lang a {
  padding: 6px 8px; border-radius: 6px; color: var(--muted-light);
  letter-spacing: 0.06em; transition: color .2s, background .2s;
}
.lang a.on { color: var(--void); background: var(--gold); font-weight: 500; }
.lang a:not(.on):hover { color: #fff; background: rgba(255,255,255,0.08); }
.lang span { color: rgba(255,255,255,0.2); align-self: center; }

.btn-donate {
  background: var(--red); color: #fff; font-weight: 600; font-size: 0.92rem;
  padding: 12px 24px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(224, 32, 32, 0.32);
  transition: transform .2s, box-shadow .2s;
}
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 13px 32px rgba(224, 32, 32, 0.45); }

.menu-btn {
  display: none; background: none; border: none; color: #E8F0F6;
  cursor: pointer; padding: 10px; width: 46px; height: 46px; position: relative; z-index: 120;
}
.menu-btn span {
  display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px;
  transition: transform .32s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  nav.main { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .head-right { order: 2; }
  :root { --nav-h: 78px; }
}
@media (max-width: 620px) {
  .brand-txt span { display: none; }
  .lang { display: none; }
  .btn-donate { padding: 10px 18px; font-size: 0.86rem; }
}

/* ==================== МОБІЛЬНЕ МЕНЮ ==================== */
.nav-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: linear-gradient(165deg, var(--void), #0A2337);
  padding: calc(var(--nav-h) + 20px) 0 40px;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 42px) 38px);
  transition: clip-path .55s cubic-bezier(.7, 0, .3, 1);
  pointer-events: none;
}
body.nav-open .nav-overlay { clip-path: circle(160% at calc(100% - 42px) 38px); pointer-events: auto; }
body.nav-open { overflow: hidden; }
.mob-group { border-bottom: 1px solid var(--line); }
.mob-head {
  width: 100%; background: none; border: none; color: #E8F0F6; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 19px 0; font-family: 'Onest', sans-serif; font-weight: 600;
  font-size: 1.22rem; letter-spacing: -0.02em; text-align: left;
}
.mob-head .pm { position: relative; width: 15px; height: 15px; flex-shrink: 0; opacity: 0.6; }
.mob-head .pm::before, .mob-head .pm::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mob-head .pm::before { left: 0; right: 0; top: 6.5px; height: 2px; }
.mob-head .pm::after { top: 0; bottom: 0; left: 6.5px; width: 2px; }
.mob-group.open .mob-head .pm::after { transform: scaleY(0); opacity: 0; }
.mob-group.open .mob-head { color: var(--gold); }
.mob-sub { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.7,.3,1); }
.mob-group.open .mob-sub { max-height: 620px; }
.mob-sub a {
  display: block; padding: 11px 0 11px 18px; font-size: 0.98rem; color: #A9C2D4;
  border-left: 1px solid var(--line); margin-left: 2px;
}
.mob-sub a:hover { color: var(--gold); }
.mob-sub .s-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); padding: 12px 0 4px 18px;
  border-left: 1px solid var(--line); margin-left: 2px;
}
.mob-single { display: block; padding: 19px 0; font-family: 'Onest', sans-serif; font-weight: 600; font-size: 1.22rem; }
.mob-foot { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mob-lang { display: flex; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; }
.mob-lang a { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted-light); }
.mob-lang a.on { background: var(--gold); color: var(--void); border-color: var(--gold); }

/* ==================== ОБКЛАДИНКА ==================== */
.cover {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 clamp(56px, 8vh, 92px);
  overflow: hidden; isolation: isolate;
}
.slides { position: absolute; inset: 0; z-index: -3; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.slide.on { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: kb 14s ease-out both;
}
.slide.on img { animation: kb 14s ease-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.11); } }
.slides::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(5,18,31,0.82) 0%, rgba(5,18,31,0.42) 26%, rgba(5,18,31,0.80) 66%, rgba(5,18,31,0.97) 90%, var(--void) 100%),
    linear-gradient(90deg, rgba(5,18,31,0.80) 0%, rgba(5,18,31,0.30) 52%, transparent 100%);
}
.cover .wrap { position: relative; z-index: 1; }
.cover-inner { max-width: 40rem; }
.cover-emblem {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin-bottom: 24px;
  box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(247,214,74,0.35);
}
.cover .mono { color: var(--gold); display: block; margin-bottom: 16px; text-shadow: 0 1px 12px rgba(5,18,31,0.9); }
.cover h1 {
  font-size: clamp(2rem, 4.8vw, 3.8rem); font-weight: 800; line-height: 1.05;
  color: var(--white); letter-spacing: -0.025em; max-width: 15ch;
  text-shadow: 0 3px 28px rgba(5,18,31,0.75);
}
.cover p.lede {
  margin-top: 20px; max-width: 47ch; font-size: clamp(0.97rem, 1.25vw, 1.09rem);
  color: #CDDFEC; text-shadow: 0 2px 16px rgba(5,18,31,0.82);
}
.cover .cta-row { margin-top: 30px; }

/* точки слайдера */
.dots { position: absolute; bottom: 30px; right: 28px; z-index: 3; display: flex; gap: 9px; }
.dots button {
  width: 30px; height: 3px; border: none; border-radius: 3px; cursor: pointer;
  background: rgba(255,255,255,0.28); transition: background .3s, width .3s; padding: 0;
}
.dots button.on { background: var(--gold); width: 46px; }
@media (max-width: 700px) {
  .cover { align-items: flex-end; padding-bottom: 74px; }
  .cover-emblem { width: 60px; height: 60px; margin-bottom: 18px; }
  .cover h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); max-width: 16ch; }
  .cover p.lede { font-size: 0.95rem; max-width: 40ch; }
  .dots { right: 20px; bottom: 22px; }
  .dots button { width: 22px; }
  .dots button.on { width: 34px; }
  .slides::after {
    background: linear-gradient(180deg, rgba(5,18,31,0.78) 0%, rgba(5,18,31,0.36) 22%, rgba(5,18,31,0.86) 62%, var(--void) 100%);
  }
}

/* ==================== ЗАГОЛОВОК ВНУТРІШНЬОЇ СТОРІНКИ ==================== */
.page-head {
  position: relative; padding: calc(var(--nav-h) + 62px) 0 62px;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ""; position: absolute; top: -60%; right: -18%; width: 66vmax; aspect-ratio: 1; z-index: 0;
  background: conic-gradient(from 30deg, rgba(247,214,74,0.09) 0 3deg, transparent 3deg 18deg, rgba(76,178,232,0.07) 18deg 21deg, transparent 21deg 40deg);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.crumbs { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--sky); }
.crumbs a:hover { color: var(--gold); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; max-width: 19ch; }
.page-head p { margin-top: 18px; max-width: 62ch; color: var(--muted-light); font-size: 1.04rem; }

/* ==================== СЕКЦІЇ ==================== */
section.pad { padding: clamp(70px, 9vw, 116px) 0; }
.sec-head { max-width: 66ch; margin-bottom: 52px; }
.sec-head .mono { color: var(--red); display: block; margin-bottom: 15px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 600; }
.sec-head p { margin-top: 16px; color: var(--muted-light); max-width: 58ch; }
.light { background: var(--paper); color: var(--ink); }
.light .sec-head h2 { color: var(--ink); }
.light .sec-head p { color: var(--muted); }
.dark-band { background: var(--navy); }
.dark-band .sec-head .mono { color: var(--gold); }

/* цифри */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
@media (max-width: 860px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (max-width: 460px) { .stats .wrap { grid-template-columns: 1fr; } }
.stat .num { font-family: 'Onest', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--gold); letter-spacing: -0.035em; }
.stat .lbl { margin-top: 5px; font-size: 0.85rem; color: var(--muted-light); line-height: 1.4; }

/* ==================== МІСІЯ ==================== */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card {
  background: rgba(255,255,255,0.045); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 30px 36px; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.light .mission-card { background: var(--white); border-color: var(--line-dark); }
.mission-card:hover { transform: translateY(-4px); border-color: rgba(247,214,74,0.42); }
.mission-card .m-num {
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 2.4rem;
  color: var(--gold); letter-spacing: -0.04em; line-height: 1; opacity: 0.9;
}
.mission-card h3 { margin-top: 14px; font-size: 1.22rem; font-weight: 600; }
.mission-card p { margin-top: 11px; font-size: 0.94rem; color: var(--muted-light); }
.light .mission-card p { color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.value {
  border-left: 2px solid var(--gold-deep); padding: 4px 0 4px 20px;
}
.value h4 { font-size: 1.05rem; font-weight: 600; }
.value p { margin-top: 7px; font-size: 0.91rem; color: var(--muted); }

/* ==================== ПРОЄКТИ ==================== */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .proj-grid { grid-template-columns: 1fr; } }
.p-card {
  background: rgba(255,255,255,0.045); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-4px); border-color: rgba(247,214,74,0.42); }
.p-card .p-img { aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.p-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.p-card:hover .p-img img { transform: scale(1.05); }
.p-card .p-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.p-card .p-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge {
  font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
}
.badge.live { background: rgba(224,32,32,0.16); color: #FF7B7B; border: 1px solid rgba(224,32,32,0.4); }
.badge.done { background: rgba(76,178,232,0.13); color: var(--sky); border: 1px solid rgba(76,178,232,0.3); }
.p-card .p-years { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.p-card h3 { margin-top: 13px; font-size: 1.25rem; font-weight: 600; color: #F1F6FA; }
.p-card p { margin-top: 10px; font-size: 0.93rem; color: var(--muted-light); flex-grow: 1; }
.p-card .more {
  margin-top: 18px; font-family: 'JetBrains Mono', monospace; font-size: 0.74rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; gap: 8px; align-items: center; transition: gap .2s;
}
.p-card:hover .more { gap: 14px; }

/* хронологія років проєкту */
.years-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.year-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 0.76rem;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-dark);
  color: var(--muted); transition: border-color .2s, color .2s, background .2s;
}
.year-chip:hover { border-color: var(--gold-deep); color: var(--ink); background: rgba(247,214,74,0.12); }

/* ==================== ПІДЗВІТНІСТЬ ==================== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.doc {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 26px 28px; transition: border-color .25s, transform .25s, background .25s;
  display: flex; flex-direction: column; gap: 10px;
}
.light .doc { background: var(--white); border-color: var(--line-dark); }
.doc:hover { border-color: rgba(76,178,232,0.5); transform: translateY(-3px); }
.doc .d-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(76,178,232,0.14); color: var(--sky); font-size: 1.1rem;
}
.doc h3 { font-size: 1.06rem; font-weight: 600; }
.doc p { font-size: 0.9rem; color: var(--muted-light); }
.light .doc p { color: var(--muted); }
.doc .d-state {
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-deep); margin-top: auto; padding-top: 8px;
}

/* ==================== ПАРТНЕРИ ==================== */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.partner {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; transition: border-color .25s, transform .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.partner:hover { border-color: rgba(76,178,232,0.45); transform: translateY(-3px); }
.partner .emblem-slot {
  height: 62px; border-radius: 11px; border: 1px dashed rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.32); text-transform: uppercase;
}
.partner h3 { font-size: 1.02rem; font-weight: 600; color: #F1F6FA; }
.partner p { font-size: 0.87rem; color: var(--muted-light); }

/* ==================== КОМАНДА ==================== */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }
.member {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.member:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(10,24,38,0.14); }
.member .m-photo { aspect-ratio: 1/1; background: linear-gradient(140deg, var(--navy), var(--void)); }
.member .m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.member .m-body { padding: 24px 26px 28px; }
.member .m-role {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--red);
}
.member h3 { margin-top: 9px; font-size: 1.3rem; font-weight: 600; }
.member p { margin-top: 11px; font-size: 0.93rem; color: var(--muted); }

/* ==================== ГАЛЕРЕЯ ==================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
figure.shot {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--navy);
  border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.light figure.shot { background: var(--white); border-color: var(--line-dark); }
figure.shot:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.26); }
figure.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
figure.shot.tall img { aspect-ratio: 3/4; }
figure.shot:hover img { transform: scale(1.035); }
figure.shot figcaption { padding: 13px 16px 15px; font-size: 0.85rem; line-height: 1.42; color: var(--muted-light); }
.light figure.shot figcaption { color: var(--muted); }

/* ==================== ПОСИЛАННЯ НА МЕДІА ==================== */
.media-block { margin-bottom: 54px; }
.media-block h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.media-block > p { margin-top: 13px; color: var(--muted-light); font-size: 0.95rem; max-width: 62ch; }
.link-list { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.link-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; transition: border-color .22s, background .22s, transform .22s;
}
.link-item:hover { border-color: rgba(247,214,74,0.45); background: rgba(255,255,255,0.07); transform: translateX(3px); }
.link-item .li-txt { min-width: 0; }
.link-item .li-year { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.09em; color: var(--sky); display: block; }
.link-item .li-name { font-size: 0.93rem; color: #E8F0F6; margin-top: 4px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item .li-go { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; flex-shrink: 0; }

/* ==================== ПРОЗА ==================== */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 18px; color: var(--muted-light); font-size: 1rem; }
.light .prose p { color: var(--ink); }
.prose h3 { font-size: 1.4rem; font-weight: 600; margin: 36px 0 15px; }
.prose ul { margin: 0 0 20px 20px; color: var(--muted-light); }
.light .prose ul { color: var(--ink); }
.prose li { margin-bottom: 9px; }
.prose strong { color: #F1F6FA; font-weight: 600; }
.light .prose strong { color: var(--ink); }

.bio-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; gap: 26px; } }
.bio-photo { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--navy); position: sticky; top: calc(var(--nav-h) + 22px); }
@media (max-width: 860px) { .bio-photo { position: static; aspect-ratio: 3/2; max-width: 420px; } }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* ==================== КНОПКИ ==================== */
.cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 100px;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(224,32,32,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(224,32,32,0.45); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.25); color: #E8F0F6; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.light .btn-ghost { border-color: rgba(10,24,38,0.25); color: var(--ink); }
.light .btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* смуга донату */
.donate-band { background: linear-gradient(135deg, var(--void), #0A2337 55%, var(--navy-lift)); position: relative; overflow: hidden; text-align: center; }
.donate-band h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 600; color: #fff; max-width: 20ch; margin: 0 auto; }
.donate-band p { margin: 18px auto 0; color: var(--muted-light); max-width: 52ch; }
.donate-band .cta-row { justify-content: center; }
.donate-box {
  background: rgba(255,255,255,0.05); border: 1px dashed rgba(247,214,74,0.5);
  border-radius: 16px; padding: 28px 26px; max-width: 640px; margin: 30px auto 0; text-align: left;
}
.donate-box h4 { font-size: 1rem; font-weight: 600; color: var(--gold); margin-bottom: 11px; }
.donate-box p { margin: 0; color: var(--muted-light); font-size: 0.92rem; }

/* ==================== ФУТЕР ==================== */
footer { background: var(--void); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.f-top { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 48px; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr; gap: 36px; } }
.f-brand { display: flex; align-items: flex-start; gap: 15px; }
.f-brand img {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1.5px var(--gold-deep);
}
.f-brand .fb-txt h4 { font-family: 'Onest', sans-serif; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.f-brand .fb-txt span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.f-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 760px) { .f-menu { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; } }
@media (max-width: 420px) { .f-menu { grid-template-columns: 1fr; } }
.f-col h5 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 13px; font-weight: 500;
}
.f-col a, .f-col span.fl { display: block; font-size: 0.9rem; color: var(--muted-light); margin-bottom: 9px; transition: color .2s; }
.f-col a:hover { color: var(--gold); }

.f-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.f-social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 0.84rem; color: var(--muted-light); transition: border-color .2s, color .2s, transform .2s;
}
.f-social a:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }

.f-write { margin-top: 22px; }
.f-bottom {
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ==================== ПОЯВА ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
