/* ─────────────────────────────────────────────────────
   AnyBiz: Feature Cards Widget
   ───────────────────────────────────────────────────── */

.ab-feature-cards {
  background-color: unset!important;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.ab-feature-cards__inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.ab-feature-cards__header {
  text-align: center;
  margin-bottom: 60px;
}

.ab-feature-cards__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ab-feature-cards__subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid */
.ab-feature-cards__grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Card */
.ab-feature-card {
  flex: 1;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
}

.ab-feature-card:nth-of-type(2) {
  padding: 32px 16px;
}

/* Icon area — стек: icon-wrap + gif поверх */
.ab-feature-card__icon-area {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 300px;
}

.ab-feature-card__icon-clip {
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.15);
}

.ab-feature-card__icon-wrap {
  width: 56px;
  height: 56px;
  background-color: unset!important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ab-feature-card__icon {
  width: 100%;
  max-width: 22px;
  height: auto;
  max-height: 22px;
  object-fit: contain;
}

/* GIF — поверх іконки, займає весь icon-area */
.ab-feature-card__gif {
  position: absolute;
  inset: 0;
  height: 220px;
  width: 220px;
  transform: translate(-25%, -25%);
  max-width: unset!important;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen; /* прибирає чорний фон гіфки */
}

/* Texts */
.ab-feature-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ab-feature-card__desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: #94A3B8;
  line-height: 24px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ab-feature-cards {
    padding: 30px 0;
  }

  .ab-feature-cards__inner {
    padding: 0 20px;
  }

  .ab-feature-cards__title {
    font-size: 28px;
  }

  .ab-feature-cards__grid {
    flex-direction: column;
    align-items: center;
  }

  .ab-feature-card {
    max-width: 100%;
  }
}

@media(max-width: 480px) {
  .ab-feature-cards__grid {
    gap: 0;
  }
  .ab-feature-card {
    padding: 16px;
  }
  .ab-feature-card:nth-of-type(2) {
    padding: 16px 8px;
  }
}
