/* =========================================================
   Сказано — публичный лендинг
   Загружается только на landing.html / privacy.html / terms.html.
   Load after theme.css. Цвет и акцент — те же токены, что и в
   приложении (--accent, --accent-hover, --accent-soft из theme.css);
   ниже только «бумажные» и декоративные токены для маркетинга.
   ========================================================= */

.lp {
  /* Бумага и заметки */
  --lp-paper: #f7f3ea;
  --lp-paper-deep: #efe8da;
  --lp-card: #fffefa;
  --lp-ink: #24221f;
  --lp-ink-soft: #6f6a61;
  --lp-line: #e6ded0;
  --lp-line-strong: #d8cdb8;

  /* Акценты — единый источник правды: theme.css */
  --lp-accent: var(--accent);
  --lp-accent-deep: var(--accent-hover);
  --lp-accent-soft: var(--accent-soft);
  --lp-terra: #c96c4a;
  --lp-terra-soft: #f7e7df;

  /* Оттенки бумажек */
  --lp-note-yellow: #f6e7a8;
  --lp-note-blue: #dce9ef;
  --lp-note-blue-ink: #2f5d6e;
  --lp-note-pink: #f1d9d2;

  /* Декоративные одноразовые оттенки (иллюстрации/градиенты) */
  --lp-white: #fff;
  --lp-clip-metal: #b9ae97;
  --lp-clip-metal-soft: #cdc3ad;
  --lp-pin-hi: #e08f6f;
  --lp-pin-shadow: #a5502f;
  --lp-cream-warm: #f6f1e4;
  --lp-cream-warm-2: #f4eee2;
  --lp-stripe: #e7dfd0;

  --lp-shadow-sm: 0 2px 6px rgba(60, 50, 35, 0.07);
  --lp-shadow-md: 0 10px 26px rgba(60, 50, 35, 0.11);
  --lp-shadow-lg: 0 22px 48px rgba(60, 50, 35, 0.16);

  --lp-t: 220ms;
  --lp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  margin: 0;
  background-color: var(--lp-paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(201, 108, 74, 0.07), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(35, 74, 74, 0.07), transparent 40%);
  color: var(--lp-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}

.lp h1,
.lp h2,
.lp h3 {
  font-family: var(--font-serif);
  color: var(--lp-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.lp p {
  margin: 0;
}

.lp :focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.lp-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--lp-card);
  border: 1px solid var(--lp-line-strong);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--lp-t) var(--lp-ease);
}
.lp-skip:focus {
  top: 12px;
}

/* ---------- Раскладка ---------- */
.lp-shell {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 56px);
}

.lp-section {
  padding-block: clamp(56px, 8vw, 112px);
}

.lp-section--tint {
  background: linear-gradient(180deg, rgba(255, 254, 250, 0) 0%, rgba(255, 254, 250, 0.72) 18%, rgba(255, 254, 250, 0.72) 82%, rgba(255, 254, 250, 0) 100%);
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
  border: 1px solid rgba(35, 74, 74, 0.14);
  border-radius: 999px;
  padding: 7px 14px;
}

.lp-section-head {
  max-width: 40ch;
  margin-bottom: clamp(28px, 4vw, 52px);
  display: grid;
  gap: 16px;
}
.lp-section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.lp-h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600;
}
.lp-h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
}
.lp-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--lp-ink-soft);
  max-width: 62ch;
}
.lp-muted {
  color: var(--lp-ink-soft);
  font-size: 16px;
}
.lp-small {
  font-size: 15px;
  color: var(--lp-ink-soft);
}

