.walkthrough {
  width: min(1500px, calc(100% - 32px));
  padding: 34px 0 92px;
}

.walkthrough-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.walkthrough-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.walkthrough-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.walkthrough-motion-toggle {
  margin-top: 16px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.walkthrough-motion-toggle:hover {
  border-color: #7357ff;
  color: #6243e8;
}

.walkthrough-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.walkthrough-step {
  min-width: 0;
  margin: 0;
  padding: 11px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(45, 56, 96, .1);
}

.walkthrough-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: zoom-in;
}

.walkthrough-zoom:focus-visible {
  outline: 3px solid rgba(109, 54, 244, .55);
  outline-offset: 4px;
}

.walkthrough-zoom video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 11px;
  background: #f4f4fa;
}

.walkthrough-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 12, 26, .82);
  backdrop-filter: blur(8px);
}

.walkthrough-lightbox[hidden] {
  display: none;
}

.walkthrough-lightbox-dialog {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92vh;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.walkthrough-lightbox-media {
  display: block;
  width: 100%;
  max-height: calc(92vh - 28px);
  object-fit: contain;
  border-radius: 12px;
}

.walkthrough-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid rgba(18, 20, 42, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #15172c;
  font: 500 30px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 22, 45, .2);
}

.walkthrough-lightbox-close:hover,
.walkthrough-lightbox-close:focus-visible {
  background: #fff;
  color: #6d36f4;
}

body.walkthrough-lightbox-open {
  overflow: hidden;
}

.walkthrough-step figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 4px 4px;
  color: #141832;
}

.walkthrough-step figcaption span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #6d36f4;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.walkthrough-step figcaption strong {
  font-size: 15px;
}

.walkthrough-arrow {
  color: #7c43f5;
  font-size: 34px;
  font-weight: 800;
  filter: drop-shadow(0 5px 10px rgba(109, 54, 244, .2));
}

@media (max-width: 900px) {
  .walkthrough-row {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
    gap: 12px;
  }

  .walkthrough-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .walkthrough {
    width: min(680px, calc(100% - 24px));
    padding-bottom: 70px;
  }

  .walkthrough-lightbox {
    padding: 12px;
  }

  .walkthrough-lightbox-dialog {
    width: 100%;
    padding: 8px;
    border-radius: 14px;
  }

  .walkthrough-lightbox-close {
    top: 16px;
    right: 16px;
  }
}
