.services-page .shell {
  padding-inline: 0;
}

.services-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 24px 50px;
  background: #f6f8fa;
  border-bottom: 1px solid var(--line);
}

.services-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 252, 254, .98) 0%, rgba(250, 252, 254, .94) 36%, rgba(250, 252, 254, .48) 63%, transparent 82%);
}

.services-hero-copy {
  position: relative;
  z-index: 1;
}

.services-hero h1 {
  max-width: 650px;
  margin: 12px 0 18px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.services-hero .lead {
  max-width: 580px;
  margin: 0;
  color: #536171;
  font-size: 1.05rem;
  line-height: 1.65;
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.services-actions .button {
  min-height: 46px;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 5px;
  font-size: .88rem;
  line-height: 1.3;
}

.services-actions .button.secondary {
  background: rgba(255, 255, 255, .9);
}

.services-actions .button.secondary:hover {
  background: var(--blue-soft);
}

.services-page svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-actions svg {
  width: 18px;
  height: 18px;
}

.services-catalog {
  padding: 32px 24px 44px;
  background: #fff;
}

.services-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.services-tabs[hidden],
.service-panel[hidden] {
  display: none;
}

.service-tab {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: -1px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #5b6878;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.service-tab[aria-selected="true"] {
  border-bottom-color: var(--orange);
  color: var(--blue);
}

.service-tab:hover {
  background: #f5f8fb;
  color: var(--blue);
}

.service-tab:focus-visible {
  outline-offset: -4px;
}

.service-panel {
  scroll-margin-top: 24px;
}

.service-panel + .service-panel:not([hidden]) {
  margin-top: 36px;
}

.services-tabs:not([hidden]) ~ .service-panel {
  margin-top: 0;
}

.service-panel-intro {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.service-panel-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #e0eaf4;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.service-panel-icon svg {
  width: 36px;
  height: 36px;
}

.service-panel-copy h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

.service-panel-copy p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.65;
}

.service-disclosures {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-disclosure {
  scroll-margin-top: 24px;
}

.service-disclosure + .service-disclosure {
  border-top: 1px solid var(--line);
}

.service-disclosure > summary {
  display: block;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.service-disclosure > summary::-webkit-details-marker {
  display: none;
}

.service-disclosure > summary::marker {
  content: "";
}

.service-disclosure > summary:hover,
.service-disclosure[open] > summary {
  background: #f8fafc;
}

.service-disclosure > summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -4px;
}

.service-disclosure h3 {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.4;
}

.service-disclosure h3 > svg:last-child {
  width: 20px;
  height: 20px;
  transition: transform .18s ease;
}

.service-disclosure[open] h3 > svg:last-child {
  transform: rotate(180deg);
}

.service-disclosure-content {
  padding: 0 58px 22px;
  background: #f8fafc;
  color: var(--text);
  font-size: .94rem;
  line-height: 1.7;
}

.service-disclosure-content p {
  max-width: 90ch;
  margin: 0;
}

.service-disclosure-content p + p {
  margin-top: 12px;
}

.services-contact {
  padding: 0 24px 36px;
  background: #fff;
}

.services-contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2ebf3;
  border-radius: 9px;
  background: #edf5fb;
}

.services-contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .75;
}

.services-contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #edf5fb 0%, rgba(237, 245, 251, .96) 47%, rgba(237, 245, 251, .4) 72%, transparent);
}

.services-contact-copy {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.services-contact h2 {
  max-width: 650px;
  margin: 10px 0;
  color: var(--blue-dark);
  font-size: 1.65rem;
  line-height: 1.25;
}

.services-contact-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0;
  color: #536171;
  font-size: .96rem;
  line-height: 1.6;
}

.services-contact .services-actions {
  margin-top: 20px;
}

@media (max-width: 767px) {
  .services-hero {
    padding: 34px 20px;
  }

  .services-hero-image {
    object-position: right center;
    opacity: .75;
  }

  .services-hero::after {
    background: linear-gradient(90deg, rgba(250, 252, 254, .98), rgba(250, 252, 254, .75));
  }

  .services-hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.25rem);
  }

  .services-hero .lead {
    font-size: .98rem;
  }

  .services-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .services-actions .button {
    flex: 1 1 200px;
  }

  .services-catalog {
    padding: 20px 20px 28px;
  }

  .services-tabs {
    gap: 8px;
    margin-bottom: 24px;
  }

  .service-tab {
    min-height: 78px;
    gap: 8px;
    padding: 12px 5px;
    font-size: .85rem;
    text-align: left;
  }

  .service-tab svg {
    width: 22px;
    height: 22px;
  }

  .service-panel,
  .service-disclosure {
    scroll-margin-top: 88px;
  }

  .service-panel-intro {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .service-panel-icon {
    width: 48px;
    height: 48px;
  }

  .service-panel-icon svg {
    width: 28px;
    height: 28px;
  }

  .service-panel-copy h2 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .service-panel-copy p {
    font-size: .9rem;
  }

  .service-disclosure > summary {
    padding: 16px 14px;
  }

  .service-disclosure h3 {
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    gap: 10px;
    font-size: .94rem;
  }

  .service-disclosure h3 > svg:first-child {
    width: 22px;
    height: 22px;
  }

  .service-disclosure h3 > svg:last-child {
    width: 18px;
    height: 18px;
  }

  .service-disclosure-content {
    padding: 0 18px 18px 46px;
    font-size: .9rem;
  }

  .services-contact {
    padding: 0 20px 28px;
  }

  .services-contact-photo {
    opacity: .3;
  }

  .services-contact-card::after {
    background: linear-gradient(90deg, rgba(237, 245, 251, .98), rgba(237, 245, 251, .8));
  }

  .services-contact-copy {
    padding: 24px 20px;
  }

  .services-contact h2 {
    font-size: 1.4rem;
  }


}

@media (max-width: 480px) {
  .service-tab {
    flex-direction: column;
    gap: 6px;
    font-size: .8rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-disclosure h3 > svg:last-child {
    transition: none;
  }
}
