/* ================================
   Секция «Преимущества»
================================ */
.advantages-section {
  padding: 80px 20px;
  background-color: #fafafa;
  font-family: 'Montserrat', sans-serif;
}
.advantages-section h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Сетка карточек */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 32px;
}

/* Карточка */
.adv-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeInUp 0.8s ease-out forwards;
}
/* Stagger */
.adv-card:nth-child(1) { animation-delay: 0.3s; }
.adv-card:nth-child(2) { animation-delay: 0.45s; }
.adv-card:nth-child(3) { animation-delay: 0.6s; }
.adv-card:nth-child(4) { animation-delay: 0.75s; }

.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Иконка в круге */
.adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 4px 8px rgba(255,255,255,0.3),
    0 4px 12px rgba(0,0,0,0.05);
  transition: transform .3s ease;
}
.adv-card:hover .adv-icon {
  transform: scale(1.05);
}

/* Белые SVG — автоматически растонируются фильтром */
.adv-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

/* Градиенты для каждой иконки */
.advantages-grid .adv-card:nth-child(1) .adv-icon {
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
}
.advantages-grid .adv-card:nth-child(2) .adv-icon {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}
.advantages-grid .adv-card:nth-child(3) .adv-icon {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}
.advantages-grid .adv-card:nth-child(4) .adv-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
}

/* Заголовок карточки */
.adv-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Описание */
.adv-card p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Адаптив === */
@media (max-width: 1024px) {
  .advantages-section h2 {
    font-size: 2rem;
  }
  .adv-card {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .advantages-section {
    padding: 60px 16px;
  }
  .advantages-grid {
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .advantages-section h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }
  .adv-card {
    padding: 24px 16px;
  }
  .adv-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  .adv-icon img {
    width: 24px;
    height: 24px;
  }
  .adv-card h3 {
    font-size: 1.125rem;
  }
  .adv-card p {
    font-size: 0.95rem;
  }
}
