/* ===== HUB LAYOUT 2026 ===== */

.hub-page {
  max-width: 1100px;
  margin: 0 auto;
}

.hub-title {
  margin-bottom: 16px;
}

.hub-intro {
  margin-bottom: 18px;
  color: #4b5563;
}

/* TOOLBAR */
.hub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hub-search {
  margin-left: auto; /* прижимает поиск вправо */
  max-width: 360px;
  width: 100%;
}

.hub-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px; /* как на скрине */
  border: 1px solid #e6edf3;
  background: #f7fafc;
  outline: none;
  transition: background .2s ease, border .2s ease;
}

.hub-search input:focus {
  background: #fff;
  border-color: #d0d7de;
}

/* A-Z */
.hub-az {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 500px;
}

.hub-az a {
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid #e6edf3;
  background: #f7fafc;
  color: #6b7280;
  text-decoration: none;
}

.hub-az a:hover {
  background: #fff;
  color: #111827;
}

/* CATALOG GRID */

.hub-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hubcol {
  display: block;
}

.hubcard {
  display: block;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: #111827;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hubcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(11,18,32,.10);
}

.hubcard img {
  display: block;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  margin: 16px auto;
  object-fit: contain;
}

.hubtitle {
  padding: 12px;
  font-weight: 700;
  border-top: 1px solid #e6edf3;
}

/* Responsive */

@media (max-width: 1024px) {
  .hub-catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hub-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hub-catalog {
    grid-template-columns: 1fr;
  }
}