/* ============================================================
   ОСНОВНЫЕ СТИЛИ
   Цвета, шрифты и отступы меняются в :root (переменные ниже)
   ============================================================ */

:root {
  /* Палитра: природная — шалфей, тёплый лён, терракота */
  --c-bg: #f6f3ec;
  --c-surface: #ffffff;
  --c-tint: #ece7db;
  --c-text: #1f2a24;
  --c-muted: #5c6a61;
  --c-line: #dcd5c6;

  --c-primary: #2f5d46;
  --c-primary-hover: #244a37;
  --c-primary-soft: #dfe9e2;
  --c-accent: #c4703f;
  --c-accent-soft: #f4e2d5;
  --c-on-primary: #ffffff;

  /* Шрифты */
  --f-head: "Lora", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Размеры текста (адаптивные) */
  --fs-h1: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.85rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;

  /* Отступы */
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --space-gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --container: 1200px;

  /* Формы */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 36, .05), 0 2px 8px rgba(31, 42, 36, .04);
  --shadow: 0 2px 6px rgba(31, 42, 36, .04), 0 12px 32px rgba(31, 42, 36, .08);
  --shadow-lg: 0 24px 60px rgba(31, 42, 36, .16);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .25s var(--ease);
  --header-h: 72px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 400 var(--fs-body)/1.65 var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
s { text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: .75rem 1rem; background: var(--c-primary); color: #fff; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--space-gutter) * 2); margin: 0 auto; padding: 0 var(--space-gutter); }
.container--narrow { max-width: calc(820px + var(--space-gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-text);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em;
  font: 600 1rem/1.2 var(--f-body); letter-spacing: .01em; text-align: center; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; user-select: none;
  transition: transform var(--t), background-color var(--t), box-shadow var(--t), border-color var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform var(--t); }
.btn:hover .icon[data-arrow], .btn:hover use[href="#i-arrow-right"] { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--c-primary); --btn-fg: var(--c-on-primary);
  box-shadow: 0 8px 20px -6px rgba(47, 93, 70, .55);
}
.btn--primary:hover { --btn-bg: var(--c-primary-hover); box-shadow: 0 14px 28px -8px rgba(47, 93, 70, .6); }

.btn--secondary { --btn-bg: var(--c-surface); --btn-fg: var(--c-text); border-color: var(--c-line); }
.btn--secondary:hover { border-color: var(--c-text); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-text); border-color: var(--c-line); }
.btn--ghost:hover { --btn-bg: var(--c-surface); border-color: var(--c-surface); box-shadow: var(--shadow-sm); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { --btn-bg: var(--c-primary); --btn-fg: #fff; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--c-primary); }
.btn--light:hover { box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .3); }

.btn--sm { min-height: 42px; padding: .55em 1.15em; font-size: .925rem; }
.btn--lg { min-height: 56px; padding: .95em 1.8em; font-size: 1.05rem; }
.btn--xl { min-height: 64px; padding: 1em 2em; font-size: 1.15rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.header.is-scrolled { border-color: var(--c-line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-text); text-decoration: none; font-weight: 700; }
.logo:hover { color: var(--c-text); }
.logo__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--c-primary); color: #fff;
}
.logo__text { font-family: var(--f-head); font-size: 1.15rem; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  padding: .5rem .85rem; border-radius: var(--radius-pill);
  color: var(--c-muted); font-weight: 500; text-decoration: none; transition: color var(--t), background-color var(--t);
}
.nav__link:hover { color: var(--c-text); background: rgba(31, 42, 36, .05); }
.nav__cta { margin-left: .6rem; }

.burger { display: none; }

/* ---------- Общие элементы секций ---------- */
.section { padding: var(--space-section) 0; position: relative; }
.section--tight { padding: calc(var(--space-section) * .6) 0; }
.section--tint { background: var(--c-tint); }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.section__kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-accent);
}
.section__title { font-family: var(--f-head); font-size: var(--fs-h2); letter-spacing: -.01em; text-wrap: balance; }

.grid { display: grid; gap: 1.25rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--benefits { grid-template-columns: repeat(6, 1fr); }
.grid--benefits > :nth-child(-n+3) { grid-column: span 2; }
.grid--benefits > :nth-child(n+4) { grid-column: span 3; }

.card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__title { font-size: var(--fs-h3); margin-bottom: .6rem; line-height: 1.3; }
.card__text { color: var(--c-muted); }
.card__num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--f-head); font-size: 1.6rem; font-weight: 600; color: var(--c-line);
}

