.progress-block {
  position: relative;
  padding: 2rem 0;
}
.progress-block::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 1px);
  width: 3px;
  background: var(--wp--preset--color--secondary);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
  mask: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
}

.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;
    z-index: 1;
}

.progress-block .step-content{
    position: relative;
    flex-basis: 75%;
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 32px;
    background-color: #fff;
    border-radius: 8px;
  align-items: center;
}

.progress-block .step-number{
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #98582A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-block .step-number-text{
  margin: 0;
  color: var(--wp--preset--color--primary);
}

.progress-block .step-content h5{
    margin-top: 0;
    margin-bottom: 8px;
}

.progress-block .step-content p{
    margin-top: 8px;
    margin-bottom: 16px;
}

.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='14' cy='14' r='13.5' transform='matrix(-1 0 0 1 30 2)' stroke='%2322333B'/%3E%3Ccircle cx='8' cy='8' r='7.5' transform='matrix(-1 0 0 1 24 8)' fill='%2322333B' stroke='%2322333B'/%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: calc(50% - 1px);
  width: 100%; 
  height: 3px;
  background: var(--wp--preset--color--secondary);
}
/* 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%);
  }

  .progress-block .step:nth-child(even) .step-content::before{
    left: unset;
    right: 0;
    transform: translate(50%, -50%);
  }
}
