.how__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3.4vw, 64px);
}
.how__rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.how__row {
  padding: 11px 14px;
  border-radius: var(--radius-btn);
  line-height: normal;
  transition: background .35s, color .35s, box-shadow .35s;
}
.how__row-no {
  width: 48px;
  color: inherit;
}
.how__row.is-active {
  box-shadow: 0 10px 26px rgba(44, 36, 32, .1);
}
.how__row.is-active .how__row-no { color: inherit; }

.how__panel { min-height: 360px; }

@media (max-width: 1023px) {

  .how__head { margin-top: 0; }
}

.how__detail { overflow: hidden; transition: height .32s cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: reduce) { .how__detail { transition: none; } }

@media (min-width: 1024px) {
  #how { padding-bottom: clamp(64px, 8vw, 120px); }
}

.how__chip { line-height: normal; }

@media (max-width: 767px) {
  #how { padding: 64px 0; }

  .how__head { display: block; margin: 0; }
  #how .section__eyebrow { margin: 0; font-size: 11px; line-height: normal; }

  .section__title.how__title { margin: 18px 0 0; font-size: 30px; line-height: 1.1; }
  .how__title br { display: none; }
  .how__note { margin: 14px 0 0; max-width: none; font-size: 13.5px; line-height: 1.6; }

  .how__cap { left: 14px; bottom: 14px; padding: 8px 14px; font-size: 11px; line-height: normal; }

  .how__grid {
    display: grid;
    grid-template-rows: auto auto auto auto;
    grid-auto-columns: 300px;
    gap: 14px;
    margin-top: 28px;
    align-items: start;
    overflow-x: auto;
    scrollbar-width: none;

    margin-inline: calc(-1 * clamp(20px, 4vw, 48px));
    padding-inline: clamp(20px, 4vw, 48px);
  }
  .how__grid::-webkit-scrollbar { display: none; }
  .how__rail,
  .how__panels,
  .how__detail { display: contents; }

  .how__panel:nth-of-type(1) { grid-area: 1 / 1; }
  .how__panel:nth-of-type(2) { grid-area: 1 / 2; }
  .how__panel:nth-of-type(3) { grid-area: 1 / 3; }
  .how__panel:nth-of-type(4) { grid-area: 1 / 4; }
  .how__panel:nth-of-type(5) { grid-area: 1 / 5; }
  .how__step:nth-of-type(1) { grid-area: 2 / 1; }
  .how__step:nth-of-type(2) { grid-area: 2 / 2; }
  .how__step:nth-of-type(3) { grid-area: 2 / 3; }
  .how__step:nth-of-type(4) { grid-area: 2 / 4; }
  .how__step:nth-of-type(5) { grid-area: 2 / 5; }

  .how__panel {
    height: 360px;
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(44, 36, 32, .12);
  }

  .how__step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .how__step-no { font-size: 11px; line-height: normal; }
  .how__step-title { margin: 0; font-size: 18px; line-height: 1.2; }
  .how__step-text {
    margin: 0;
    max-width: none;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .how__list {
    grid-row: 3;
    grid-column: 1 / -1;
    position: sticky;
    left: 0;
    width: calc(100vw - 2 * clamp(20px, 4vw, 48px));
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
  }
  .how__row {
    width: 5px;
    height: 5px;
    min-width: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(44, 36, 32, .25);
    box-shadow: none;
    transition: width .25s, background .25s;
  }
  .how__row.is-active {
    width: 16px;
    background: var(--accent-gold);
    box-shadow: none;
  }
  .how__row:hover { background: rgba(44, 36, 32, .25); }
  .how__row.is-active:hover { background: var(--accent-gold); }
  .how__row-no,
  .how__row-short { display: none; }

  .how__cta {
    grid-row: 4;
    grid-column: 1 / -1;
    position: sticky;
    left: 0;
    width: calc(100vw - 2 * clamp(20px, 4vw, 48px));
    margin-top: 10px;
    padding: 16px;
    font-size: 14px;
    min-height: 0;
    line-height: normal;
    letter-spacing: 0;
  }
}

.how__swipe { display: none; }
@media (max-width: 767px) { .how__swipe { display: inline; } }

@media (min-width: 768px) and (max-width: 1023px) {
  #how { padding: 72px 0; }
  .how__head { margin-bottom: 44px; }
  #how .section__eyebrow { font-size: 11.5px; line-height: normal; }
  .section__title.how__title { margin: 20px 0 0; font-size: 38px; line-height: 1.1; }
  .how__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how__grid > * { min-width: 0; }
  .how__rail { gap: 20px; }
  .how__list { gap: 6px; }
  .how__panels { gap: 16px; }
  .how__panel { height: 520px; min-height: 0; }

  .how__detail { align-items: start; }
  .how__step-title { margin: 10px 0 0; font-size: 24px; line-height: 1.18; }
  .how__step-text { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; }
  .how__chip { margin-top: 16px; }
  .how__cta { padding: 16px 30px; font-size: 14px; min-height: 0; line-height: normal; letter-spacing: 0; }

  .how__row-no { letter-spacing: 0; }

  .how__step-no { display: block; line-height: normal; }
  .how__cap { line-height: normal; }
}
