/* Секция баннеров */
.banners-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
  margin-top: -6rem; /* Поднимаем секцию, чтобы она заходила на Hero */
  position: relative;
  z-index: 20;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .banners-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* Карточка баннера */
.banner-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.banner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Эффект свечения (блик) */
.banner-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 10;
}

.banner-card:hover .banner-shine {
  left: 200%;
  transition: left 0.7s ease-in-out;
}

/* Иконка */
.banner-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdf4; /* Светло-зеленый фон */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #16a34a; /* Зеленый цвет иконки */
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.banner-card:hover .banner-icon {
  background: #16a34a;
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

/* Заголовок */
.banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

/* Текст */
.banner-text {
  font-family: 'Lato', sans-serif;
  color: #4b5563;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Чтобы кнопки были на одном уровне внизу */
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Блок цены */
.banner-price-block {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-price {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #16a34a;
}

.banner-discount {
  background: #ef4444; /* Красный для скидки */
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Кнопка */
.banner-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: 2px solid #16a34a;
  color: #16a34a;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.banner-card:hover .banner-btn {
  background-color: #16a34a;
  color: #ffffff;
}

/* --- Особенности Featured карточки (Центральная) --- */
.banner-card.featured {
  border: 2px solid #16a34a;
  box-shadow: 0 15px 35px rgba(22, 163, 74, 0.15); /* Зеленоватая тень */
  z-index: 5;
}

.banner-card.featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(22, 163, 74, 0.2);
}

@media (max-width: 767px) {
  .banner-card.featured {
    border-width: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

/* --- Уникальные фоновые анимации --- */

/* Баннер 1: Пузырьки (Гигиена) */
.banner-animate-1::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(22, 163, 74, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 10% 80%, rgba(22, 163, 74, 0.05) 0%, transparent 15%);
  z-index: 1;
  opacity: 0.5;
  transition: all 0.5s ease;
}

.banner-animate-1:hover::before {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Баннер 2: Конфетти/Праздник (День рождения) */
.banner-animate-2::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(22, 163, 74, 0.03) 10px,
    rgba(22, 163, 74, 0.03) 20px
  );
  z-index: 1;
  animation: bg-slide 20s linear infinite;
  opacity: 0.6;
}

@keyframes bg-slide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Баннер 3: Геометрия/Точность (Пломба) */
.banner-animate-3::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(22, 163, 74, 0.1) 0deg, transparent 60deg);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.6s ease;
  transform: translate(30%, 30%);
}

.banner-animate-3:hover::before {
  transform: translate(10%, 10%) rotate(45deg);
}
