:root {
  --brown: #3a2a22;
  --brown-2: #4c372c;
  --orange: #e8912d;
  --orange-dark: #c9741a;
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #2b211c;
  --muted: #7a6a60;
  --line: #eadfd1;
  --green: #3f8a5a;
  --red: #c0392b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(58, 42, 34, .12);
  --scallop: radial-gradient(circle at 10px -4px, transparent 12px, #000 12.5px) 0 0 / 20px 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
.hero-grid > *, .two-col > *, .checkout-grid > * { min-width: 0; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--brown); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.script { font-family: "Marck Script", cursive; font-weight: 400; }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 800; color: var(--orange-dark); margin-bottom: .6em;
}

/* Бутони */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 1.05rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 20px rgba(232, 145, 45, .35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-small { padding: 10px 20px; font-size: .9rem; background: var(--orange); color: #fff; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Промо лента */
.promo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange-dark));
  color: #fff; text-decoration: none; text-align: center;
  padding: 12px 16px; font-size: 1.02rem; font-weight: 700; line-height: 1.35;
}
.promo-bar strong { font-weight: 900; }
.promo-sep { margin: 0 10px; opacity: .7; }
.promo-tag {
  background: #fff; color: var(--orange-dark); border-radius: 999px;
  padding: 3px 12px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
}
.promo-cta { text-decoration: underline; text-underline-offset: 3px; font-weight: 900; white-space: nowrap; }
.promo-bar:hover .promo-cta { text-decoration-thickness: 2px; }

/* Горна лента */
.topbar {
  background: var(--brown); color: #f3e3cf; font-size: .82rem; font-weight: 700;
  text-align: center; padding: 8px 12px; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 4px 10px;
}
.topbar .dot { color: var(--orange); }

