#steps {
  padding-top: 80px;
  padding-bottom: 60px;
  background-image: url('images/bg.svg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

#steps .steps__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  width: 100%;
  height: 54px;
  background: #5EB6CA;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  border: 2px solid #5EB6CA;
  font-family: 'Inter';
  color: #fff;
  font-size: 16px;
  line-height: 150%;
  font-weight: 600;
  z-index: 999;
}

#steps .steps__btn:hover {
  color: #5EB6CA;
  ;
  background-color: #fff;
}

#steps .steps__title {
  font-family: 'PT Serif';
  font-weight: 700;
  font-size: 48px;
  line-height: 117%;
  color: #373B32;
  margin-bottom: 60px;
position: relative;
  z-index: 2;
}


#steps .steps__holder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  /*grid-row-gap: 70px;*/
}

#steps .step__item {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  padding: 35px;
  width: 100%;
  height: fit-content;
  min-height: 203px;
  position: relative;
  max-width: 270px;
  border: 1px solid #83aa51;
  box-shadow: 0px 0px 20px rgba(94, 182, 202, 0.15);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background .3s ease;
  /* overflow: hidden; */
}

.bg__img {
  opacity: 0;
  position: absolute;
  max-width: 80px;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transition: opacity .3s ease;
  z-index: 1;
}

#steps .step__item:hover .bg__img {
  opacity: 1;
  /*background-repeat: no-repeat;
  background-position: right bottom;
  height: 100px; */
}

#steps .step__item:hover {
  background-color: #83aa51;
  /* background-image: url('/wp-content/uploads/2022/06/frame-17-e1654155981304.svg'); */
  /*background-image: url('images/chair.svg');*/
  background-repeat: no-repeat;
  background-position: right bottom;
}

@media (max-width: 768px) {
  #steps .step__item {
    background-color: #83aa51;
    background-repeat: no-repeat;
    background-position: right bottom;
  }

  #steps .step__item .item__count {
    color: #fff;
  }

  #steps .step__item .item__title {
    color: #fff;
  }
}

#steps .step__item:hover .item__count {
  color: #fff;
}

#steps .step__item:hover .item__title {
  color: #fff;
}

#steps .step__item .item__count {
  font-family: 'PT Serif';
  font-weight: 700;
  font-size: 24px;
  line-height: 133%;
  color: #83aa51;
  margin-bottom: 5px;
}

#steps .step__item .item__title {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  z-index: 2;
  color: #373B32;
}

@media (max-width: 768px) {
  #steps .step__item .item__count {
    color: #fff;
  }

  #steps .step__item .item__title {
    color: #fff;
  }
}

#steps .step__item:nth-child(4),
#steps .step__item:nth-child(2) {
  margin-top: 150px;
}

#steps .step__item:nth-child(5) {
  grid-column: 3/4;
}


#steps .step__item:nth-child(6) {
  margin-top: 150px;
  grid-column: 2/3;
  grid-row: 2/3;

}

#steps .step__item:nth-child(7) {
  grid-row: 2/3;
  grid-column: 1/2;
}


#steps .step__item button.steps__btn {
  margin-top: auto;
  margin-bottom: -60px;
}

#steps .step__item:nth-child(2):before {
  content: url('images/shape1.svg');
  position: absolute;
  left: -170px;
  top: 50px;
}

#steps .step__item:nth-child(3):before {
  content: url('images/shape2.svg');
  position: absolute;
  left: -166px;
  top: 50%;
}

#steps .step__item:nth-child(4):before {
  content: url('images/shape3.svg');
  position: absolute;
  left: -33px;
  top: -40px;
}

#steps .step__item:nth-child(5):before {
  content: url('images/shape4.svg');
  position: absolute;
  left: 97%;
  top: -2px;
}

#steps .step__item:nth-child(6):before {
  content: url('images/shape4.svg');
  position: absolute;
  left: 97%;
  top: 51px;
}

#steps .step__item:nth-child(7):before {
  content: url(images/shape2.svg);
  position: absolute;
  right: -166px;
  top: 50%;
  transform: scale(-1, 1);
}

@media (max-width: 1270px) {
  #steps .steps__holder {
    grid-template-columns: repeat(3, 1fr);
  }

  #steps .step__item:nth-child(2):before,
  #steps .step__item:nth-child(3):before,
  #steps .step__item:nth-child(4):before,
  #steps .step__item:nth-child(5):before,
  #steps .step__item:nth-child(6):before,
  #steps .step__item:nth-child(7):before {
    display: none;
  }

  #steps .step__item:nth-child(4) {
    margin-top: 0;
    grid-column: 3/4;
  }

  #steps .step__item:nth-child(5) {
    grid-column: 1/2;
    grid-row: 2/3;
  }

  #steps .step__item:nth-child(6) {
    grid-column: 2/3;
  }
}

@media (max-width: 1025px) {
  #steps .steps__holder {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  #steps .step__item {
    width: 350px;
    max-width: 100%;
    margin: 0 !important;
  }

  /* #steps .steps__holder {
    grid-template-columns: 1fr;
  }

  #steps .step__item:nth-child(4) {
    margin-top: 0;
    grid-column: 1/2;
  }

  #steps .step__item:nth-child(3) {
    margin-top: 150px;
  } */
}

/* @media (max-width: 769px) {
  #steps .steps__holder {
    grid-template-columns: repeat(1, 1fr);
    grid-row-gap: 40px;
  }

  #steps .step__item {
    max-width: 100%;
  }

  #steps .step__item:nth-child(6),
  #steps .step__item:nth-child(5) {
    grid-row: unset;
  }

  #steps .step__item:nth-child(2),
  #steps .step__item:nth-child(3) {
    margin-top: 0;
  }
} */

@media (max-width: 498px) {
  #steps .block__title {
    font-size: 30px;
    line-height: 35px;
  }

  #steps .steps__title {
    font-size: 36px;
  }
}