/* ════════════════════════════════════════════════════════════
   Speech Combat — категории ситуаций (карточки с иконкой по центру).
   Дизайн перенесён из speechcombat (.cat-grid / .cat-card).
   //
   Speech Combat — situation categories (cards with a centered icon).
   Design lifted from speechcombat (.cat-grid / .cat-card).
   ════════════════════════════════════════════════════════════ */

/* Заголовок экрана — точно как .scenarios-title в оригинале speechcombat-app.html:
   мелкий, приглушённый (var(--text3)), с разрядкой.
   // Screen title — exactly like .scenarios-title in the original speechcombat-app.html:
   small, muted (var(--text3)), letter-spaced. */
.situations-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
  padding: 0 20px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 20px;
}
@media (max-width: 768px) { .cat-grid { grid-template-columns: repeat(2, 1fr); padding: 0 12px; } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; padding: 0 12px; } }

/* Карточка — как в оригинале (styles/03-components.css), который грузит index.html:
   без верхней полоски, нейтральный hover (мягкий подъём + серая рамка).
   // Card — same as the original (styles/03-components.css) loaded by index.html:
   no top stripe, neutral hover (soft lift + grey border). */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.cat-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);

}
.cat-card:active { transform: scale(0.98); }

/* Блок с иконкой по центру / Centered-icon block */
.cat-card-bg {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.cat-card-icon {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.cat-card-body { padding: 12px 16px 16px; text-align: center; }
.cat-card-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 8px; line-height: 1.2;
}
.cat-card-count {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Описание ситуации в карточке / Situation description inside the card */
.cat-card-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 4px;
}
