:root {
  --blue: #17469e;
  --blue-dark: #0d2d70;
  --blue-soft: #eef5ff;
  --green: #82bd42;
  --green-soft: #f2f9e9;
  --coral: #ef775b;
  --coral-soft: #fff1ed;
  --turquoise: #28aac1;
  --turquoise-soft: #eaf9fb;
  --ink: #14213d;
  --muted: #5d6b82;
  --white: #fff;
  --border: #dce5f1;
  --shadow: 0 18px 45px rgba(20, 33, 61, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.button {
  font: inherit;
}

.page-width {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(23, 70, 158, 0.09);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(20, 33, 61, 0.05);
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  flex: 0 1 210px;
  align-items: center;
}

.brand-link img {
  display: block;
  width: 200px;
  height: auto;
}

.header-actions,
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.gallery-arrow:focus-visible,
.gallery-photo:focus-visible,
.lightbox__close:focus-visible {
  outline: 3px solid rgba(40, 170, 193, 0.5);
  outline-offset: 3px;
}

.button--primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(23, 70, 158, 0.2);
}

.button--primary:hover {
  background: var(--blue-dark);
}

.button--outline {
  color: var(--blue);
  background: var(--white);
}

.button--outline:hover {
  color: var(--white);
  background: var(--blue);
}

.button--compact {
  min-height: 42px;
  padding: 8px 17px;
  font-size: 0.91rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff 0%, var(--blue-soft) 100%);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 58px solid rgba(130, 189, 66, 0.12);
  border-radius: 50%;
  content: "";
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(78px, 10vw, 132px);
  text-align: center;
}

.hero h1 {
  max-width: 920px;
  margin: 12px auto 22px;
  color: var(--blue-dark);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero__summary {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.hero__actions {
  justify-content: center;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.hero__shape--one {
  top: 70px;
  left: -55px;
  width: 180px;
  height: 180px;
  background: rgba(40, 170, 193, 0.12);
}

.hero__shape--two {
  top: 110px;
  right: 9%;
  width: 74px;
  height: 74px;
  background: rgba(239, 119, 91, 0.19);
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(72px, 8vw, 108px);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2 {
  margin: 9px 0 14px;
  color: var(--blue-dark);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.institutional-section {
  padding-block: clamp(72px, 8vw, 108px);
  background: var(--white);
}

.institutional-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 60px);
}

.institutional-grid.is-text-only {
  grid-template-columns: minmax(0, 790px);
  justify-content: center;
}

.institutional-content {
  min-width: 0;
  text-align: left;
}

.institutional-content h2 {
  margin: 10px 0 20px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.institutional-content > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.institutional-photo {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  margin: 0 0 0 auto;
}

.institutional-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(20, 33, 61, 0.16);
}

.institutional-photo figcaption {
  width: 100%;
  margin: 14px 0 0;
  padding-inline: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}

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

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--border);
  border-top: 5px solid;
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.program-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  content: "";
  opacity: 0.7;
}

.program-card--values {
  border-top-color: var(--green);
}

.program-card--values::after {
  background: var(--green-soft);
}

.program-card--rights {
  border-top-color: var(--coral);
}

.program-card--rights::after {
  background: var(--coral-soft);
}

.program-card--prevention {
  border-top-color: var(--turquoise);
}

.program-card--prevention::after {
  background: var(--turquoise-soft);
}

.program-card__logo {
  display: flex;
  height: 96px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.program-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 88px;
  object-fit: contain;
}

.program-card__logo.is-empty {
  display: none;
  height: 0;
  margin: 0;
}

.program-card__category {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 1.36rem;
  line-height: 1.25;
}

.program-card > p:last-of-type {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.impact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.impact::before {
  position: absolute;
  top: -130px;
  left: -100px;
  width: 330px;
  height: 330px;
  border: 55px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.impact .page-width {
  position: relative;
  z-index: 1;
}

.section-heading--light .eyebrow {
  color: #a8e9f2;
}

.section-heading--light h2,
.section-heading--light > p:last-child {
  color: var(--white);
}

.section-heading--light > p:last-child {
  opacity: 0.78;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.13);
}

.impact-item {
  display: flex;
  min-height: 185px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.impact-item strong {
  font-size: clamp(2.1rem, 5vw, 3.65rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.impact-item span {
  margin-top: 10px;
  opacity: 0.82;
  font-size: 0.96rem;
}

.gallery-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 22px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 420ms ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  margin: 0;
}

.gallery-photo {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 290px;
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: var(--blue-soft);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-photo:hover img {
  transform: scale(1.025);
}

.gallery-arrow {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 33, 61, 0.1);
  cursor: pointer;
  font-size: 1.35rem;
  transition: color 160ms ease, background-color 160ms ease;
}

.gallery-arrow:hover:not(:disabled) {
  color: var(--white);
  background: var(--blue);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 15, 38, 0.9);
}

.lightbox__panel {
  position: relative;
  display: flex;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  align-items: center;
  justify-content: center;
}

.lightbox__panel img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  border-radius: 16px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #f8fbff;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer a {
  color: var(--blue);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .institutional-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .institutional-content {
    max-width: 720px;
  }

  .institutional-photo {
    max-width: 420px;
    margin-inline: auto;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 0;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    min-height: 150px;
  }

  .gallery-slide {
    flex-basis: calc((100% - 20px) / 2);
  }

  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .page-width {
    width: min(100% - 24px, 1160px);
  }

  .site-header__inner {
    min-height: 70px;
    gap: 8px;
  }

  .brand-link {
    flex-basis: 126px;
  }

  .brand-link img {
    width: 126px;
  }

  .header-actions {
    gap: 6px;
  }

  .button--compact {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .hero__content {
    padding-block: 72px 82px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: min(100%, 310px);
  }

  .program-card {
    padding: 24px;
  }

  .gallery-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .gallery-track {
    gap: 12px;
  }

  .gallery-slide {
    flex-basis: 100%;
  }

  .gallery-photo {
    height: 330px;
  }
}

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

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