/* ---------- Кнопки ---------- */
.lp-btn {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--lp-t) var(--lp-ease),
    border-color var(--lp-t) var(--lp-ease), color var(--lp-t) var(--lp-ease),
    transform var(--lp-t) var(--lp-ease), box-shadow var(--lp-t) var(--lp-ease);
}
.lp-btn--primary {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: var(--lp-card);
}
.lp-btn--primary:hover {
  background: var(--lp-accent-deep);
  border-color: var(--lp-accent-deep);
  transform: translateY(-2px);
}
.lp-btn-mic {
  flex-shrink: 0;
  color: var(--mic-gold);
}
.lp-btn--primary.is-auth .lp-btn-mic {
  display: none;
}
.lp-btn--ghost {
  background: var(--lp-card);
  border-color: var(--lp-line-strong);
  color: var(--lp-ink);
}
.lp-btn--ghost:hover {
  background: var(--lp-paper);
  border-color: var(--lp-accent);
  color: var(--lp-accent);
  transform: translateY(-2px);
}
.lp-btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--lp-ink);
  min-height: 44px;
  padding: 10px 14px;
}
.lp-btn--quiet:hover {
  background: rgba(35, 74, 74, 0.07);
  color: var(--lp-accent);
}
.lp-btn--lg {
  font-size: 17px;
  min-height: 56px;
  padding: 16px 32px;
}

/* ---------- Header ---------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 234, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--lp-t) var(--lp-ease),
    box-shadow var(--lp-t) var(--lp-ease);
}
@supports (backdrop-filter: blur(6px)) {
  .lp-header {
    background: rgba(247, 243, 234, 0.82);
    backdrop-filter: blur(10px);
  }
}
.lp-header.is-stuck {
  border-bottom-color: var(--lp-line);
  box-shadow: 0 4px 18px rgba(60, 50, 35, 0.06);
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--lp-ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lp-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.lp-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.lp-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--lp-ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color var(--lp-t) var(--lp-ease), background var(--lp-t) var(--lp-ease);
}
.lp-nav a:hover {
  color: var(--lp-accent);
  background: rgba(35, 74, 74, 0.06);
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* Текст CTA меняется на «Открыть мои книги» после входа — не даём кнопке
   переноситься в две строки и растягивать шапку по высоте. */
.lp-header-actions .lp-btn {
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 18px;
  flex-shrink: 0;
}
.lp-header-actions .lp-btn--quiet {
  display: none;
}
.lp-header-actions > .lp-btn--primary {
  display: none;
}
.lp-burger {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-card);
  color: var(--lp-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.lp-burger:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

/* Мобильное меню (drawer) */
.lp-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(36, 34, 31, 0.36);
  opacity: 0;
  transition: opacity var(--lp-t) var(--lp-ease);
}
.lp-drawer-backdrop[hidden] {
  display: none;
}
.lp-drawer-backdrop.is-open {
  opacity: 1;
}
.lp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(86vw, 340px);
  background: var(--lp-card);
  border-left: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow-lg);
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(102%);
  transition: transform 260ms var(--lp-ease);
  overflow-y: auto;
}
.lp-drawer[hidden] {
  display: none;
}
.lp-drawer.is-open {
  transform: translateX(0);
}
.lp-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lp-drawer-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}
.lp-drawer nav {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}
.lp-drawer nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--lp-ink);
  text-decoration: none;
  padding: 14px 12px;
  border-radius: 10px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-drawer nav a:hover {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}
.lp-drawer .lp-btn {
  width: 100%;
}
.lp-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--lp-line);
  background: transparent;
  color: var(--lp-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lp-drawer-close:hover {
  background: var(--lp-paper-deep);
}
body.lp-locked {
  overflow: hidden;
}

/* ---------- Бумажные примитивы ---------- */
.lp-paper {
  position: relative;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  box-shadow: var(--lp-shadow-sm);
}
.lp-paper--soft {
  border-radius: 16px;
  box-shadow: var(--lp-shadow-md);
}

/* Клейкая лента */
.lp-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-2.2deg);
  background: rgba(246, 231, 168, 0.78);
  border-left: 1px dashed rgba(180, 160, 96, 0.45);
  border-right: 1px dashed rgba(180, 160, 96, 0.45);
  box-shadow: 0 1px 3px rgba(60, 50, 35, 0.1);
}
.lp-tape--left {
  left: 22px;
  transform: rotate(-8deg);
}
.lp-tape--blue {
  background: rgba(220, 233, 239, 0.85);
}
.lp-tape--pink {
  background: rgba(241, 217, 210, 0.85);
}

