:root {
  --ink: #10243e;
  --ink-soft: #3f536a;
  --paper: #f7f8f4;
  --white: #ffffff;
  --teal: #0d887b;
  --yellow: #f1c84b;
  --coral: #e76752;
  --blue: #2867c7;
  --line: #dce2df;
  --shadow: 0 18px 45px rgba(16, 36, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-shell,
.footer-shell,
.legal-note {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.nav a,
.footer-links a {
  color: var(--ink-soft);
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--teal);
}

.header-action,
.button,
.book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none;
}

.header-action {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 555px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, #edf7f4 0%, #f8f6eb 48%, #e8eef6 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.hero-content > * {
  max-width: 620px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(247, 248, 244, 0.99) 0%, rgba(247, 248, 244, 0.94) 43%, rgba(247, 248, 244, 0.08) 72%);
}

.hero-covers {
  position: absolute;
  z-index: 1;
  top: 0;
  right: max(2vw, calc((100vw - 1180px) / 2));
  width: min(47vw, 640px);
  height: 100%;
}

.hero-cover {
  position: absolute;
  width: 205px;
  aspect-ratio: 0.68;
  object-fit: cover;
  border: 8px solid var(--white);
  box-shadow: 0 24px 55px rgba(16, 36, 62, 0.24);
}

.hero-cover-one {
  left: 8%;
  top: 62px;
  transform: rotate(-7deg);
}

.hero-cover-two {
  left: 38%;
  top: 115px;
  transform: rotate(5deg);
}

.hero-cover-three {
  right: 0;
  top: 42px;
  transform: rotate(9deg);
}

.eyebrow,
.section-label,
.book-number {
  display: inline-flex;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 15px 0 18px;
  max-width: 700px;
  font-size: 5rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--teal);
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.65;
}

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

.button {
  padding: 12px 19px;
}

.button-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(13, 136, 123, 0.22);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid #bfcac5;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
  padding-inline: 22px;
}

.hero-points {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-points span {
  position: relative;
  padding-left: 15px;
}

.hero-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.intro-band {
  padding: 82px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.intro-layout h2,
.section-heading h2,
.method-intro h2,
.final-layout h2 {
  margin: 10px 0 0;
  font-size: 2.8rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-copy p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.ad-band {
  padding: 30px 0;
  background: #eef3f3;
}

.ad-band-books {
  padding-top: 0;
  background: var(--page);
}

.ad-band-dark {
  background: #0a2034;
}

.ad-slot {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed #a8bbc1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #627980;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-band-dark .ad-slot {
  border-color: rgba(241, 200, 75, 0.48);
  background: rgba(255, 255, 255, 0.05);
  color: #f1c84b;
}

.books-section {
  padding: 78px 0 88px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading p,
.method-intro p,
.final-layout p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

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

.book-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 36, 62, 0.07);
}

@media (min-width: 1021px) {
  .book-card:nth-child(7) {
    grid-column: 2;
  }
}

.book-cover {
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background:
    linear-gradient(135deg, rgba(13, 136, 123, 0.09), rgba(241, 200, 75, 0.16));
}

.book-cover img {
  width: 235px;
  height: 350px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.book-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 23px;
}

.book-body h3 {
  margin: 9px 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.book-body p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.book-link {
  width: 100%;
  margin-top: auto;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--ink);
}

.method-section {
  padding: 82px 0;
  background: var(--ink);
  color: var(--white);
}

.method-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.method-intro p {
  margin-top: 18px;
  color: #ced8e1;
}

.method-section .section-label {
  color: var(--yellow);
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.method-steps li {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.method-steps strong {
  color: var(--yellow);
}

.method-steps span {
  color: #dce5eb;
  line-height: 1.6;
}

.final-cta {
  padding: 58px 0;
  background: var(--yellow);
}

.final-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.final-layout .section-label {
  color: #755a00;
}

.final-layout h2 {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.site-footer {
  padding: 48px 0 28px;
  background: #071829;
  color: var(--white);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
}

.footer-shell p,
.legal-note {
  color: #afbecb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #dce5eb;
}

.legal-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.82rem;
  line-height: 1.65;
}

.legal-note p {
  margin: 0 0 8px;
}

.legal-note a {
  color: var(--yellow);
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .hero-covers {
    right: -80px;
    width: 55vw;
    opacity: 0.72;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(247, 248, 244, 0.99) 0%, rgba(247, 248, 244, 0.91) 55%, rgba(247, 248, 244, 0.2) 100%);
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .brand {
    font-size: 0.95rem;
  }

  .header-action {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    align-items: flex-end;
  }

  .hero-content {
    padding: 44px 0 52px;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-covers {
    top: -35px;
    left: 28%;
    right: auto;
    width: 88vw;
    height: 360px;
    opacity: 0.43;
  }

  .hero-cover {
    width: 145px;
    border-width: 5px;
  }

  .hero-cover-one {
    left: 0;
  }

  .hero-cover-two {
    left: 28%;
  }

  .hero-cover-three {
    right: 0;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(247, 248, 244, 1) 0%, rgba(247, 248, 244, 0.95) 51%, rgba(247, 248, 244, 0.15) 100%);
  }

  .hero-points {
    gap: 10px 16px;
    flex-wrap: wrap;
  }

  .intro-layout,
  .section-heading,
  .method-layout,
  .final-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .books-section,
  .method-section {
    padding: 58px 0;
  }

  .ad-band {
    padding: 22px 0;
  }

  .ad-band-books {
    padding-top: 0;
  }

  .ad-slot {
    min-height: 122px;
  }

  .intro-layout,
  .method-layout {
    gap: 30px;
  }

  .intro-layout h2,
  .section-heading h2,
  .method-intro h2 {
    font-size: 2.2rem;
  }

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

  .book-cover {
    min-height: 360px;
  }

  .book-cover img {
    width: 210px;
    height: 315px;
  }

  .method-steps li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
