/* SHCH Ukraine — концепція 03. Кольори й шрифти за бренд-гайдом. */
:root {
  --navy: #02143a;
  --navy-2: #0a2152;
  --red: #e11b1d;
  --red-dark: #b9141a;
  --white: #fff;
  --gray: #f1f3f7;
  --line: #d8dce6;
  --text: #02143a;
  --muted: #5b6680;
  --display: 'Dyno NC', 'Russo One', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --cut: 14px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.55 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.center { text-align: center; }
.narrow { max-width: 680px; margin-inline: auto; }
.m-only { display: none; }

/* ---------- типографіка ---------- */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1; font-size: clamp(30px, 4.2vw, 52px); color: var(--navy); }
.display--xl { font-size: clamp(44px, 7.4vw, 100px); line-height: .95; color: #fff; }
.display--lg { font-size: clamp(40px, 5.5vw, 72px); }
.h1 { font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.h2 { font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.h3 { font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin-bottom: 24px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.lead--dark { font-weight: 500; color: var(--navy); margin: 24px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 24px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .02em; color: var(--muted); margin-bottom: 6px; }
.eyebrow--light { color: rgba(255,255,255,.65); margin-bottom: 10px; }
.date { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- кнопки (скошений кут — фірмовий елемент) ---------- */
.btn { --b: var(--navy); display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 32px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1.5px solid var(--b); background: transparent; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); min-width: 180px; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--primary[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--outline { min-width: 180px; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { --b: #fff; color: #fff; min-width: 180px; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: 14px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.actions--center { justify-content: center; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { flex: none; display: block; }
.logo img { width: 160px; height: auto; }
.logo--light { display: none; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 48px); }
.nav a { position: relative; display: block; padding: 8px 0; font-size: 15px; text-decoration: none; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; gap: 4px; font-size: 13px; margin-left: clamp(8px, 3vw, 40px); }
.lang a { text-decoration: none; opacity: .6; }
.lang a[aria-current="true"] { opacity: 1; font-weight: 600; }
.header .btn--primary { min-width: 0; padding: 10px 22px; min-height: 44px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger i { display: block; height: 2px; background: currentColor; margin: 5px 0; }

/* прозора шапка над героєм */
.has-hero .header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; }
.has-hero .header .logo--dark { display: none; }
.has-hero .header .logo--light { display: block; }
.has-hero .header.is-solid { background: var(--navy); border-color: rgba(255,255,255,.1); }

/* мобільне меню */
.mmenu { position: fixed; inset: 0; z-index: 80; background: var(--navy); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mmenu__close { border: 0; background: none; cursor: pointer; font-size: 15px; padding: 10px; color: #fff; }
.mmenu__nav { margin-top: 32px; }
.mmenu__nav a { display: block; padding: 14px 0; font-size: 26px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.mmenu__nav a[aria-current="page"] { color: var(--red); }
.mmenu__bottom { margin-top: auto; padding-block: 40px; display: grid; gap: 24px; justify-items: start; }
.mmenu__bottom a { text-decoration: none; }
.mmenu .lang { margin-left: 0; font-size: 15px; }

/* ---------- герой ---------- */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,20,58,.96) 0%, rgba(2,20,58,.82) 38%, rgba(2,20,58,.25) 75%, rgba(2,20,58,.1) 100%); }
.hero__inner { position: relative; padding-block: calc(var(--header-h) + 60px) 110px; }
.redline { display: block; width: 52px; height: 4px; background: var(--red); margin-bottom: 36px; }
.hero__text { max-width: 520px; margin-top: 32px; font-size: clamp(17px, 1.5vw, 20px); }
.strip { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url(../img/pattern.jpg) center/auto 140px repeat-x; }

/* ---------- секції ---------- */
.section { padding-block: var(--sec) 0; }
.section:last-of-type { padding-bottom: var(--sec); }
.section--tight { padding-top: 24px; }
.section--gray { background: var(--gray); padding-block: var(--sec); margin-top: var(--sec); }
.section--gray + .section { padding-top: var(--sec); }
main > .section:last-child, main > .section + .join { margin-top: var(--sec); }
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p { margin-top: 12px; }
.page-head { padding-block: clamp(48px, 6vw, 80px) 40px; }
.page-head .muted { margin-top: 16px; font-size: 17px; }
.page-head--icon .ico--xl { margin: 0 auto 24px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs--meta { padding: 0 0 20px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
figure img { width: 100%; object-fit: cover; }
figure.wide { margin-block: 0 0; }
figure.wide img { aspect-ratio: 21 / 8; }
.page-head + .section figure.wide { margin-bottom: clamp(48px, 6vw, 80px); }
.section .center figure.wide { margin-block: 40px 32px; }
figure.mid { max-width: 900px; margin: 40px auto 0; }
figure.mid img { aspect-ratio: 16 / 8; }
.cut-corner img { aspect-ratio: 5 / 4; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }

/* картки */
.card { background: var(--gray); text-decoration: none; display: block; transition: transform .25s, box-shadow .25s; }
.card__link { display: block; text-decoration: none; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(2,20,58,.45); }
.card__media { overflow: hidden; }
.card__media img { aspect-ratio: 16 / 9; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { position: relative; padding: 20px 20px 24px; }
.card__title { font-size: 18px; font-weight: 500; line-height: 1.3; }
.dir-card .card__body { padding-bottom: 48px; min-height: 160px; }
.dir-card__title { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; font-weight: 500; line-height: 1.3; margin-bottom: 14px; }
.dir-card .muted { font-size: 14px; }
.arr { position: absolute; right: 18px; bottom: 16px; width: 22px; height: 22px; color: var(--navy); transition: transform .25s, color .25s; }
.card:hover .arr { transform: translate(3px, -3px); color: var(--red); }
.ico { width: 28px; height: 28px; object-fit: contain; flex: none; }
.ico--lg { width: 36px; height: 36px; margin-bottom: 20px; }
.ico--xl { width: 48px; height: 48px; }

/* партнери */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partners--3 { grid-template-columns: repeat(3, 1fr); }
.partners li > * { display: grid; place-items: center; height: 72px; background: var(--gray); color: var(--muted); font-size: 14px; text-decoration: none; padding: 12px; }
.partners img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.partners a:hover img { filter: none; opacity: 1; }

/* «Долучайтесь» */
.join { position: relative; background: var(--navy); color: #fff; padding-block: clamp(72px, 9vw, 112px); overflow: hidden; margin-top: var(--sec); }
.join .display { color: #fff; }
.join .lead { margin-top: 16px; }
.join__pattern { position: absolute; left: 0; top: 0; bottom: 30%; width: 16px; background: url(../img/pattern.jpg) left top/auto 220px repeat-y; }
.join + .footer .footer__grid { border-top: 1px solid rgba(255,255,255,.16); }

/* футер */
.footer { background: var(--navy); color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.2fr auto; gap: 32px; padding-block: 48px 40px; }
.footer__tag { margin-top: 20px; }
.footer__contacts { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer__contacts a { text-decoration: none; }
.footer__contacts a:hover { color: #ff6b6d; }
.footer__pdf { margin-top: 24px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: rgba(255,255,255,.8); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; text-decoration: none; transition: .2s; }
.socials svg { width: 18px; height: 18px; }
.socials--light a { color: #fff; border-color: rgba(255,255,255,.8); }
.socials--light a:hover { background: #fff; color: var(--navy); }

/* ---------- про нас ---------- */
.mvv__item { border-top: 2px solid var(--red); padding-top: 28px; }
.mvv__item h3 { font-size: 22px; font-weight: 500; margin-bottom: 18px; }
.ico-list { display: grid; gap: 28px; }
.ico-list li { display: flex; gap: 18px; align-items: center; font-weight: 500; }
.split--top figure { margin-top: 32px; }
.split--top figure img { aspect-ratio: 16 / 7; }

/* ---------- діяльність ---------- */
.dir-rows { display: grid; gap: clamp(32px, 4vw, 48px); }
.dir-row { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray); align-items: center; }
.dir-row__media img { aspect-ratio: 4 / 3; height: 100%; }
.dir-row__body { padding: clamp(28px, 5vw, 64px); }
.dir-row--rev .dir-row__media { order: 2; }
.dir-row .muted { margin: 16px 0 24px; font-size: 17px; }
.tags { font-size: 14px; margin-bottom: 32px; }
.tags b { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.chip { border: 0; background: var(--gray); padding: 10px 28px; font-size: 14px; cursor: pointer; transition: .2s; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.chip:hover:not([aria-pressed="true"]) { background: var(--line); }
.chip--sm { padding: 8px 22px; background: #fff; border: 1px solid var(--line); }
[data-posts] .post-card.is-hidden { display: none; }
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy); cursor: pointer; aspect-ratio: 16 / 7; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
div.video { cursor: default; }
.video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 64px; transform: translate(-50%, -50%); background: var(--navy); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.video__play::after { content: ''; position: absolute; left: 36px; top: 21px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* напрям */
.box { border: 1px solid var(--line); padding: 28px; }
.box h3 { font-size: 19px; font-weight: 500; margin-bottom: 14px; }
.box .muted { font-size: 14px; }
.boxes .box:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gallery figure img { aspect-ratio: 16 / 7; }
.gallery--article { margin-top: 64px; }
.gallery--article figure img { aspect-ratio: 16 / 11; }
.gallery--article .span-2 { grid-column: 1 / -1; }
.gallery--article .span-2 img { aspect-ratio: 16 / 7; }

/* стаття */
.article { padding-top: clamp(32px, 5vw, 56px); }
.prose { max-width: calc(680px + 2 * var(--gut)); margin-top: 56px; font-size: 17px; line-height: 1.65; }
.prose .eyebrow { text-transform: uppercase; margin-bottom: 24px; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: 24px; font-weight: 500; margin: 48px 0 20px; }
.prose blockquote { margin: 44px 0; padding-left: 24px; border-left: 3px solid var(--red); font-size: 22px; line-height: 1.4; font-weight: 500; }
.prose cite { display: block; margin-top: 12px; font-size: 12px; font-style: normal; color: var(--muted); font-weight: 400; }
.share { display: flex; align-items: center; gap: 32px; margin-top: 64px; flex-wrap: wrap; }
.share ul { display: flex; gap: 16px; }
.share li { display: grid; justify-items: center; gap: 6px; }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); transition: .2s; }
.share a:hover, .share button:hover { border-color: var(--navy); }
.share svg { width: 18px; height: 18px; }
.share small { font-size: 11px; color: var(--muted); }

/* ---------- підтримати ---------- */
.support-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.support-hero .lead { margin-top: 28px; color: var(--muted); max-width: 520px; }
.support-hero figure img { aspect-ratio: 3 / 2; }
.tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 12px; margin-bottom: 28px; }
.tabs button { border: 0; background: var(--gray); padding: 14px 20px; font-size: 15px; cursor: pointer; transition: .2s; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { background: var(--line); }
.tabpanel { display: none; }
.tabpanel.is-open { display: block; }
.acc { display: none; }
.cur { display: flex; gap: 10px; margin-bottom: 20px; }
.cur .chip[aria-pressed="true"] { border-color: var(--navy); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { background: var(--gray); padding: 18px 20px 20px; display: grid; gap: 6px; justify-items: start; }
.field__label { font-size: 12px; color: var(--muted); }
.field__value { font-size: 17px; color: var(--muted); word-break: break-all; margin-bottom: 8px; }
.btn.is-copied { background: var(--navy); color: #fff; }
.tabpanel__body > .muted { margin-bottom: 20px; }
.crypto { display: flex; gap: 24px; align-items: stretch; }
.crypto .field { flex: 1; }
.qr { width: 120px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.booklet { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.booklet__cover { aspect-ratio: 3 / 4; background: var(--navy); color: #fff; padding: 22px; display: flex; flex-direction: column; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.booklet__cover img { width: 110px; }
.booklet__cover strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; margin-top: auto; }
.booklet__cover small { font-size: 10px; margin-top: 28px; opacity: .8; }
.booklet .muted { margin: 16px 0 28px; font-size: 17px; }
.contacts { background: var(--navy); color: #fff; padding-block: clamp(56px, 7vw, 88px); margin-top: var(--sec); }
.contacts .display { color: #fff; margin-bottom: 40px; }
.contacts a { text-decoration: none; font-size: 17px; }
.legal-links { padding-block: 32px; font-size: 13px; color: var(--muted); }
.legal-links a { text-decoration: none; }

/* 404 */
.nf { padding-block: clamp(80px, 12vw, 160px); }
.nf__code { font-size: clamp(96px, 16vw, 200px); color: var(--navy); margin-bottom: 16px; }
.nf .muted { margin-top: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .nav, .header .lang, .header [data-header-cta] { display: none; }
  .burger { display: block; }
  :root { --header-h: 72px; }
  .logo img { width: 132px; }
}
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid .socials { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .d-only { display: none; }
  .d-only-block { display: none; }
  .m-only { display: inline; }
  .grid--2, .grid--3, .split, .fields, .dir-row, .booklet { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero__bg { object-position: 70% center; }
  .hero__shade { background: linear-gradient(180deg, rgba(2,20,58,.3) 0%, rgba(2,20,58,.75) 45%, rgba(2,20,58,.97) 100%); }
  .hero__inner { padding-bottom: 72px; }
  .hero .actions, .join .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .redline { margin-bottom: 24px; }
  .dir-row--rev .dir-row__media { order: 0; }
  .boxes .box:last-child:nth-child(odd) { grid-column: auto; }
  figure.wide img, .gallery figure img, figure.mid img { aspect-ratio: 4 / 3; }
  .gallery--article .span-2 img { aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .booklet__cover { max-width: 220px; }
  .crypto { flex-direction: column; }
  .qr { width: 120px; height: 120px; }
  /* оплата: вкладки → акордеон */
  .tabs { display: none; }
  .tabpanel { display: block; border-bottom: 1px solid var(--line); }
  .tabpanel:first-of-type { border-top: 1px solid var(--line); }
  .acc { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 0; border: 0; background: none; font-size: 17px; font-weight: 500; cursor: pointer; text-align: left; }
  .acc i { position: relative; width: 14px; height: 14px; }
  .acc i::before, .acc i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform .2s; }
  .acc i::after { transform: rotate(90deg); }
  .acc[aria-expanded="true"] i::after { transform: rotate(0); }
  .tabpanel__body { display: none; padding-bottom: 24px; }
  .tabpanel.is-open .tabpanel__body { display: block; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
