.site-footer {
  --footer-ink: #f5f8fc;
  --footer-muted: #b7c8d8;
  --footer-accent: #77cdff;
  background: #102437;
  border-top: 4px solid #229be5;
  color: var(--footer-ink);
  font: 400 1rem/1.5 Roboto, Arial, sans-serif;
  text-align: left;
}

.site-footer__inner {
  width: var(--band-width, min(100% - clamp(40px, 10vw, 144px), 1224px));
  margin-inline: auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.65fr .9fr .9fr 1.05fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(44px, 5vw, 72px);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--footer-muted);
  font: 600 .75rem/1.4 Montserrat, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--footer-accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-footer .site-footer__logo {
  position: relative;
  display: block;
  width: 202px;
  height: 32px;
  overflow: hidden;
}

/* Crop the whitespace in the original wordmark and reverse it on the dark surface. */
.site-footer__logo img {
  position: absolute;
  width: 135%;
  max-width: none;
  height: auto;
  left: -20%;
  top: 50%;
  transform: translateY(-53%);
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.site-footer__brand p {
  max-width: 32ch;
  margin: 14px 0 18px;
  color: var(--footer-muted);
  font: inherit;
}

.site-footer .site-footer__contact {
  gap: 12px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #638299;
  border-radius: 6px;
  font-weight: 500;
}

.site-footer__contact span,
.site-footer__map span {
  color: var(--footer-accent);
}

.site-footer__address address {
  margin: 0;
  font: inherit;
  line-height: 1.7;
}

.site-footer .site-footer__map {
  gap: 6px;
  margin-top: 4px;
  color: var(--footer-accent);
}

.site-footer__base {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  border-top: 1px solid #3c5164;
  padding: 20px 0 max(36px, env(safe-area-inset-bottom));
  color: var(--footer-muted);
  font-size: .875rem;
}

.site-footer__base small {
  margin-right: auto;
  font-size: inherit;
}

.site-footer__languages {
  display: flex;
  gap: 2px;
}

.site-footer__languages a {
  justify-content: center;
  min-width: 36px;
  border-radius: 4px;
  font-size: .8125rem;
  font-weight: 600;
}

.site-footer__languages a[aria-current] {
  background: #26445c;
  color: white;
}

@media (min-width: 1101px) {
  .site-footer__base { padding-inline-end: max(0px, calc(100px - (100vw - 100%) / 2)); }
}

@media (max-width: 1100px) {
  .site-footer__base { padding-bottom: max(84px, env(safe-area-inset-bottom)); }
}

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

@media (max-width: 540px) {
  .site-footer__main { gap: 28px 20px; }
  .site-footer__brand,
  .site-footer__address { grid-column: 1 / -1; }
  .site-footer__brand { padding-bottom: 24px; border-bottom: 1px solid #3c5164; }
  .site-footer h2 { margin-bottom: 8px; }
  .site-footer li a { min-height: 40px; }
  .site-footer__base { justify-content: space-between; gap: 8px; }
  .site-footer__base small { flex-basis: 100%; }
}
