:root {
  --green: #6f8f7b;
  --green-dark: #446552;
  --sand: #f4f1ec;
  --sand-2: #ebe4d9;
  --ink: #1a1a1a;
  --muted: #6d6a64;
  --blue-grey: #8fa3b0;
  --white: #ffffff;
  --line: rgba(26, 26, 26, 0.12);
  --shadow: 0 20px 70px rgba(26, 26, 26, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  margin: 8px;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

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

.narrow {
  width: min(100% - 40px, 780px);
}

.section-pad {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 236, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

.language-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(111, 143, 123, 0.28), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(143, 163, 176, 0.25), transparent 30%),
    linear-gradient(135deg, #f4f1ec 0%, #ebe4d9 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -38% -10%;
  height: 420px;
  background: rgba(255, 255, 255, 0.46);
  transform: rotate(-2deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  max-width: 920px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.1rem, 4.3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.hero-text,
.section-heading p,
.about-card p,
.bonus-section p,
.collection-card p,
.newsletter-card p,
.footer p {
  color: var(--muted);
}

.hero-text {
  font-size: 1.16rem;
  max-width: 650px;
  margin-bottom: 32px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.18);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.btn-disabled {
  color: rgba(26, 26, 26, 0.5);
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.hero-panel {
  min-height: 520px;
  position: relative;
}

.panel-card {
  position: absolute;
  width: min(100%, 360px);
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-card span {
  display: block;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.panel-card strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.floating-card.one {
  top: 28px;
  right: 18px;
}

.floating-card.two {
  top: 195px;
  left: 0;
}

.floating-card.three {
  bottom: 26px;
  right: 56px;
}

.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid div {
  padding: 28px;
  border-left: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 1px solid var(--line);
}

.stats-grid strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.stats-grid span {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.search-wrap input,
.fake-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.search-wrap input:focus,
.fake-form input:focus {
  border-color: rgba(111, 143, 123, 0.7);
  box-shadow: 0 0 0 4px rgba(111, 143, 123, 0.14);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.filter-btn.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

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

.book-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 52px rgba(26, 26, 26, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.13);
}

.book-cover-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 315px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(111, 143, 123, 0.14), rgba(143, 163, 176, 0.12));
  overflow: hidden;
}

.book-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  pointer-events: none;
}

.book-cover {
  position: relative;
  z-index: 1;
  width: 190px;
  aspect-ratio: 0.68;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 24px 38px rgba(26, 26, 26, 0.2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: rgba(111, 143, 123, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
}

.book-card h3 {
  margin-bottom: 8px;
}

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

.book-card .desc {
  flex: 1;
}

.book-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.book-meta strong {
  color: var(--ink);
}

.details-btn {
  border: 0;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}

.soft-section {
  background: rgba(255, 255, 255, 0.44);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.collection-card,
.about-card,
.newsletter-card,
.bonus-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 52px rgba(26, 26, 26, 0.08);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 22px;
}

.bonus-section {
  position: relative;
  overflow: hidden;
}

.bonus-section::before {
  content: "";
  position: absolute;
  inset: 70px auto auto -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(111, 143, 123, 0.12);
}

.bonus-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  position: relative;
}

.bonus-card ul {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.about-grid {
  grid-template-columns: 1fr 0.8fr;
  align-items: stretch;
}

.fake-form {
  display: grid;
  gap: 12px;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.footer-links a:hover,
.back-link:hover {
  color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.46);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(100%, 850px);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
}

.modal-book {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

.modal-book .book-cover {
  width: 220px;
}

.modal-book ul {
  padding-left: 18px;
  color: var(--muted);
}

.page-simple {
  min-height: 100vh;
}

.page-simple h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.page-simple h2 {
  font-size: 1.6rem;
  margin-top: 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 700ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 240ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-grid,
  .bonus-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 420px;
  }

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

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 66px 0;
  }

  .nav {
    width: min(100% - 24px, var(--container));
    flex-direction: column;
  }

  .nav-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-panel {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .panel-card,
  .floating-card.one,
  .floating-card.two,
  .floating-card.three {
    position: static;
    width: 100%;
  }

  .stats-grid,
  .books-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div,
  .stats-grid div:last-child {
    border-right: 1px solid var(--line);
  }

  .book-cover-wrap {
    min-height: 275px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-book {
    grid-template-columns: 1fr;
  }
}
