:root {
  --ink: #172827;
  --muted: #65716f;
  --paper: #f7f4ec;
  --white: #fffdf8;
  --sea: #315f9f;
  --sea-dark: #173f78;
  --coral: #d08a42;
  --line: rgba(23, 40, 39, .12);
  --shadow: 0 22px 65px rgba(20, 49, 47, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: YekanBakhFaNum, Tahoma, sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(49,95,159,.28); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.announcement {
  padding: 8px 20px;
  color: #fff;
  background: var(--sea-dark);
  text-align: center;
  font-size: 13px;
}
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, .94);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; transform: translateY(4px); flex: 0 0 auto; }
.brand > span { display: flex; flex-direction: column; justify-content: center; line-height: 1.45; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.menu { display: flex; justify-content: center; gap: 28px; font-size: 14px; }
.menu a:hover { color: var(--sea); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-toggle {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-toggle { display: none; }

.hero { overflow: hidden; padding: 78px 0 62px; position: relative; }
.hero:before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  left: -220px; top: -230px; background: rgba(14,105,103,.08);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.eyebrow { color: var(--coral); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 12px 0 20px; font-size: clamp(46px, 7vw, 84px); line-height: 1.3; letter-spacing: -.025em; font-weight: 800; }
.hero h1 em { color: var(--sea); font-style: normal; }
.lead { max-width: 600px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border: 1px solid var(--sea);
  border-radius: 999px; font-weight: 700;
}
.btn-primary { color: #fff; background: var(--sea); }
.btn-primary:hover { background: var(--sea-dark); }
.btn-ghost:hover { color: #fff; background: var(--sea); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.trust span:before { content: "✓"; margin-left: 7px; color: var(--sea); font-weight: 900; }

.hero-art { position: relative; min-height: 500px; }
.featured-hero { position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:28px;background:#e7edf6;box-shadow:var(--shadow); }
.sun { position: absolute; width: 390px; height: 390px; top: 38px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: #dbe6f5; }
.book-stack { position: absolute; inset: 55px 0 0; display: flex; justify-content: center; align-items: center; direction: ltr; }
.book-cover {
  width: 210px; height: 310px; padding: 28px 22px; border-radius: 4px 14px 14px 4px;
  color: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column;
  justify-content: space-between; transition: transform .25s ease;
}
.book-cover:hover { transform: translateY(-8px) rotate(0)!important; }
.book-cover:first-child { margin-right: -55px; transform: rotate(-9deg) translateY(34px); background: #bd5c49; }
  .book-cover:nth-child(2) { z-index: 2; transform: rotate(2deg); background: var(--sea); }
.book-cover:last-child { margin-left: -55px; transform: rotate(10deg) translateY(42px); background: #2f444e; }
.book-cover small { opacity: .72; }
.book-cover strong { font-size: 25px; line-height: 1.45; }

.section { padding: 90px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 47px); line-height: 1.3; }
.text-link { color: var(--sea); font-weight: 800; }
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-card { padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.7); }
.cover img { width:100%;height:100%;object-fit:contain;object-position:center;background:#f1eee7; }
.cover {
  aspect-ratio: 1/1; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, #d8e4dd, #a9c0b9);
}
.cover-book {
  width: 135px; aspect-ratio: 2/3; padding: 18px; color: #fff; background: var(--sea);
  border-radius: 3px 9px 9px 3px; box-shadow: 14px 18px 30px rgba(22,50,47,.24);
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
}
.book-card:nth-child(2) .cover { background: linear-gradient(145deg, #eadcca, #cfb08b); }
.book-card:nth-child(2) .cover-book { background: #9b5548; }
.book-card:nth-child(3) .cover { background: linear-gradient(145deg, #d9dce7, #aeb5ca); }
.book-card:nth-child(3) .cover-book { background: #324459; }
.book-card:nth-child(4) .cover-book { background: #6e6045; }
.book-card:nth-child(5) .cover-book { background: #85454f; }
.book-card:nth-child(6) .cover-book { background: #3f6961; }
.book-meta { padding: 18px 4px 4px; }
.book-meta h3 { margin: 0 0 4px; font-size: 19px; }
.book-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-weight: 800; }
.soon { color: var(--coral); font-size: 12px; }

.story { color: #fff; background: var(--sea-dark); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story-card {
  min-height: 380px; padding: 42px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 180px 180px 24px 24px; background: #0e6663; display: flex; align-items: end;
}
.story-card blockquote { margin: 0; font-size: 25px; line-height: 1.8; }
.story-copy h2 { margin: 8px 0 18px; font-size: 44px; line-height: 1.4; }
.story-copy p { color: rgba(255,255,255,.72); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.stat { padding: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.stat strong { display: block; font-size: 30px; }
.stat span { color: rgba(255,255,255,.65); font-size: 12px; }

.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path-item { padding: 26px; border-top: 2px solid var(--sea); background: var(--white); }
.path-item b { display: block; width: 34px; height: 34px; margin-bottom: 28px; border-radius: 50%; color: #fff; background: var(--sea); text-align: center; }
.path-item h3 { margin: 0 0 8px; }
.path-item p { margin: 0; color: var(--muted); font-size: 13px; }
.newsletter { padding: 42px; border-radius: 26px; background: #e8ddc6; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.newsletter h2 { margin: 0 0 4px; font-size: 30px; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter form { display: flex; min-width: 410px; padding: 5px; border-radius: 999px; background: var(--white); }
.newsletter input { width: 100%; padding: 0 18px; border: 0; outline: 0; background: transparent; }
.newsletter button { border: 0; cursor: pointer; }

footer { padding: 55px 0 24px; background: var(--ink); color: #fff; }
.footer-logo { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { margin: 0 0 15px; }
.footer-grid p, .footer-grid a { display: block; color: rgba(255,255,255,.62); font-size: 13px; margin-bottom: 9px; }
.copyright { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: 12px; }

@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 82px; right: 20px; left: 20px; padding: 20px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .menu.open { display: grid; }
  .menu-toggle { display: grid; }
  .nav { grid-template-columns: 1fr auto auto; gap: 10px; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-actions, .trust { justify-content: center; }
  .hero-art { min-height: 420px; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; text-align: center; }
  .newsletter form { min-width: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { font-size: 17px; }
  .brand small { display: none; }
  .hero { padding-top: 52px; }
  .hero-art { min-height: 330px; }
  .sun { width: 290px; height: 290px; }
  .book-cover { width: 145px; height: 225px; padding: 18px 14px; }
  .book-cover strong { font-size: 17px; }
  .books, .path, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 65px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .story-card { min-height: 320px; padding: 32px; }
  .story-copy h2 { font-size: 34px; }
  .stats { grid-template-columns: 1fr; }
  .newsletter { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
