.page-service-detail {
  background:
    radial-gradient(circle at 14% 12%, rgba(var(--accent-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, #fbfaff 0%, #f1eef8 100%);
}

.page-service-detail .site-header {
  animation: none;
}

.service-detail-main {
  padding-top: var(--header-h);
}

.service-detail-shell {
  width: min(1380px, calc(100% - 72px));
  margin-inline: auto;
}

.service-detail-hero {
  position: relative;
  min-height: clamp(620px, 76svh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--deep-2);
  isolation: isolate;
}

.service-detail-hero__media,
.service-detail-hero__shade {
  position: absolute;
  inset: 0;
}

.service-detail-hero__media {
  z-index: 0;
  overflow: hidden;
}

.service-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.86) contrast(1.08) brightness(0.76);
  transform: scale(1.07);
  animation:
    siteHeroImageIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards,
    siteHeroImageDrift 18s ease-in-out 1.02s infinite alternate;
}

.service-detail-hero__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(var(--deep-rgb), 0.98), rgba(var(--deep-rgb), 0.74) 56%, rgba(var(--deep-rgb), 0.9)),
    linear-gradient(0deg, rgba(var(--deep-rgb), 0.92), rgba(var(--deep-rgb), 0.2) 58%);
}

.service-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--white-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(var(--white-rgb), 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  inset: -36%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28) 0%, rgba(var(--accent-rgb), 0.15) 24%, rgba(var(--accent-rgb), 0) 58%);
  filter: blur(26px);
  opacity: 0;
  transform: translate3d(-26%, -18%, 0) scale(1);
  animation:
    siteHeroLightIn 900ms ease 380ms forwards,
    siteHeroLightDrift 18s ease-in-out 1.28s infinite alternate;
  will-change: transform;
}

.service-detail-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(78px, 10vh, 132px);
}

.service-detail-back {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(var(--white-rgb), 0.18);
  border-radius: var(--radius-ui);
  padding: 0 14px;
  color: rgba(var(--white-rgb), 0.86);
  font-size: 13px;
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.service-detail-back:hover,
.service-detail-back:focus-visible {
  background: rgba(var(--white-rgb), 0.1);
  transform: translateY(-1px);
}

.service-detail-kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--white-rgb), 0.18);
  border-radius: var(--radius-ui);
  background: rgba(var(--white-rgb), 0.08);
  color: rgba(var(--white-rgb), 0.88);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-detail-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.18);
}

.service-detail-kicker--dark {
  margin-top: 0;
  border-color: rgba(var(--ink-rgb), 0.1);
  background: rgba(var(--white-rgb), 0.72);
  color: var(--accent-deep);
}

.service-detail-hero__copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: detailTextIn 740ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-detail-hero__copy .service-detail-back {
  animation-delay: 180ms;
}

.service-detail-hero__copy .service-detail-kicker {
  animation-delay: 260ms;
}

.service-detail-hero__copy h1 {
  max-width: 850px;
  margin: 0 0 24px;
  color: var(--white);
  font-size: var(--hero-title-size);
  font-weight: 900;
  line-height: var(--hero-title-line-height);
  letter-spacing: 0;
  text-shadow: 0 24px 64px rgba(var(--deep-rgb), 0.42);
  animation-delay: 380ms;
}

.service-detail-hero__copy p {
  max-width: 710px;
  margin: 0;
  color: rgba(var(--white-rgb), 0.82);
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 650;
  line-height: 1.62;
  animation-delay: 500ms;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation-delay: 620ms;
}

.service-detail-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-ui);
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 22px 52px rgba(var(--accent-rgb), 0.3);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-detail-button:hover,
.service-detail-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 64px rgba(var(--accent-rgb), 0.36);
}

.service-detail-button--ghost {
  border: 1px solid rgba(var(--white-rgb), 0.22);
  background: rgba(var(--white-rgb), 0.08);
  box-shadow: none;
}

.service-detail-quick {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(var(--white-rgb), 0.16);
  border-radius: var(--radius-card);
  padding: 24px;
  background: rgba(var(--white-rgb), 0.1);
  box-shadow: 0 26px 70px rgba(var(--deep-rgb), 0.34);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(24px);
  animation: detailTextIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 720ms forwards;
}

