.cases {
  padding: 55px 0 110px 0;
}

.cases__header {
  text-align: center;
  margin-bottom: 48px;
}

@media(min-width: 769px) {
.cases__header {
  padding: 0 270px;
  }
}

.cases-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  margin-bottom: 48px;
}

.cases-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.case-slide {
  position: relative;
  flex: 0 0 calc(100% / 2.5);
  height: 520px;
  overflow: hidden;
  flex-shrink: 0;
}

.case-link:hover img {
  scale: 1.05;
}

.case-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.case-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 45px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-title { 
  font-size: 1.5rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.case-tags span {
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.85rem;
  height: max-content;
  background-color: #fff;
  color: var(--bg-dark);
  font-weight: 600;
}

.cases--works .case-overlay {
  top: unset;
  bottom: 0;
}
.cases--works .case-tags {
  justify-content: flex-start;
}

.cases--works .case-tags span {
  background: transparent;
  border: 1px solid #ffffff9c;
  color: var(--text-primary);
}

.cases-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.cases-nav--prev { left: 12px; }
.cases-nav--next { right: 12px; }

.cases-slider:hover .cases-nav {
  opacity: 1;
  pointer-events: auto;
}

.cases-slider.is-dragging {
  cursor: grabbing;
}

@media (max-width: 900px) {
  .cases {
    padding-top: 55px;
    padding-bottom: 0;
  }
  .case-slide {
    flex: 0 0 calc(100% / 1.4);
    height: 420px;
  }
  .case-title {
    /* text-align: center; */
  }
  .case-tags {
    justify-content: flex-end;
    zoom: 0.8;
  }

}




.services-tags {
  margin-bottom: 48px;
}

.services-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-tags li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
  cursor: default
}

@media (max-width: 768px) {
  .services-tags ul {
    gap: 10px;
  }

  .services-tags li {
    padding: 9px 16px;
    font-size: 13px;
  }
}


