/* ВАЖНО: не даём Zero Block ломать */
.t396__artboard {
  overflow: visible !important;
}

.t396__carrier {
  overflow: visible !important;
}

.t396__filter {
  overflow: visible !important;
}

/* контейнер */
.zb-slider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden; /* ограничивает 3 карточки */
  position: relative;
}

/* трек */
.zb-track {
  display: flex;
  gap: 20px;
  overflow: visible !important; /* даёт двигаться */
  align-items: center;
  transition: transform 0.5s ease;
  will-change: transform; /* 🔥 фикс дёрганий */
}

/* 🧱 КАРТОЧКА (базовое состояние) */
.zb-card {
  flex: 0 0 365px;
  min-width: 365px; /* 🔥 важно для стабильного расчёта */
  height: 291px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(239, 67, 67, 0.6);
  display: flex;
  flex-direction: column; /* 🔥 новое поведение */
  opacity: 0.6;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

/* ✅ АКТИВНАЯ (центр) */
.zb-card.active {
  opacity: 1;
  transform: scale(1);
  height: auto;
  z-index: 2; /* 🔥 чтобы была поверх */
}

/* внутренности */
.zb-inner {
  display: flex;
  flex-direction: column;
}

/* 📦 ОТСТУПЫ */
.zb-preview {
  padding: 30px;
}

/* ❌ скрытая часть */
.zb-extra {
  padding: 0 30px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* ✅ раскрытие ТОЛЬКО у активной */
.zb-card.active .zb-extra {
  max-height: 1200px;
  opacity: 1;
  padding: 0 30px 30px 30px;
}

/* 🖼 изображения */
.zb-extra img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* 🔴 иконка */
.zb-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.zb-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* 🔤 ТИПОГРАФИКА */
.zb-category {
  font-family: 'TildaSans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #ff4d4d;
  margin-bottom: 10px;
}

.zb-title {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #fff;
}

.zb-desc {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #aaa;
}

/* линия */
.zb-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 20px 0;
}

/* 📊 статистика */
.zb-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zb-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.zb-stat span {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #aaa;
}

.zb-stat b {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ff4d4d;
  white-space: nowrap;
}

/* кнопка */
.zb-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: white;
  color: black;
  border-radius: 10px;
  text-decoration: none;
}

/* точки */
.zb-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.zb-dots span {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  transition: 0.3s;
}

.zb-dots span.active {
  background: #111;
  transform: scale(1.3);
}

/* 📱 мобильная */
@media (max-width: 768px) {
  .zb-track {
    overflow: visible;
    transform: none !important;
  }

  .zb-card {
    flex: 0 0 85%;
    min-width: 85%;
    opacity: 1;
    transform: scale(1);
    height: auto;
  }

  .zb-extra {
    max-height: 1000px;
    opacity: 1;
    padding: 0 30px 30px 30px;
  }
}