.icon-badge {
  width: 48px; height: 48px; display: grid; place-items: center;
  margin-bottom: 1.25rem; border-radius: 14px;
  background: var(--c-primary-soft); color: var(--c-primary);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-badge--lg .icon { width: 26px; height: 26px; }
.icon-badge--light { background: rgba(255, 255, 255, .15); color: #fff; margin: 0; }

.check-list { list-style: none; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.75rem; color: var(--c-muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--c-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat;
}
.check-list--lg { gap: .8rem; }
.check-list--lg li { color: var(--c-text); }

.center-cta { display: flex; justify-content: center; margin-top: 3rem; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 1rem + 5vw, 6rem) 0 var(--space-section); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 32rem at 85% 20%, rgba(47, 93, 70, .13), transparent 70%),
    radial-gradient(30rem 24rem at 10% 90%, rgba(196, 112, 63, .1), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }

.hero__title {
  font-family: var(--f-head); font-size: var(--fs-h1); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.08; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--c-primary); }
.hero__lead { margin-top: 1.5rem; max-width: 34rem; font-size: var(--fs-lead); color: var(--c-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2.25rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500; color: var(--c-muted); }
.hero__meta .icon { color: var(--c-primary); }

.hero__visual { position: relative; display: flex; justify-content: center; }

.book { position: relative; width: min(100%, 380px); perspective: 1600px; }
.book::before {
  content: ""; position: absolute; inset: 8% -12% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 93, 70, .28), transparent);
  filter: blur(20px);
}
.book__cover {
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover;
  border-radius: 4px 14px 14px 4px;
  box-shadow: inset 4px 0 6px rgba(0, 0, 0, .1), var(--shadow-lg), -8px 0 0 -2px #d9d1bf;
  transform: rotateY(-14deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.book:hover .book__cover { transform: rotateY(-4deg) rotateX(0); }

.hero__badge {
  position: absolute; left: 0; bottom: 12%;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: .85rem 1.2rem; border-radius: var(--radius);
  background: var(--c-surface); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero__badge-price { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.hero__badge-old { font-size: .9rem; color: var(--c-muted); }

@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- 2. Для кого ---------- */
.audience-card { padding-top: 2rem; }

/* ---------- 3. Слайдер (содержание + отзывы) ---------- */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
  gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .5rem .25rem 1.5rem; margin: -.5rem -.25rem 0;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__track:focus-visible { outline-offset: -3px; }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .5rem; }
.slider__btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1.5px solid var(--c-line); border-radius: 50%;
  background: var(--c-surface); color: var(--c-text); cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t), opacity var(--t);
}
.slider__btn:hover:not(:disabled) { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.slider__btn:disabled { opacity: .4; cursor: default; }
.slider__counter { min-width: 4.5rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-muted); }

.chapter-card {
  display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--radius);
  background: var(--c-surface); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chapter-card__num {
  align-self: flex-start; margin-bottom: 1.25rem; padding: .35rem .85rem;
  border-radius: var(--radius-pill); background: var(--c-accent-soft); color: var(--c-accent);
  font-size: var(--fs-small); font-weight: 700;
}
.chapter-card__title { font-family: var(--f-head); font-size: 1.4rem; margin-bottom: 1.25rem; }

/* ---------- 4. Преимущества ---------- */
.benefit .card__title { font-size: 1.15rem; }

/* ---------- 5. Покупка ---------- */
.section--buy {
  background:
    radial-gradient(40rem 26rem at 50% 0%, rgba(47, 93, 70, .1), transparent 70%),
    var(--c-bg);
}
.offer {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
  max-width: 1040px; margin: 0 auto;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: var(--c-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid rgba(220, 213, 198, .6);
}
.offer__visual {
  display: flex; justify-content: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius); background: var(--c-tint);
}
.offer__cover {
  width: min(100%, 300px); aspect-ratio: 5 / 7; object-fit: cover;
  border-radius: 3px 10px 10px 3px; box-shadow: var(--shadow-lg);
}
.offer__label {
  display: inline-block; margin-bottom: .9rem; padding: .35rem .85rem;
  border-radius: var(--radius-pill); background: var(--c-primary-soft); color: var(--c-primary);
  font-size: var(--fs-small); font-weight: 700;
}
.offer__title { font-family: var(--f-head); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.offer__desc { margin: .85rem 0 1.5rem; color: var(--c-muted); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin: 2rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--c-line); }
.price__current { font-family: var(--f-head); font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem); font-weight: 700; line-height: 1; color: var(--c-text); }
.price__old { font-size: 1.25rem; color: var(--c-muted); }
.price__discount {
  align-self: center; padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: var(--c-accent); color: #fff; font-size: .875rem; font-weight: 700;
}

