/* =========================
   КАРТОЧКИ
   ========================= */

/* Три столбца на десктопе */
.cards-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  justify-items: center;
  width: 100%;
}

/* Адаптивность: два столбца на планшетах */
@media (max-width: 1020px) {
  .cards-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Одна колонка на мобилках */
@media (max-width: 700px) {
  .cards-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fffbe6;
  border: 1px solid #ffe082;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(255, 214, 107, 0.13);
  text-decoration: none;
  color: #0047ab;
  transition: box-shadow 0.22s, background 0.18s, transform 0.19s;
  width: 100%;
  min-height: 270px;
  padding: 22px 16px 16px 16px;
  position: relative;
  overflow: hidden;
  max-width: 340px;
}

.card:hover, .card:focus {
  background: #ffe082;
  box-shadow: 0 8px 32px rgba(255, 214, 107, 0.18);
  color: #000;
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}

.card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #eee;
  display: block;
}

/* Увеличить иконки в карточках */
.card-icon {
  font-size: 2.3em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 2.3em;
  height: 2.3em;
  display: block;
}

.card-title {
  font-size: 1.13rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.card-desc {
  font-size: 1rem;
  color: #444;
  text-align: center;
  margin-bottom: 8px;
}

.card-quote {
  background: linear-gradient(90deg, #ffe082 0%, #e9f7ef 100%);
  border: none;
  min-height: 110px;
  justify-content: center;
}

.card-quote-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

.cards-section {
  max-width: 1200px;
  margin: 0 auto 48px auto;
  padding: 0 16px;
}

.section-heading {
  color: #0047ab;
  font-size: 1.7rem;
  margin: 36px 0 24px 0;
  text-align: center;
}

/* Кнопки и доп. элементы (если есть) */
.card-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: #ffd54f;
  color: #0047ab;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s, color 0.16s;
  cursor: pointer;
}
.card-btn:hover {
  background: #f7b801;
  color: #262626;
}