.visual-process {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.visual-step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 176px;
  padding: 20px 18px;
  border: 1px solid var(--line, rgba(19, 42, 37, .12));
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface, #fff) 92%, transparent), var(--surface, #fff)),
    var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 10px 24px rgba(26, 78, 63, .08));
}

.visual-step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green, #217a54);
  color: #fff;
  font-weight: 900;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(20, 86, 58, .18);
}

.visual-step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--green, #217a54) 14%, transparent);
  color: var(--green-dark, #14563a);
  font-weight: 900;
}

.visual-step h3 {
  margin: 0;
}

.visual-step p {
  margin: 0;
}

.visual-process.compact {
  grid-template-columns: 1fr;
  gap: 10px;
}

.visual-process.compact .visual-step {
  min-height: auto;
  padding: 14px 14px 14px 64px;
}

.visual-process.compact .visual-step-number {
  position: absolute;
  left: 14px;
  top: 14px;
}

.visual-process.compact .visual-step:not(:last-child)::after {
  left: 30px;
  right: auto;
  top: auto;
  bottom: -15px;
  transform: none;
}

[data-theme="dark"] .visual-step-number {
  background: rgba(126, 211, 169, .18);
  color: var(--green-dark, #9ce2bf);
}

@media (max-width: 1100px) {
  .visual-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .visual-process {
    grid-template-columns: 1fr;
  }

  .visual-step {
    min-height: auto;
    padding: 18px 18px 18px 70px;
  }

  .visual-step-number {
    position: absolute;
    left: 18px;
    top: 18px;
  }

  .visual-step:not(:last-child)::after {
    left: 33px;
    right: auto;
    top: auto;
    bottom: -15px;
    transform: none;
  }

  .visual-step:nth-child(3)::after {
    display: grid;
  }
}