.pay { display: grid; gap: .75rem; }
.pay__sum { opacity: .85; font-weight: 500; }
.pay__note { display: flex; gap: .5rem; margin-top: .5rem; font-size: var(--fs-small); color: var(--c-muted); }
.pay__note .icon { margin-top: .15em; color: var(--c-primary); }

.delivery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 1040px; margin: 2rem auto 0;
}
.delivery__item { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255, 255, 255, .55); border: 1px solid var(--c-line); }
.delivery__item p { font-size: .95rem; color: var(--c-muted); }
.delivery__step {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700;
}
.delivery__title { font-size: 1.05rem; margin-bottom: .35rem; }

/* ---------- 6. Отзывы ---------- */
.demo-note {
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: var(--c-accent-soft); color: var(--c-accent); font-size: var(--fs-small); font-weight: 600;
}
.review-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  margin: 0; padding: 2rem; border-radius: var(--radius);
  background: var(--c-surface); box-shadow: var(--shadow-sm);
}
.review-card__text { margin: 0; font-size: 1.05rem; line-height: 1.65; }
.review-card__author { display: flex; align-items: center; gap: .85rem; }
.review-card__author strong { display: block; }
.review-card__author small { color: var(--c-muted); font-size: var(--fs-small); }
.avatar {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary);
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem;
}
.stars { color: #d19a2e; letter-spacing: .15em; }

/* ---------- 7. FAQ ---------- */
.faq { display: grid; gap: .85rem; }
.faq__item {
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t);
}
.faq__item[open] { border-color: var(--c-line); box-shadow: var(--shadow); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.075rem; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-tint); color: var(--c-primary);
  transition: transform var(--t), background-color var(--t), color var(--t);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq__a { padding: 0 1.5rem 1.4rem; color: var(--c-muted); overflow: hidden; }
.faq__a p + p { margin-top: .75rem; }

/* ---------- 8. Поддержка ---------- */
.support {
  display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-primary), #3d7259);
  color: #fff; box-shadow: var(--shadow);
}
.support__text { flex: 1 1 320px; }
.support__title { font-family: var(--f-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: .4rem; }
.support__text p { opacity: .85; }

/* ---------- 9. Footer ---------- */
.footer { padding: 4rem 0 2rem; background: #1f2a24; color: rgba(255, 255, 255, .72); }
.footer .logo, .footer .logo:hover { color: #fff; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer__legal { margin-top: 1.25rem; font-size: var(--fs-small); line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__title { margin-bottom: .4rem; font-family: var(--f-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer__col a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-small); color: rgba(255, 255, 255, .5); }

/* ---------- Мобильная панель покупки ---------- */
.sticky-buy { display: none; }

/* ---------- Диалоги ---------- */
.dialog {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(31, 42, 36, .5); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in .3s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog__inner { position: relative; padding: 2.25rem; }
.dialog__close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--c-tint); cursor: pointer; transition: background-color var(--t);
}
.dialog__close:hover { background: var(--c-line); }
.dialog__title { font-family: var(--f-head); font-size: 1.6rem; margin: 0 3rem 1.5rem 0; }

.toc { list-style: none; counter-reset: toc; margin-bottom: 1.75rem; }
.toc li { counter-increment: toc; display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--c-tint); }
.toc li::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--c-accent); font-variant-numeric: tabular-nums; }