/* Скрепка */
.lp-clip {
  position: absolute;
  top: -14px;
  right: 20px;
  width: 18px;
  height: 40px;
  border: 2.5px solid var(--lp-clip-metal);
  border-radius: 10px 10px 9px 9px;
  border-bottom-color: transparent;
  transform: rotate(9deg);
}
.lp-clip::after {
  content: "";
  position: absolute;
  inset: 6px 4px 8px;
  border: 2px solid var(--lp-clip-metal-soft);
  border-radius: 8px 8px 7px 7px;
  border-bottom-color: transparent;
}

/* Кнопка-булавка */
.lp-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--lp-pin-hi), var(--lp-terra) 62%, var(--lp-pin-shadow));
  box-shadow: 0 2px 4px rgba(60, 50, 35, 0.28);
}

/* Карандашная линия */
.lp-pencil-rule {
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--lp-line-strong) 0 14px,
    transparent 14px 22px
  );
}

/* Аудиоволна */
.lp-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
}
.lp-wave span {
  flex: 1;
  min-width: 3px;
  max-width: 5px;
  border-radius: 3px;
  background: var(--lp-accent);
  opacity: 0.75;
  height: 40%;
  transform-origin: bottom;
  --lp-wave-delay: 0ms;
}
.lp-wave--terra span {
  background: var(--lp-terra);
}
.lp-wave span:nth-child(3n) {
  height: 100%;
}
.lp-wave span:nth-child(3n + 1) {
  height: 62%;
}
.lp-wave span:nth-child(4n) {
  height: 34%;
}
.lp-wave span:nth-child(2) { --lp-wave-delay: 90ms; }
.lp-wave span:nth-child(3) { --lp-wave-delay: 180ms; }
.lp-wave span:nth-child(4) { --lp-wave-delay: 270ms; }
.lp-wave span:nth-child(5) { --lp-wave-delay: 360ms; }
.lp-wave span:nth-child(6) { --lp-wave-delay: 450ms; }
.lp-wave span:nth-child(7) { --lp-wave-delay: 540ms; }
.lp-wave span:nth-child(8) { --lp-wave-delay: 630ms; }
.lp-wave span:nth-child(9) { --lp-wave-delay: 720ms; }
.lp-wave span:nth-child(10) { --lp-wave-delay: 810ms; }
.lp-wave span:nth-child(11) { --lp-wave-delay: 900ms; }
.lp-wave span:nth-child(12) { --lp-wave-delay: 990ms; }
.lp-wave span:nth-child(13) { --lp-wave-delay: 1080ms; }
.lp-wave span:nth-child(14) { --lp-wave-delay: 1170ms; }
.lp-note-audio-card:hover .lp-wave span,
.lp-demo-pane:hover .lp-wave span {
  animation: lp-pulse 2.4s var(--lp-ease) var(--lp-wave-delay) infinite;
}

@keyframes lp-pulse {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.18); }
}

/* Полароид с абстрактным пейзажем */
.lp-polaroid {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 4px;
  padding: 10px 10px 34px;
  box-shadow: var(--lp-shadow-md);
}
.lp-polaroid svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.lp-polaroid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  font-size: 13px;
  color: var(--lp-ink-soft);
  font-style: italic;
}

/* Рукописная подпись */
.lp-hand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--lp-ink-soft);
}

/* Стикер-заметка */
.lp-sticky {
  background: var(--lp-note-yellow);
  border: 1px solid rgba(190, 168, 96, 0.4);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: var(--lp-shadow-sm);
  font-size: 15px;
  line-height: 1.4;
}
.lp-sticky--blue {
  background: var(--lp-note-blue);
  border-color: rgba(140, 176, 194, 0.45);
}
.lp-sticky--pink {
  background: var(--lp-note-pink);
  border-color: rgba(206, 158, 143, 0.45);
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}
.lp-chip--accent { color: var(--lp-accent); }
.lp-chip--terra { color: var(--lp-terra); }

