.steps {
  position: relative;
  list-style: none;
  margin: 44px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  padding-top: 14px;
  color: var(--ink-4);
  transition: color 0.3s ease;
}

.step[data-state] {
  color: var(--ink);
}

.step-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  overflow: hidden;
}

.step-fill {
  display: block;
  height: 100%;
  width: calc(var(--step-progress, 0) * 100%);
  background: var(--blue);
}

.step[data-state="done"] .step-fill {
  width: 100%;
}

.step-num {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

.step[data-state="on"] .step-num {
  color: var(--blue);
}

.step-label {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (width <= 960px) {
  .steps {
    gap: 6px;
    margin-top: 28px;
  }

  .step-num {
    font-size: 12px;
    text-align: center;
  }

  .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .step[data-state="on"] .step-label {
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    margin-top: 10px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    text-align: center;
    font-size: 16px;
  }
}
