.mf-wrap {
  --mf-bg: #f7f7f7;
  --mf-line: #8ac2d7;
  --mf-circle: #cfeaf5;
  --mf-circle-active: #109b8b;
  --mf-text: #333;
  --mf-muted: #7b8a97;
  --mf-shadow: 0 8px 20px rgba(17, 67, 86, 0.08);
  background: var(--mf-bg);
  padding: 24px 18px;
  border-radius: 8px;
  overflow: hidden;
}

.mf-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--mf-text);
  margin-bottom: 20px;
}

.mf-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.mf-step {
  min-width: 140px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .25s ease, opacity .25s ease;
  opacity: .78;
}

.mf-step.is-active {
  transform: translateY(-2px) scale(1.02);
  opacity: 1;
}

.mf-circle {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: var(--mf-circle);
  box-shadow: inset 0 0 0 2px rgba(94, 167, 194, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, box-shadow .3s ease, transform .25s ease;
}

.mf-step.is-active .mf-circle {
  background: var(--mf-circle-active);
  box-shadow: var(--mf-shadow);
}

.mf-step.is-active .mf-icon svg * {
  stroke: #fff;
}

.mf-step.is-active .mf-icon svg path[fill="none"] {
  stroke: #fff;
}

.mf-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
}

.mf-icon svg {
  width: 100%;
  height: 100%;
}

.mf-label {
  margin-top: 14px;
  display: inline-block;
  background: #fff;
  color: var(--mf-text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  padding: 8px 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.mf-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mf-muted);
  max-width: 170px;
}

.mf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding-top: 42px;
  color: var(--mf-line);
}

.mf-arrow svg {
  width: 34px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-step.is-active + .mf-arrow,
.mf-arrow.is-active {
  color: #1aa398;
}

.mf-step:focus-visible {
  outline: 2px solid #2c80c6;
  outline-offset: 3px;
}

.mf-height-compact .mf-circle {
  width: 96px;
  height: 96px;
}

.mf-height-compact .mf-label {
  font-size: 14px;
  padding: 7px 11px;
}

@media (max-width: 980px) {
  .mf-track {
    flex-wrap: wrap;
    row-gap: 20px;
  }
  .mf-arrow {
    min-width: 18px;
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .mf-wrap {
    padding: 18px 12px;
  }
  .mf-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mf-step,
  .mf-step.is-active {
    max-width: none;
    width: 100%;
    transform: none;
  }
  .mf-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    margin: 0 auto;
  }
  .mf-desc {
    max-width: none;
  }
}
