.catalog-hero {
  padding: 54px 0 45px;
  background:
    radial-gradient(circle at 85% 10%, rgba(207, 9, 9, 0.08), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff8f8 100%);
  border-bottom: 1px solid #f0e5e5;
}

.catalog-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.catalog-hero-stat {
  min-width: 160px;
  padding: 18px 24px;
  border: 1px solid #f0d4d2;
  border-radius: 13px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.catalog-hero-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
}

.catalog-hero-stat span {
  color: #777;
  font-size: 13px;
}

.catalog-main {
  padding: 34px 0 0;
}

.catalog-panel {
  margin-bottom: 28px;
  padding: 28px 34px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #dedede;
  border-radius: 4px;
}

.catalog-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(207, 9, 9, 0.08);
}

.catalog-search svg {
  width: 20px;
  fill: none;
  stroke: #999;
  stroke-width: 1.8;
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.catalog-search-button {
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  font-weight: 700;
}

.catalog-search-button:hover {
  background: var(--brand-dark);
}

.filter-block {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin-top: 19px;
}

.filter-label {
  padding-top: 5px;
  color: #777;
  font-size: 14px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-options button {
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px 11px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.filter-options button:hover,
.filter-options button.active {
  border-color: #f4c9c6;
  color: var(--brand);
  background: var(--brand-soft);
}

.catalog-results {
  padding: 34px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.catalog-card {
  position: relative;
  min-width: 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  transition: 0.2s ease;
}

.catalog-card:hover {
  border-color: #efc9c6;
  box-shadow: 0 9px 25px rgba(70, 34, 34, 0.09);
  transform: translateY(-2px);
}

.catalog-card[hidden] {
  display: none;
}

.book-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 230px;
  padding: 16px;
  gap: 19px;
}

.book-cover {
  width: 150px;
  height: 198px;
  object-fit: cover;
  background: #f3f3f3;
}

.book-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.book-title {
  margin: 2px 0 8px;
  font-size: 20px;
}

.book-meta {
  margin: 2px 0;
  color: #666;
  font-size: 13px;
}

.book-meta span {
  color: #333;
}

.book-summary {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: #777;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-tags span {
  padding: 3px 8px;
  border-radius: 3px;
  color: #a95a18;
  background: #fff5e9;
  font-size: 12px;
}

.catalog-price {
  flex: 0 0 auto;
  color: #c76816;
  font-size: 17px;
  font-weight: 700;
}

.meeting-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.meeting-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 22px;
  font-weight: 700;
}

.meeting-title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.45;
}

.meeting-desc {
  margin: 12px 0 0;
  color: #666;
  font-size: 13px;
}

.journal-catalog-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 225px;
  padding: 17px;
  gap: 19px;
}

.journal-catalog-cover {
  width: 136px;
  height: 190px;
  object-fit: cover;
  background: #f1f1f1;
}

.journal-catalog-title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.45;
}

.journal-catalog-cn {
  margin: 0 0 9px;
  color: var(--brand);
  font-size: 14px;
}

.catalog-data-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
  margin: 5px 0;
  color: #666;
  font-size: 12px;
}

.catalog-subject {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: #777;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-empty {
  padding: 68px 20px;
  color: #888;
  text-align: center;
}

.catalog-count {
  color: var(--brand);
  font-weight: 700;
}

.catalog-note {
  margin-top: 22px;
  padding: 13px 16px;
  border-left: 3px solid var(--brand);
  color: #777;
  background: #fff8f8;
  font-size: 13px;
}

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

@media (max-width: 680px) {
  .catalog-hero {
    padding: 38px 0 32px;
  }

  .catalog-hero-row {
    display: block;
  }

  .catalog-hero-stat {
    display: inline-block;
    margin-top: 22px;
  }

  .catalog-panel,
  .catalog-results {
    padding: 20px;
  }

  .catalog-search-row {
    grid-template-columns: 1fr;
  }

  .catalog-search-button {
    height: 44px;
  }

  .filter-block {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .book-card,
  .journal-catalog-card {
    grid-template-columns: 105px minmax(0, 1fr);
    padding: 12px;
    gap: 13px;
  }

  .book-cover,
  .journal-catalog-cover {
    width: 105px;
    height: 150px;
  }

  .book-summary,
  .catalog-subject {
    display: none;
  }

  .catalog-data-row {
    grid-template-columns: 1fr;
  }

  .meeting-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 15px;
    gap: 12px;
  }

  .meeting-number {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}