/* ---------- Hero ---------- */
.lp-hero {
  padding-block: clamp(36px, 6vw, 76px) clamp(48px, 8vw, 96px);
  position: relative;
}
.lp-hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 56px);
  align-items: center;
}
.lp-hero-copy {
  display: grid;
  gap: 22px;
  max-width: 34ch;
  justify-items: start;
}
.lp-hero h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 600;
  max-width: 20ch;
}
.lp-hero h1 em {
  font-style: normal;
  color: var(--lp-accent);
  position: relative;
  white-space: nowrap;
}
.lp-hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.09em;
  border-radius: 3px;
  background: rgba(201, 108, 74, 0.42);
}
.lp-hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--lp-ink-soft);
  max-width: 46ch;
}
.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--lp-ink-soft);
}
.lp-hero-note--privacy {
  display: block;
  max-width: 48ch;
  padding-left: 27px;
}

/* Коллаж «хаос мыслей» */
.lp-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.lp-collage-item {
  position: relative;
  transition: transform var(--lp-t) var(--lp-ease), box-shadow var(--lp-t) var(--lp-ease);
}
.lp-collage-item:hover {
  z-index: 12;
  translate: 0 -4px;
}

.lp-note {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.lp-note-quote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--lp-ink);
}
.lp-note-dialog p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
}
.lp-note-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lp-terra-soft);
  border: 1px solid rgba(201, 108, 74, 0.3);
  display: grid;
  place-items: center;
  color: var(--lp-terra);
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.lp-note-hero-traits {
  font-size: 14px;
  color: var(--lp-ink-soft);
}
.lp-note-audio {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mic-gold);
  color: var(--accent-active);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lp-note-chapter {
  background: linear-gradient(160deg, var(--lp-card), var(--lp-cream-warm));
  border-color: var(--lp-accent);
  box-shadow: var(--lp-shadow-md);
}
.lp-note-chapter .lp-note-quote {
  font-size: 17px;
}
.lp-chapter-lines {
  display: grid;
  gap: 7px;
}
.lp-chapter-lines i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--lp-paper-deep);
}
.lp-chapter-lines i:nth-child(2) { width: 88%; }
.lp-chapter-lines i:nth-child(3) { width: 64%; }

.lp-thread {
  display: none;
}

/* ---------- Как это работает ---------- */
.lp-steps {
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: 1fr;
}
.lp-step {
  position: relative;
  padding: 24px 22px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: var(--lp-card);
}
.lp-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-accent);
}
.lp-step-ill {
  height: 84px;
  border-radius: 10px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  display: grid;
  place-items: center;
  padding: 14px 16px;
  overflow: hidden;
}
.lp-step-ill .lp-wave {
  width: 100%;
  height: 42px;
}
.lp-transcript-lines {
  width: 100%;
  display: grid;
  gap: 6px;
}
.lp-transcript-lines i {
  height: 6px;
  border-radius: 3px;
  background: var(--lp-line-strong);
  display: block;
  animation: lp-type 3.6s var(--lp-ease) infinite;
}
.lp-transcript-lines i:nth-child(1) { animation-delay: 0ms; }
.lp-transcript-lines i:nth-child(2) { animation-delay: 300ms; width: 84%; }
.lp-transcript-lines i:nth-child(3) { animation-delay: 600ms; width: 58%; }
@keyframes lp-type {
  0%, 12% { opacity: 0.25; }
  40%, 100% { opacity: 1; }
}
.lp-stack-mini {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
}
.lp-stack-mini i {
  display: block;
  width: 26px;
  border-radius: 4px;
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-card);
}
.lp-stack-mini i:nth-child(1) { height: 34px; background: var(--lp-note-yellow); }
.lp-stack-mini i:nth-child(2) { height: 48px; background: var(--lp-note-blue); }
.lp-stack-mini i:nth-child(3) { height: 40px; background: var(--lp-note-pink); }
.lp-stack-mini i:nth-child(4) { height: 56px; background: var(--lp-accent-soft); border-color: var(--lp-accent); }
.lp-steps-note {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--lp-accent-soft);
  border: 1px solid rgba(35, 74, 74, 0.18);
  color: var(--lp-accent);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 18px);
}
.lp-steps-note svg {
  flex-shrink: 0;
}