.service-detail-quick div {
  border-radius: var(--radius-ui);
  padding: 18px;
  background: rgba(var(--deep-rgb), 0.18);
}

.service-detail-quick span {
  display: block;
  margin-bottom: 7px;
  color: rgba(var(--white-rgb), 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-detail-quick strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.3;
}

.service-detail-section {
  position: relative;
  padding-block: clamp(70px, 8vw, 118px);
}

.service-detail-section + .service-detail-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1380px, calc(100% - 72px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--ink-rgb), 0.12), transparent);
}

.service-detail-section-head {
  max-width: 900px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.service-detail-section h2 {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.service-detail-grid {
  display: grid;
  gap: 22px;
}

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

.service-detail-info-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-card);
  padding: 24px;
  background:
    radial-gradient(circle at 14% 12%, rgba(var(--accent-rgb), 0.12), transparent 34%),
    rgba(var(--white-rgb), 0.72);
  box-shadow: 0 26px 70px rgba(var(--deep-rgb), 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-detail-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow: 0 32px 90px rgba(var(--deep-rgb), 0.12);
}

.service-detail-info-card span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  color: var(--white);
  background: var(--deep);
  font-size: 14px;
  font-weight: 900;
}

.service-detail-info-card h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
}

.service-detail-info-card p,
.service-detail-lead,
.service-detail-content__body p,
.service-related__head p,
.service-detail-cta p {
  color: rgba(var(--ink-rgb), 0.68);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.service-detail-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.service-detail-steps {
  display: grid;
  gap: 16px;
}

.service-detail-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-card);
  padding: 22px;
  background: rgba(var(--white-rgb), 0.72);
  box-shadow: 0 22px 56px rgba(var(--deep-rgb), 0.07);
}

.service-detail-steps span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  font-size: 21px;
  font-weight: 900;
}

.service-detail-steps h3,
.service-detail-faq summary {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}

.service-detail-steps p,
.service-detail-faq p {
  margin: 0;
  color: rgba(var(--ink-rgb), 0.68);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.58;
}

.service-detail-content__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
}

.service-detail-content__body {
  width: 100%;
  margin-inline: auto;
  align-self: stretch;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--accent-rgb), 0.09), transparent 32%),
    rgba(var(--white-rgb), 0.76);
  box-shadow: 0 26px 76px rgba(var(--deep-rgb), 0.08);
  padding: clamp(28px, 5vw, 56px);
}

.service-detail-content__media {
  height: 100%;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-card);
  background: rgba(var(--white-rgb), 0.72);
  box-shadow: 0 26px 76px rgba(var(--deep-rgb), 0.08);
}

.service-detail-content__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.92);
}

.service-detail-content__body h2 {
  max-width: 980px;
  margin: 0 0 26px;
}

.service-detail-content__body p {
  max-width: 1180px;
  margin: 0;
}

.service-detail-content__body p + p {
  margin-top: 18px;
}

