:root {
  --bg: #0d0b1f;
  --bg-2: #15122e;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3eee6;
  --muted: #b5adc9;
  --gold: #e8c47a;
  --gold-2: #f6dda0;
  --accent: #8f7cf7;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #2a2160 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #1d1748 0%, transparent 60%),
              var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  padding-bottom: 84px; /* место под липкую кнопку */
  overflow-x: hidden;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

a { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 9vw, 72px); }
h2 { font-size: clamp(32px, 6vw, 48px); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px; }
@media (min-width: 900px) { .section { padding: 88px 20px; } }

/* звёзды */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 260px 40px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80px 210px, #fff 50%, transparent 51%);
  background-size: 300px 260px;
}

/* шапка */
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
}
.brand { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand::before { content: "✦ "; color: var(--gold); }
.top-cta { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid rgba(232,196,122,.4); padding: 8px 16px; border-radius: 999px; }

/* hero */
.hero { display: grid; gap: 28px; padding-top: 16px; padding-bottom: 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 40px; padding-bottom: 72px; } }
.hero-cover { order: -1; }
@media (min-width: 900px) { .hero-cover { order: 0; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--gold); font-weight: 600; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 560px; }
.format { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.price { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--gold-2); line-height: 1; }
.old-price { color: var(--muted); font-size: 20px; }
.badge:empty, .old-price:empty { display: none; }
.badge { background: var(--gold); color: #1a1430; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1430; text-decoration: none; font-weight: 700; border: 0; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; font-size: 16px; font-family: var(--sans);
  box-shadow: 0 10px 30px -10px rgba(232,196,122,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(232,196,122,.8); }
.btn-big { padding: 18px 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-small { padding: 10px 18px; font-size: 14px; }
@media (max-width: 520px) { .hero .btn-big { width: 100%; } }

/* обложка-книга */
.book {
  position: relative; width: min(78%, 340px); aspect-ratio: 3 / 4.1; margin: 0 auto;
  border-radius: 6px 14px 14px 6px;
  background: radial-gradient(120% 80% at 70% 10%, #3b2f86 0%, #1a1540 55%, #100d26 100%);
  box-shadow: -10px 0 0 -4px #0a0820 inset, 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(232,196,122,.25);
  transform: perspective(1200px) rotateY(-12deg) rotateX(2deg);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 12% 8% 10%; text-align: center; overflow: hidden;
}
.book::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232,196,122,.35); border-radius: 4px 10px 10px 4px; pointer-events: none; }
.book-moon {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7e0, #e8c47a 55%, #b48a3e 100%);
  box-shadow: 0 0 60px 10px rgba(246,221,160,.35);
  position: relative;
}
.book-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1d1747; transform: translateX(28%); }
.book-title { font-family: var(--serif); color: var(--gold-2); font-size: clamp(26px, 6vw, 40px); line-height: 1; font-weight: 600; }
.book-year { font-family: var(--serif); color: var(--gold); font-size: clamp(44px, 10vw, 68px); font-weight: 700; letter-spacing: .06em; line-height: 1; }
.book-img { width: min(78%, 340px); margin: 0 auto; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }

/* списки */
.pains, .checks, .mini-checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.pains li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pains li::before { content: "— "; color: var(--gold); }
.answer { font-size: 19px; border-left: 3px solid var(--gold); padding-left: 16px; margin: 28px 0 0; max-width: 720px; }
.checks li, .mini-checks li { padding-left: 32px; position: relative; }
.checks li::before, .mini-checks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.checks li { font-size: 18px; }
.mini-checks { margin-top: 20px; gap: 8px; font-size: 15px; color: var(--muted); }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.previews, .reviews { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 900px) { .previews, .reviews { grid-auto-columns: 32%; } }
.previews img, .review { scroll-snap-align: start; border-radius: var(--radius); }
.review { background: var(--card); border: 1px solid var(--line); padding: 20px; }
.review p { margin: 0 0 12px; }
.review b { color: var(--gold); }

/* оффер */
.offer {
  display: grid; gap: 28px; align-items: center;
  background: linear-gradient(160deg, rgba(143,124,247,.16), rgba(232,196,122,.08));
  border: 1px solid rgba(232,196,122,.3); border-radius: 28px; padding: 32px 22px;
}
@media (min-width: 900px) { .offer { grid-template-columns: .8fr 1.2fr; padding: 48px; gap: 48px; } }
.offer .book { width: min(60%, 260px); }
.offer-title { font-size: clamp(28px, 5vw, 40px); }
.deadline { color: var(--gold-2); font-weight: 600; margin: -6px 0 18px; }
.pay-methods { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 32px 20px 40px; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }

/* липкая кнопка */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(13,11,31,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky.show { transform: none; }
.sticky-price { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold-2); }
.sticky-price s { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; }
.sticky-price s:empty { display: none; }
@media (min-width: 900px) { .sticky { display: none; } }

/* cookie */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 90px; z-index: 30; max-width: 520px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
@media (min-width: 900px) { .cookie { bottom: 20px; } }

/* юр. страницы */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-family: var(--sans); font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.doc p, .doc li { color: #d9d2e6; font-size: 15px; }
.doc .note { background: rgba(232,196,122,.12); border: 1px solid rgba(232,196,122,.35); border-radius: 12px; padding: 12px 16px; color: var(--gold-2); }

/* toast */
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 40; background: #2b1d1d; color: #ffd9d9; border: 1px solid #7a3b3b; padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); }

/* мобильный первый экран: обложка компактнее, чтобы цена и кнопка были видны сразу */
@media (max-width: 899px) {
  .hero { gap: 18px; padding-top: 0; }
  .hero .book { width: 44%; max-width: 200px; padding: 10% 7% 8%; }
  .hero .book-title { font-size: 20px; }
  .hero .book-year { font-size: 34px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero .lead { font-size: 16px; margin-bottom: 18px; }
  .hero .price { font-size: 38px; }
  .hero .eyebrow { margin-bottom: 10px; }
}
/* компактный cookie-баннер */
.cookie { padding: 10px 12px; font-size: 12px; line-height: 1.4; }
.cookie .btn-small { padding: 8px 14px; font-size: 13px; flex-shrink: 0; }
@media (max-width: 899px) { .cookie { top: 10px; bottom: auto; } }
@media (max-width: 899px) { .offer { padding: 24px 18px; gap: 18px; } .offer .book { width: 34%; max-width: 150px; padding: 9% 6% 7%; } .offer .book-title { font-size: 15px; } .offer .book-year { font-size: 26px; } }
