@font-face { font-family: "Lora"; src: url("/static/lora.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/static/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --g: #2f6b3a; --gd: #1f4a28; --gl: #e8f2e3; --gm: #9cc48e;
  --cream: #f7f1e3; --paper: #fffdf8; --warm: #c56a2c;
  --ink: #1f241f; --muted: #5f6a5c; --line: #e3dccb;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--sans); padding-bottom: 92px; }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g); }
h1, h2, h3 { font-family: "Lora", Georgia, serif; color: var(--gd); line-height: 1.15; margin: 0; }
h1 { font-size: 36px; margin: 6px 0 12px; }
h2 { font-size: 27px; margin-bottom: 16px; }
h3 { font-size: 19px; }

.hero, .block, .foot { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.hero { padding-top: 22px; padding-bottom: 34px; text-align: center; }
.hero-cover { width: 56%; max-width: 230px; margin: 0 auto 18px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(31,74,40,.28), 0 3px 8px rgba(0,0,0,.08); transform: rotate(-2deg); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 14px 4px 4px; font-size: 14px; color: var(--muted); }
.chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); margin: 16px 0 0; }
.lead { font-size: 18px; color: #3a4237; margin: 0 0 22px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.btn { font: 600 17px var(--sans); color: #fff; background: var(--g); border: 0; border-radius: 14px; padding: 14px 26px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(47,107,58,.3); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); background: var(--gd); }
.btn:disabled { opacity: .7; }
.btn-big { width: 100%; padding: 17px 20px; font-size: 18px; }

.block { padding-top: 34px; padding-bottom: 34px; border-top: 1px solid var(--line); }
.sub { color: var(--muted); font-size: 15px; margin: -8px 0 14px; }
.pains, .checks { list-style: none; padding: 0; margin: 0 0 18px; }
.pains li, .checks li { position: relative; padding: 12px 14px 12px 46px; margin-bottom: 8px; background: var(--paper); border-radius: 14px; border: 1px solid var(--line); }
.pains li::before { content: "😔"; position: absolute; left: 14px; top: 11px; }
.checks li::before { content: "✅"; position: absolute; left: 14px; top: 11px; }
.bridge { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 19px; color: var(--gd); margin: 22px 0 0; }

.cards { display: grid; gap: 12px; }
.card { background: var(--paper); border-radius: 18px; padding: 18px 18px 16px; border: 1px solid var(--line); }
.card .num { font: 700 38px/1 "Lora", Georgia, serif; color: var(--g); float: left; margin: 0 12px 4px 0; }
.card h3 { padding-top: 6px; }
.card p { clear: both; margin: 10px 0 0; color: #3a4237; font-size: 15.5px; }
.aside { background: var(--gl); border-radius: 14px; padding: 14px 16px; margin: 14px 0 0; font-size: 15.5px; }

.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; }
.gallery img { flex: 0 0 62%; max-width: 260px; border-radius: 8px; scroll-snap-align: center; cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(0,0,0,.14); background: #fff; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 16px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--g); color: #fff; font: 700 17px/36px var(--sans); text-align: center; }

.author { display: flex; gap: 18px; align-items: flex-start; }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--g); }
.author h2 { margin-bottom: 8px; }
.author p { margin: 0; }

details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; padding: 0 16px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--g); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: #3a4237; }

.foot { padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.foot p { margin: 4px 0; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,253,248,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.buybar .price span { display: block; font: 700 24px/1.1 "Lora", Georgia, serif; color: var(--gd); }
.buybar .price small { color: var(--muted); font-size: 12.5px; }
.buybar .btn { padding: 14px 34px; }
@media (min-width: 620px) { .buybar { padding-left: calc(50% - 260px); padding-right: calc(50% - 260px); } }

.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,30,20,.5); }
.sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--paper);
  border-radius: 22px 22px 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-box h3 { font-size: 22px; padding-right: 30px; }
.sheet-box .sub { margin: 4px 0 18px; }
.sheet-box label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.sheet-box input[type=email] { width: 100%; font: 18px var(--sans); padding: 14px 14px; border: 1.5px solid #cfc7b4; border-radius: 12px; background: #fff; margin-bottom: 12px; }
.sheet-box input[type=email]:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(47,107,58,.15); }
.agree { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--muted); margin-bottom: 14px !important; }
.agree input { margin-top: 2px; }
.x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 30px; color: var(--muted); cursor: pointer; }
.err { background: #fbeee2; color: #8a3d0f; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }

.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 100%; border-radius: 6px; }
[hidden] { display: none !important; }

/* thanks page */
.thanks { max-width: 520px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.thanks .icon { font-size: 54px; margin-bottom: 8px; }
.thanks h1 { font-size: 30px; }
.thanks p { color: #3a4237; }
.thanks .btn { display: inline-block; text-decoration: none; margin-top: 10px; }
.thanks .box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; margin-top: 20px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--gl); border-top-color: var(--g); margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; font-size: 15.5px; }
.doc h1 { font-size: 28px; margin-bottom: 16px; }
.doc h2 { font-size: 20px; margin: 22px 0 8px; }

.hero-img { width: calc(100% + 40px); max-width: none; margin: -22px -20px 18px; box-shadow: 0 10px 28px rgba(31,74,40,.18); }
@media (min-width: 600px) { .hero-img { width: 100%; margin: 0 0 18px; border-radius: 12px; } }
.dots { list-style: none; padding: 0; margin: 0 0 18px; }
.dots li { position: relative; padding: 0 0 12px 22px; font-size: 17.5px; }
.dots li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* ===== светлая тема v2 ===== */
:root { --soft: #f6f3ec; --line: #ece7dd; }
body { background: #fff; }
.hero { padding-top: 0; }
.hero-img { margin-top: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.kicker { color: #6f8a6f; letter-spacing: .1em; font-weight: 600; margin-top: 18px; }
h1 { margin-top: 8px; }
.block { border-top: 0; padding-top: 26px; padding-bottom: 26px; }
.block + .block { border-top: 1px solid var(--line); }
.checks li { background: var(--soft); border: 0; border-radius: 16px; }
.author img { border-color: #fff; }
.foot { background: var(--soft); max-width: none; border-top: 0; margin-top: 10px; }
.buybar { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.05); }
.bridge { background: var(--soft); border-radius: 16px; padding: 16px 18px; font-size: 18px; }
.sheet-box { background: #fff; }
.thanks .box { background: var(--soft); border: 0; }
