:root {
  --bg: #f7f2ea;
  --paper: #fffdf9;
  --ink: #25313a;
  --muted: #65717a;
  --line: #e7ded1;
  --accent: #9b5f3a;
  --accent-dark: #754529;
  --soft: #efe3d3;
  --green: #dfe9df;
  --blue: #dfe8ee;
  --shadow: 0 18px 38px rgba(55, 42, 31, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 222, 209, 0.9);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
}

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 54px 0 68px;
}

.hero,
.section,
.feature {
  margin-bottom: 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

p {
  margin: 0 0 18px;
  font-size: 18px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.4;
}

.intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(117, 69, 41, 0.18);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--soft);
  box-shadow: none;
}

.book-visual,
.cover {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.book-visual {
  min-height: 360px;
  padding: 24px;
  display: grid;
  place-items: center;
}

.book-visual img,
.cover img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(55, 42, 31, 0.14);
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 23px;
}

.card .button {
  align-self: flex-start;
  margin-top: auto;
}

.price {
  display: inline-flex;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--green);
  color: #304438;
  font-weight: 800;
}

.content {
  max-width: 860px;
}

.content section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-box {
  width: fit-content;
  max-width: 100%;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f2eadf;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

@media (max-width: 820px) {
  .nav-wrap,
  .hero {
    display: block;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .book-visual {
    margin-top: 28px;
    min-height: 0;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
