
.b-service__item {
  z-index: 1;
  overflow: hidden;
}

.b-service__item:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
  right: -20px;
  z-index: -1;
  background: inherit;
}

.b-service__item-title {
  font-size: clamp(20px, 5vw, 32px);
}

.b-service__item-title svg {
  min-width: 63px;
  transition: 0.4s ease all;
}

.b-service__item-bg {
  right: 0;
  bottom: 0;
  z-index: -1;
  transform: translate(10%, 10%);
  max-width: 250px;
}
.b-service__item-bg.middle-right{
  top: 50%;
  bottom: auto;
  transform: translate(0, -50%);
}

.b-service__item-bg.middle-middle{
  top: 50%;
  bottom: auto;
  transform: translate(-30%, -50%);
}
.b-service__item-bg img {
  max-width: 100%;
}

.b-service__item-text {
  font-size: clamp(16px, 1.4vw, 20px);
  /*margin-bottom: 20px;*/
  margin-bottom: 10px;
  max-width: 95%;
}
.b-service__item-bg ~ .b-service__item-text {
  max-width: 60%;
}
.b-service__item-text ul {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.b-service__item-text ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: clamp(10px, 1.4vw, 20px);
}

.b-service__item-text ul li:before,
.b-service__item-text ul li:after {
  content: '';
  display: block;
  position: absolute;
  background: currentColor;
  left: 2px;
  top: 12px;
  height: 2px;
}

.b-service__item-text ul li:before {
  width: 14px;
  transform: rotate(-45deg) translate(0px, 0px);
}

.b-service__item-text ul li:after {
  width: 7px;
  transform: rotate(45deg) translate(0px, 4px);
}

.b-service__item-images {
  gap: clamp(20px, 3vw, 30px);
}

.b-service__item-btn {
  margin-top: clamp(40px, 5vw, 70px);
  max-width: fit-content;
}

.b-service__item-btn img {
  max-width: clamp(70px, 7vw, 90px);
}

.b-service__title {
  font-weight: bold;
  font-size: clamp(40px, 5vw, 60px);
}
#popup-button .btn-close {
  position: absolute;
  right:10px;
  top:10px;
  opacity: 1;
  background: #321879;
  border-radius: 50%;
}
#popup-button .btn-close:before{
  content: '';
  width: 1rem;
  height: 1rem;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  background-size: 0.75rem;
}
#popup-button .modal-content {margin: 0 auto;}
#popup-button .modal-content img {display: block;margin: 15px auto;}
#popup-button .modal-content .b-service__item-btn {color: #00E1A0;}
@media screen and (min-width: 992px) {
  .b-service .row {
    margin: 0 calc(clamp(40px, 6vw, 110px) * -1);
  }

  .b-service__item {
    /*padding: clamp(20px, 5vw, 60px) clamp(40px, 6vw, 110px);*/
    /*min-height: 420px;*/
    padding: clamp(20px, 5vw, 30px) clamp(40px, 6vw, 110px);
    min-height: 390px;
  }

  .b-service__item:nth-child(odd):before {
    right: 0;
    left: -10000px;
  }

  .b-service__item:nth-child(even):before {
    left: 0;
    right: -10000px;
  }

  .b-service__item-title {
    pointer-events: none;
    /*margin-bottom: clamp(10px, 2vw, 28px);*/
    margin-bottom: 15px;
    max-width: clamp(340px, 32vw, 420px);
    line-height: 1.1;
  }

  .b-service__item-bg {
    max-width: 48%;
  }

  .b-service__item-in {
    max-width: 550px;
    display: block !important;
  }

  .b-service__title {
    max-width: clamp(340px, 32vw, 450px);
  }
}

