.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.catalog-img {
  aspect-ratio: 4 / 3;
  background: #e4e6f5;
  overflow: hidden;
}
.catalog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.catalog-card:hover .catalog-img img { transform: scale(1.05); }

.catalog-name {
  padding: 18px 20px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
}
.catalog-card:hover .catalog-name { color: rgb(114, 214, 189); }

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ===== Список моделей ===== */
.back-link {
  display: inline-block;
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 700;
  color: rgb(114, 214, 189);
}
.back-link:hover { opacity: .8; }

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.model-card {
  background: #f5f6fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.model-img {
  aspect-ratio: 1 / 1;
  background: #ffffff;
}
.model-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.model-info { padding: 16px 18px 20px; }
.model-name { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 6px; }
.model-desc { font-size: 16px; line-height: 1.5; color: #555; }
.models-empty { text-align: center; font-size: 20px; color: #777; padding: 40px 0; }

@media (max-width: 1100px) { .models-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .models-grid { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }