/* Full-width service layout and contained hero imagery. */
.service-v5 {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding-inline: clamp(16px, 3.2vw, 64px);
  box-sizing: border-box;
}

.service-hero-v5 {
  min-height: calc(100svh - 140px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vh, 68px) clamp(24px, 4vw, 72px);
  box-sizing: border-box;
}

.service-hero-v5 > * {
  min-width: 0;
}

.service-hero-image-v5 {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
  max-height: min(62svh, 640px);
  overflow: hidden;
  border-radius: 24px;
  box-sizing: border-box;
}

.service-hero-image-v5 img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

@media (max-width: 920px) {
  .service-v5 {
    padding-inline: 20px;
  }

  .service-hero-v5 {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 42px 24px;
  }

  .service-hero-image-v5 {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  .service-v5 {
    padding-inline: 14px;
  }

  .service-hero-v5 {
    min-height: auto;
    padding: 34px 18px;
    border-radius: 22px;
  }

  .service-hero-image-v5 {
    aspect-ratio: 16 / 10;
    max-height: 340px;
    border-radius: 18px;
  }

  .service-nav-v5 {
    flex-wrap: wrap;
  }

  .service-nav-links-v5 {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    overflow: visible;
    white-space: normal;
    padding: 4px 0 0;
  }

  .service-nav-links-v5 a {
    padding: 6px 9px;
    line-height: 1.4;
  }
}
