.services.section {
  padding-block: clamp(30px, 5vw, 64px) 26px;
  background: linear-gradient(180deg,#f1f6fc 0,#f6f8fb 370px);
}
.section.clients { padding-block-start: 26px; }
.section-head.journey-head { margin-block-end: clamp(17px, 3vw, 30px); }
.journey-head h2 { max-width: 17ch; font-size: clamp(2.15rem, 4.5vw, 4.2rem); line-height: 1.14; text-wrap: balance; }
.journey-head > p { max-width: 37ch; }

.story-layout { padding-block-start: clamp(13px, 2.2vw, 24px); }
#journey-steps { display: grid; gap: 12px; }
.story-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(255px, 30%, 350px);
  grid-template-areas: "head art" "foot art";
  align-items: center;
  align-content: center;
  column-gap: clamp(18px, 4vw, 56px);
  row-gap: 9px;
  padding: clamp(15px, 2.5vw, 29px);
  background: #fff;
  border: 1px solid #dbe6f1;
  border-radius: 20px;
  scroll-margin-block-start: 78px;
}
.story-step:focus-visible { outline-width: 2px; outline-offset: 2px; }
.story-head { grid-area: head; align-self: end; min-width: 0; }
.story-foot { grid-area: foot; align-self: start; min-width: 0; }
.story-step > .art-scene { grid-area: art; }
.story-category {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #006e69;
  font-size: .85rem;
  font-weight: 600;
  margin-block-end: 5px;
}
.story-category svg, .story-category .uploaded-service-icon {
  width: 28px;
  height: 28px;
  padding: 4px;
  color: var(--navy);
  background: #e5f7f7;
  border-radius: 7px;
}
.story-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.story-title-row h3 { font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.2; }
.story-intro {
  color: var(--ink);
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  line-height: 1.65;
  margin-block-start: 6px;
  text-wrap: pretty;
}
.story-output { padding-inline-start: 10px; border-inline-start: 2px solid var(--mint); color: #405167; line-height: 1.55; }
.story-output strong { color: var(--navy); font-weight: 600; margin-inline-end: .4em; }
.story-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 13px; }
.story-actions .btn { padding-inline: 12px; min-height: 44px; font-size: .94rem; }
.detail-icon { width: 45px; height: 45px; display: grid; place-items: center; color: #00746f; background: #eef5fa; border: 1px solid #d3deea; border-radius: 10px; margin-block-end: 10px; }

.service-sticky {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: #f6f9fd;
  border-block: 1px solid #dbe3ec;
  box-shadow: 0 6px 18px #07223d0b;
}
.service-jumps {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  overflow-x: auto;
  padding: 6px 2px;
}
.service-jumps li { flex: 0 0 auto; min-width: 0; }
.service-jumps a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: clamp(6px, 1vw, 14px);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.service-jumps svg, .service-jumps .uploaded-service-icon { width: 15px; height: 15px; flex: none; }
.compact-label { display: none; }
.service-jumps a:hover { background: #e6f0f9; }
.service-jumps a[aria-current] { background: var(--mint); color: var(--navy); border-color: #009d97; }
.service-jumps a:focus-visible { outline-offset: -3px; }
[data-motion-paused] .service-jumps a { transition: none; }

@media(max-width: 1000px) {
  .service-jumps { justify-content: flex-start; }
  .full-label { display: none; }
  .compact-label { display: inline; }
}
@media(max-width: 720px) {
  .story-step { grid-template-columns: minmax(0,1fr); grid-template-areas: "head" "art" "foot"; gap: 13px; }
  .story-step { box-shadow: 0 9px 22px #071d3f0b; border-block-start: 3px solid var(--mint); }
  .story-title-row h3 { font-size: clamp(1.62rem, 5.3vw, 2.15rem); }
  .story-intro { margin-block-start: 6px; }
  .story-output { font-size: .96rem; }
  .story-actions { margin-block-start: 10px; }
  #journey-steps { gap: 17px; }
}
@media(max-width: 610px) and (min-height: 501px) {
  .service-jumps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding-block: 5px; }
  .service-jumps a { gap: 3px; padding-inline: 1px; line-height: 1.13; font-size: clamp(.74rem, 3.15vw, .87rem); background: #fff; border-color: #dbe6f1; }
  .service-jumps a span { white-space: normal; text-align: center; }
  .service-jumps svg, .service-jumps .uploaded-service-icon { width: 13px; height: 13px; }
  .story-step { scroll-margin-block-start: 113px; }
}

@media(max-width: 360px) {
  .story-actions .btn { font-size: .88rem; padding-inline: 7px; }
}

.uploaded-service-icon { object-fit: contain; }
.detail-icon .uploaded-service-icon { width: 24px; height: 24px; }
