.wp-block-services {
  /* background-image: url(bg.png); */
  background-size: contain;
  background-position: center;
  background-repeat: repeat-y;
  position: relative;
  margin-bottom: 4px;
}
.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: #d5d5d7;
  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: cover;
  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: #334C74;
  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: #002f6c; */
}

.service-item:hover .service-item-img:before {
  top: 55px;
}
.service-item .service-item-img svg ellipse {
  fill: #334C74;
}
.service-item .service-item-img svg circle {
  fill: #334C74;
  stroke: #334C74;
}

.service-item:hover .service-item-img img {
  filter: drop-shadow(0px 0px 9px #334C74);
}

.service-item-title {
  font-weight: 400;
  font-size: 23px;
  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 24px;
}

.service-item-price {
  font-weight: 800;
  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;
  }
}
