#steps-block {
  padding: 40px 0px;
}

#steps-block .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

#steps-block .step-item {
  position: relative;
}

#steps-block .step-item .add-wrapper {
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
  padding: 35px;
  min-height: 230px;
  background: var(--bg-light);
  border-radius: 2px;
  position: relative;
  height: 100%;
}

#steps-block .step-item:before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 2px;
  position: absolute;
  right: -20px;
  top: 50%;
  z-index: 0;
  transform: translateY(-50%) rotate(45deg);
  background: var(--white);
  z-index: 1;
  -webkit-box-shadow: 4px -3px 6px -3px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 4px -3px 6px -3px rgba(0, 0, 0, 0.15);
  box-shadow: 4px -3px 6px -3px rgba(0, 0, 0, 0.15);
}

#steps-block .step-item:first-child {
  z-index: 4;
}

#steps-block .step-item:last-child .add-wrapper {
  background: var(--primary);
}

#steps-block .step-item:nth-child(2) {
  z-index: 3;
}

#steps-block .step-item:nth-child(3) {
  z-index: 2;
}

#steps-block .step-item:nth-child(4) {
  z-index: 1;
}

#steps-block .step-item:nth-child(4):before {
  display: none;
}

#steps-block .num {
  font-weight: 600;
  font-size: 30px;
  line-height: 120%;
  color: var(--primary);
  margin-bottom: 40px;
  font-family: var(--second-family);
}

#steps-block .desc {
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--main-text);
  display: flex;
  flex-direction: column;
  font-family: var(--second-family);
}

#steps-block .desc a {
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  margin-top: 10px;
  color: var(--head);
  font-family: var(--second-family);
  white-space: nowrap;
}

#steps-block .step-item:last-child {
  background: var(--primary);
}

#steps-block .step-item:last-child .num {
  color: var(--bg-light);
}

#steps-block .step-item:last-child .desc {
  color: var(--bg-light);
}

#steps-block .marked {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--bg-dark);
  border-radius: 2px;
  margin-top: 40px;
}

#steps-block .marked svg {
  min-width: 20px;
  color: var(--primary);
}

#steps-block .marked p {
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  font-family: var(--second-family);
  color: var(--main-text);
}

@media (max-width: 996px) {
  #steps-block {
    padding: 30px 0;
  }

  #steps-block .num {
    font-size: 20px;
    margin-bottom: 10px;
  }

  #steps-block .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  #steps-block .step-item:before {
    display: none;
  }

  #steps-block .step-item {
    z-index: unset !important;
  }

  #steps-block .step-item .add-wrapper {
    box-shadow: unset;
    border: 1px solid var(--bg-dark);
    min-height: unset;
    padding: 15px;
  }

  #steps-block .step-item:last-child .add-wrapper {
    border-color: var(--primary);
  }

  #steps-block .marked {
    margin-top: 10px;
    padding: 15px;
  }

  #steps-block .marked p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  #steps-block .desc {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  #steps-block .steps {
    display: flex;
    flex-direction: column;
  }
}
