:root {
  --color-navy-950: #07162f;
  --color-navy-800: #123b6d;
  --color-blue-600: #1f5fa8;
  --color-yellow-500: #ffd500;
  --color-yellow-600: #eabf00;
  --color-ink: #101828;
  --color-muted: #5c667a;
  --color-surface: #fff;
  --color-surface-soft: #f5f7fa;
  --color-border: #d5dae3;
  --color-focus: #7c3aed;
  --color-disabled: #a4acb9;
  --shadow-card: 0 18px 50px rgb(7 22 47 / 18%);
  --radius-card: 12px;
  --content-width: 1200px;
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-surface);
  font-size: 1rem;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--color-blue-600);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--color-focus);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.content-width,
.hero-inner,
.header-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid rgb(213 218 227 / 80%);
  box-shadow: 0 4px 20px rgb(7 22 47 / 8%);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--color-navy-950);
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-flag {
  display: grid;
  width: 38px;
  height: 25px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgb(7 22 47 / 25%);
  background: linear-gradient(#176bb6 0 50%, #ffd500 50%);
  transform: rotate(-2deg);
}

.brand-flag::before,
.brand-flag::after {
  content: "";
  grid-area: 1 / 1;
  background: repeating-linear-gradient(105deg, transparent 0 6px, rgb(255 255 255 / 10%) 7px, transparent 9px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: var(--color-navy-950);
  background: var(--color-yellow-500);
  border-color: var(--color-yellow-600);
  box-shadow: 0 5px 0 #cfa900;
}

.button-primary:hover {
  background: #ffe03b;
}

.button-secondary {
  color: var(--color-navy-950);
  background: #fff;
  border-color: var(--color-navy-800);
}

.button-disabled {
  width: 100%;
  color: #4b5565;
  background: #e8ebf0;
  border-color: #cbd1dc;
  cursor: not-allowed;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-navy-950);
}

.mobile-nav {
  width: min(100% - 32px, 520px);
  margin: 0 auto 14px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.mobile-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
}

.flag-texture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-navy-950);
  background-image:
    linear-gradient(to bottom, rgb(7 22 47 / 26%), rgb(7 22 47 / 16%)),
    url("../assets/images/ukraine-flag-wavy.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.flag-texture::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(7 22 47 / 18%), transparent 22% 78%, rgb(7 22 47 / 18%));
}

.hero {
  padding: 58px 0 74px;
  color: #fff;
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-blue-600);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.hero h1 {
  max-width: 1000px;
  margin: 20px auto 8px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 8.4vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow: 2px 3px 0 rgb(7 22 47 / 60%), -1px -1px 0 rgb(255 255 255 / 25%);
}

.hero-intro {
  margin: 0 auto 30px;
  color: #fff;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 750;
}

.state-region {
  position: relative;
  display: grid;
  width: min(960px, 100%);
  margin-inline: auto;
  text-align: left;
}

.state-panel {
  grid-area: 1 / 1;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.99);
  transition: opacity 500ms ease, transform 500ms ease, visibility 0s linear 500ms;
}

.state-panel.is-active {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

.video-panel {
  display: flex;
  flex-direction: column;
}

.video-frame {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 6px;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 88%);
  border-radius: 14px;
  background: rgb(7 22 47 / 56%);
  box-shadow: var(--shadow-card);
}

.video-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(rgb(7 22 47 / 54%), rgb(7 22 47 / 76%)),
    radial-gradient(circle at 50% 30%, #236a9f, #07162f 70%);
}

.video-preview,
.youtube-player,
.video-fallback {
  grid-area: 1 / 1;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  min-height: 0;
}

.video-frame [hidden] {
  display: none !important;
}

.youtube-player,
.youtube-player iframe {
  display: block;
  height: 100%;
  border: 0;
  border-radius: 9px;
}

.video-fallback {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  color: #fff;
  border-radius: 9px;
  background: var(--color-navy-950);
  text-align: center;
}

.video-fallback h2 {
  margin: 0 0 10px;
}

