.catalog {
  background: #fbfaf5;
}

.catalog-heading {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: end;
  gap: 8vw;
}

.catalog-heading h2 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  margin: 0;
}

.catalog-heading > p {
  color: #607168;
  line-height: 1.75;
  max-width: 500px;
}

.catalog-toolbar {
  margin-top: 56px;
  padding: 25px;
  background: #eef0e7;
  border: 1px solid rgba(23, 51, 41, .12);
}

.catalog-search {
  display: block;
  position: relative;
}

.catalog-search > span {
  display: block;
  margin-bottom: 10px;
  color: #64766c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.catalog-search input {
  width: 100%;
  padding: 16px 46px 16px 17px;
  border: 1px solid rgba(23, 51, 41, .23);
  background: #fbfaf5;
  color: #173329;
  font: 15px "DM Sans", sans-serif;
  outline: none;
}

.catalog-search input:focus {
  border-color: #173a2e;
  box-shadow: 0 0 0 3px rgba(23, 58, 46, .1);
}

.catalog-search i {
  position: absolute;
  right: 17px;
  bottom: 14px;
  font: normal 24px Georgia, serif;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.filter-chip {
  padding: 10px 13px;
  border: 1px solid rgba(23, 51, 41, .18);
  background: transparent;
  color: #395249;
  font: 600 11px "DM Sans", sans-serif;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.active {
  background: #173a2e;
  border-color: #173a2e;
  color: #fff;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0 16px;
  color: #75847c;
  font-size: 11px;
  border-bottom: 1px solid rgba(23, 51, 41, .16);
}

.catalog-meta p {
  margin: 0;
}

.catalog-meta p:first-child {
  color: #173329;
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

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

.catalog-card {
  min-width: 0;
  padding: 25px;
  background: #f1f2e9;
  border: 1px solid rgba(23, 51, 41, .1);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 51, 41, .28);
  box-shadow: 0 14px 32px rgba(23, 51, 41, .08);
}

.catalog-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}

.catalog-card-number {
  color: #7d8d84;
  font: italic 13px Georgia, serif;
}

.catalog-spec {
  padding: 6px 9px;
  background: #dce3d7;
  color: #2d4a3e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}

.catalog-card h3 {
  margin: 24px 0 14px;
  font-family: "DM Sans", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -.025em;
}

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

.catalog-tag {
  padding: 5px 8px;
  border: 1px solid rgba(23, 51, 41, .16);
  color: #61746a;
  font-size: 9px;
  letter-spacing: .04em;
}

.catalog-description {
  color: #566b60;
  font-family: "DM Sans", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.75;
}

.catalog-card details {
  margin: 4px 0 22px;
}

.catalog-card summary {
  width: max-content;
  color: #173a2e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.catalog-card details p {
  max-height: 220px;
  overflow: auto;
  margin: 15px 0 0;
  padding: 15px;
  background: #fbfaf5;
  color: #4c6257;
  font-family: "DM Sans", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}

.catalog-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 51, 41, .13);
}

.catalog-inquire {
  border: 0;
  background: transparent;
  color: #173a2e;
  font: 600 11px "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.catalog-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(340px, 100%);
  margin: 34px auto 0;
  padding: 16px 19px;
  border: 1px solid #173a2e;
  background: transparent;
  color: #173a2e;
  font: 600 12px "DM Sans", sans-serif;
  cursor: pointer;
}

.catalog-more:hover,
.catalog-more:focus-visible {
  background: #173a2e;
  color: #fff;
}

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

.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px auto 0;
}

.catalog-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid rgba(23, 51, 41, .25);
  background: transparent;
  color: #173a2e;
  font: 600 11px "DM Sans", sans-serif;
  cursor: pointer;
}

.catalog-pagination button:hover,
.catalog-pagination button:focus-visible,
.catalog-pagination button.active {
  border-color: #173a2e;
  background: #173a2e;
  color: #fff;
}

.catalog-pagination button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.catalog-empty {
  margin: 28px 0 0;
  padding: 45px 20px;
  background: #f1f2e9;
  text-align: center;
}

.catalog-empty b,
.catalog-empty span {
  display: block;
}

.catalog-empty span {
  margin-top: 8px;
  color: #73827a;
  font-size: 12px;
}

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

@media (max-width: 700px) {
  .catalog-heading { grid-template-columns: 1fr; gap: 25px; }
  .catalog-toolbar { margin-top: 35px; padding: 17px; }
  .catalog-meta { flex-direction: column; gap: 8px; }
  .catalog-grid { grid-template-columns: 1fr; }
}
