/* =========================================================
   ГО "Країна рівності і правди" — clean stylesheet
   ========================================================= */
/* Защита от горизонтального скролла на мобилках */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Перенос длинных слов */
h1, h2, h3, p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}


:root {
  /* Brand palette — derived from logo & infographics */
  --c-bg:        #ffffff;
  --c-bg-alt:    #f4f6f8;
  --c-bg-dark:   #0f4015;     /* deep green from header gradient */
  --c-bg-deeper: #0c2a4a;     /* navy from infographics */
  --c-text:      #1a1f2c;
  --c-text-soft: #4d5566;
  --c-muted:     #7c8597;
  --c-line:      #e2e6ec;

  --c-accent:    #ffd400;     /* Ukrainian yellow */
  --c-accent-2:  #0057b7;     /* Ukrainian blue */
  --c-action:    #c8102e;     /* logo red */

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;

  --shadow-sm:   0 1px 2px rgba(15,30,50,.06), 0 1px 1px rgba(15,30,50,.04);
  --shadow:      0 8px 24px rgba(15,30,50,.08);
  --shadow-lg:   0 24px 48px -12px rgba(15,30,50,.18);

  --container:   1180px;
  --gutter:      clamp(16px, 4vw, 32px);

  --font-body:   "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:"Unbounded", "Manrope", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-action); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--c-text);
}
h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Top notice ---------- */
.topbar {
  background: linear-gradient(90deg, #0f4015 0%, #2a5a32 100%);
  color: #fff;
  font-size: 14px;
}
.topbar p {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  letter-spacing: .01em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  flex: 0 0 auto;
}
.brand:hover { color: var(--c-text); }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.brand-text small { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.primary-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width .25s;
}
.primary-nav a:not(.btn):hover { color: var(--c-action); }
.primary-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--c-text);
  transition: transform .3s, opacity .2s, top .3s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  padding: 3px;
  background: var(--c-bg);
}
.lang-switch a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-muted);
  border-radius: 999px;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--c-text); }
.lang-switch a.active {
  background: var(--c-text);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--c-action);
  color: #ffffff !important;
  box-shadow: 0 6px 16px -4px rgba(200,16,46,.45);
}
.btn-primary:hover {
  background: #a30d25;
  color: #ffffff !important;
  transform: translateY(-1px);
}
/* Specific styling for nav CTA button — slightly more compact but still readable */
.nav-cta {
  padding: 11px 24px;
  font-size: 13px;
  letter-spacing: .08em;
  min-width: 130px;
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-text);
}
.btn-ghost:hover { background: var(--c-text); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.about    { background: var(--c-bg); }
.section.projects { background: var(--c-bg-alt); }
.section.help     { background: var(--c-bg); }
.section.donate   { background: linear-gradient(180deg, #0c2a4a 0%, #102a44 100%); color: #f3f6fb; }
.section.reports  { background: var(--c-bg-alt); }

.section-head {
  max-width: 880px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-head .eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-action);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--c-text-soft);
  font-size: 18px;
  max-width: 720px;
  margin: 12px auto 0;
}
.section.donate .section-head h2 { color: #fff; }
.section.donate .section-sub { color: rgba(255,255,255,.75); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(255,212,0,.18), transparent 60%),
    radial-gradient(800px 400px at -10% 60%, rgba(0,87,183,.10), transparent 60%),
    var(--c-bg);
  padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--c-line);
}
.hero-stack {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  margin-bottom: clamp(20px, 3vw, 32px);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.12));
}
.hero-logo img {
  width: clamp(280px, 50vw, 480px);
  height: auto;
}
.hero-stack .eyebrow { color: var(--c-accent-2); }
.hero-stack h1 {
  margin-top: 0;
  margin-bottom: 24px;
}
.hero-stack .lead {
  font-size: 17px;
  color: var(--c-text-soft);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--c-muted);
  justify-content: center;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  color: var(--c-text);
  transition: background .2s, color .2s, transform .15s;
}
.socials a:hover {
  background: var(--c-text);
  color: var(--c-accent);
  transform: translateY(-2px);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.about-photo {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -10px -10px auto auto;
  width: 80px; height: 80px;
  background: var(--c-accent);
  border-radius: 50%;
  z-index: -1;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text > :first-child { margin-top: 0; }
.about .container > h3 { margin-top: 1.6em; }
.feature-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.feature-list li {
  background: var(--c-bg-alt);
  padding: 22px 26px;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-accent);
  display: grid;
  gap: 4px;
}
.feature-list li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-text);
  margin-bottom: 4px;
}

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.project-reverse { grid-template-columns: 7fr 5fr; }
.project-reverse .project-img { order: 2; }
.project-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project .project-img picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project .project-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center;
}


