.rcc-category-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.rcc-category-cards.rcc-columns-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.rcc-category-cards.rcc-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rcc-category-cards.rcc-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcc-category-cards.rcc-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rcc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: #fff;
  color: #222;
  text-decoration: none;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rcc-card:hover,
.rcc-card:focus-visible {
  color: #222;
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.rcc-card-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f7f2ee;
}

.rcc-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.rcc-card:hover .rcc-card-image,
.rcc-card:focus-visible .rcc-card-image {
  transform: scale(1.045);
}

.rcc-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff4ea, #f7e3d4);
  color: #d35f2b;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.rcc-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px 20px;
  text-align: center;
}

.rcc-card-title {
  display: block;
  color: #222;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.rcc-card-description {
  display: block;
  max-width: 95%;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.rcc-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  color: #e85d04;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .rcc-category-cards,
  .rcc-category-cards.rcc-columns-3,
  .rcc-category-cards.rcc-columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rcc-category-cards,
  .rcc-category-cards.rcc-columns-2,
  .rcc-category-cards.rcc-columns-3,
  .rcc-category-cards.rcc-columns-4 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rcc-card-content {
    padding: 16px 14px 18px;
  }
}
