:root {
  --esa-blue: #1646a0;
  --esa-blue-dark: #0e2f6d;
  --esa-yellow: #ffd617;
  --text: #183153;
  --muted: #5f6f86;
  --bg: #f6f8fc;
  --white: #ffffff;
  --border: #dbe3f1;
  --shadow: 0 10px 30px rgba(14, 47, 109, 0.08);
  --radius: 18px;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: #0e2f6d;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 2000;
}
.skip-link:focus {
  top: 12px;
}
.page-shell {
  min-height: 100vh;
}
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 18px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--esa-blue-dark);
}
.header-logo {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
}
.brand-copy {
  min-width: 0;
}
.brand-title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--esa-blue-dark);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover,
.nav a.current {
  opacity: 0.72;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--esa-blue-dark);
  border-radius: 12px;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--esa-blue-dark);
  margin: 3px 0;
  border-radius: 2px;
}
.mobile-menu {
  display: none;
}
.hero,
.page-hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(22, 70, 160, 0.07),
      transparent 28%
    ),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%);
}
.hero {
  padding: 56px 0 54px;
  }
.page-hero {
  padding: 52px 0 38px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 70, 160, 0.08);
  color: var(--esa-blue-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  line-height: 1.06;
  letter-spacing: -1.1px;
  color: var(--esa-blue-dark);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
}
.hero p,
.page-hero p,
.lead,
.content-narrow p,
.page-block p,
.text-stack p {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-primary {
  background: var(--esa-blue);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #113e91;
}
.btn-secondary {
  color: var(--esa-blue-dark);
  background: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.hero-note {
  font-size: 14px;
  color: var(--muted);
}
.section {
  padding: 76px 0;
}
.section.alt {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border-top: 1px solid rgba(22, 70, 160, 0.06);
  border-bottom: 1px solid rgba(22, 70, 160, 0.06);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-head-left {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: var(--esa-blue-dark);
  letter-spacing: -0.8px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}
.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature-box.dark {
  background: linear-gradient(135deg, var(--esa-blue-dark), var(--esa-blue));
  color: var(--white);
  border: none;
}
.feature-box h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.15;
}
.feature-box.dark p {
  color: rgba(255, 255, 255, 0.9);
}
.feature-box p {
  margin: 0;
  color: var(--muted);
}
.mini-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.mini-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcff;
  font-size: 14px;
  color: var(--text);
}
.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.text-stack p {
  font-size: 18px;
  color: var(--muted);
}
.content-narrow {
  max-width: 860px;
  margin: 0 auto;
}
.two-gems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.gem-kicker {
  color: var(--esa-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.gem-card h3 {
  margin: 0 0 14px;
  color: var(--esa-blue-dark);
  font-size: 26px;
  line-height: 1.15;
}
.gem-card p {
  margin: 0 0 18px;
  color: var(--muted);
}
.text-link {
  color: var(--esa-blue-dark);
  font-weight: 700;
  font-size: 14px;
}
.compact-gems .gem-card {
  padding: 24px;
}
.compact-gems .gem-card h3 {
  font-size: 22px;
}
.proof-image {
  max-width: 960px;
  margin: 0 auto;
}
.program-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}
.institutional-image {
  margin: 0;
}
.institutional-image img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-image img {
  min-height: 420px;
  object-fit: cover;
}
figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.proof-section figcaption {
  text-align: center;
}
.legal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.legal-box p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}
.legal-box p:last-child {
  margin-bottom: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}
.info-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  margin: 0 0 14px;
  color: var(--esa-blue-dark);
  font-size: 24px;
}
.info-card p {
  color: var(--muted);
  font-size: 16px;
}
.small-note {
  font-size: 14px;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  gap: 8px;
}
.form-row label {
  font-weight: 600;
  color: var(--esa-blue-dark);
  font-size: 14px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.turnstile-placeholder {
  padding: 18px;
  border: 1px dashed rgba(22, 70, 160, 0.35);
  border-radius: 14px;
  background: rgba(22, 70, 160, 0.04);
  color: var(--muted);
  font-size: 14px;
}
.footer {
  padding: 38px 0;
  background: #f9fbff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand {
  font-weight: 700;
  color: var(--esa-blue-dark);
  margin-bottom: 10px;
}
.footer-copy {
  max-width: 640px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  font-size: 14px;
  color: var(--esa-blue-dark);
  font-weight: 600;
}
.footer-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.footer-meta {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 980px) {
  .nav-primary {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }
  .mobile-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }
  .mobile-menu.open {
    display: block;
  }
  .mobile-menu nav {
    display: grid;
    gap: 4px;
  }
  .mobile-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--esa-blue-dark);
    font-weight: 600;
  }
  .mobile-menu a:hover,
  .mobile-menu a.current {
    background: rgba(22, 70, 160, 0.06);
  }
  .hero-grid,
  .feature-band,
  .two-gems,
  .two-column-section,
  .program-visual-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    min-height: unset;
  }
}
@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }
  .header-inner {
    min-height: 72px;
  }
  .header-logo {
    width: 42px;
  }
  .brand-title {
    font-size: 14px;
  }
  .hero {
    padding: 42px 0;
      }
  .page-hero {
    padding: 38px 0 28px;
  }
  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }
  .hero p,
  .page-hero p,
  .lead,
  .content-narrow p,
  .page-block p,
  .text-stack p {
    font-size: 17px;
  }
  .section {
    padding: 60px 0;
  }
  .feature-box,
  .gem-card,
  .legal-box,
  .info-card,
  .form-card {
    padding: 22px;
  }
  .footer-meta {
    flex-direction: column;
    gap: 6px;
  }
  figcaption {
    font-size: 13px;
  }
}

.language-selector {
  position: relative;
  flex: 0 0 auto;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(22, 70, 160, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--esa-blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.language-toggle:hover,
.language-selector.open .language-toggle {
  background: rgba(22, 70, 160, 0.06);
  border-color: rgba(22, 70, 160, 0.32);
}
.language-toggle:focus-visible,
.language-option:focus-visible {
  outline: 3px solid rgba(255, 214, 23, 0.65);
  outline-offset: 2px;
}
.language-icon svg,
.language-chevron svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.language-icon svg { width: 17px; height: 17px; }
.language-chevron svg { width: 13px; height: 13px; transition: transform 0.18s ease; }
.language-selector.open .language-chevron svg { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 1100;
}
.language-selector.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 11px;
  border-radius: 11px;
  color: var(--esa-blue-dark);
  font-size: 14px;
  font-weight: 600;
}
.language-option:hover,
.language-option.current {
  background: rgba(22, 70, 160, 0.07);
}
.language-option.current::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--esa-yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 23, 0.28);
}
.language-code {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.language-selector-mobile {
  display: none;
}
@media (max-width: 980px) {
  .language-selector-desktop { display: none; }
  .language-selector-mobile {
    display: block;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 0;
    z-index: 1200;
  }
  .language-selector-mobile .language-toggle {
    width: 56px;
    min-width: 56px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .language-selector-mobile .language-current {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .language-selector-mobile .language-chevron {
    display: none;
  }
  .language-selector-mobile .language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 0;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.98);
  }
}