@media screen and (max-width: 991px) {
  .b-service__item-bg {display: none;}
  .b-service__item.is-opened .b-service__item-bg {
    display: block;
  }

  .b-service__item.is-opened .b-service__item-title svg {
    transform: rotate(180deg);
  }

  .b-service__item-title {
    padding: 20px 0;
    gap: 20px;
  }

  .b-service__item-in {
    display: none;
    padding-bottom: 50px;
    flex-direction: column;
  }



  .b-service__title {
    padding: 40px 0;
  }
}



.b-service__item:nth-child(3) .b-service__item-images {
  width: 71%;
  max-width: 300px;
}

.b-service__item:nth-child(3) .b-service__item-images img {
  max-width: 50%;
  width: auto;
  max-height: clamp(24px, 2vw, 30px);
}

.b-service__item:nth-child(3) .b-service__item-bg {
  transform: translate(4%, 10%);
}

.b-service__item:nth-child(3) .b-service__item-text {
  max-width: 90%;
}

.b-service__item:nth-child(4) .b-service__item-text {
  max-width: clamp(200px, 17vw, 290px);
}

.page-id-51233 .b-service__item:nth-child(4) .b-service__item-text {
  /* max-width: 60%; */
}

.b-service__item:nth-child(4) .b-service__item-bg {
  /*max-width: 300px;
  transform: translate(19%, 10%);*/
}

.page-id-51233 .b-service__item:nth-child(4) .b-service__item-bg {
  /* top: 100px;
  transform: none;
  right: 2%;
  max-width: 40%; */
}

.b-service__item:nth-child(2) .b-service__item-bg {
  transform: translate(20%, -50%);
  height: 100%;
}
.b-service__item:nth-child(2) .b-service__item-bg img {
  height: 100%;
}

@media screen and (min-width: 992px) {
  .page-id-51233 .b-service__item:nth-child(4) .b-service__item-bg {
    /* max-width: 40%;
    right: clamp(10px, 15%, 35px); */
  }
}

@media screen and (max-width: 991px) {
  .b-service__item:nth-child(3) .b-service__item-bg {
    max-width: clamp(220px, 20vw, 250px);
  }

  .b-service__item-title {
    transition: 0.4s ease all;
  }

  .b-service__item.is-opened .b-service__item-title {
    font-size: 32px;
  }
  .b-service__item-title br{display: none;}

  section.b-service-block2 .container {
    --bs-gutter-x: 0.75rem;
  }
}
.mobile{display: none;}
.embed-youtube {
  position: relative;
  width: 100%;
  --bs-aspect-ratio: calc(9 / 16 * 100%);
}
.embed-youtube::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}
.embed-youtube>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media screen and (max-width: 480px) {
  .b-service__item:nth-child(2) .b-service__item-in {padding-bottom: 60%;}
  .b-service__item:nth-child(2) .b-service__item-bg {height: auto;transform: translate(-5%, 0%);right: auto;left: 0;top: auto;bottom: 0;}
  .b-service__item:nth-child(4) .b-service__item-text {max-width: 95%;}
  .b-service__item-bg ~ .b-service__item-text {max-width: 95%;}
  .b-service__item:nth-child(4) .b-service__item-bg {position: static!important;margin: 2rem 0 0;transform: unset;order: 3;}
  .b-service__item:nth-child(4) .b-info__btn{order: 2;margin-top: 0;}
  .mobile {display: block;}
  .mobile iframe {width: 100%;}
  .desktop {display: none;}
  #popup-button .modal-content .h2 {font-size: clamp(40px, 5vw, 62px); line-height: 1;color: #321879;}
}


@media screen and (min-width: 1480px) {
    .b-service__item-title {
      margin-bottom: clamp(10px, 2vw, 28px);
    }
  .b-service__item {
    padding: clamp(20px, 5vw, 60px) clamp(40px, 6vw, 110px);
    min-height: 420px;
  }
  .b-service__item-text ul li {
    margin-bottom: clamp(10px, 1.4vw, 20px);
  }
  .b-service__item-text {
    margin-bottom: 20px;
  }
  .b-service__item-bg.middle-middle {
  transform: translate(-50%, -50%);
  }
}