/* tonysapkowski.ru / v2 — самостоятельный дизайн: тёплый бордовый + золото,
   крупные акценты, липкий CTA, фото как структура, а не декор. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FBF1E6;
  --bg-deep: #2B1119;
  --card: #FFFFFF;
  --ink: #2A1A17;
  --ink-soft: #6B5049;
  --line: #EBD9CC;
  --wine: #7A1F3D;
  --wine-deep: #591629;
  --wine-soft: #F0D4DD;
  --gold: #B8863F;
  --gold-soft: #F1E2C4;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --body: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  --quote: clamp(1.35rem, 1.2rem + 0.8vw, 1.9rem);
  --hero: clamp(2.4rem, 1.7rem + 3vw, 4rem);

  --gap: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
  --section: clamp(3rem, 2.4rem + 2.4vw, 5.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- герой с фото ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,17,25,0.15) 0%, rgba(43,17,25,0.55) 55%, rgba(43,17,25,0.92) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; padding: 3rem 1.5rem 2.6rem; width: 100%; max-width: 700px; margin: 0 auto; color: #fff; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1rem;
}
.hero .eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: var(--hero);
  line-height: 1.08; margin: 0 0 0.9rem; max-width: 15ch;
}
.hero h1 b { color: var(--gold-soft); font-weight: 800; }
.hero .lede { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 42ch; }
.hero .lede b { color: #fff; }

/* ---------- превью-блок "за 90 секунд" ---------- */
.promise-box {
  margin: -2.6rem auto 0; position: relative; z-index: 3;
  max-width: 620px; background: var(--card); border-radius: 20px;
  padding: 1.6rem 1.7rem; box-shadow: 0 30px 60px -30px rgba(43,17,25,0.4);
}
.promise-box .cap { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); margin-bottom: 0.8rem; }
.promise-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.promise-box li { position: relative; padding-left: 1.6em; font-weight: 600; font-size: 0.96rem; }
.promise-box li::before { content: "♥"; position: absolute; left: 0; top: -0.05em; color: var(--wine); font-size: 0.95em; }

/* ---------- статья ---------- */
.article { padding: var(--section) 0 0; }
.article .wrap { max-width: 640px; }

