@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@700;800;900&display=swap');

:root {
  --ink: #161616;
  --muted: #626262;
  --soft: #f5f5f5;
  --paper: #ffffff;
  --cream: #fff7ed;
  --red: #bd1622;
  --red-dark: #8f0f18;
  --orange: #f28c22;
  --yellow: #f7c948;
  --line: #e6e6e6;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.75; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.topbar {
  background: #f4f4f4;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.menu-label span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: var(--ink);
}

.menu-label strong {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.top-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #4c4c4c;
  font-weight: 700;
}

.top-links a:hover,
.cart-link:hover,
.category-nav a:hover,
.section-link:hover {
  color: var(--red);
}

.cart-link {
  font-weight: 800;
  color: var(--red-dark);
}

.brand-row {
  min-height: 96px;
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand-logo {
  width: 176px;
  max-height: 64px;
  object-fit: contain;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 2px solid var(--red);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 0;
  padding: 0 16px;
  outline: none;
  font: inherit;
}

.search-box button {
  min-height: 46px;
  border: 0;
  padding: 0 20px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  padding: 13px 22px;
  border-radius: 3px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(189, 22, 34, 0.22);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  color: var(--red);
  background: #fff;
  border: 2px solid var(--red);
}

.category-nav {
  border-top: 1px solid var(--line);
  border-bottom: 4px solid var(--red);
  background: #fff;
}

.category-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0 48%, rgba(255,255,255,0.82) 48% 100%),
    linear-gradient(135deg, var(--yellow), var(--orange));
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -160px auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(189, 22, 34, 0.16);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 56px;
  padding: 70px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
}

.eyebrow::before,
.section-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.section h2,
.book-content h3,
.catalogue-card h3,
.author-content h2,
.order-copy h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 12ch;
  font-size: 5.8vw;
  line-height: .95;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 20px;
  color: #3f3f3f;
}

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

.hero-feature {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.book-hero-img {
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.28));
}

.feature-label {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 2;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.feature-card {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: min(360px, 78%);
  padding: 22px;
  border-left: 6px solid var(--red);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-card span,
.book-tag,
.book-card span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.feature-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.feature-card p {
  margin: 10px 0 14px;
  font-size: 14px;
}

.feature-card a,
.book-card a,
.section-link {
  color: var(--red);
  font-weight: 900;
}

.quick-themes {
  background: var(--red);
}

.theme-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.theme-strip a {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,.24);
  font-weight: 900;
  text-align: center;
}

.theme-strip a:last-child { border-right: 1px solid rgba(255,255,255,.24); }
.theme-strip a:hover { background: var(--red-dark); }

.section {
  padding: 72px 0;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title-row.centered {
  justify-content: center;
  text-align: center;
}

.section-title-row.centered .section-kicker {
  justify-content: center;
}

.section h2 {
  font-size: 34px;
  line-height: 1.08;
}

.book-section,
.preview-section {
  background: #fff;
}

.featured-book-panel {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 38px rgba(0,0,0,.08);
}

.book-cover-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #f2f2f2, #fff);
}

.book-cover-panel img {
  max-height: 360px;
  object-fit: contain;
}

.book-content {
  padding: 42px;
}

.book-content h3 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.book-subtitle {
  margin: 14px 0 0;
  color: var(--red-dark);
  font-weight: 900;
}

.book-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.book-meta div {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.book-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}

.book-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.catalogue-section {
  background: var(--soft);
}

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

.book-card {
  min-height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.book-thumb,
.book-placeholder {
  height: 240px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: #f2f2f2;
}

.book-thumb img {
  max-height: 230px;
  object-fit: contain;
}

.book-placeholder {
  color: rgba(255,255,255,.86);
  background: linear-gradient(135deg, #1b1b1b, #bd1622);
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.book-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.12;
}

.book-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.book-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

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

.preview-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.author-section {
  background: #fff;
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}

.author-photo-wrap {
  padding: 16px;
  background: var(--soft);
  border-left: 8px solid var(--red);
}

.author-photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.author-content h2,
.order-copy h2 {
  font-size: 34px;
  line-height: 1.08;
}

.author-content p,
.order-copy p {
  font-size: 17px;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.author-links a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--red);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.numbers-section {
  padding: 40px 0;
  color: #fff;
  background: var(--red);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.numbers-grid strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  line-height: 1;
}

.numbers-grid span {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.order-section {
  background: var(--cream);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.order-copy {
  position: sticky;
  top: 210px;
}

.order-note {
  margin-top: 24px;
  padding: 20px;
  border-left: 6px solid var(--red);
  background: #fff;
}

.order-note strong,
.order-note span { display: block; }
.order-note strong { color: var(--red-dark); font-size: 20px; }
.order-note span { margin-top: 8px; color: var(--muted); }

.form-wrap {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
}

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

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 13px; font-weight: 900; }

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(189,22,34,.11);
}

.field textarea { min-height: 124px; resize: vertical; }
.field .btn { width: 100%; }
.field .btn:disabled { cursor: progress; opacity: .72; transform: none; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.site-footer {
  color: rgba(255,255,255,.78);
  background: #171717;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding: 48px 0;
}

.footer-logo { width: 170px; margin-bottom: 18px; }
.site-footer p { color: rgba(255,255,255,.7); margin: 0; }
.site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .brand-row,
  .hero-grid,
  .featured-book-panel,
  .author-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .brand-row { gap: 16px; padding: 18px 0; }
  .header-cta { justify-self: start; }
  .hero h1 { font-size: 9vw; max-width: 11ch; }
  .order-copy { position: static; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .top-links { display: none; }

  .category-nav {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 70;
    border-top: 0;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .category-nav.active { display: block; }
  .category-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px; }
  .category-inner a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .theme-strip { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid, .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 22px)); }
  .brand-logo { width: 140px; }
  .search-box { grid-template-columns: 1fr 56px; }
  .hero-grid { padding: 44px 0; gap: 28px; }
  .hero h1 { font-size: 11vw; }
  .lead { font-size: 17px; }
  .hero-actions, .section-title-row, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .header-cta { width: 100%; }
  .hero-feature { min-height: 420px; }
  .book-hero-img { max-height: 390px; }
  .feature-card { position: static; width: 100%; margin-top: -18px; }
  .section { padding: 52px 0; }
  .book-content, .form-wrap { padding: 22px; }
  .book-meta, .books-grid, .preview-grid, .form-grid, .numbers-grid, .footer-main { grid-template-columns: 1fr; }
  .book-thumb, .book-placeholder { height: 210px; }
  .preview-grid img { height: 250px; }
}
