
.page-books,
.page-book-detail {
  background: #fbf8f0;
}

.book-landing-hero,
.book-detail-hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  margin: 0 auto;
  max-width: 1160px;
  min-height: 72vh;
  padding: 96px clamp(20px, 4vw, 44px) 78px;
}

.book-detail-hero {
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
}

.book-landing-hero h1,
.book-detail-hero h1 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  hyphens: none;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 28px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.book-detail-hero h1 {
  font-size: clamp(2.75rem, 4.7vw, 5rem);
}

.book-series,
.book-meta {
  color: #d7a33a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.book-hero-copy > p:not(.book-series),
.book-detail-copy > p {
  max-width: 680px;
}

.book-hero-panel {
  background: var(--green);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: #fff;
  min-height: 360px;
  padding: 38px;
}

.book-hero-panel strong {
  color: #d7a33a;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 12vw, 9rem);
  line-height: 0.9;
}

.book-hero-panel span {
  display: block;
  font-size: 1.15rem;
  font-weight: 850;
  margin-top: 16px;
}

.book-hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.book-platform {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  padding-top: 56px;
}

.book-platform h2,
.book-detail-body h2,
.book-social-preview h2,
.book-related h2 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.book-category-row {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-category-row span,
.book-share a {
  background: #fff;
  border: 1px solid rgba(23, 63, 53, 0.14);
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 760;
  padding: 9px 12px;
}

.book-catalog {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 34px;
}

.book-card {
  background: #fff;
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(23, 63, 53, 0.08);
  display: grid;
  gap: 22px;
  grid-template-columns: 132px 1fr;
  min-height: 320px;
  padding: 20px;
}

.book-card-cover {
  align-self: start;
  background: #f4eee2;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(23, 63, 53, 0.18);
  display: block;
  overflow: hidden;
}

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

.book-card h2 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.22rem);
  hyphens: none;
  line-height: 1.05;
  margin: 0 0 10px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.book-subtitle,
.book-detail-subtitle {
  color: var(--ink);
  font-weight: 760;
  line-height: 1.5;
  margin-bottom: 12px;
}

.book-card p {
  font-size: 0.96rem;
  line-height: 1.58;
}

.book-formats {
  color: var(--green);
  font-size: 0.9rem !important;
  font-weight: 760;
}

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

.book-detail-cover {
  justify-self: center;
  max-width: min(360px, 72vw);
  transform: rotate(-1.2deg);
}

.book-detail-cover img {
  border-radius: 10px;
  box-shadow: 0 28px 82px rgba(23, 63, 53, 0.24);
}

.book-detail-body {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  padding-top: 36px;
}

.book-text-panel,
.book-facts {
  background: #fff;
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 10px;
  box-shadow: 0 14px 46px rgba(23, 63, 53, 0.07);
  padding: clamp(24px, 4vw, 42px);
}

.book-facts ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.book-facts li {
  border-bottom: 1px solid rgba(23, 63, 53, 0.1);
  color: var(--muted);
  font-weight: 700;
  padding-bottom: 8px;
}

.book-facts li span {
  color: var(--green);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-share {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.book-share a:hover,
.book-category-row span:hover {
  border-color: var(--green);
}

.book-social-preview {
  align-items: center;
  display: grid;
  gap: clamp(26px, 5vw, 52px);
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  padding-top: 46px;
}

.book-social-preview img {
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(23, 63, 53, 0.16);
  display: block;
  width: 100%;
}

.book-related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-related-grid .book-card {
  grid-template-columns: 94px 1fr;
  min-height: 250px;
}

.book-related-grid .book-card h2 {
  font-size: 1.48rem;
}

.book-related-grid .book-card p:not(.book-meta):not(.book-subtitle):not(.book-formats) {
  display: none;
}

@media (max-width: 980px) {
  .book-landing-hero,
  .book-detail-hero,
  .book-platform,
  .book-detail-body,
  .book-social-preview {
    grid-template-columns: 1fr;
  }

  .book-catalog,
  .book-related-grid {
    grid-template-columns: 1fr;
  }

  .book-detail-cover {
    justify-self: start;
    max-width: 300px;
  }

  .book-detail-hero h1 {
    font-size: clamp(2.7rem, 6.8vw, 4.4rem);
    line-height: 1;
  }
}

@media (max-width: 620px) {
  .cookie-banner {
    bottom: 12px;
    gap: 12px;
    left: 12px;
    max-height: 42vh;
    overflow: auto;
    padding: 16px;
    right: 12px;
  }

  .cookie-banner h2 {
    font-size: 1.12rem;
    margin-bottom: 4px;
  }

  .cookie-banner p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

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

  .cookie-actions .button {
    font-size: 0.86rem;
    padding: 10px 12px;
  }

  .book-landing-hero,
  .book-detail-hero {
    padding-top: 76px;
  }

  .book-landing-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
    line-height: 1;
  }

  .book-detail-hero h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.85rem);
    line-height: 1.03;
  }

  .book-card,
  .book-related-grid .book-card {
    grid-template-columns: 96px 1fr;
    padding: 16px;
  }

  .book-card-actions {
    display: grid;
  }

  .book-card-actions .button,
  .book-detail-copy .button {
    width: 100%;
  }

  .book-social-preview {
    gap: 20px;
  }
}