.body-p { margin: 0 0 1.15em; color: var(--ink); }
.body-p:last-child { margin-bottom: 0; }
.body-p b { font-weight: 700; color: var(--wine-deep); }
.body-p i { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.body-p u { text-decoration: none; background: linear-gradient(to bottom, transparent 62%, var(--gold-soft) 62%); }

/* инлайн-цена прямо в абзаце: выгода читается по ходу текста, а не только
   в карточке цены ниже */
.price-strike {
  text-decoration: line-through;
  text-decoration-color: var(--wine);
  text-decoration-thickness: 2px;
  color: var(--ink-soft);
  font-weight: 700;
}
.price-inline {
  font-weight: 800; color: var(--wine);
  background: linear-gradient(to bottom, transparent 60%, var(--gold-soft) 60%);
}

/* ---------- цитаты — крупные, с декоративной кавычкой ---------- */
.pull {
  position: relative;
  font-family: var(--serif); font-weight: 700; font-style: normal;
  font-size: var(--quote); line-height: 1.22; letter-spacing: -0.01em;
  color: var(--wine-deep);
  margin: var(--section) 0;
  padding-left: 0.1em;
}
.pull::before {
  content: "“";
  display: block;
  font-family: var(--serif);
  font-size: 3.2em;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 0.28em;
  opacity: 0.85;
}
.pull p { margin: 0 0 0.3em; }
.pull p:last-child { margin-bottom: 0; }
.pull b { color: var(--wine); font-weight: 800; }
.pull i { font-style: italic; }
.pull u { text-decoration: none; background: linear-gradient(to bottom, transparent 58%, var(--gold-soft) 58%); }

.pull.center { text-align: center; max-width: 32ch; margin-left: auto; margin-right: auto; }
.pull.center::before { margin-left: auto; margin-right: auto; }

/* две цитаты подряд — не дублируем декоративную кавычку и не разносим
   их огромным отступом, это одна смысловая пара, а не два разных момента */
.pull + .pull { margin-top: 0.35em; }
.pull + .pull::before { display: none; }

/* ---------- чек-лист ---------- */
ul.checklist { list-style: none; margin: 1.5em 0; padding: 1.3rem 1.4rem; background: var(--wine-soft); border-radius: 16px; display: flex; flex-direction: column; gap: 0.8em; }
ul.checklist li { position: relative; padding-left: 1.8em; color: var(--wine-deep); font-weight: 500; }
ul.checklist li::before { content: "✓"; position: absolute; left: 0; top: -0.02em; font-weight: 800; color: var(--wine); }
ul.checklist li b { color: var(--wine-deep); font-weight: 800; }

ul.tags { list-style: none; margin: 1.5em 0; padding: 1.2em 1.4em; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 0.6em; }
ul.tags li { font-weight: 700; color: var(--wine); font-size: 0.98rem; }

/* ---------- плашки ---------- */
.callout-card {
  background: var(--bg-deep);
  color: #fff;
  border-radius: 20px;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  margin: var(--section) 0;
  box-shadow: 0 30px 60px -32px rgba(43,17,25,0.55);
}
.callout-card .pull { color: var(--gold-soft); margin: 0 0 0.5em; }
.callout-card .pull::before { color: var(--gold); }
.callout-card .pull + .pull::before { display: none; }
.callout-card .pull b { color: #fff; }
.callout-card .body-p:last-child { margin-bottom: 0; }

/* книга — главный товар страницы, отдельный крупный блок, а не мелкая
   картинка внутри цитаты */
.product-figure {
  margin: 1.6rem 0 0;
  text-align: center;
}
.product-figure img {
  max-width: min(85%, 420px);
  margin: 0 auto;
  filter: drop-shadow(0 25px 50px -16px rgba(0,0,0,0.6));
}
.product-figure figcaption {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

/* ---------- кнопки ---------- */
.cta-wrap { text-align: center; margin: var(--section) 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 800; font-size: 1.05rem;
  color: #fff; background: var(--wine);
  padding: 1.05em 2.4em; border-radius: 999px; text-decoration: none;
  box-shadow: 0 14px 34px -14px rgba(122,31,61,0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--wine-deep); }
.cta-note { margin-top: 0.9em; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- фото на всю ширину текстовой колонки ---------- */
.wide-figure { margin: var(--section) 0; }
.wide-figure img { width: 100%; border-radius: 20px; }

/* ---------- карточки сигналов — фото+заголовок в шапке, текст во всю ширину
   (как было в оригинале на Tilda) ---------- */
.signals { margin: var(--section) 0; display: flex; flex-direction: column; gap: 1rem; }
.signal-card {
  background: var(--card); border-radius: 18px; padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
}
.signal-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.signal-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); flex-shrink: 0; }
.signal-head h3 { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--wine-deep); margin: 0; }
.signal-card p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.signal-card b { color: var(--ink); }
.signal-card i { font-family: var(--serif); color: var(--ink-soft); }

/* ---------- секция оффера — от цены и до кнопки идёт другой, белый фон,
   чтобы читательница физически чувствовала смену "статья → предложение" ---------- */
.offer-section {
  margin: var(--section) calc(50% - 50vw) 0;
  padding: var(--section) 1.5rem calc(var(--section) * 0.6);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wrap-inner { max-width: 640px; margin: 0 auto; }

.offer-kicker {
  text-align: center; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 1.4rem;
}

/* ---------- цена — понятная карточка, видно скидку и откуда она ---------- */
.price-card {
  position: relative;
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #fff; text-align: center;
  border-radius: 24px;
  padding: clamp(2.2rem, 1.8rem + 1.6vw, 3rem) 1.5rem 2rem;
  box-shadow: 0 30px 60px -30px rgba(89,22,41,0.5);
}
.discount-badge {
  font-variant-numeric: lining-nums;
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background: var(--gold); color: var(--wine-deep);
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); line-height: 1;
  letter-spacing: -0.02em;
  padding: 0.42em 0.75em; border-radius: 16px;
  border: 3px solid #fff;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45);
}
.price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 0.7rem;
  flex-wrap: wrap; margin-top: 1rem;
}
.price-old {
  font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums;
  font-size: clamp(1.7rem, 1.45rem + 1.1vw, 2.3rem);
  color: rgba(255,255,255,0.72);
  text-decoration: line-through;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
}
.price-arrow { color: var(--gold-soft); font-size: 1.6rem; }
.price-new { font-family: var(--serif); font-weight: 800; font-variant-numeric: lining-nums; font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); color: var(--gold-soft); }
.price-sub { margin: 1rem 0 0; color: rgba(255,255,255,0.78); font-size: 0.9rem; }

/* ---------- гарантия — парадный блок: это одно из главных обещаний
   страницы, поэтому слово читается издалека ---------- */
