/* SERVICES */
.services{
  padding: 0 0 120px;
  overflow: hidden;
}

.services__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
}

/* NAV */
.services__nav{
  display:flex;
  gap: 12px;
}

.services__nav-btn{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.services__nav-ico{
  width: 46px;
  height: 46px;
  display:block;
  opacity: 0.95;
}

.services__nav-ico--left{
  transform: rotate(180deg);
  opacity: 0.55;
}

.services__nav-btn:hover .services__nav-ico{
  opacity: 1;
}

.services__nav-btn.is-disabled{
  cursor: default;
  opacity: 0.35;
}

/* BODY */
.services__body{
  margin-top: 60px;
  display:flex;
  gap: 60px;
  align-items: end;
}

/* LEFT */
.services__left{
  width: 444px;
  flex: 0 0 444px;
}

.services__kicker{
  font-family: "SF Pro Display", Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #7C7C7C;
  margin-bottom: 15px;
}

.services__tabs{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.services__tab{
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: "SF Pro Display", Inter, Arial, sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #6C6C6C;
}

.services__tab.is-active{
  color:#000000;
}

.services__tab:hover{
  opacity: .9;
}

/* RIGHT */
.services__right{
  flex: 1;
  min-width: 0;
  margin-right: calc(50% - 50vw);
  padding-right: calc(50vw - 50%);
  overflow: hidden;
}

.services-slider{
  display:none;
}

.services-slider.is-active{
  display:block;
}

.services-track{
  display:flex;
  gap: 15px;
  transform: translate3d(0,0,0);
  transition: transform .35s ease;
  will-change: transform;
  touch-action: pan-y;
}

/* карточка */
.service-card{
  width: 430px;
  height: 373px;
  flex: 0 0 430px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: #d9d9d9;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform .55s ease;
  will-change: transform;
}

.service-card:hover::before{
  transform: scale(1.3);
}


/* нижняя белая плашка */
.service-card__cta{
  position:absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background:#fff;
  border-radius: 100px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px;
  z-index: 2;
}

.service-card__cta-text{
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.03em;
  color:#1D201F;
  padding: 17px 0 17px 20px;
}

.service-card__cta-icon{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:#1D201F;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 34px;
  position: relative;
}

.service-card__cta-icon::before{
  content:"";
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  display:block;
}

.service-card__cta-icon img{
  display:none;
}

/* TABLET / MOBILE */
@media (max-width: 980px){
  .services__body{
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }

  .services__left{
    width: 100%;
    flex: 0 0 auto;
  }

  .services__right{
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow: hidden;
  }
}

@media (max-width: 767px){
  .services{
    padding: 0 0 90px;
  }

  .services__top{
    align-items: center;
  }

  .services__body{
    margin-top: 30px;
    gap: 24px;
  }

  .services__tabs{
    gap: 10px;
  }

  .services__tab{
    font-size: 28px;
  }

  .services__right{
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .services-slider{
    overflow: hidden;
  }

  .services-track{
    gap: 0px;
  }

  .service-card{
    width: 100%;
    max-width: none;
    height: 320px;
    flex: 0 0 100%;
  }

  .service-card::before{
    transform: scale(1);
  }

  .service-card:hover::before{
    transform: scale(1);
  }

  .service-card__cta{
    left: 15px;
    right: 15px;
    bottom: 15px;
    padding: 15px 20px;
  }

  .service-card__cta-text{
    font-family: Inter, Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #1D201F;
    padding: 0;
    padding-right: 16px;
  }

  .service-card__cta-icon{
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
}