.video-ended-message {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 50%;
  width: min(calc(100% - 36px), 420px);
  padding: 16px;
  color: var(--color-ink);
  border: 2px solid var(--color-yellow-600);
  border-radius: 10px;
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--shadow-card);
  text-align: center;
  transform: translateX(-50%);
}

.video-ended-message h2,
.video-ended-message p {
  margin: 0 0 10px;
}

.video-status {
  margin: 10px auto 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 3px var(--color-navy-950), 0 0 8px var(--color-navy-950);
}

.video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgb(255 255 255 / 12%) 15px, transparent 17px);
}

.video-preview-copy {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 32px));
  text-align: center;
}

.video-kicker {
  margin: 0 0 4px;
  color: var(--color-yellow-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-preview h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
}

.play-preview {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgb(7 22 47 / 72%);
  font-weight: 800;
  cursor: pointer;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--color-yellow-500);
}

.video-actions {
  min-height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 14px 8px 0;
}

.text-action,
.youtube-note {
  max-width: 100%;
  min-height: 44px;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 1.18rem;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-shadow: 0 1px 3px var(--color-navy-950), 0 0 8px var(--color-navy-950);
  white-space: normal;
  cursor: pointer;
}

.youtube-note {
  display: inline-flex;
  align-items: center;
}

.donation-panel {
  display: flex;
  align-items: center;
}

.donation-card {
  width: 100%;
  margin: 0;
  padding: 34px;
  color: var(--color-ink);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.donation-header {
  margin-bottom: 22px;
  text-align: center;
}


.donation-header h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.05;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(300px, 1.22fr);
  gap: 34px;
  align-items: center;
}

.qr-figure {
  margin: 0;
  padding-right: 34px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.qr-figure img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-inline: auto;
}

.qr-figure figcaption {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-placeholder h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
}

.placeholder-copy {
  color: var(--color-muted);
  font-weight: 650;
}

.account-placeholder dl {
  margin: 20px 0;
}

.account-placeholder dl div {
  padding: 11px 0;
  border-top: 1px solid var(--color-border);
}

.account-placeholder dt {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-placeholder dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--color-muted);
}

.donation-notice {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-weight: 750;
}

.state-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}


.section {
  scroll-margin-top: 88px;
  padding: 78px 0;
}

.section:nth-of-type(even) {
  background: var(--color-surface-soft);
}

.section h2 {
  margin: 0;
  color: var(--color-navy-950);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-lead {
  max-width: 720px;
  margin: 16px 0 30px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.testimonies-section {
  background: linear-gradient(#fff, #f8f4ed);
  text-align: center;
}

.testimonies-section .section-lead {
  margin-inline: auto;
}

.testimony-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimony-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 9px 26px rgb(7 22 47 / 8%);
  text-align: left;
}

.testimony-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.78) contrast(1.02);
}

.testimony-copy {
  padding: 20px;
  text-align: center;
}

.testimony-copy h3 {
  margin: 0;
  color: var(--color-navy-950);
  font-size: 1.35rem;
  line-height: 1.2;
}

.testimony-attribution {
  margin: 4px 0 16px;
  color: var(--color-blue-600);
  font-weight: 750;
}

.testimony-copy blockquote {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  font-weight: 550;
}

.testimony-copy blockquote p {
  margin: 0 0 1em;
}

.testimony-copy blockquote p:first-child::before {
  content: "„";
}

.testimony-copy blockquote p:last-child {
  margin-bottom: 0;
}

.testimony-copy blockquote p:last-child::after {
  content: "“";
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 64px;
  align-items: start;
}

.purpose-section #purpose-title,
.purpose-section .copy-card {
  text-align: center;
}

.copy-card,
.transparency-link-card {
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 10px 30px rgb(7 22 47 / 7%);
}

.copy-card p:first-child {
  margin-top: 0;
}

.copy-card p:last-child {
  margin-bottom: 0;
}

.aid-grid,
.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.aid-card,
.finance-grid article {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}

.finance-grid article {
  padding: 26px;
}

.aid-card {
  align-self: start;
  overflow: hidden;
}

.aid-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.aid-card-copy {
  padding: 26px;
}

