.diagnostic-steps {
  display: grid;
  gap: 0;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.diagnostic-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 30px;
}

.diagnostic-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 58px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(var(--orange), #ffd0a6);
}

.diagnostic-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--navy2);
  box-shadow: 0 0 0 2px var(--orange), 0 8px 22px rgba(11, 35, 79, .16);
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.diagnostic-steps div {
  padding: 8px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.diagnostic-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy2);
  font-size: 1.08rem;
  line-height: 1.3;
}

.diagnostic-steps p {
  margin: 0;
  color: #566177;
  line-height: 1.55;
}

@media (min-width: 1100px) {
  .diagnostic-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .diagnostic-steps li {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 0;
  }

  .diagnostic-steps li:not(:last-child)::after {
    top: 31px;
    right: -10px;
    bottom: auto;
    left: 64px;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), #ffd0a6);
  }

  .diagnostic-steps div {
    min-height: 185px;
    height: 100%;
    padding: 14px;
  }

  .diagnostic-steps strong { font-size: .96rem; }
  .diagnostic-steps p { font-size: .9rem; line-height: 1.45; }
}

@media (max-width: 580px) {
  .diagnostic-steps li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 24px;
  }

  .diagnostic-number { width: 52px; height: 52px; }
  .diagnostic-steps li:not(:last-child)::after { left: 25px; top: 50px; }
  .diagnostic-steps div { padding: 10px 14px 13px; }
}