.checkout__text { margin: -.75rem 0 1.5rem; color: var(--c-muted); }
.field { display: block; margin-bottom: 1rem; }
.field__label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .95rem; }
.field__input {
  width: 100%; min-height: 54px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--c-text);
  border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-bg);
  transition: border-color var(--t), box-shadow var(--t);
}
.field__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.consent { display: flex; gap: .7rem; margin-bottom: 1.25rem; font-size: var(--fs-small); color: var(--c-muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--c-primary); }
.checkout__error { margin-bottom: 1rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: #fbe7e2; color: #9b3220; font-size: var(--fs-small); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 300;
  width: max-content; max-width: calc(100% - 2rem);
  padding: .9rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--c-text); color: #fff; box-shadow: var(--shadow-lg); font-size: .95rem;
  transform: translate(-50%, 0); animation: toast-in .3s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Анимации появления ---------- */
/* Первый экран анимируется чистым CSS — контент виден сразу, без ожидания JS */
[data-hero] { animation: hero-in .8s var(--ease) both; }
[data-hero]:nth-child(2) { animation-delay: .08s; }
[data-hero]:nth-child(3) { animation-delay: .16s; }
[data-hero]:nth-child(4) { animation-delay: .24s; }
[data-hero]:nth-child(5) { animation-delay: .32s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } }
.nowrap { white-space: nowrap; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slider__track { scroll-behavior: auto; }
}

/* ---------- Юридические и служебные страницы ---------- */
.page { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 var(--space-section); }
.page__back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }
.page h1 { font-family: var(--f-head); font-size: var(--fs-h2); margin-bottom: .75rem; }
.page__meta { color: var(--c-muted); margin-bottom: 2.5rem; }
.prose { padding: clamp(1.5rem, 1rem + 3vw, 3rem); background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.prose h2 { font-family: var(--f-head); font-size: 1.35rem; margin: 2.25rem 0 .85rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a463f; }
.prose p + p { margin-top: .85rem; }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: .4rem; margin: .75rem 0; }
.page mark { background: var(--c-accent-soft); color: var(--c-accent); padding: 0 .25em; border-radius: 4px; }
.notice { padding: 1rem 1.25rem; margin-bottom: 2rem; border-radius: var(--radius-sm); background: var(--c-accent-soft); color: #7a4322; font-size: .95rem; }

.status { text-align: center; max-width: 560px; margin: 0 auto; }
.status__icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.status__icon .icon { width: 36px; height: 36px; }
.status__icon--warn { background: var(--c-accent-soft); color: var(--c-accent); }
.status p { color: var(--c-muted); margin-bottom: 1rem; }
.status .btn { margin-top: 1rem; }

/* ============================================================
   Дополнения под книгу «150 секретов здоровья предков»
   ============================================================ */
.book__cover, .offer__cover { aspect-ratio: 2 / 3; }
.hero__subtitle {
  margin-top: 1rem; font-family: var(--f-head); font-style: italic;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--c-accent); text-wrap: balance;
}
.hero__lead { margin-top: 1.25rem; }

/* Об авторе */
.author {
  display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center;
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg);
  background: var(--c-surface); box-shadow: var(--shadow-sm);
}
.author__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.author__body .section__title { margin-bottom: 1.25rem; }
.author__text { color: var(--c-muted); }
.author__text + .author__text { margin-top: .9rem; }
.author__sign { margin-top: 1.5rem; font-family: var(--f-head); font-style: italic; font-size: 1.25rem; color: var(--c-primary); }

/* Карточки глав */
.chapter-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.chapter-card__top .chapter-card__num { margin: 0; }
.chapter-card__count { font-size: var(--fs-small); font-weight: 600; color: var(--c-primary); }
.chapter-card__title { min-height: 2.6em; }

/* Как устроен рецепт */
.recipe-anatomy {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.recipe-anatomy__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.recipe-anatomy__title { font-family: var(--f-head); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 1.5rem; text-wrap: balance; }
.recipe-anatomy__list { list-style: none; counter-reset: ra; display: grid; gap: .75rem; margin-bottom: 2rem; }
.recipe-anatomy__list li { counter-increment: ra; display: flex; gap: .85rem; align-items: baseline; color: var(--c-muted); }
.recipe-anatomy__list li::before {
  content: counter(ra); flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-primary); color: #fff; font-size: .85rem; font-weight: 700;
}
.recipe-anatomy__list strong { color: var(--c-text); }

/* Оглавление в диалоге */
.toc li { align-items: baseline; }
.toc li span { flex: 1; }
.toc li small { flex: none; color: var(--c-muted); font-size: .8rem; white-space: nowrap; }

.footer__disclaimer { margin-bottom: .5rem; }
