.site-footer-inner {
  min-height: 0;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(16rem, 1.25fr) minmax(10rem, 0.65fr);
  align-items: start;
  column-gap: clamp(2.5rem, 6vw, 7rem);
  row-gap: 2rem;
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.site-footer-inner > span:first-child {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.site-footer-inner > span:nth-child(2) {
  grid-column: 1;
  grid-row: 1;
  max-width: 15rem;
  color: var(--page-fg);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.site-footer-inner > .build-mark {
  grid-column: 1;
  grid-row: 3;
}

.footer-service-links,
.footer-language-links,
.footer-links {
  display: block;
  margin: 0;
  padding: 0;
}

.footer-service-links {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.footer-links {
  grid-column: 3;
  grid-row: 1;
}

.footer-language-links {
  grid-column: 3;
  grid-row: 2 / span 2;
}

.footer-nav-label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--quiet-fg);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav-items {
  display: grid;
  gap: 0.68rem;
}

.footer-service-links a,
.footer-language-links a,
.footer-links a {
  color: var(--muted-fg);
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.footer-language-links .footer-nav-items,
.footer-links .footer-nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-service-links a:hover,
.footer-service-links a:focus-visible,
.footer-language-links a:hover,
.footer-language-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-language-links a[aria-current="page"] {
  color: var(--page-fg);
  text-decoration: underline;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-top: 1.4rem;
  color: var(--muted-fg);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--page-fg);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--quiet-fg);
}

.related-services {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 6vw, 6.2rem) 0;
}

.related-services h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 540;
  letter-spacing: -0.035em;
}

.related-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--page-fg);
}

.related-service-link {
  min-height: 7rem;
  padding: 1.35rem 1.5rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--page-fg);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.related-service-link:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.related-service-link:hover,
.related-service-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.related-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1.4rem;
  color: var(--muted-fg);
  font-size: 0.86rem;
}

.related-support-links a {
  color: inherit;
  text-underline-offset: 0.2em;
}

@media (max-width: 58rem) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(7.5rem, 0.75fr);
    column-gap: 1.5rem;
    row-gap: 2.2rem;
  }

  .site-footer-inner > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .footer-service-links {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-language-links {
    grid-column: 2;
    grid-row: 3;
  }

  .site-footer-inner > span:first-child {
    grid-column: 1;
    grid-row: 4;
  }

  .site-footer-inner > .build-mark {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
  }

  .related-service-grid {
    grid-template-columns: 1fr;
  }

  .related-service-link:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 24rem) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer-inner > span:nth-child(2),
  .footer-service-links,
  .footer-links,
  .footer-language-links,
  .site-footer-inner > span:first-child,
  .site-footer-inner > .build-mark {
    grid-column: 1;
  }

  .site-footer-inner > span:nth-child(2) {
    grid-row: 1;
  }

  .footer-service-links {
    grid-row: 2;
  }

  .footer-links {
    grid-row: 3;
  }

  .footer-language-links {
    grid-row: 4;
  }

  .site-footer-inner > span:first-child {
    grid-row: 5;
  }

  .site-footer-inner > .build-mark {
    grid-row: 6;
    justify-self: start;
  }
}
