.wp-block-services {
  background-image: url(bg.png);
  background-size: contain;
  background-position: center;
  background-repeat: repeat-y;
  position: relative;
  margin-bottom: 4px;
}
.wp-block-services:after {
  content: "";
  display: block;
  position: absolute;
  width: 182px;
  height: 375px;
  right: 53px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url(after.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.wp-block-services:before {
  content: "";
  display: block;
  position: absolute;
  width: 237px;
  height: 196px;
  left: 40px;
  top: 130px;
  background-image: url(before.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
.services-content:before {
  content: "";
  display: block;
  position: absolute;
  width: 98px;
  height: 129px;
  left: 142px;
  bottom: 123px;
  background-image: url(before2.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
.services-content {
  display: flex;
  flex-wrap: wrap;
  margin-top: 43px;
}

.service-item {
  width: calc(100% / 4 - 30px * 3 / 4);
  margin-right: 30px;
  margin-bottom: 46px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-item:nth-child(4n) {
  margin-right: 0;
}
.service-item-img {
  width: 100%;
  height: 270px;
  background-color: #f9f9f9;
  border-radius: 25px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s;
}
.service-item-img img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  transition: filter 0.3s;
}
.service-item-img:before {
  content: "";
  position: absolute;
  display: block;
  width: 318px;
  height: 318px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  background: #8bd9e5;
  transition: top 0.3s, background 0.5s;
}
.service-item-img svg {
  position: absolute;
  width: 75px;
  height: 74px;
  right: -20px;
  top: -18px;
  transition: fill 0.5s;
}

.service-item-img svg ellipse,
.service-item-img svg circle {
  transition: fill 0.5s, stroke 0.5s;
}

.service-item:hover .service-item-img {
  background-color: #f8feff;
}

.service-item:hover .service-item-img:before {
  top: 55px;
  background: radial-gradient(
    94.25% 94.25% at 50% 5.75%,
    #8bd9e5 0%,
    rgba(107, 205, 220, 75%) 100%
  );
}
.service-item:hover .service-item-img svg ellipse {
  fill: #6BCCDC;
}
.service-item:hover .service-item-img svg circle {
  fill: #6BCCDC;
  stroke: #6BCCDC;
}
.service-item:hover .service-item-img img {
  filter: drop-shadow(0px 0px 9px #f8feff);
}

.service-item-title {
  font-weight: 300;
  font-size: 20px;
  line-height: 150%;
  color: #240401;
  margin-top: 14px;
  padding: 0 20px;
}
.service-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.service-item-price {
  font-weight: 400;
  font-size: 24px;
  color: #240401;
  margin-right: 20px;
}
@media screen and (max-width: 1600px) {
  .wp-block-services:before {
    left: 10px;
  }
  .wp-block-services:after {
    right: 10px;
  }
  .services-content:before {
    left: 30px;
  }
}
@media screen and (max-width: 1199px) {
  .service-item {
    width: calc(100% / 4 - 20px * 3 / 4);
    margin-right: 20px;
    margin-bottom: 30px;
  }
  .service-item-img {
    height: 226px;
  }
  .service-item-title {
    font-size: 19px;
  }
  .service-item-price {
    font-size: 21px;
  }
  .service-item-bottom {
    padding: 0 20px;
  }
}
@media screen and (max-width: 991px) {
  .services-content {
    margin-top: 30px;
  }
  .service-item-img {
    height: 170px;
  }
  .service-item-title {
    font-size: 16px;
    margin-top: 8px;
    padding: 0 8px;
  }
  .service-item-bottom {
    padding: 0 8px;
  }
  .service-item-img {
    border-radius: 15px;
  }
  .service-item-price {
    font-size: 18px;
    margin-right: 10px;
  }
  .service-item-bottom svg {
    width: 12px;
    height: 12px;
  }
  .wp-block-services:before {
    width: 146px;
    height: 138px;
    top: 98px;
    left: -13px;
  }
  .wp-block-services:after {
    width: 129px;
    height: 266px;
    right: -15px;
  }
  .services-content:before {
    left: 10px;
    width: 68px;
    height: 93px;
    bottom: 96px;
  }
}
@media screen and (max-width: 767px) {
  .wp-block-services:before,
  .wp-block-services:after,
  .services-content:before {
    display: none;
    background: none;
  }
  .service-item {
    width: calc(50% - 10px);
  }
  .service-item:nth-child(4n) {
    margin-right: 20px;
  }
  .service-item:nth-child(2n) {
    margin-right: 0;
  }
}
@media screen and (max-width: 400px) {
  .service-item-img {
    height: 130px;
  }
  .service-item-title {
    font-size: 14px;
    padding: 0;
  }
  .service-item-bottom {
    padding: 0;
  }
  .service-item-price {
    font-size: 16px;
  }
}