/* ---------- Возможности (bento) ---------- */
.lp-bento {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: 1fr;
}
.lp-feature {
  padding: 26px 24px;
  display: grid;
  gap: 16px;
  align-content: start;
  transition: transform var(--lp-t) var(--lp-ease), box-shadow var(--lp-t) var(--lp-ease),
    border-color var(--lp-t) var(--lp-ease);
}
.lp-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-md);
  border-color: var(--lp-line-strong);
}
.lp-feature-body {
  display: grid;
  gap: 8px;
}
.lp-feature-visual {
  border-radius: 12px;
  padding: 16px;
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 10px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
}
.lp-feature-visual--accent {
  background: var(--lp-accent-soft);
  border-color: rgba(35, 74, 74, 0.16);
}
.lp-feature-visual--terra {
  background: var(--lp-terra-soft);
  border-color: rgba(201, 108, 74, 0.2);
}
.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--lp-ink-soft);
}
.lp-mock-row strong {
  color: var(--lp-ink);
  font-weight: 600;
}
.lp-mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-terra);
  flex-shrink: 0;
}
.lp-mock-dot--accent { background: var(--lp-accent); }
.lp-mock-toc {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.lp-mock-toc div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--lp-ink);
}
.lp-mock-toc div span:last-child {
  color: var(--lp-ink-soft);
  font-size: 13px;
}
.lp-mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.lp-mock-tags span {
  font-size: 13px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line-strong);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--lp-ink);
}
.lp-mock-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.lp-mock-split div {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  padding: 10px;
  color: var(--lp-ink-soft);
  min-height: 62px;
}
.lp-mock-split b {
  display: block;
  color: var(--lp-ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.lp-mock-formats {
  display: flex;
  gap: 8px;
}
.lp-mock-formats span {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--lp-card);
  border: 1px solid var(--lp-line-strong);
  border-radius: 9px;
  padding: 12px 6px 14px;
  color: var(--lp-accent);
  position: relative;
}
.lp-mock-formats span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 10px 10px 0;
  border-style: solid;
  border-color: var(--lp-paper-deep) var(--lp-paper) var(--lp-paper) var(--lp-paper-deep);
}

/* ---------- Интерактивное демо ---------- */
.lp-demo {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  grid-template-columns: 1fr;
  align-items: start;
}
.lp-demo-pane {
  padding: 22px 22px 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.lp-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-demo-title {
  font-weight: 600;
  font-size: 16px;
}
.lp-demo-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--lp-ink);
}
.lp-demo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-ink-soft);
}
.lp-demo-actions {
  display: grid;
  gap: 9px;
}
.lp-demo-action {
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  background: var(--lp-card);
  border: 1px solid var(--lp-line-strong);
  border-radius: 11px;
  padding: 13px 16px;
  min-height: 48px;
  cursor: pointer;
  color: var(--lp-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background var(--lp-t) var(--lp-ease), border-color var(--lp-t) var(--lp-ease),
    color var(--lp-t) var(--lp-ease), transform var(--lp-t) var(--lp-ease);
}
.lp-demo-action:hover {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  transform: translateY(-2px);
}
.lp-demo-action[aria-pressed="true"] {
  border-color: var(--lp-accent);
  background: var(--lp-accent);
  color: var(--lp-card);
}
.lp-demo-action[aria-pressed="true"] .lp-demo-action-arrow {
  opacity: 1;
}
.lp-demo-action-arrow {
  opacity: 0.4;
  flex-shrink: 0;
}
.lp-demo-result {
  border-radius: 12px;
  border: 1px dashed var(--lp-line-strong);
  background: var(--lp-paper);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.lp-demo-result.is-fresh {
  animation: lp-result-in 300ms var(--lp-ease);
}
@keyframes lp-result-in {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
.lp-demo-result-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-accent);
}
.lp-demo-result-body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--lp-ink);
  display: grid;
  gap: 8px;
}
.lp-demo-result-body ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.lp-demo-decide[hidden] {
  display: none;
}
.lp-demo-decide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-demo-decide button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-card);
  color: var(--lp-ink);
  transition: background var(--lp-t) var(--lp-ease), border-color var(--lp-t) var(--lp-ease),
    color var(--lp-t) var(--lp-ease);
}
.lp-demo-decide button:first-child {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: var(--lp-card);
}
.lp-demo-decide button:first-child:hover {
  background: var(--lp-accent-deep);
}
.lp-demo-decide button:not(:first-child):hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}
.lp-demo-status {
  font-size: 15px;
  color: var(--lp-ink-soft);
  min-height: 22px;
}
.lp-demo-guard {
  margin-top: clamp(20px, 2.6vw, 30px);
  text-align: center;
  font-weight: 600;
  color: var(--lp-accent);
  font-size: clamp(16px, 1.4vw, 18px);
}