.project-text .kicker {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-action);
  font-size: 14px;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

/* ---------- Help ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.help-card {
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.help-card h3 { margin-bottom: 14px; }

.contact-list {
  margin: 0;
  display: grid;
  gap: 14px;
}
.contact-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-line);
}
.contact-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { color: var(--c-muted); font-size: 14px; }
.contact-list dd { margin: 0; font-weight: 600; }

/* ---------- Donate ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.donate-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.donate-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent-2), var(--c-accent));
}
.donate-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.donate-card dl { margin: 0; display: grid; gap: 14px; }
.donate-card dl > div { display: grid; gap: 4px; }
.donate-card dt { color: rgba(255,255,255,.6); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.donate-card dd { margin: 0; color: #fff; font-weight: 600; }
.donate-card .mono {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 15px;
  letter-spacing: .02em;
  word-break: break-all;
}
.copy-btn {
  background: var(--c-accent);
  color: #1a1f2c;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background .2s, transform .15s;
}
.copy-btn:hover { background: #ffe04d; transform: translateY(-1px); }
.copy-btn.copied { background: #62d27a; color: #fff; }

/* ---------- Reports ---------- */
.report-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.report-list figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.report-list figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.report-list img {
  width: 100%;
  height: auto;
  display: block;
}
.report-list figcaption {
  padding: 18px 24px;
  font-size: 16px;
  color: var(--c-text);
  font-weight: 600;
  font-family: var(--font-display);
  border-top: 3px solid var(--c-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0e14;
  color: rgba(255,255,255,.75);
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.footer-brand img { height: 40px; width: auto; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 14px; }
.footer-brand span { font-size: 12px; color: rgba(255,255,255,.55); }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-nav a { color: rgba(255,255,255,.75); font-weight: 500; }
.footer-nav a:hover { color: var(--c-accent); }

.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-socials a:hover { color: var(--c-accent); }

.footer-tagline {
  grid-column: 1 / -1;
  text-align: center;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.footer-tagline > span { display: block; margin-top: 4px; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; }

  .project,
  .project-reverse {
    grid-template-columns: 1fr;
  }
  .project-reverse .project-img { order: 0; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul li {
    border-bottom: 1px solid var(--c-line);
  }
  .primary-nav a { display: block; padding: 14px 0; }
  .primary-nav a:not(.btn)::after { display: none; }
  .lang-switch {
    align-self: flex-start;
    margin: 14px 0 4px;
  }
  .lang-switch a { padding: 6px 14px; }
  .nav-cta { margin-top: 8px; align-self: flex-start; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }



  .primary-nav {
    margin-left: 0;  
  }
  .nav-toggle {
    margin-left: auto;  
    flex-shrink: 0;     
  }
  .brand {
    min-width: 0;      
    flex-shrink: 1;
  }
  .brand-text strong,
  .brand-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-inner {
    gap: 12px;         
  }

  .brand img {
    display: none;
  }

}

@media (max-width: 420px) {
  .brand-text strong { font-size: 13.5px; }
  .brand-text small { font-size: 11px; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
