:root {
  --ink: #202334;
  --muted: #62616f;
  --paper: #fff8ea;
  --page: #fffdf7;
  --clay: #b45f46;
  --gold: #d99d4b;
  --sage: #66785f;
  --line: rgba(32, 35, 52, .16);
  --shadow: 0 22px 60px rgba(32, 35, 52, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.nav {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 202px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.menu-toggle-input,
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  letter-spacing: 0;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 64px 0 48px;
  background:
    linear-gradient(90deg, rgba(255,253,247,.98) 0%, rgba(255,253,247,.88) 42%, rgba(255,253,247,.26) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' viewBox='0 0 1600 1000'%3E%3Crect width='1600' height='1000' fill='%23f4efe4'/%3E%3Cg opacity='.9'%3E%3Cpath d='M890 160c180-70 390-39 548 83v544c-166-95-362-117-548-48V160Z' fill='%23d99d4b'/%3E%3Cpath d='M754 179c-183-71-394-42-550 78v544c166-93 360-115 550-46V179Z' fill='%23fff8ea'/%3E%3Cpath d='M790 170v612' stroke='%23202334' stroke-width='24'/%3E%3Cpath d='M306 340c106-42 222-44 348-7M306 455c106-37 222-38 348-2M932 335c121-45 248-37 382 22M932 451c121-39 248-30 382 24' stroke='%23805d43' stroke-width='18' stroke-linecap='round' opacity='.48'/%3E%3C/g%3E%3Cg transform='translate(1020 390)'%3E%3Cpath d='M70 205c-38-64-36-137 5-199L8-88 125-51c44-28 93-42 148-42 56 0 106 15 148 42l116-37-66 94c41 62 43 135 5 199-46 78-118 117-203 117S115 283 70 205Z' fill='%23202334'/%3E%3Ccircle cx='205' cy='108' r='28' fill='%23fff8ea'/%3E%3Ccircle cx='333' cy='108' r='28' fill='%23fff8ea'/%3E%3Cpath d='M265 162l-25 21m25-21 27 21' stroke='%23fff8ea' stroke-width='14' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") center right / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 1fr);
  gap: 42px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #474653;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-note {
  align-self: end;
  padding: 20px 0 2px;
  max-width: 360px;
  color: #3a3947;
  font-weight: 650;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stat {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 30px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

section { padding: 82px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p,
.plain-text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,248,234,.62), rgba(255,255,255,0) 46%),
    #fff;
  box-shadow: 0 10px 30px rgba(32,35,52,.06);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

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

.mark {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid rgba(32,35,52,.13);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff8ea, #f0c36b);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 24px rgba(180,95,70,.14);
}

.mark svg { width: 30px; height: 30px; }

.card:nth-child(2n) .mark { background: linear-gradient(145deg, #fff8ea, #d9864f); }
.card:nth-child(3n) .mark { background: linear-gradient(145deg, #fff8ea, #98a271); }

.band {
  background: var(--ink);
  color: #fff;
}

.band .section-head p,
.band .plain-text { color: rgba(255,255,255,.72); }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.22);
}

.step {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.22);
}

.step:last-child { border-right: 0; }
.step b { color: var(--gold); font-size: 13px; letter-spacing: .14em; }
.step h3 { margin: 18px 0 12px; font-size: 22px; }
.step p { margin: 0; color: rgba(255,255,255,.72); }

.books {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.book {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.book:nth-child(1) { background: linear-gradient(145deg, #263b35, #7a8a54); }
.book:nth-child(2) { background: linear-gradient(145deg, #2f2d46, #b45f46); }
.book:nth-child(3) { background: linear-gradient(145deg, #23313f, #d99d4b); }

.book small {
  display: block;
  margin-bottom: 12px;
  opacity: .75;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.book h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}

.contact-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child { border-bottom: 0; }
.contact-row span { color: var(--muted); }
.contact-row strong { text-align: right; }

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

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

.footer-grid img { width: 160px; display: block; }

@media (max-width: 900px) {
  .nav { min-height: 70px; align-items: center; padding: 12px 0; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle-input:checked + .brand + .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle-input:checked + .brand + .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-toggle-input:checked + .brand + .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 247, .98);
    box-shadow: 0 20px 45px rgba(32, 35, 52, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .menu-toggle-input:checked ~ .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
  }
  .nav-links a:hover { background: var(--paper); }
  .brand img { width: 178px; }
  .hero {
    min-height: auto;
    padding: 58px 0 44px;
    background:
      linear-gradient(180deg, rgba(255,253,247,.98) 0%, rgba(255,253,247,.92) 62%, rgba(255,248,234,.82) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Crect width='900' height='900' fill='%23f4efe4'/%3E%3Cpath d='M130 622c168-70 337-70 506 0V252c-169-70-338-70-506 0v370Z' fill='%23fff8ea' opacity='.75'/%3E%3Cpath d='M450 238v410' stroke='%23202334' stroke-width='16' opacity='.2'/%3E%3Cpath d='M210 350c78-30 156-31 234-2M210 440c78-26 156-27 234-1M488 348c78-28 156-26 234 5M488 438c78-25 156-22 234 8' stroke='%23805d43' stroke-width='14' stroke-linecap='round' opacity='.26'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  }
  .hero-grid,
  .section-head,
  .contact { grid-template-columns: 1fr; }
  .stats,
  .grid,
  .process,
  .books { grid-template-columns: 1fr; }
  .stat,
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step { border-bottom-color: rgba(255,255,255,.22); }
  section { padding: 60px 0; }
  .book { min-height: 320px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .hero-actions .btn { width: 100%; }
  .card { min-height: 0; }
  .contact-row { display: block; }
  .contact-row strong { display: block; margin-top: 4px; text-align: left; }
}
