#services-block {
  background-size: 90%;
  background-position: center center;
  padding: 40px 0 80px;
  background-repeat: no-repeat;
}

#services-block .block-title {
  text-align: left;
}

#services-block .tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

#services-block .tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--main-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 120%;
  color: var(--main-text);
  padding: 20px 45px;
  font-family: var(--second-family);
  background: transparent;
  transition: 0.3s;
  cursor: pointer;
}
#services-block .tab-btn:hover{
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-light);
}

#services-block .tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-light);
}

#services-block .tab-item {
  display: none;
}

#services-block .tab-item.active {
  display: flex;
  background: var(--bg-light);
  padding: 60px 70px;
  gap: 50px;
}

#services-block .left-side {
  display: flex;
  flex-direction: column;
  width: 59%;
}

#services-block .title {
  font-weight: 600;
  font-size: 30px;
  line-height: 120%;
  margin-bottom: 25px;
  font-family: var(--second-family);
  text-transform: uppercase;
}

#services-block .text {
  height: 430px;
  overflow: auto;
  padding-right: 20px;
}

#services-block .right-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 40%;
}

#services-block .img {
  width: 100%;
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
  /* max-height: 400px; */
  position: relative;
}

#services-block .img:after {
  content: "";
  display: block;
  padding-bottom: 60%;
}

#services-block .img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#services-block .price {
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  font-family: var(--font-family);
  text-transform: uppercase;
}

#services-block .form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#services-block .form-top {
  display: flex;
  gap: 10px;
}

@media (max-width: 1400px) {
  #services-block .tab-item.active {
    padding: 15px;
    gap: 15px;
  }
}

@media (max-width: 1200px) {
  #services-block .left-side {
    width: 50%;
  }

  #services-block .right-side {
    width: 50%;
  }
}

@media (max-width: 996px) {
  #services-block .form-top {
    flex-direction: column;
    align-items: center;
  }

  .privacy-holder {
    text-align: center;
  }

  #services-block .tabs-wrapper {
    margin-bottom: 20px;
  }

  #services-block .tab-btn {
    padding: 10px;
    font-size: 14px;
  }

  #services-block {
    padding: 30px 0;
  }
}

@media (max-width: 768px) {
  #services-block .tab-item.active {
    flex-direction: column;
    align-items: center;
  }

  #services-block .left-side {
    width: 100%;
  }

  #services-block .text {
    height: 225px;
  }

  #services-block .right-side {
    width: 60%;
  }

  #services-block .title {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  #services-block .right-side {
    width: 80%;
  }
}

@media (max-width: 498px) {
  #services-block .right-side {
    width: 100%;
  }
}
