:root {
  --blue: #0c2e8a;
  --green: #50d8af;
  --ink: #152033;
  --muted: #5d6b7f;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --line: #dbe3ee;
  --shadow: 0 18px 48px rgba(12, 46, 138, 0.13);
  --radius: 8px;
  --header-height: 76px;
  --container: 1120px;
  --focus: #0a7d62;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0a7d62;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 227, 238, 0.88);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(21, 32, 51, 0.1);
  border-bottom-color: var(--line);
}

.site-header__inner {
  width: min(100% - 32px, var(--container));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 52px;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.site-logo span {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 9px;
  color: #26344c;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--blue);
  background: #eef6f6;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.mobile-nav-toggle span {
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(560px, 78dvh, 700px);
  padding: calc(var(--header-height) + 44px) 0 58px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #102548;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 23, 48, 0.9) 0%, rgba(12, 46, 138, 0.7) 46%, rgba(8, 23, 48, 0.44) 100%),
    linear-gradient(0deg, rgba(8, 23, 48, 0.56), rgba(8, 23, 48, 0.14));
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slides {
  z-index: 0;
  background: #102548;
}

.hero__slide {
  margin: 0;
  opacity: 0;
  transition: opacity 650ms ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  max-width: 860px;
}

.hero__content .section-kicker {
  color: var(--green);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 20px;
}

.hero__facts a {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero__facts a:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.66);
}

.hero__facts a:active {
  transform: translateY(1px);
}

.hero__facts strong {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.hero__facts span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero__controls {
  position: absolute;
  right: max(16px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__controls button {
  min-height: 44px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.hero__controls button:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: 76px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.home-overview {
  padding: 22px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.home-overview__inner {
  display: grid;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-overview__item {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #17284a;
  text-decoration: none;
  background: #f7fbf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-overview__item:hover {
  background: #ffffff;
  border-color: rgba(11, 139, 109, 0.38);
}

.home-overview__item:active {
  transform: translateY(1px);
}

.home-overview__item span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-overview__item strong {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.38;
}

.section:nth-of-type(odd) {
  background: var(--soft);
}

.section__inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: #0a7d62;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 10px;
  color: #17284a;
  font-size: 1.12rem;
  line-height: 1.35;
}

.section p {
  max-width: 780px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.link-list a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--surface);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.link-list a:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.button:active,
.link-list a:active {
  transform: translateY(1px);
}

.button-primary {
  color: #07182e;
  background: var(--green);
  border-color: var(--green);
}

.button-primary:hover {
  color: #ffffff;
  background: #0a7d62;
  border-color: #0a7d62;
}

.button-secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.66);
}

.button-secondary:hover {
  color: #07182e;
  background: #ffffff;
  border-color: #ffffff;
}

.services-grid,
.events-grid,
.publications-grid,
.gallery-grid,
.form-grid {
  display: grid;
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.service-card,
.event-card,
.publication-card,
.membership-form,
.contact-form,
.contact-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 32, 51, 0.07);
}

.service-card,
.publication-card,
.contact-details {
  padding: 22px;
}

.service-card {
  min-height: 210px;
}

.service-card p,
.publication-card p,
.event-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  background: #d7dee9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 32, 51, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.events-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 28px;
}

.event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d7dee9;
  border-bottom: 1px solid var(--line);
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.event-card__body .button {
  align-self: flex-start;
  margin-top: auto;
}

.event-detail {
  padding: 14px;
  color: var(--muted);
  background: #f7fbf9;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.event-detail p {
  margin: 0;
}

.publications-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.publication-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.publication-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.membership-form,
.contact-form {
  margin-top: 24px;
  padding: 24px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #27364e;
  font-weight: 700;
}

.form-grid__wide {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfccdc;
  border-radius: var(--radius);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: #93a8c4;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(80, 216, 175, 0.24);
  outline: none;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #0a6a54;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details p {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-details iframe,
.map-frame {
  width: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: #07182e;
  border-top: 5px solid var(--green);
}

.site-footer__inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: rgba(7, 24, 46, 0.92);
}

.lightbox figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: min(100%, 1040px);
  max-height: calc(100dvh - 40px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 112px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #000000;
}

.lightbox figcaption {
  color: #ffffff;
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  min-width: 48px;
  min-height: 48px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
}

.lightbox__close {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

.lightbox__prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox__next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.24);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-width: 52px;
  min-height: 52px;
  padding: 10px 12px;
  color: #ffffff;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, background-color 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: #0a7d62;
}

@media (max-width: 1080px) {
  :root {
    --header-height: 70px;
  }

  .site-logo span {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 0.84rem;
  }

  .services-grid,
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-overview__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    width: min(100% - 24px, var(--container));
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + 8px);
    display: grid;
    max-height: calc(100dvh - var(--header-height) - 24px);
    padding: 10px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 1rem;
    white-space: normal;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 36px) 0 88px;
    align-items: center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 23, 48, 0.92), rgba(12, 46, 138, 0.66)),
      linear-gradient(0deg, rgba(8, 23, 48, 0.62), rgba(8, 23, 48, 0.18));
  }

  .hero__controls {
    left: 16px;
    right: auto;
    bottom: 22px;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .hero__facts a {
    min-height: auto;
    padding: 14px;
  }

  .section {
    padding: 58px 0;
  }

  .publications-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 66px;
  }

  body {
    line-height: 1.6;
  }

  .site-header__inner,
  .section__inner,
  .hero__content,
  .home-overview__inner,
  .site-footer__inner {
    width: min(100% - 24px, var(--container));
  }

  .site-logo img {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 11vw, 2.6rem);
  }

  .hero__actions,
  .link-list {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button,
  .link-list a {
    width: 100%;
  }

  .hero__controls {
    width: calc(100% - 32px);
  }

  .hero__controls button {
    flex: 1 1 130px;
  }

  .hero__facts {
    display: none;
  }

  .home-overview__inner {
    grid-template-columns: 1fr;
  }

  .home-overview__item {
    min-height: auto;
  }

  .services-grid,
  .events-grid,
  .publications-grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 14px;
  }

  .gallery-item {
    aspect-ratio: 16 / 11;
  }

  .membership-form,
  .contact-form,
  .contact-details,
  .service-card,
  .publication-card {
    padding: 18px;
  }

  .event-card__body {
    padding: 18px;
  }

  .form-grid__wide {
    grid-column: auto;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 12px;
  }

  .lightbox figure {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: calc(100dvh - 136px);
  }

  .lightbox img {
    max-height: calc(100dvh - 184px);
  }

  .lightbox__close {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
  }

  .lightbox__prev,
  .lightbox__next {
    grid-row: 3;
    width: 100%;
  }

  .lightbox__prev {
    grid-column: 1;
  }

  .lightbox__next {
    grid-column: 2;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
