@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #000000;
  --surface: #333333;
  --text-primary: #ffffff;
  --text-muted: #555555;
  --text-secondary: rgba(255,255,255,.65);
  --accent: #0088cc;
  --success: #589442;
  --danger: #cb2027;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 500px;
  --shadow-raised: 0 1px 4px rgba(0,0,0,.15);
  --shadow-floating: 0 0 20px 0 rgba(0,0,0,.1);
  --container-width: 961px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--background); }
body {
  background: var(--background);
  color: var(--text-primary);
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
p { margin: 0 0 16px; color: var(--text-primary); text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}
section { padding: 48px 0; }
section[id], .site-footer[id] { scroll-margin-top: 72px; }

[data-lang="ru"] [lang="uk"] { display: none; }
[data-lang="uk"] [lang="ru"] { display: none; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: transparent;
  border: 1px solid #444444;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  font-family: "Noto Sans", sans-serif;
  cursor: pointer;
}
.lang-switch button.active { color: var(--text-primary); border-color: var(--accent); }

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  font-family: "Noto Sans", sans-serif;
  transition: opacity 250ms ease;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid #444444; color: var(--text-primary); }
.btn-ghost:hover { opacity: .9; }

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.3s ease-out;
}
.card:hover {
  border-color: rgba(255,255,255,.28);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 300ms cubic-bezier(0.4,0,0.2,1),
              transform 300ms cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card.reveal {
  transition: opacity 300ms cubic-bezier(0.4,0,0.2,1),
              transform 300ms cubic-bezier(0.4,0,0.2,1),
              border-color 0.3s ease-out;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.logo {
  color: var(--text-primary);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-right: auto;
}
.nav-links { display: flex; gap: 8px; }
.nav-link {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: color 150ms ease;
}
.nav-link:hover { color: var(--text-primary); }

@media (max-width: 767px) {
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--background);
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center top / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 16px 72px;
}
.hero h1 { font-size: 48px; margin: 0 0 16px; color: #fff; }
.hero .subhead {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-ghost {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 64px; }
}

.stats-grid {
  display: flex;
  flex-direction: column;
}
.stats-grid .card {
  background: none;
  border: none;
  padding: 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stats-grid .card:first-child { border-top: none; }
.stats-grid .card:hover { border-color: rgba(255,255,255,.12); }
.stats-grid .card:first-child:hover { border-color: transparent; }
.stats-grid .card h2 {
  font-size: 36px;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.stats-grid .card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .stats-grid { flex-direction: row; }
  .stats-grid .card {
    flex: 1;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.12);
  }
  .stats-grid .card:first-child { border-left: none; }
}

.mission { text-align: left; }
.mission-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}
.mission h2 { text-align: left; }
.mission p { color: var(--text-muted); }
.mission-photo { margin: 0; }
.mission-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: 20% 55%;
  border-radius: var(--radius-md);
}
@media (min-width: 768px) {
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .mission-photo img { height: 320px; }
}

.help-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}
.help-photo { margin: 0; }
.help-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (min-width: 768px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
  .help-photo { order: 2; }
  .help-photo img { height: 100%; min-height: 360px; }
}
.services-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.service-row:first-child { border-top: none; padding-top: 0; }
.service-row svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: var(--text-primary);
}
.service-row h3 { margin: 0 0 4px; font-size: 20px; }
.service-row p { color: var(--text-secondary); font-size: 14px; margin: 0; max-width: 52ch; }

.stories-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stories-grid .card {
  background: none;
  border: none;
  border-radius: 0;
  border-left: 2px solid rgba(255,255,255,.15);
  padding: 4px 0 4px 20px;
}
.stories-grid .card p {
  font-style: italic;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.stories-grid .card footer {
  color: var(--text-secondary);
  font-size: 14px;
}
@media (min-width: 768px) {
  .stories-grid { flex-direction: row; }
  .stories-grid .card { flex: 1; }
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}
.apply-form input, .apply-form textarea, .apply-form select {
  background: #000000;
  border: 1px solid #444444;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: "Noto Sans", sans-serif;
}
.apply-form input:focus, .apply-form textarea:focus, .apply-form select:focus {
  border-color: var(--accent);
  outline: none;
}
.apply-form textarea { resize: vertical; min-height: 80px; }
.apply-form .honeypot-field { position: absolute; left: -9999px; }
.apply-form .form-status { font-size: 14px; min-height: 20px; }
.apply-form .form-status.success { color: var(--success); }
.apply-form .form-status.error { color: var(--danger); }

.donate { text-align: center; }
.donate-columns {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 640px;
  margin: 24px auto 0;
}
.donate-col {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.donate-col:first-child { border-top: none; padding-top: 0; }
.donate-col h3 { margin: 0 0 4px; }
.donate-col p { color: var(--text-secondary); font-size: 14px; margin: 0; }
@media (min-width: 768px) {
  .donate-columns { flex-direction: row; }
  .donate-col {
    flex: 1;
    padding: 0 24px;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.12);
  }
  .donate-col:first-child { border-left: none; padding-left: 0; }
  .donate-col:last-child { padding-right: 0; }
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.site-footer .footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); }
.site-footer .social-links { display: flex; gap: 12px; }
@media (min-width: 768px) {
  .site-footer .footer-row { flex-direction: row; align-items: center; }
}
