:root {
  --bg: #fbf7f0;
  --bg2: #f3e9da;
  --card: #ffffff;
  --ink: #2b2620;
  --muted: #6b6258;
  --green: #2f6b4f;
  --green-dark: #24543e;
  --red: #c0492f;
  --gold: #e3b45c;
  --line: #e8dfd2;
  --shadow: 0 10px 30px rgba(60, 40, 20, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 20px/1.55 "PT Sans", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: "PT Serif", Georgia, serif; line-height: 1.18; margin: 0 0 .4em; }
h1 { font-size: 36px; }
h2 { font-size: 29px; }
h3 { font-size: 24px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* --- Верхняя полоса --- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "PT Serif", Georgia, serif; font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.topbar-note { display: none; color: var(--muted); font-size: 16px; }

/* --- Кнопки --- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 0 var(--green-dark);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 0 #1b4030; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-dark); }
.btn-big { font-size: 22px; padding: 18px 30px; }
.btn-shine::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.link-more { font-weight: 700; text-decoration: none; padding: 10px 4px; }

/* --- Шапка --- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #fff3e2 0%, var(--bg2) 45%, var(--bg) 100%);
  padding: 34px 0 40px;
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hero-text { text-align: center; }
.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}
.lead { font-size: 21px; color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; }

/* веер обложек */
.fan { position: relative; height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
.fan img {
  position: absolute; left: 50%; bottom: 0;
  width: 46%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform-origin: 50% 100%;
}
.fan-1 { transform: translateX(-50%) rotate(-16deg) translateX(-34%); }
.fan-2 { transform: translateX(-50%) rotate(-5deg) translateX(-11%); }
.fan-3 { transform: translateX(-50%) rotate(6deg) translateX(12%); }
.fan-4 { transform: translateX(-50%) rotate(16deg) translateX(34%); }
.fan img { animation: floaty 6s ease-in-out infinite; }
.fan .fan-2 { animation-delay: -1.5s; }
.fan .fan-3 { animation-delay: -3s; }
.fan .fan-4 { animation-delay: -4.5s; }
/* первый экран: появляется сразу, без ожидания скрипта */
.ha { animation: fadeUp .6s ease both; }
.ha2 { animation-delay: .08s; }
.ha3 { animation-delay: .16s; }
.ha4 { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { margin-bottom: 8px; } }

/* --- Полоса доверия --- */
.trust { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-item { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: center; }
.trust-item b { font-size: 18px; line-height: 1.2; }
.trust-item small { grid-column: 2; color: var(--muted); font-size: 15px; line-height: 1.3; }
.ti { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: #e8f1ec; display: grid; place-items: center; }
.ti svg { width: 24px; height: 24px; fill: var(--green); stroke: var(--green); }

/* --- Комплект --- */
.bundle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: var(--card);
  border: 2px solid var(--green);
  border-radius: 22px;
  padding: 22px 18px;
  margin: 34px 0 40px;
  box-shadow: var(--shadow);
}
.bundle-fan { position: relative; height: 210px; max-width: 320px; width: 100%; margin: 0 auto; }
.bundle-fan img { position: absolute; top: 0; width: 44%; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: transform .4s ease; }
.bf-1 { left: 0; transform: rotate(-8deg); }
.bf-2 { left: 18%; transform: rotate(-3deg); top: 6px; }
.bf-3 { left: 37%; transform: rotate(3deg); top: 6px; }
.bf-4 { left: 56%; transform: rotate(8deg); }
.bundle:hover .bf-1 { transform: rotate(-12deg) translateX(-8px); }
.bundle:hover .bf-4 { transform: rotate(12deg) translateX(8px); }
.bundle-list { list-style: none; padding: 0; margin: 6px 0 14px; }
.bundle-list li { margin-bottom: 6px; }
.check { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 15px; margin-right: 4px; }
.sub { color: var(--muted); margin: 0 0 12px; }
.price { margin: 8px 0 4px; }
.price .now { font-size: 36px; font-weight: 700; }
.price .old { font-size: 22px; color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.save { color: var(--red); font-weight: 700; margin: 0 0 16px; }
.hint { color: var(--muted); margin: 14px 0 0; font-size: 18px; }

.tag {
  display: inline-block;
  background: #efe6d8;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
.tag-hot { background: var(--red); color: #fff; }

/* --- Карточки --- */
.section-title { text-align: center; margin: 12px 0 22px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cover-wrap { background: linear-gradient(180deg, var(--bg2), #fff); padding: 22px 0 6px; }
.card .cover { width: 56%; max-width: 230px; margin: 0 auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: transform .35s ease; }
.card:hover .cover { transform: rotate(-2deg) scale(1.03); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.points { padding-left: 22px; margin: 0 0 16px; }
.points li { margin-bottom: 6px; }
.card-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 14px; }
.price-now { font-size: 30px; font-weight: 700; }

/* --- Пример страницы --- */
.sample { display: grid; gap: 24px; align-items: center; margin: 54px 0 20px; }
.sample-list { padding-left: 22px; }
.sample-list li { margin-bottom: 8px; }
.page-mock {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  transform: rotate(1.5deg);
  font-size: 17px;
}
.pm-photo { height: 130px; border-radius: 10px; background: linear-gradient(135deg, #f0c9a0, #e59d6b 60%, #c96e4a); display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 15px; margin-bottom: 12px; }
.pm-head { display: flex; flex-direction: column; margin-bottom: 10px; }
.pm-head b { font-family: "PT Serif", Georgia, serif; font-size: 22px; }
.pm-time { color: var(--muted); font-size: 15px; }
.pm-cols { display: grid; grid-template-columns: 40% 1fr; gap: 14px; }
.pm-ing b { display: block; font-size: 15px; margin-bottom: 6px; }
.pm-cols i { display: block; height: 8px; border-radius: 4px; background: #ece4d8; margin-bottom: 8px; }
.pm-ing i:nth-child(odd) { width: 80%; }
.pm-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.pm-steps li { position: relative; padding-left: 30px; margin-bottom: 10px; counter-increment: s; }
.pm-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pm-steps i:last-child { width: 70%; }

/* --- Шаги --- */
.steps { margin: 54px 0; }
.steps-row { display: grid; gap: 18px; counter-reset: st; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; text-align: center; }
.step b { display: block; font-size: 22px; margin: 8px 0 4px; }
.step p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; font-family: "PT Serif", Georgia, serif; font-size: 28px; font-weight: 700; box-shadow: 0 0 0 8px #e8f1ec; }

/* --- Вопросы --- */
.faq { margin: 44px 0 60px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -3px; font-size: 28px; color: var(--green); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; }

/* --- Липкая кнопка (телефон) --- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  font-size: 18px;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.sticky-buy.show { transform: translateY(0); }
.sticky-buy .btn { padding: 12px 22px; font-size: 19px; }

/* --- Служебные страницы --- */
.msg { padding: 48px 16px; text-align: center; }
.downloads { display: grid; gap: 14px; max-width: 560px; margin: 24px auto; }
.btn-dl { display: block; }
.note { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.doc { padding: 32px 16px 48px; }
.doc h2 { font-size: 24px; margin-top: 28px; }
.spinner { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid #e8f1ec; border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { border-top: 1px solid var(--line); padding: 26px 0 90px; color: var(--muted); font-size: 16px; text-align: center; }
.foot p { margin: 4px 0; }

/* --- Появление при прокрутке --- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  h1 { font-size: 48px; }
  .topbar-note { display: inline; }
  .hero { padding: 56px 0 64px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; }
  .hero-text { text-align: left; }
  .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .fan { height: 360px; }
  .trust-in { grid-template-columns: repeat(4, 1fr); }
  .bundle { grid-template-columns: 340px 1fr; align-items: center; padding: 30px; }
  .bundle-fan { height: 250px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .sample { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .sticky-buy { display: none; }
  .foot { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .snow { display: none; }
}
