* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


:root {
  --navy: #304c5d;
  --navy-dark: #263f4e;
  --text: #333333;
  --muted: #6f7779;
  --paper: #f8f8f8;
  --paper-warm: #f1eee7;
  --paper-accent: #ebe5da;
  --line: #ddd9d1;
  --line-dark: #c9c4bb;
  --ochre: #b47a3d;
  --terracotta: #b96f4d;
  --content-width: 1180px;
  --reading-width: 1180px;
  --header-height: 74px;
}


/* =========================================
   3. HERO
========================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(100% - 48px, var(--content-width));
  min-height: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 64px 0;
}
.hero-copy {
  flex: 1 1 52%;
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--ochre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 650px;
}
.hero-rule {
  width: 66px;
  height: 2px;
  margin: 28px 0 22px;
  background: var(--ochre);
}
.hero-subtitle {
  max-width: 500px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(18px, 2vw, 23px);
  font-style: italic;
  line-height: 1.45;
}
/*
  Декоративный элемент вместо конкретной фотографии.
  Его можно заменить на SVG, иллюстрацию или оставить
  как минималистичный сезонный акцент.
*/
.hero-decoration {
  flex: 0 1 390px;
  min-width: 240px;
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-decoration::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 190px;
  border: 1px solid rgba(180, 122, 61, 0.35);
  transform: rotate(-8deg);
}
.hero-decoration::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 150px;
  border: 1px solid rgba(180, 122, 61, 0.22);
  transform: rotate(8deg);
}
.leaf {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 128px;
  background: var(--terracotta);
  border-radius: 4px 75% 4px 75%;
  transform: rotate(38deg);
  opacity: 0.92;
}
.leaf::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5%;
  width: 1px;
  height: 92%;
  background: rgba(248, 248, 248, 0.55);
  transform: rotate(-12deg);
}
.leaf::after {
  content: "";
  position: absolute;
  left: 49%;
  bottom: -25px;
  width: 1px;
  height: 38px;
  background: var(--terracotta);
  transform: rotate(-18deg);
}
/* =========================================
   4. ОСНОВНОЙ КОНТЕНТ
========================================= */
.collection {
  width: min(100% - 48px, var(--content-width));
  margin: 0 auto;
  padding: 72px 0 100px;
}
.intro {
  max-width: var(--reading-width);
  margin: 0 auto 70px;
  color: #4e5658;
  font-size: 18px;
  line-height: 1.75;
}
.intro-bottom {
  margin: 70px auto 0 !important;
}
.intro p {
  margin: 0 0 18px;
}
.intro p:last-child {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}
.section-heading span {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line-dark);
}
/* =========================================
   5. КНИЖНЫЕ БЛОКИ
========================================= */
.book-list {
  display: flex;
  flex-direction: column;
}
.book {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  padding: 0 0 68px;
  margin: 0 0 68px;
  border-bottom: 1px solid var(--line);
}
.book:last-child {
  margin-bottom: 0;
}
.book--reverse {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
}
.book--reverse .book-cover {
  order: 2;
}
.book--reverse .book-content {
  order: 1;
}
.book-cover {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.book-cover img {
  width: min(100%, 290px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 12px 25px rgba(38, 63, 78, 0.10);
}
/*
  Заглушка обложки.
  В реальном проекте заменить на:
  <img src="/path/to/cover.jpg" alt="...">
*/
.cover-placeholder {
  width: min(100%, 290px);
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  color: #f8f8f8;
  background: linear-gradient(
    145deg,
    var(--navy),
    #527080
  );
  box-shadow: 0 12px 25px rgba(38, 63, 78, 0.10);
}
.cover-placeholder--warm {
  background: linear-gradient(
    145deg,
    #a65f43,
    #d09563
  );
}
.cover-placeholder--light {
  color: var(--navy);
  background: #e4d8c3;
}
.cover-placeholder--red {
  background: linear-gradient(
    145deg,
    #a6533e,
    #c5784f
  );
}
.cover-author {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 26px;
}
.cover-title {
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cover-publisher {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.book-content {
  min-width: 0;
}
.book-category {
  margin: 0 0 6px;
  color: var(--ochre);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.book h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.book-author {
  margin: 9px 0 22px;
  color: var(--navy);
  font-size: 17px;
}
.book-description {
  max-width: 680px;
  margin: 0 0 22px;
  color: #50585a;
  font-size: 16px;
  line-height: 1.7;
}
.book-season {
  max-width: 680px;
  margin: 0 0 25px;
  padding-left: 20px;
  border-left: 2px solid var(--ochre);
  color: #657073;
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
}
.book-season strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ochre);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}
.book-meta span {
  position: relative;
}
.book-meta span + span::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ochre);
  transform: translateY(-50%);
}
.purchase-label {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.purchase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 17px;
  border: 1px solid #9eabb0;
  border-radius: 2px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 12px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}
.purchase-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}
.site-book-link {
  display: inline-block;
  margin-top: 16px;
  border-bottom: 1px solid var(--ochre);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
  text-decoration: none;
}
.site-book-link:hover {
  color: var(--ochre);
}
.site-book-link::after {
  content: "→";
  color: var(--ochre);
}
/* =========================================
   6. ФИНАЛЬНЫЙ CTA
========================================= */
.collection-end {
  margin-top: 100px;
  padding: 42px 32px;
  background: var(--paper-accent);
  text-align: center;
}
.collection-end p {
  margin: 0;
  color: var(--navy);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  line-height: 1.45;
}
.collection-end .hero-rule {
  margin: 22px auto;
}
.catalog-link {
  display: inline-block;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
}
.catalog-link:hover {
    color: var(--ochre);
}
.catalog-link::after {
  content: " →";
  color: var(--ochre);
}
 /* =========================================
   8. АДАПТИВНОСТЬ
========================================= */
@media (max-width: 900px) {
  .hero-inner {
    gap: 32px;
  }
  .hero-decoration {
    flex-basis: 300px;
  }
  .book {
    gap: 42px;
  }
  .book-cover img,
  .cover-placeholder {
    max-width: 240px;
  }
}
@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }
  .header-inner,
  .hero-inner,
  .collection,
  .footer-inner {
    width: min(100% - 32px, var(--content-width));
  }
  .main-nav {
    display: none;
  }
  .hero-inner {
    min-height: auto;
    display: block;
    padding: 48px 0 40px;
  }
  .hero h1 {
    max-width: 100%;
  }
  .hero-decoration {
    height: 130px;
    margin-top: 28px;
  }
  .hero-decoration::before {
    width: 220px;
    height: 120px;
  }
  .hero-decoration::after {
    width: 170px;
    height: 100px;
  }
  .leaf {
    width: 64px;
    height: 90px;
  }
  .collection {
    padding: 48px 0 64px;
  }
  .intro {
    margin-bottom: 50px;
    font-size: 17px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .book,
  .book--reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding-bottom: 50px;
    margin-bottom: 50px;
  }
  .book--reverse .book-cover,
  .book--reverse .book-content {
    order: initial;
  }
  .book-cover {
    justify-content: flex-start;
  }
  .book-cover img,
  .cover-placeholder {
    width: min(100%, 240px);
    max-width: 240px;
  }
  .book-content {
    width: 100%;
  }
  .book h2 {
    font-size: clamp(29px, 8vw, 38px);
  }
  .book-description {
    font-size: 16px;
  }
  .collection-end {
    margin-top: 64px;
    padding: 32px 22px;
  }
}