.aid-card h3,
.finance-grid h3,
.transparency-link-card h3 {
  margin: 16px 0 6px;
  color: var(--color-navy-950);
  font-size: 1.2rem;
}

.aid-card p,
.finance-grid p {
  margin: 0;
  color: var(--color-muted);
}

.aid-caption {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: right;
}

.finance-grid {
  margin-top: 32px;
}

.finance-grid.has-single-card {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin-inline: auto;
}

.finance-grid article {
  text-align: center;
}

.finance-grid h3 {
  margin-top: 0;
}

.finance-grid strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--color-navy-950);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.transparency-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 22px;
}

.partner-card {
  max-width: 980px;
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 10px 30px rgb(7 22 47 / 7%);
  text-align: left;
}

.partner-banner {
  width: 100%;
  height: clamp(88px, 10vw, 122px);
  display: block;
  object-fit: cover;
}

.partner-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
}

.partner-logo {
  width: 100%;
  max-width: 170px;
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.partner-copy h3 {
  margin: 0 0 8px;
  color: var(--color-navy-950);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.partner-copy p {
  margin: 0;
}

.partner-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

.partner-links a {
  font-weight: 750;
}

.partner-primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--color-navy-800);
  text-decoration: none;
}

.partner-shop-link {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.contact-card h3 {
  margin: 0;
  color: var(--color-navy-950);
  font-size: 1.5rem;
}

.contact-card .contact-role {
  margin: 4px 0 16px;
  color: var(--color-blue-600);
  font-weight: 750;
}

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
}

.contact-links a {
  font-weight: 750;
}

.contact-primary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--color-navy-800);
  text-decoration: none;
}

.transparency-link-card h3 {
  margin-top: 0;
}

.transparency-link-card p {
  margin-bottom: 0;
}

.disabled-link {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: #626a78;
  border: 2px solid var(--color-disabled);
  border-radius: 8px;
  background: #eef0f4;
  font-weight: 750;
}

.site-footer {
  padding: 30px 0;
  color: #dfe8f5;
  background: var(--color-navy-950);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 899px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .testimony-grid,
  .aid-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .testimony-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1.25fr);
  }

  .testimony-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }

  .donation-panel.is-active {
    padding-bottom: 30px;
  }
}

@media (max-width: 639px) {
  .content-width,
  .hero-inner,
  .header-inner {
    width: min(100% - 32px, var(--content-width));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .brand-flag {
    width: 30px;
    height: 20px;
    flex: 0 0 auto;
  }

  .header-donate {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 38px 0 52px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-intro {
    margin-bottom: 22px;
  }

  .video-frame {
    min-height: min(520px, 142vw);
    padding: 4px;
  }

  .video-preview,
  .youtube-player,
  .video-fallback {
    width: min(100%, 292px);
  }

  .video-ended-message {
    top: 12px;
    width: calc(100% - 24px);
    padding: 12px;
    font-size: 0.86rem;
  }

  .video-preview-copy {
    width: calc(100% - 20px);
  }

  .video-kicker {
    font-size: 0.72rem;
  }

  .video-preview h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .play-preview {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .video-actions {
    min-height: 110px;
    flex-direction: column;
    gap: 0;
  }

  .donation-card {
    padding: 22px 16px;
  }

  .donation-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .qr-figure {
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .qr-figure img {
    width: min(76%, 260px);
  }

  .donation-header h2 {
    font-size: 2rem;
  }

  .section {
    padding: 52px 0;
  }

  .testimony-grid {
    gap: 16px;
  }

  .testimony-card {
    display: block;
  }

  .testimony-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .copy-card,
  .aid-card-copy,
  .finance-grid article,
  .transparency-link-card {
    padding: 22px;
  }

  .transparency-link-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .partner-logo {
    width: 118px;
  }

  .partner-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .disabled-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .content-width,
  .hero-inner,
  .header-inner {
    width: min(100% - 24px, var(--content-width));
  }

  .brand span:last-child {
    max-width: 96px;
  }

  .menu-toggle {
    width: 44px;
    padding: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .state-panel {
    transform: none;
  }
}
