﻿:root {
  --zs-case-bg: #ececec;
  --zs-case-text: #666666;
  --zs-case-title: #555555;
  --zs-case-border: #d6d6d6;
}

.zs-case-page {
  background: var(--zs-case-bg);
}

.zs-case-hero__desktop,
.zs-case-hero__mobile {
  position: relative;
  overflow: hidden;
}

.zs-case-hero__desktop {
  display: block;
}

.zs-case-hero__mobile {
  display: none;
}

.zs-case-carousel__track {
  position: relative;
}

.zs-case-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.zs-case-carousel__slide.is-active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.zs-case-carousel__slide a,
.zs-case-carousel__slide img {
  display: block;
  width: 100%;
}

.zs-case-carousel__slide img {
  height: auto;
  object-fit: cover;
}

.zs-case-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.zs-case-carousel__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  background: url("../img/circle.png") no-repeat center / cover;
}

.zs-case-carousel__dots button.is-active {
  background-image: url("../img/circleon.png");
}

.zs-case-breadcrumb {
  padding: 8px 0 12px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #8a8a8a;
}

.zs-case-breadcrumb .zs-shell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.zs-case-breadcrumb a:last-child {
  color: #6193cc;
}

.zs-case-solution {
  padding: 0 0 54px;
}

.zs-case-solution__intro {
  margin: 0 0 28px;
  color: var(--zs-case-text);
  font-size: 2rem;
  line-height: 1.9;
}

.zs-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 26px;
}

.zs-case-grid__item a {
  display: block;
}

.zs-case-grid__item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--zs-case-border);
  background: #ffffff;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.zs-case-grid__item span {
  display: block;
  padding-top: 9px;
  color: var(--zs-case-title);
  font-size: 1.8rem;
  line-height: 1.25;
  text-align: center;
}

.zs-case-grid__item a:hover img {
  transform: translateY(-4px);
  border-color: #b7b7b7;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.zs-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.zs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 979px) {
  .zs-case-hero__desktop {
    display: none;
  }

  .zs-case-hero__mobile {
    display: block;
  }

  .zs-case-solution {
    padding-bottom: 40px;
  }

  .zs-case-solution__intro {
    margin-bottom: 22px;
    font-size: 1.7rem;
    line-height: 1.82;
  }

  .zs-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18px;
  }

  .zs-case-grid__item span {
    font-size: 1.55rem;
  }
}

@media (max-width: 640px) {
  .zs-case-carousel__dots {
    bottom: 10px;
    gap: 8px;
  }

  .zs-case-carousel__dots button {
    width: 10px;
    height: 10px;
  }

  .zs-case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .zs-case-solution__intro {
    font-size: 1.5rem;
    line-height: 1.75;
  }
}

