/* ===== БАЗОВЫЕ СТИЛИ ===== */
.typical-problems {
  padding: 64px 0;
  background-color: #FFFFFF;
  font-family: 'Gilroy', sans-serif;
}

/* ===== ЗАГОЛОВОК ===== */
.typical-problems__header {
  text-align: left;
  margin-bottom: 48px;
}

.typical-problems__title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.typical-problems__subtitle {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #4A4A4A;
  max-width: 600px;
  margin: 0;
  text-align: left;
}

/* ===== СЕТКА КАРТОЧЕК ===== */
.typical-problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* ===== КАРТОЧКА ПРОБЛЕМЫ ===== */
.problem-card {
  background: #FFFFFF;
  border: 1px solid #E0DAD9;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.problem-card:hover {
  border-color: #863A3A;
  box-shadow: 0 8px 32px rgba(134, 58, 58, 0.12);
  transform: translateY(-2px);
}

.problem-card__icon {
  margin-bottom: 24px;
}

.problem-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: #F5F1F0;
  font-size: 12px;
  font-weight: 600;
  color: #4A4A4A;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.problem-card__badge--critical {
  background: #FFEBEE;
  color: #D32F2F;
}

.problem-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.problem-card__content {
  margin-bottom: 24px;
}

.problem-card__content p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #4A4A4A;
  margin-bottom: 16px;
}

.problem-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-card__list li {
  font-size: 14px;
  line-height: 20px;
  color: #4A4A4A;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.problem-card__list li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: #863A3A;
}

.problem-card__warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #FFF3E0;
  border-left: 3px solid #ED6C02;
  font-size: 14px;
  color: #1A1A1A;
  margin-top: 16px;
}

.problem-card__solution {
  padding-top: 16px;
  border-top: 1px solid #E0DAD9;
  font-size: 14px;
  line-height: 20px;
  color: #3B5998;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-top: auto;
}

.problem-card__solution:hover {
  color: #516da9;
}

.problem-card__solution strong {
  font-weight: 600;
}

/* ===== СТАТИСТИКА ===== */
.problems-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.stats-card {
  text-align: center;
  padding: 32px 24px;
  background: #F9F6F5;
  border: 1px solid #E0DAD9;
}

.stats-card__number {
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
  color: #863A3A;
  margin-bottom: 8px;
}

.stats-card__label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #4A4A4A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.problem-card {
  animation: fadeInUp 0.6s ease forwards;
}

.problem-card:nth-child(1) { animation-delay: 0.1s; }
.problem-card:nth-child(2) { animation-delay: 0.2s; }
.problem-card:nth-child(3) { animation-delay: 0.3s; }
.problem-card:nth-child(4) { animation-delay: 0.4s; }
.problem-card:nth-child(5) { animation-delay: 0.5s; }
.problem-card:nth-child(6) { animation-delay: 0.6s; }

/* Анимация статистики */
.stats-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.stats-card__number {
  transition: transform 0.3s ease;
}

.stats-card__number.animating {
  transform: scale(1.05);
}

/* ===== ДОСТУПНОСТЬ ===== */
.cta-button:focus {
  outline: 3px solid #3B5998;
  outline-offset: 2px;
}

.problem-card:focus-within {
  border-color: #3B5998;
  outline: 3px solid rgba(59, 89, 152, 0.1);
  outline-offset: 2px;
}

/* ===== АДАПТИВНОСТЬ ===== */
/* ПЛАНШЕТ (≥768px) */
@media (min-width: 768px) {
  .typical-problems__title {
    font-size: 36px;
    line-height: 44px;
  }

  .typical-problems__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .problems-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .problems-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  .cta-button {
    min-width: 240px;
  }
}

/* ДЕСКТОП (≥1024px) */
@media (min-width: 1024px) {

  .typical-problems__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-card {
    padding: 40px 32px;
  }

  .problem-card__title {
    font-size: 22px;
    line-height: 30px;
  }
  
  .problems-cta__actions {
    gap: 16px;
  }
  
  .cta-button {
    min-width: 180px;
    padding: 14px 24px;
  }
}

/* ШИРОКИЙ ЭКРАН (≥1280px) */
@media (min-width: 1280px) {
  .typical-problems {
    padding: 80px 0;
  }

  .typical-problems__title {
    font-size: 42px;
    line-height: 48px;
  }

  .problems-cta {
    padding: 64px 48px;
  }

  .problems-cta__title {
    font-size: 28px;
    line-height: 36px;
  }
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА (<768px) */
@media (max-width: 767px) {
  .problems-cta {
    padding: 32px 20px;
  }
  
  .problems-cta__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
    min-width: auto;
  }
  
  .problems-cta__secondary {
    flex-direction: column;
    gap: 16px;
  }
  
  .contact-link {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .contact-link__label {
    display: block;
  }
}