:root {
  --blue-900: #0b2545;
  --blue-800: #12365f;
  --blue-600: #129fe6;
  --ink: #132033;
  --muted: #5f6b7c;
  --line: #d9e2ec;
  --surface: #f4f7fb;
  --white: #ffffff;
  --steel: #7f8ea3;
  --success: #0b7c64;
  --error: #b42318;
  --shadow: 0 20px 60px rgba(11, 37, 69, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Lato, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.sr-only,
.hp {
  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;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-900);
  text-decoration: none;
  min-width: 210px;
}

.brand img {
  width: 58px;
  height: 56px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.primary-nav a,
.legal-menu summary {
  color: var(--blue-900);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav a:hover,
.legal-menu summary:hover,
.text-link:hover {
  color: var(--blue-600);
}

.legal-menu {
  position: relative;
}

.legal-menu summary {
  list-style: none;
}

.legal-menu summary::-webkit-details-marker {
  display: none;
}

.legal-menu div {
  position: absolute;
  right: 0;
  top: 32px;
  display: grid;
  min-width: 210px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-menu div a {
  padding: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switcher a {
  min-width: 38px;
  padding: 5px 9px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.language-switcher a[aria-current="true"] {
  color: var(--white);
  background: var(--blue-900);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--blue-600);
  border-radius: var(--radius);
  background: var(--blue-600);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
}

.button-secondary {
  background: var(--white);
  color: var(--blue-900);
  border-color: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover {
  color: var(--white);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-900);
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-900);
}

.hero-media,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 37, 69, 0.92), rgba(11, 37, 69, 0.62) 45%, rgba(11, 37, 69, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 84px;
  color: var(--white);
}

.hero-content h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: #e8f2fb;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.page-hero h1,
.section h2,
.band h2 {
  margin: 0;
  color: var(--blue-900);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 4.25rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p,
.section p,
.info-card p,
.service-card p,
.source-panel p,
.legal-copy p,
.facts dd {
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 36px;
  align-items: start;
}

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

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

.service-card,
.info-card,
.source-panel,
.smart-form,
.map-card,
.legal-copy,
.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(11, 37, 69, 0.08);
}

.service-card {
  overflow: hidden;
}

.service-card img,
.info-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div,
.info-card,
.source-panel,
.legal-copy {
  padding: 22px;
}

.service-card h2,
.info-card h2 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 1.18rem;
  line-height: 1.2;
}

.text-link {
  color: var(--blue-900);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 5px rgba(18, 159, 230, 0.14);
}

.facts {
  margin: 0;
  padding: 20px;
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--blue-900);
  font-weight: 900;
}

.facts dd {
  margin: 4px 0 0;
}

.band {
  width: 100%;
  padding: 58px max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
}

.band h2 {
  color: var(--white);
}

.band p {
  max-width: 720px;
  color: #d7e8f8;
}

.smart-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--blue-900);
  font-weight: 800;
}

label span,
.fine {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

p,
h1,
h2,
h3,
a,
label {
  overflow-wrap: anywhere;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

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

.was-validated :invalid {
  border-color: var(--error);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.check input {
  width: auto;
  min-height: auto;
  margin-top: 0.38em;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font-weight: 800;
}

.map-card {
  min-height: 320px;
  margin-top: 22px;
  padding: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--surface);
}

.map-card iframe {
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: var(--radius);
}

.job-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.site-footer {
  margin-top: 28px;
  background: var(--blue-900);
  color: var(--white);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
  gap: 28px;
}

.footer-logo {
  width: 74px;
  height: 70px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius);
  padding: 4px;
}

.site-footer h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p,
.site-footer address,
.site-footer li {
  color: #d8e8f8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.contact-rail {
  position: fixed;
  right: 16px;
  top: 45%;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.contact-rail a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

@media (max-width: 1060px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav,
  .header-actions {
    grid-column: 1 / -1;
  }

  .primary-nav {
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a,
  .legal-menu summary {
    padding: 12px 0;
  }

  .legal-menu div {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
  }

  .header-actions {
    display: none;
  }

  .primary-nav.is-open + .header-actions,
  .header-inner:has(.primary-nav.is-open) .header-actions {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
  }

  .service-grid,
  .card-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(calc(100vw - 24px), 310px);
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 72px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 50px;
    height: 48px;
  }

  .hero {
    min-height: 640px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.42), rgba(11, 37, 69, 0.95));
  }

  .hero-content {
    padding: 130px 0 52px;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .page-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .page-hero {
    width: calc(100vw - 32px);
    padding-top: 42px;
    gap: 24px;
  }

  .page-hero > div,
  .section > div,
  .source-panel p,
  .legal-copy p,
  address {
    max-width: min(100%, 310px);
  }

  .section {
    width: calc(100vw - 32px);
    padding: 38px 0;
  }

  .page-hero img,
  .service-card,
  .info-card,
  .source-panel,
  .smart-form,
  .map-card,
  .legal-copy,
  .facts {
    max-width: 100%;
  }

  .service-grid,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-rail {
    position: static;
    width: min(100% - 24px, 420px);
    margin: 20px auto 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-rail a {
    width: auto;
    height: 44px;
  }

  .site-footer {
    padding-bottom: 0;
  }
}

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

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

  .hero-slide:first-child {
    opacity: 1;
  }
}
