.services-item {
  scroll-margin-top: 0;
  opacity: 1!important;
  visibility: visible!important;
}

.services-item.has-offset {
  scroll-margin-top: 140px; /* висота fixed filters */
}

.services-item.hidden {
  opacity: 0;
  pointer-events: none;
}



.services-page {
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 100px;
}
.services-filters {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px 20px 40px;
  background: #fff;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1600px;
  z-index: 1;
}
.services-filter {
  position: relative;
  font-size: 10px;
  line-height: 12px;
  color: #4d4d4d;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
  padding-bottom: 2px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.services-filter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.services-filter:hover {
  color: #000;
}
.services-filter:hover::after {
  transform: scaleX(1);
}
.services-filter.active {
  color: #000;
}
.services-filter.active::after {
  transform: scaleX(1);
}
.services-list {
  padding-top: 80px;
  padding-bottom: 80px;
  gap: 120px;
  display: flex;
  flex-direction: column;
}
.services-item {
  /* <= 992: показати 4, решта по кліку + анімація */
  /* > 992: кнопку сховати (опціонально) */
}
.services-item-column {
  width: 50%;
}
.services-item-column-wrap {
  display: flex;
  width: 100%;
  gap: 130px;
}
.services-item-btn {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.16em;
  font-weight: 400;
  text-transform: uppercase;
  padding: 40px 0;
  border-top: 1px solid #00000017;
  cursor: pointer;
  color: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
}
.services-item-btn span{
  opacity: 0.5;
}
.services-item-btn:after {
  content: "+";
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  transition: all 0.25s ease;
  position: absolute;
  right: 0;
  top: 30px;
  opacity: 0.5;
}
.services-item-btn.active:after {
  content: "−";
}
.services-item-btn:last-child {
  border-bottom: 1px solid #00000017;
}
.services-item-content {
  font-size: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  color: #4d4d4d;
  line-height: 150%;
  padding-right: 40px;
}

.services-item-content.open {
  max-height: 600px;
  opacity: 1;
}
.services-item-title {
  font-size: 48px;
  color: #000;
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
}

.services-item-title img{
  min-width: 40px;
  padding-top: 5px;
}
.services-item-description {
  padding-top: 35px;
  font-size: 16px;
  font-weight: 300;
  color: #4D4D4D;
  max-width: 540px;
  line-height: 200%;
  padding-left: 40px;
  opacity: 0;
}

@media screen and (max-width: 1460px){

    
    .services-filters {
        gap: 15px;
    }
    .services-filter.active::after {
        height: 1px;
    }
}

@media screen and (max-width: 1380px){
    .services-item-content.open {
        padding-top: 20px;
    }
    .services-page {
        padding-top: 100px;
    }
    .services-page {
        width: 100%;
    }
    .services-item-btn:after {
        right: 24px;
        top: 12px;
    }
    .services-item-btn {
        gap: 0;
    }
    .services-item-title {
        font-size: 28px;
        align-items: flex-start;
        gap: 4px;
    }
    .services-item-title img {
        width: 20px;
        height: 20px;
    }
    .services-item-description {
        padding-left: 0;
    }
    .services-item-column:first-child {
        padding: 0 24px;
    }
    .services-item-btn {
        padding: 24px;
    }
    .services-item-column-wrap {
        gap: 40px;
    }
}

@media screen and (max-width: 1200px){
    .services-list {
        padding-top: 100px;
    }
    .services-item-column-wrap {
        flex-direction: column;
        gap: 70px;
    }
    .services-item-column {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .services-filters {
        justify-content: flex-start;
        padding: 30px 18px 10px 18px;
        width: 100%;
    }
  .services-item {
    /* было n+5 — это показывало только 4 */
  }
  .services-item .about-page-seo-name-img-sec {
    display: block;
  }
  .services-item .about-page-team-photo-wrap:not(.is-expanded) .about-page-team-photo:nth-child(n+7) {
    display: none;
  }
  .services-item .about-page-team-photo-button {
    display: flex;
  }
  .services-item .about-page-team-photo-button img {
    transition: transform 0.25s ease;
  }
  .services-item .about-page-team-photo-wrap.is-expanded + .about-page-team-photo-button img {
    transform: rotate(45deg);
  }
  .services-item .about-page-team-photo-wrap.is-expanded .about-page-team-photo.is-revealing {
    animation: teamFadeUp 0.35s ease both;
  }
  @keyframes teamFadeUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .services-list {
    gap: 100px;
  }
  .services-item-description {
    font-size: 14px;
  }
}