/* Hero */
.hero { background: var(--paper); padding: 48px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--orange); font-family: "Marck Script", cursive; font-weight: 400; font-size: 1.15em; letter-spacing: 0; }
.lead { font-size: 1.15rem; color: #4a3d35; }
.hero-media { position: relative; }
.hero-video {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px;
  box-shadow: var(--shadow); background: var(--brown);
}
.badge-200 {
  position: absolute; left: -18px; bottom: 28px; background: var(--orange); color: #fff;
  border-radius: 50%; width: 110px; height: 110px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: var(--shadow); transform: rotate(-8deg);
}
.badge-200 strong { font-size: 2rem; font-weight: 900; line-height: 1; }
.badge-200 span { font-size: .85rem; font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 8px; }
.price-tag { display: flex; flex-direction: column; line-height: 1.2; }
.price-tag .price { font-size: 1.7rem; font-weight: 900; color: var(--brown); }
.price-tag.big .price { font-size: 2.4rem; }
.price-tag .old-price { text-decoration: line-through; color: var(--muted); font-weight: 700; }
.price-tag small { color: var(--muted); font-weight: 700; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: .5em; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: .8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.big-ticks li { font-size: 1.1rem; margin-bottom: .9em; }

/* Секции */
.section { padding: 80px 0; position: relative; }
.scallop-top::before {
  content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 12px;
  background: inherit; -webkit-mask: var(--scallop); mask: var(--scallop);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse > :first-child { order: 2; }

.problem { background: var(--brown); color: #f4e9dc; }
.problem h2 { color: var(--orange); font-size: clamp(2.4rem, 5vw, 3.4rem); text-align: center; }
.problem .big { font-size: 1.3rem; text-align: center; }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.pain { background: var(--brown-2); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.pain span { font-size: 1.6rem; line-height: 1; }
.pain p { margin: 0; }
.turn { text-align: center; font-size: 1.3rem; margin: 0; }
.turn strong { color: var(--orange); }

.solution { background: var(--cream); overflow: hidden; }
.book-shot { border-radius: 20px; box-shadow: var(--shadow); transform: rotate(-2deg); }

.how { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.step { background: var(--cream); border-radius: var(--radius); padding: 28px; position: relative; }
.step b {
  display: flex; width: 48px; height: 48px; border-radius: 50%; background: var(--brown); color: var(--orange);
  align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 900; margin-bottom: 14px;
}
.step p { margin: 0; color: #4a3d35; }

.inside { background: var(--orange); }
.inside h2, .inside .kicker { color: #fff; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 40px; }
.chapter { background: var(--paper); border-radius: var(--radius); padding: 22px; }
.chapter h3 { color: var(--orange-dark); }
.chapter p { margin: 0; font-size: .95rem; color: #4a3d35; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--brown); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }

.sample { background: var(--cream); }
.recipe-card {
  background: var(--paper); border-radius: 20px; padding: 32px; box-shadow: var(--shadow);
  border-top: 10px solid var(--orange);
}
.recipe-title { font-size: 2.2rem; color: var(--orange-dark); margin: 0; line-height: 1.2; }
.ingredients { list-style: none; padding: 0; margin: 16px 0; }
.ingredients li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 8px 0; font-weight: 700; }
.ingredients span { color: var(--muted); font-weight: 600; }

.video-sec { background: var(--paper); }
.book-video { width: 100%; max-width: 420px; margin: 24px auto 0; border-radius: 20px; box-shadow: var(--shadow); background: var(--brown); }

.forwho { background: var(--brown); color: #f4e9dc; }
.forwho h2 { color: #fff; }

.offer { background: var(--cream); }
.offer-box {
  background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: 36px;
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  border: 3px dashed var(--orange);
}
.offer-box img { border-radius: 12px; box-shadow: var(--shadow); }
.guarantee { margin: 16px 0 0; font-size: .95rem; background: var(--cream); padding: 12px 16px; border-radius: 12px; }

.faq { background: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; list-style: none; position: relative; padding-right: 32px; color: var(--brown); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.6rem; color: var(--orange); font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: #4a3d35; }

/* Чекаут */
.checkout { background: var(--brown); }
.checkout-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.checkout-intro { color: #f4e9dc; position: sticky; top: 24px; }
.checkout-intro h2 { color: #fff; }
.summary { display: flex; gap: 16px; align-items: center; background: var(--brown-2); border-radius: var(--radius); padding: 14px; margin: 24px 0 16px; }
.summary img { border-radius: 8px; }
.summary b { display: block; color: #fff; }
.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.totals td:last-child { text-align: right; font-weight: 800; }
.totals .grand td { font-size: 1.3rem; color: var(--orange); border-bottom: 0; font-weight: 900; }

.order-form { background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; color: var(--brown); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: #fffdfa; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,145,45,.18);
}
.err { display: none; color: var(--red); font-weight: 700; font-size: .82rem; margin-top: 4px; }
.invalid input, .invalid select { border-color: var(--red); }
.invalid .err, .terms-err.show { display: block; }
.terms-err { margin: -6px 0 12px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty input { width: 64px; text-align: center; border: 0; border-radius: 0; padding: 10px 0; -moz-appearance: textfield; font-weight: 800; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 46px; height: 46px; border: 0; background: var(--cream); font-size: 1.3rem; font-weight: 900; cursor: pointer; color: var(--brown); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 8px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { font-size: 1.1rem; padding: 18px; }
.form-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--red); font-weight: 700; font-size: .92rem; }
.secure { margin: 12px 0 0; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Футър */
.footer { background: #2a1e18; color: #bfae9f; padding: 32px 0 96px; text-align: center; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 12px; }
.legal-links a { color: #f3e3cf; font-weight: 700; text-decoration: none; }
.legal-links a:hover { color: var(--orange); }
.home-link { margin: 0 0 6px; }
.home-link a { color: #bfae9f; text-decoration: underline; text-underline-offset: 3px; }
.home-link a:hover { color: var(--orange); }

/* Лепкав бутон на телефон */
.sticky-cta {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  background: var(--orange); color: #fff; text-align: center; font-weight: 900; text-decoration: none;
  padding: 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: opacity .2s ease, transform .2s ease;
}
.sticky-cta.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* Бисквитки */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin: 0 auto;
  background: var(--paper); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: .88rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }

/* Благодаря */
.thanks-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--brown); }
.thanks-card { background: var(--paper); border-radius: 24px; padding: 44px 32px; max-width: 560px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.thanks-card .icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.thanks-card .order-no { background: var(--cream); display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 800; }

/* Правни страници */
.legal { background: var(--paper); max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { font-size: 1rem; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 800; text-decoration: none; }
.legal table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.fill { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse > :first-child { order: 0; }
  .hero { padding-top: 28px; }
  .hero-media { max-width: 420px; margin: 0 auto; width: 100%; }
  .badge-200 { left: -6px; width: 92px; height: 92px; }
  .badge-200 strong { font-size: 1.6rem; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .checkout-intro { position: static; }
  .book-shot { width: 100%; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .pain-grid, .chapters { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .offer-box { grid-template-columns: 1fr; padding: 24px; text-align: left; }
  .offer-box img { max-width: 200px; margin: 0 auto; }
  .order-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr 100px; }
  .sticky-cta { display: block; }
  .cookie-bar { bottom: 84px; }
  .cta-row .btn { width: 100%; }
  .topbar { font-size: .74rem; }
  .promo-bar { font-size: .92rem; padding: 10px 14px; }
  .promo-sep { display: block; height: 0; overflow: hidden; margin: 0; }
}
