.db-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 15px 40px;
}

.db-main-title {
  font-size: 44px;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #444;
  border-bottom: 1px solid #d78c39;
  padding-bottom: 10px;
}

.db-section-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 18px;
  color: #333;
}

.db-subcats-block,
.db-books-block {
  margin-top: 24px;
}

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

.db-category-card {
  min-height: 140px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 20px;
}

.db-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.18);
}

.db-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.db-filters input,
.db-filters select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  min-width: 260px;
  font-size: 16px;
}

.db-book-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.db-book-item {
  display: flex;
  gap: 25px;
  border: 3px solid #111;
  padding: 16px;
  background: #f6f6f6;
}

.db-book-cover {
  width: 220px;
  flex: 0 0 220px;
}

.db-book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.db-book-content {
  flex: 1;
}

.db-book-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.db-book-desc {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.7;
}

.db-book-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.db-view-btn,
.db-download-btn {
  display: inline-block;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.db-view-btn {
  background: #ff1c1c;
}

.db-download-btn {
  background: #1f57d6;
}

.db-book-pagination {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.db-page-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
}

.db-page-btn.is-active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.db-empty {
  padding: 20px;
  background: #fafafa;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .db-category-grid {
    grid-template-columns: 1fr;
  }

  .db-book-item {
    flex-direction: column;
  }

  .db-book-cover {
    width: 100%;
    flex: none;
  }

  .db-main-title {
    font-size: 32px;
  }

  .db-category-card {
    font-size: 22px;
    min-height: 110px;
  }
}

.db-breadcrumb {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
}

.db-breadcrumb a {
  color: #562d6f;
  text-decoration: none;
}

.db-breadcrumb a:hover {
  text-decoration: underline;
}

.db-breadcrumb .is-active {
  color: #333;
  font-weight: 700;
}

.db-breadcrumb-sep {
  margin: 0 8px;
  color: #999;
}


.db-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 28px;
}

.db-filters input,
.db-filters select {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid #ded7d2;
  border-radius: 14px;
  min-width: 0;
  font-size: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.db-filters input:focus,
.db-filters select:focus {
  outline: none;
  border-color: #d78c39;
  box-shadow: 0 10px 28px rgba(215,140,57,0.12);
}

.db-book-results {
  display: grid;
  gap: 18px;
}

.db-book-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid #ddd6d0;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.db-book-cover {
  width: 220px;
  flex: none;
}

.db-book-cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.db-book-content h3 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
  color: #2d2d2d;
}

.db-book-year {
  margin-bottom: 10px;
  color: #5a4a3a;
  font-size: 18px;
}

.db-book-desc {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.75;
  color: #4d4d4d;
}

.db-book-actions {
  margin-top: 18px;
}

.db-view-btn,
.db-download-btn {
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 19px;
  letter-spacing: .02em;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.db-view-btn:hover,
.db-download-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .db-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .db-book-item {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .db-book-cover {
    width: 100%;
  }

  .db-book-content h3 {
    font-size: 28px;
  }
}
