/* =========================================================
   ZNAKTECH FLIPBOX — адаптировано под оригинальный HA Flip Box
   ========================================================= */

/* Гарантируем, что грид не ограничен flex-контейнером Elementor */
.ha-flip-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  justify-items: stretch;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

/* Карточки — равные и растянутые */
.ha-flip-box {
  width: 100%;
  height: 100%;
}

/* ====== HAPPY ADDONS ORIGINAL FLIP ====== */
.ha-flip-box-container:after {
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
  content: " ";
  font-size: 0;
}

.ha-flip-box-container .ha-flip-box-inner {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  backface-visibility: hidden;
}

.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-inner-wrapper {
  position: relative;
  transform: translateZ(0);
  perspective: 1000px;
}

.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-back,
.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-front {
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 260px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  backface-visibility: hidden;
  perspective: 1000px;
  border-radius: .3rem;
  transition: transform .6s cubic-bezier(.2,.85,.4,1.275);
}

/* ====== FRONT / BACK SIDES ====== */
.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-front {
  position: relative;
  z-index: 10;
  padding: 30px;
  border: 1px solid #ddd;
  background-color: #fff;
  transition: all .3s ease;
}

.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-front:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-back {
  position: absolute;
  z-index: -1;
  padding: 30px;
  background-color: #1c2c4c;
  color: #fff;
  transform: rotateY(-180deg);
}

/* ====== INNER CONTENT ====== */
.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-back-inner,
.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-front-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-front-inner .ha-flip-icon img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ====== АДАПТИВНЫЕ ШРИФТЫ И ТЕКСТЫ ====== */
.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-front-inner .ha-flip-box-heading {
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 14px) !important;
  color: #1c2c4c;

}

.ha-front-desc {
  font-size: clamp(12px, 1.4vw, 14px) !important;
  color: #555;
  margin-top: 8px;
  line-height: 1.4;
}

.ha-flip-box-container .ha-flip-box-inner .ha-flip-box-back-inner .ha-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

/* ====== FLIP ANIMATION ====== */
.ha-flip-box-container .ha-flip-box-inner.ha-flip-right .ha-flip-box-front,
.ha-flip-box-container .ha-flip-box-inner.ha-flip-right:hover .ha-flip-box-back {
  transform: rotateY(0);
}

.ha-flip-box-container .ha-flip-box-inner.ha-flip-right .ha-flip-box-back {
  transform: rotateY(-180deg);
}

.ha-flip-box-container .ha-flip-box-inner.ha-flip-right:hover .ha-flip-box-front {
  transform: rotateY(180deg);
}




/* Сбрасываем наследование от Elementor */
.ha-flip-box-grid.e-grid.e-con.e-child {
  --display: grid !important;
  --e-con-grid-template-columns: none !important;
  --e-con-grid-template-rows: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  padding-bottom:10px;
  padding-left:0;
  padding-right:0;
  width: 100% !important;
  justify-items: stretch !important;
  align-items: start !important;
  align-content: start !important;
  box-sizing: border-box !important;
}

/* 💻 Планшеты — 2 в ряд */
@media (max-width: 1024px) and (min-width: 641px) {
  .ha-flip-box-grid.e-grid.e-con.e-child {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 📱 Мобильные — 1 в ряд */
@media (max-width: 640px) {
  .ha-flip-box-grid.e-grid.e-con.e-child {
    grid-template-columns: 1fr !important;
  }
}


.zntech-why-we{
    padding-top:45px;
    
}