.crm-pain {
  padding: 96px 64px;
}

.section-title {
  font-size: 45px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 24px;
  color: #222;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #555;
  margin-bottom: 48px;
  max-width: 990px;
  font-family: 'Montserrat', sans-serif;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* строго 3 карточки */
  gap: 32px;
}

.pain-card {
  background-color: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  font-family: 'Montserrat', sans-serif;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* при наведении */
.pain-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* ✅ активируем анимацию при появлении */
.pain-card.visible {
  animation: fadeInCard 0.6s ease forwards;
}

/* ⏱ задержка появления по позиции */
.pain-card.visible:nth-child(1) { animation-delay: 0.1s; }
.pain-card.visible:nth-child(2) { animation-delay: 0.2s; }
.pain-card.visible:nth-child(3) { animation-delay: 0.3s; }
.pain-card.visible:nth-child(4) { animation-delay: 0.4s; }
.pain-card.visible:nth-child(5) { animation-delay: 0.5s; }
.pain-card.visible:nth-child(6) { animation-delay: 0.6s; }

/* 🎬 Анимация scale + opacity */
@keyframes fadeInCard {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.pain-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.pain-header i {
  font-size: 32px;
  margin-bottom: 14px;
 
}

.pain-header h3 {
  font-size: 19px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.pain-card ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.pain-card ul li {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 📱 адаптация */
@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

/* 📱 Планшеты: 2 карточки в ряд */
@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 Смартфоны: 1 карточка в ряд */
@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .crm-pain {
    padding: 64px 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .pain-card {
    padding: 20px;
  }

  .pain-header i {
    font-size: 24px;
  }

  .pain-header h3 {
    font-size: 17px;
  }

  .pain-card ul li {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .section-title,
  .section-subtitle {
    text-align: center;
  }

  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}
