.progress-block {
  position: relative;
  padding: 2rem 0;
}
.progress-block::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #D2D5DB;
  transform: translateX(-50%);
}

.progress-block .step {
  position: relative;
  display: flex;
  gap: 0;
  width: 50%;
  box-sizing: border-box;
}
.progress-block .step:nth-child(odd) {
  left: 0;
  flex-direction: row-reverse;
}
.progress-block .step:nth-child(even) {
  left: 50%;
}

.progress-block .step-spacer{
    flex-basis: 25%;
    position: relative;
}

.progress-block .step-content{
    flex-basis: 75%;
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 32px;
    background-color: #FFF9E8;
    border-radius: 40px;
}

.progress-block .step-number{
    margin: 0;
}

.progress-block .step-content h5{
    margin-top: 0;
    margin-bottom: 12px;
}

.progress-block .step-content p{
    margin-top: 12px;
    margin-bottom: 0;
}

.progress-block .step .step-spacer::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px; 
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='13.5' stroke='%23191936'/%3E%3Ccircle cx='16' cy='16' r='7.5' fill='%23191936' stroke='%23191936'/%3E%3C/svg%3E%0A");
}
.progress-block .step:nth-child(odd) .step-spacer::after {
  left: 0;
  transform: translate(-50%, -50%);
}
.progress-block .step:nth-child(even) .step-spacer::after {
  right: 0;
  transform: translate(50%, -50%);
}

.progress-block .step .step-spacer::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%; 
  height: 2px;
  background: #D2D5DB;
}
/* .progress-block .step :nth-child(odd) .step-spacer::after {
  right: -30px;
}
.progress-block .step:nth-child(even) .step-spacer::after {
  left: -30px;
} */

/* responsywność: na wąskich ekranach wszystkie kroki 100% szerokości */
@media (max-width: 768px) {
  .progress-block::before {
    left: unset;
    right: 0;
    transform: none;
  }
  .progress-block .step,
  .progress-block .step:nth-child(odd),
  .progress-block .step:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    margin-bottom: 2rem;
    flex-direction: row-reverse;
  }
    .progress-block .step-content{
        flex-direction: column;
        padding: 24px;
    }

  .progress-block .step:nth-child(even) .step-spacer::after {
    left: 0;
    transform: translate(-50%, -50%);
  }
}