.service-detail-content__body h3 {
  margin: 34px 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

.service-detail-content__body ul,
.service-detail-content__body ol {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 22px;
  color: rgba(var(--ink-rgb), 0.7);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.service-related {
  overflow: hidden;
}

.service-related__head {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  gap: 24px;
  justify-content: center;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.service-related__head h2 {
  margin-top: 0;
}

.service-related__head p {
  max-width: 720px;
  margin: 18px auto 0;
}

.service-related__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.service-related__arrow {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-ui);
  color: var(--ink);
  background: rgba(var(--white-rgb), 0.72);
  box-shadow: 0 18px 48px rgba(var(--deep-rgb), 0.08);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-related__arrow span {
  font-size: 38px;
  line-height: 1;
}

.service-related__arrow:hover,
.service-related__arrow:focus-visible {
  color: var(--white);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  transform: translateY(-2px);
}

.service-related__arrow:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.service-related__viewport {
  margin-inline: -4px;
  padding: 4px;
  overflow: hidden;
}

.service-related__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.service-related__track.is-empty {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  justify-items: center;
  cursor: default;
  user-select: text;
}

.service-related__track .section-empty {
  max-width: 560px;
  text-align: center;
}

.service-related__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.service-related__track.is-dragging .service-related-card {
  pointer-events: none;
}

.service-related__track::-webkit-scrollbar {
  display: none;
}

.service-related-card {
  min-height: 460px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-card);
  background: rgba(var(--white-rgb), 0.78);
  box-shadow: none;
  scroll-snap-align: start;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.service-related-card:hover,
.service-related-card:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.36);
  box-shadow: 0 22px 54px -34px rgba(var(--deep-rgb), 0.34);
}

.service-related-card img {
  width: 100%;
  height: clamp(210px, 15vw, 260px);
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms ease;
}

.service-related-card:hover img,
.service-related-card:focus-visible img {
  filter: saturate(1.02) contrast(1.08);
  transform: scale(1.06);
}

.service-related-card span {
  width: max-content;
  margin: 24px 24px 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent-deep);
  background: rgba(var(--accent-rgb), 0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-related-card strong {
  margin: 18px 24px 12px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.08;
}

.service-related-card p {
  margin: 0 24px 26px;
  color: rgba(var(--ink-rgb), 0.66);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.52;
}

.service-detail-faq-list {
  display: grid;
  gap: 14px;
}

.service-detail-faq details {
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  background: rgba(var(--white-rgb), 0.72);
  box-shadow: 0 22px 56px rgba(var(--deep-rgb), 0.07);
}

.service-detail-faq summary {
  cursor: pointer;
  list-style: none;
}

.service-detail-faq summary::-webkit-details-marker {
  display: none;
}

.service-detail-faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
}

.service-detail-faq details[open] summary::after {
  content: "-";
}

.service-detail-faq p {
  padding-top: 10px;
}

.service-detail-cta-section {
  padding-bottom: clamp(90px, 10vw, 140px);
}

.service-detail-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 54px);
  color: var(--white);
  background: linear-gradient(135deg, #35264f, #151020 78%);
  box-shadow: 0 32px 90px rgba(var(--deep-rgb), 0.18);
}

.service-detail-cta::before {
  content: "";
  position: absolute;
  inset: -42%;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.36) 0%, rgba(var(--accent-rgb), 0.18) 24%, rgba(var(--accent-rgb), 0) 58%);
  opacity: 0.95;
  transform: translate3d(-24%, -18%, 0) scale(1);
  animation: siteCtaGlowDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

.service-detail-cta > * {
  position: relative;
  z-index: 1;
}

.service-detail-cta h2 {
  max-width: 820px;
  margin: 18px 0 16px;
  color: var(--white);
}

.service-detail-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(var(--white-rgb), 0.74);
}

@keyframes detailTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .service-detail-hero__inner,
  .service-detail-two-col,
  .service-detail-content__inner,
  .service-related__head {
    grid-template-columns: 1fr;
  }

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

  .service-related__track {
    grid-auto-columns: calc((100% - 20px) / 2);
    gap: 20px;
  }

  .service-detail-content__media img {
    min-height: 360px;
  }

  .service-detail-content__media {
    height: auto;
  }

}

@media (max-width: 760px) {
  .service-detail-shell {
    width: min(100% - 40px, 560px);
  }

  .service-detail-hero {
    min-height: auto;
  }

  .service-detail-hero__inner {
    padding-block: 58px 66px;
  }

  .service-detail-actions,
  .service-detail-cta {
    grid-template-columns: 1fr;
  }

  .service-detail-actions a,
  .service-detail-button {
    width: 100%;
  }

  .service-detail-grid--four,
  .service-detail-content__inner,
  .service-related__head {
    grid-template-columns: 1fr;
  }

  .service-related__head {
    align-items: center;
  }

  .service-related__controls {
    justify-content: center;
  }

  .service-related__track {
    grid-auto-columns: 100%;
    gap: 16px;
  }

  .service-related-card {
    min-height: 420px;
  }

  .service-detail-content__media img {
    min-height: 280px;
  }

  .service-detail-info-card {
    min-height: 190px;
  }

  .service-detail-section + .service-detail-section::before {
    width: calc(100% - 40px);
  }

  .service-detail-steps article {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
  }

  .service-detail-steps span {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-card);
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail-hero__media img,
  .service-detail-hero::after,
  .service-detail-hero__copy > *,
  .service-detail-quick,
  .service-detail-cta::before {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .service-detail-hero::after {
    opacity: var(--hero-light-opacity, 0.78);
  }
}