/* ---------- Без давления ---------- */
.lp-control {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  grid-template-columns: 1fr;
  align-items: center;
}
.lp-control-pane {
  padding: 24px 24px 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.lp-control-pane--author {
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(35, 74, 74, 0.07) 30px 31px),
    var(--lp-card);
}
.lp-control-pane--ai {
  border-style: dashed;
  border-color: var(--lp-line-strong);
  background: var(--lp-card);
}
.lp-control-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
}
.lp-choice {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}
.lp-choice-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lp-card);
  border: 1px solid var(--lp-line-strong);
  color: var(--lp-terra);
  display: grid;
  place-items: center;
}
.lp-choice span {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink-soft);
  max-width: 14ch;
}
.lp-principles {
  margin-top: clamp(26px, 3.4vw, 40px);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.lp-principle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  font-weight: 500;
  font-size: 16px;
}
.lp-principle svg {
  color: var(--lp-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Финальный CTA ---------- */
.lp-final {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--lp-line);
  background:
    radial-gradient(circle at 78% 18%, rgba(246, 231, 168, 0.4), transparent 46%),
    linear-gradient(160deg, var(--lp-card), var(--lp-cream-warm-2));
  box-shadow: var(--lp-shadow-md);
  padding: clamp(32px, 6vw, 68px) clamp(24px, 5vw, 60px);
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
}
.lp-final-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.lp-final-privacy {
  max-width: 48ch;
}
.lp-final h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 600;
  max-width: 22ch;
}
.lp-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--lp-card) 0 49.6%, var(--lp-stripe) 49.6% 50.4%, var(--lp-card) 50.4% 100%);
  border: 1px solid var(--lp-line-strong);
  box-shadow: var(--lp-shadow-lg);
  padding: 26px 22px;
  gap: 22px;
  rotate: -1deg;
}
.lp-book-page {
  display: grid;
  gap: 9px;
  align-content: start;
}
.lp-book-page i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--lp-paper-deep);
}
.lp-book-page i:nth-child(4n) { width: 62%; }
.lp-book-page i:nth-child(3n) { width: 84%; }
.lp-book-page--right i { opacity: 0.5; }
.lp-book-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.lp-book-sticky {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: min(78%, 260px);
  rotate: 3deg;
}

/* ---------- Footer ---------- */
.lp-footer {
  border-top: 1px solid var(--lp-line);
  background: rgba(255, 254, 250, 0.6);
  padding-block: clamp(36px, 5vw, 60px) 28px;
  margin-top: clamp(48px, 7vw, 90px);
}
.lp-footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.lp-footer-brand {
  display: grid;
  gap: 12px;
  max-width: 34ch;
}
.lp-footer-cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lp-footer-col h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
  margin-bottom: 12px;
}
.lp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lp-footer-col a {
  font-size: 16px;
  color: var(--lp-ink);
  text-decoration: none;
  padding-block: 3px;
  display: inline-block;
}
.lp-footer-col a:hover {
  color: var(--lp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--lp-ink-soft);
}

