#services-block {
  margin-top: 86px;
  padding-top: 60px;
  position: relative;
  margin-bottom: 150px;
}
#services-block .item__tab {
  display: none;
}
#services-block .item__tab.active {
  display: flex;
  flex-wrap: wrap;
  row-gap: 35px;
  column-gap: 35px;
}
#services-block .btns__holder {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 20px;
  margin-top: 60px;
  margin-bottom: 50px;
}
#services-block .tab__btn {
  display: flex;
  align-items: center;
  background: #ffffff;
  box-shadow: 0px 0px 20px rgba(31, 73, 44, 0.1);
  border-radius: 5px;
  padding: 30px 0;
  padding-left: 45px;
  width: 270px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}
#services-block .tab__btn img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
#services-block .tab__btn.active,
#services-block .tab__btn:hover {
  background-color: #5DA22C;
  color: #fff;
}
#services-block .tab__btn.active img,
#services-block .tab__btn:hover img {
  filter: invert(1);
}
#services-block .service-item {
  width: calc(100% / 4 - 35px * 3 / 4);
  cursor: pointer;
}
#services-block .service-item-title {
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  color: #333333;
  margin-top: 15px;
  margin-bottom: 5px;
}
#services-block .service-item-img {
  width: calc(100% - 5px);
  position: relative;
  height: 270px;
}
#services-block .service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
#services-block .service-item-img:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -5px;
  right: -5px;
  background: #5DA22C;
  box-shadow: 0px 0px 5px rgba(31, 73, 44, 0.1);
  border-radius: 2px;
  z-index: -1;
}
#services-block .service-item:hover img {
  transform: translateY(-10px) translateX(-10px);
}
.service-item-link {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #333333;
  cursor: pointer;
}
.service-item-link svg {
  margin-left: 3px;
  width: 20px;
  height: 20px;
  margin-bottom: -2px;
  filter: grayscale(1);
}
.service-item:hover .service-item-link {
  font-weight: 700;
  color: #5DA22C;
}
.service-item:hover .service-item-link svg {
  filter: none;
}
.service-block-bg {
  width: 100%;
  z-index: -1;
  height: 460px;
  position: absolute;
  top: 0;
  right: calc((100% - 970px) / 2);
  background-image: url(bg.jpg);
}
@media screen and (max-width: 1199px) {
  #services-block .tab__btn {
    width: calc(100% / 4 - 20px * 3 / 4);
    padding: 18px 0;
    padding-left: 25px;
  }
  #services-block .tab__btn img {
    margin-right: 12px;
  }
  #services-block .service-item-img {
    height: 210px;
  }
  #services-block .service-item-title {
    font-size: 20px;
    line-height: 28px;
  }
  .service-item-link {
    font-size: 14px;
    line-height: 22px;
  }
  .service-block-bg {
    right: calc((100% - 698px) / 2);
  }
}
@media screen and (max-width: 991px) {
  .service-block-bg {
    right: calc((100% - 450px) / 2);
  }
  #services-block {
    margin-top: 40px;
    padding-top: 40px;
    margin-bottom: 100px;
  }
  #services-block .tab__btn {
    font-size: 14px;
    line-height: 22px;
    width: calc(100% / 3 - 20px * 2 / 3);
    padding-left: 38px;
  }
  #services-block .btns__holder {
    margin-top: 40px;
    margin-bottom: 30px;
  }
  #services-block .item__tab.active {
    row-gap: 25px;
    column-gap: 25px;
  }
  #services-block .service-item {
    width: calc(50% - 25px / 2);
  }
  .service-block-bg {
    height: 78%;
  }
  #services-block .service-item-title {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) {
  #services-block .tab__btn img {
    margin-right: 8px;
    width: 16px;
    height: 16px;
  }
  #services-block .tab__btn {
    padding-left: 10px;
    padding-right: 10px;
    justify-content: center;
  }
}
@media screen and (max-width: 600px) {
  #services-block .btns__holder {
    justify-content: center;
    column-gap: 15px;
    row-gap: 15px;
  }
  #services-block .tab__btn {
    width: calc(50% - 20px / 2);
  }
  .service-block-bg {
    width: 100%;
    right: auto;
  }
}
@media screen and (max-width: 400px) {
  #services-block .item__tab.active {
    flex-direction: column;
  }
  #services-block .service-item {
    width: 100%;
  }
  #services-block .service-item-img {
    height: 250px;
  }
}