.guarantee {
  position: relative;
  margin: clamp(2.4rem, 2rem + 1.4vw, 3.4rem) auto clamp(2rem, 1.7rem + 1.2vw, 2.8rem);
  max-width: 560px;
  text-align: center;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--gold-soft) 100%);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem) clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  box-shadow: 0 26px 55px -30px rgba(89,22,41,0.45);
}
.guarantee::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(184,134,63,0.45);
  border-radius: 16px;
  pointer-events: none;
}
.guarantee-icon {
  width: clamp(46px, 40px + 1.4vw, 58px); height: auto;
  margin: 0 auto 0.7rem; color: var(--wine); display: block;
}
.guarantee-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.75rem, 1.45rem + 1.6vw, 2.5rem);
  line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 0.35rem;
}
.guarantee-term {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--wine-deep); margin-bottom: 0.55rem;
}
.guarantee-desc {
  margin: 0 auto; max-width: 46ch;
  font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft);
}

/* ---------- финальный блок-оффер: книга, польза, цена, таймер, кнопка ---------- */
.final-offer {
  margin: var(--section) auto 0; max-width: 620px;
  text-align: center;
  background: linear-gradient(165deg, var(--bg-deep) 0%, #3E1A24 100%);
  color: #fff;
  border-radius: 28px;
  padding: clamp(2.2rem, 1.8rem + 1.8vw, 3.4rem) clamp(1.4rem, 1rem + 1.8vw, 2.8rem) clamp(2rem, 1.6rem + 1.6vw, 3rem);
  box-shadow: 0 40px 80px -40px rgba(43,17,25,0.7);
}
.final-kicker {
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.final-book { margin: 0 0 1.6rem; }
.final-book img {
  max-width: min(72%, 320px); margin: 0 auto;
  filter: drop-shadow(0 26px 46px -18px rgba(0,0,0,0.75));
}
.final-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2; color: #fff; margin: 0 0 1.4rem;
}
.final-list {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.7rem;
  text-align: left; max-width: 30rem; margin-inline: auto;
}
.final-list li {
  position: relative; padding-left: 1.9em;
  font-size: 0.98rem; color: rgba(255,255,255,0.86);
}
.final-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  font-weight: 800; color: var(--gold);
}
.final-price { position: relative; margin-bottom: 1.6rem; }
.final-badge {
  display: inline-block; font-variant-numeric: lining-nums;
  background: var(--gold); color: var(--wine-deep);
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem); line-height: 1;
  padding: 0.35em 0.7em; border-radius: 14px;
  transform: rotate(-3deg);
  margin-bottom: 0.9rem;
}
.final-price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 0.7rem; flex-wrap: wrap;
}
.final-old {
  font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums;
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  color: rgba(255,255,255,0.66);
  text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 3px;
}
.final-arrow { color: var(--gold-soft); font-size: 1.5rem; }
.final-new {
  font-family: var(--serif); font-weight: 800; font-variant-numeric: lining-nums;
  font-size: clamp(2.6rem, 2.1rem + 2.4vw, 3.6rem); line-height: 1;
  color: var(--gold-soft);
}
.final-timer {
  display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(241,226,196,0.28);
  border-radius: 999px;
  padding: 0.6em 1.3em; margin-bottom: 1.8rem;
}
.final-timer-cap { font-size: 0.85rem; color: rgba(255,255,255,0.72); }
.final-timer-clock {
  font-family: var(--sans); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: 1.25rem; color: var(--gold-soft); letter-spacing: 0.02em;
}
.final-timer.is-expired { opacity: 0.6; }
.final-timer.is-expired .final-timer-clock { color: rgba(255,255,255,0.6); }
.btn-lg { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); padding: 1.15em 2.2em; width: 100%; max-width: 26rem; justify-content: center; }
.final-offer .btn { background: var(--gold); color: var(--wine-deep); box-shadow: 0 18px 40px -16px rgba(184,134,63,0.7); }
.final-offer .btn:hover { background: #C99A52; }
.final-offer .cta-note { color: rgba(255,255,255,0.62); }

/* ---------- футер ---------- */
footer.site-footer {
  padding: var(--section) 0 5rem; text-align: center;
  color: var(--ink-soft); font-size: 0.82rem; border-top: 1px solid var(--line); margin-top: var(--section);
}
footer.site-footer .links { margin-bottom: 0.9rem; }
footer.site-footer a { color: var(--wine); text-decoration: none; margin: 0 0.6em; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer .legal { line-height: 1.6; max-width: 46ch; margin: 0 auto; }

/* ---------- юр. страницы ---------- */
.legal-page { padding: var(--section) 0; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); margin-bottom: 1.2rem; }
.legal-page h2 { font-family: var(--sans); font-size: 1.05rem; color: var(--wine); margin: 2em 0 0.6em; }
.legal-page p { margin: 0 0 1em; color: var(--ink-soft); font-size: 0.95rem; }
.legal-page a.back { display: inline-block; margin-bottom: 2rem; color: var(--wine); text-decoration: none; font-weight: 700; }