/* ---------- Появление при скролле ---------- */
.lp [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 380ms var(--lp-ease), translate 380ms var(--lp-ease);
}
.lp [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}
.lp.no-js-reveal [data-reveal] {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Юридические страницы ---------- */
.lp-legal {
  padding-block: clamp(40px, 6vw, 76px);
  max-width: 74ch;
}
.lp-legal h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  margin-bottom: 12px;
}
.lp-legal h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
}
.lp-legal p,
.lp-legal li {
  color: var(--lp-ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
.lp-legal p + p {
  margin-top: 12px;
}
.lp-legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.lp-legal-date {
  font-size: 15px;
  color: var(--lp-ink-soft);
}
.lp-legal a {
  color: var(--lp-accent);
}
.lp-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--lp-accent);
  font-weight: 600;
  text-decoration: none;
}
.lp-legal-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Адаптив
   ========================================================= */

/* ≥560px — парные сетки */
@media (min-width: 560px) {
  .lp-bento,
  .lp-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ≥768px — планшет */
@media (min-width: 768px) {
  .lp-header-actions > .lp-btn--primary,
  .lp-header-actions .lp-btn--quiet {
    display: inline-flex;
  }
  .lp-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lp-control {
    grid-template-columns: 1fr auto 1fr;
  }
  .lp-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lp-demo {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .lp-footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ≥1024px — desktop: навигация, hero-коллаж, bento */
@media (min-width: 1024px) {
  .lp-nav {
    display: flex;
  }
  .lp-burger {
    display: none;
  }
  .lp-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .lp-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
  }
  .lp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lp-steps::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--lp-line-strong) 0 12px, transparent 12px 22px);
    z-index: 0;
  }
  .lp-step {
    z-index: 1;
  }

  .lp-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .lp-feature--wide { grid-column: span 3; }
  .lp-feature--tall { grid-column: span 3; }
  .lp-feature--third { grid-column: span 2; }

  /* Коллаж: свободная композиция */
  .lp-collage {
    display: block;
    height: 580px;
  }
  .lp-collage-item {
    position: absolute;
    top: var(--lp-y);
    left: var(--lp-x);
    width: var(--lp-w);
    rotate: var(--lp-rot, 0deg);
  }
  .lp-collage-item:hover {
    translate: 0 -4px;
    box-shadow: var(--lp-shadow-lg);
  }
  .lp-thread {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .lp-thread path {
    fill: none;
    stroke: var(--lp-line-strong);
    stroke-width: 1.6;
    stroke-dasharray: 5 7;
    stroke-linecap: round;
  }
  .lp-thread .lp-thread-draw {
    stroke: rgba(201, 108, 74, 0.55);
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: lp-draw 2.6s var(--lp-ease) 400ms forwards;
  }
  @keyframes lp-draw {
    to { stroke-dashoffset: 0; }
  }

  .lp-final {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .lp-book {
    min-height: 320px;
  }
}

/* ≥1440px — крупные экраны */
@media (min-width: 1440px) {
  .lp-collage {
    height: 620px;
  }
  .lp-section {
    padding-block: 120px;
  }
}

/* Мелкие экраны: убираем декоративные бумажки, а не сжимаем их */
@media (max-width: 559px) {
  .lp-collage {
    grid-template-columns: 1fr;
  }
  .lp-demo > :first-child {
    order: 2;
  }
  .lp-demo > :last-child {
    order: 1;
  }
  .lp-collage-item--optional {
    display: none;
  }
  .lp-hero-cta .lp-btn {
    width: 100%;
  }
  .lp-book-sticky {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    rotate: 0deg;
    margin-top: 16px;
  }
  .lp-book {
    rotate: 0deg;
  }
}

@media (max-width: 479px) {
  .lp-burger {
    width: 42px;
    height: 42px;
  }
}

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .lp [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }
  .lp .lp-thread .lp-thread-draw {
    stroke-dashoffset: 0;
  }
  .lp-btn:hover,
  .lp-feature:hover,
  .lp-collage-item:hover,
  .lp-demo-action:hover {
    transform: none;
    translate: 0 0;
  }
}
