.stages-block {
  display: flex;
  flex-direction: column;
}
.stages-block .stages {
  display: grid;
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 80px;
  overflow: hidden;
}
.stages-block .stages.change {
  gap: 20px;
}
.stages-block .pseudo-els {
  display: flex;
  position: absolute;
  left: 0;
  bottom: 20%;
  width: 100%;
  height: fit-content;
  gap: 10px;
  z-index: -1;
}
.stages-block .pseudo-el {
  width: 10px;
  height: 10px;
  background: #e9e9e9;
  flex-shrink: 0;
}
.stages-block .stage {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: auto;
  padding: 50px;
  gap: 70px;
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
}
.stages-block .stage:nth-child(2n + 2) {
  flex-direction: column-reverse;
}
.stages-block .stage__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}
.stages-block .stage__text__desc {
  color: var(--main-text);
}
.stages-block .stage__icon {
  display: flex;
  margin-left: auto;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}
.stages-block .stage__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stages-block .stage__count {
  position: absolute;
  left: -70px;
  top: 0;
  color: var(--bg-light);
  /* 220 - 20 */
  /* font-size: clamp(1.25rem, -1.25rem + 12.5vw, 13.75rem); */
  font-size: 200px;
}
.stages-block .stage:nth-child(2n + 2) .stage__count {
  top: auto;
  bottom: 0;
}
.stages-block .arrow-holder {
  display: flex;
  position: absolute;
  justify-content: space-around;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  padding: 0 250px 0 220px;
  width: 100%;
}
.stages-block .stage__arrow {
  width: 180px;
  height: fit-content;
  z-index: 1;
}
.stages-block .stage__arrow.little {
  display: none;
}
.stages-block .stage__arrow svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stages-block .stage__arrow svg path {
  fill: var(--primary);
}
.stages-block .btn {
  margin: 20px 0 0 auto;
}

@media (max-width: 1520px) {
  .stages-block .arrow-holder {
    padding: 0 230px 0 180px;
  }
  .stages-block .stages {
    gap: 60px;
  }
  .stages-block .stage {
    padding: 40px;
  }
}
@media (max-width: 1320px) {
  .stages-block .stages {
    gap: 50px;
  }
  .stages-block .stage {
    padding: 30px;
    gap: 40px;
  }
  .stages-block .stage__count {
    left: -40px;
    font-size: 130px;
  }
  .stages-block .arrow-holder {
    padding: 0 160px 0 160px;
  }
  .stages-block .stage__arrow {
    /* right: -70px; */
    width: 80px;
  }
}
@media (max-width: 1100px) {
  .stages-block .stages.change,
  .stages-block .stages {
    gap: 10px;
  }
  .stages-block .stage {
    padding: 20px;
    padding-bottom: 60px;
    gap: 20px;
  }
  .stages-block .stages.change .stage {
    padding-bottom: 20px;
  }
  .stages-block .stage__icon {
    width: 50px;
    height: 50px;
  }
  .stages-block .stage__text {
    gap: 10px;
  }
  .stages-block .arrow-holder {
    top: auto;
    bottom: 10px;
    transform: unset;
  }
}
@media (max-width: 860px) {
  .stages-block .stages {
    display: flex;
    flex-wrap: wrap;
  }
  .stages-block .stage {
    width: calc((100% - 10px) / 2) !important;
    flex: 1 1 auto;
    justify-content: start;
    gap: 5px;
  }
  .stages-block .stage:nth-child(2n + 2) {
    flex-direction: column;
  }
  .stages-block .stage .stage__count {
    top: auto;
    bottom: 0;
  }
  .stages-block .stage__icon {
    width: 40px;
    height: 40px;
  }
  .stages-block .arrow-holder {
    display: none;
  }
  .stages-block .stage__arrow.little {
    display: flex;
    position: absolute;
    right: 10px;
    bottom: 10px;
  }
}
@media (max-width: 576px) {
  .stages-block .stage {
    padding: 15px 20px;
    padding-bottom: 50px;
  }
  .stages-block .stage__text {
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .stages-block .stage {
    width: 100% !important;
    padding-bottom: 20px;
  }
  .stages-block .stage__arrow.little {
    display: none;
  }
}
