/* =====================================================================
   Лендинг Офертума — журнальное направление (docs/design-system.md §5).
   Классы lp-*, токены только var(--of-*) из of-tokens.css (блок .landing-page
   задаёт бумагу, линии и серифный дисплей). Без теней и карточек: линейки,
   фолио, серифные числа. Один primary CTA (чернила) на экран.
   ===================================================================== */

.landing-page {
  margin: 0;
  background: var(--of-paper);
  color: var(--of-ink);
  font-family: var(--of-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  --lp-maxw: 1240px;
  --lp-pad: clamp(20px, 5vw, 64px);
}
.landing-page *, .landing-page *::before, .landing-page *::after { box-sizing: border-box; }
.landing-page a { color: inherit; text-decoration: none; }
.landing-page a:hover { color: var(--of-accent-strong); }
.landing-page :where(h1, h2, h3, h4, p, figure, dl, dd) { margin: 0; }
.landing-page :where(ul) { list-style: none; padding: 0; margin: 0; }

.lp-wrap { max-width: calc(var(--lp-maxw) + 2 * var(--lp-pad)); margin: 0 auto; padding-left: var(--lp-pad); padding-right: var(--lp-pad); }
.lp-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.lp-serif { font-family: var(--of-serif); }
.lp-mono { font-family: var(--of-mono); }
.lp-num { font-variant-numeric: tabular-nums; }
.lp-rule { border-top: 1px solid var(--of-rule); }

/* ---------- Типографика ---------- */
.lp-display { font-family: var(--of-serif); font-weight: 500; font-size: clamp(46px, 6.4vw, 92px); line-height: .98; letter-spacing: -.015em; text-wrap: balance; }
.lp-h2 { font-family: var(--of-serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.lp-h3 { font-family: var(--of-serif); font-weight: 500; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; }
.lp-display em, .lp-h2 em, .lp-h3 em { font-style: italic; font-weight: 400; }
.lp-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--of-ink); text-wrap: pretty; }
.lp-body { font-size: 16.5px; color: var(--of-muted); text-wrap: pretty; }
.lp-small { font-size: 14px; color: var(--of-muted); }
.lp-folio { font-family: var(--of-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--of-muted); }
.lp-folio b { color: var(--of-ink); font-weight: 500; }
.lp-pull { font-family: var(--of-serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; font-weight: 400; text-wrap: balance; }
.lp-pull em { font-style: italic; color: var(--of-accent-strong); }

/* ---------- Кнопки ---------- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 3px; font-family: var(--of-sans); font-weight: 500; font-size: 15px; border: 1px solid var(--of-ink); white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.lp-btn svg { width: 16px; height: 16px; }
.lp-btn.lp-btn-primary { background: var(--of-ink); color: var(--of-paper); }
.lp-btn.lp-btn-primary:hover { background: var(--of-accent-strong); border-color: var(--of-accent-strong); color: #fff; }
.lp-btn.lp-btn-secondary { background: transparent; color: var(--of-ink); }
.lp-btn.lp-btn-secondary:hover { background: var(--of-ink); color: var(--of-paper); }
.lp-btn.lp-btn-text { border-color: transparent; padding: 0 4px; color: var(--of-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lp-btn.lp-btn-text:hover { color: var(--of-accent-strong); }
.lp-btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.lp-btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.lp-btn[disabled] { opacity: .5; cursor: default; }
.lp-on-dark .lp-btn.lp-btn-primary { background: var(--of-paper); color: var(--of-ink); border-color: var(--of-paper); }
.lp-on-dark .lp-btn.lp-btn-primary:hover { background: var(--of-accent-on-dark); border-color: var(--of-accent-on-dark); color: var(--of-ink); }
.lp-on-dark .lp-btn.lp-btn-secondary { color: var(--of-paper); border-color: rgba(244, 240, 233, .4); }
.lp-on-dark .lp-btn.lp-btn-secondary:hover { background: var(--of-paper); color: var(--of-ink); border-color: var(--of-paper); }
.lp-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Бейджи (словарь кабинета) ---------- */
.lp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 2px; font-size: 12.5px; font-weight: 500; line-height: 1.4; background: var(--of-paper-2); border: 1px solid var(--of-line); color: var(--of-muted); white-space: nowrap; }
.lp-badge.is-good { background: var(--of-good-soft); border-color: color-mix(in srgb, var(--of-good) 25%, transparent); color: var(--of-good); }
.lp-badge.is-attention { background: var(--of-accent-soft); border-color: color-mix(in srgb, var(--of-accent) 25%, transparent); color: var(--of-accent-strong); }
.lp-badge.is-danger { background: var(--of-danger-soft); border-color: color-mix(in srgb, var(--of-danger) 25%, transparent); color: var(--of-danger); }

/* ---------- Мастхед ---------- */
.lp-masthead { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--of-paper) 90%, transparent); backdrop-filter: saturate(120%) blur(12px); -webkit-backdrop-filter: saturate(120%) blur(12px); }
.lp-masthead-strip { display: flex; justify-content: space-between; align-items: center; height: 36px; border-bottom: 1px solid var(--of-line); }
.lp-masthead-bar { display: flex; align-items: center; gap: 40px; height: 72px; border-bottom: 1px solid var(--of-rule); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--of-serif); font-size: 26px; font-weight: 500; letter-spacing: -.01em; flex: none; }
/* Знак логотипа: PNG как маска, цвет — токеном (--lp-mark-url задаёт layout через asset_path) */
.lp-mark { display: inline-block; width: 28px; height: 28px; flex: none; background: var(--of-accent); -webkit-mask: var(--lp-mark-url) center / contain no-repeat; mask: var(--lp-mark-url) center / contain no-repeat; }
@media (max-width: 1023px) { .lp-mark { width: 24px; height: 24px; } }
/* Оптическое выравнивание мастхеда: у Playfair глифы сидят низко в строке, у пунктов меню — высоко (подчёркивание снизу); средняя линия «Офертум», меню и знака — на центре полосы */
.lp-brand-text { position: relative; top: -3px; }
.lp-brand:hover { color: var(--of-ink); }
.lp-nav { display: flex; gap: 28px; font-size: 14.5px; margin-left: 12px; }
.lp-nav a { border-bottom: 1px solid transparent; padding-bottom: 2px; position: relative; top: 2px; }
.lp-nav a:hover { color: var(--of-ink); border-bottom-color: var(--of-ink); }
.lp-masthead-cta { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.lp-mnav { display: none; }
@media (max-width: 1023px) {
  .lp-masthead-strip { display: none; }
  .lp-masthead-bar { height: 60px; gap: 12px; }
  .lp-brand { font-size: 24px; }
  .lp-nav { display: none; }
  .lp-masthead-cta .lp-hide-mobile { display: none; }
  .lp-mnav { display: block; position: relative; }
  .lp-mnav > summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--of-ink); border-radius: 3px; }
  .lp-mnav > summary::-webkit-details-marker { display: none; }
  .lp-mnav > summary svg { width: 20px; height: 20px; }
  .lp-mnav-panel { position: absolute; right: 0; top: 48px; width: min(80vw, 300px); background: var(--of-surface); border: 1px solid var(--of-ink); padding: 8px; display: flex; flex-direction: column; }
  .lp-mnav-panel a { padding: 12px; font-size: 16px; border-top: 1px solid var(--of-line); }
  .lp-mnav-panel a:first-child { border-top: none; }
  .lp-mnav-panel .lp-btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.lp-hero { padding-top: clamp(44px, 6vw, 88px); }
.lp-hero-grid { align-items: end; row-gap: 40px; }
.lp-hero-title { grid-column: 1 / span 9; }
.lp-hero-aside { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 22px; padding-bottom: 10px; }
.lp-hero-aside .lp-lead { font-size: 18px; }
.lp-hero-cta { display: flex; flex-direction: column; gap: 10px; }
.lp-hero-cta .lp-small { text-align: center; font-size: 13px; }
.lp-hero-cta .lp-link { text-align: center; font-size: 14px; margin-top: 6px; }
@media (max-width: 1023px) {
  .lp-hero-title, .lp-hero-aside { grid-column: 1 / -1; }
  .lp-hero-aside { padding-bottom: 0; }
  .lp-hero-cta .lp-btn { width: 100%; }
}

/* Рис. 1 — карточка сделки */
.lp-fig { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(36px, 4.5vw, 64px); }
.lp-fig figcaption { font-size: 13px; color: var(--of-muted); display: flex; gap: 10px; align-items: baseline; }
.lp-fig figcaption b { font-family: var(--of-serif); font-style: italic; font-weight: 400; color: var(--of-ink); }
.lp-deal { background: var(--of-surface); border: 1px solid var(--of-ink); display: grid; grid-template-columns: 1.1fr .9fr; }
.lp-deal-l { padding: 36px 36px 32px; border-right: 1px solid var(--of-line); display: flex; flex-direction: column; gap: 22px; justify-content: space-between; }
.lp-deal-r { padding: 28px 32px; display: flex; flex-direction: column; }
.lp-deal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.lp-deal-title { font-family: var(--of-serif); font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.1; }
.lp-deal-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.lp-deal-kv dt { color: var(--of-muted); }
.lp-deal-sum { font-family: var(--of-serif); font-size: 22px; }
.lp-pipe { display: flex; flex-direction: column; margin-top: 18px; }
.lp-pipe-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--of-line); font-size: 14.5px; }
.lp-pipe-row:first-child { border-top: none; padding-top: 0; }
.lp-pipe-row .lp-i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--of-mono); font-size: 11px; }
.lp-pipe-row .lp-i.is-done { background: var(--of-ink); color: var(--of-paper); }
.lp-pipe-row .lp-i.is-now { border: 1px solid var(--of-accent); color: var(--of-accent-strong); background: var(--of-accent-soft); }
.lp-pipe-row .lp-i.is-todo { border: 1px solid var(--of-line-2); color: var(--of-faint); }
.lp-pipe-row .lp-s { display: block; font-size: 12.5px; color: var(--of-faint); }
.lp-erid { font-family: var(--of-mono); font-size: 13px; line-height: 1.6; color: var(--of-muted); padding: 14px 16px; background: var(--of-paper); border: 1px solid var(--of-line); overflow-wrap: anywhere; }
.lp-erid b { color: var(--of-accent-strong); font-weight: 500; }
.lp-erid .lp-faint { color: var(--of-faint); }
@media (max-width: 860px) {
  .lp-deal { grid-template-columns: 1fr; }
  .lp-deal-l { border-right: none; border-bottom: 1px solid var(--of-line); padding: 22px 20px; gap: 14px; }
  .lp-deal-r { padding: 18px 20px; }
  .lp-pipe-row { grid-template-columns: 24px 1fr auto; font-size: 14px; padding: 11px 0; }
}

/* Содержание */
.lp-toc-wrap { margin-top: clamp(56px, 6.5vw, 96px); }
.lp-toc-wrap .lp-folio { margin-bottom: 14px; display: block; }
.lp-toc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lp-toc a { padding: 18px 20px 18px 0; border-top: 1px solid var(--of-rule); display: flex; flex-direction: column; gap: 6px; }
.lp-toc .lp-n { font-family: var(--of-mono); font-size: 12px; color: var(--of-muted); letter-spacing: .06em; }
.lp-toc .lp-t { font-family: var(--of-serif); font-size: 19px; font-weight: 500; color: var(--of-ink); }
.lp-toc a:hover .lp-t { color: var(--of-accent-strong); }
@media (max-width: 860px) { .lp-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Секции ---------- */
.lp-section { padding: clamp(64px, 7.8vw, 112px) 0; }
.lp-section.is-tight { padding-top: 0; }
.lp-sec-folio { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 14px; margin-bottom: clamp(28px, 3.9vw, 56px); border-top: 1px solid var(--of-rule); }
.lp-sec-folio .lp-rn { font-family: var(--of-serif); font-size: 20px; font-style: italic; color: var(--of-muted); text-align: right; }
@media (max-width: 860px) {
  .lp-sec-folio { flex-direction: column; gap: 6px; }
  .lp-sec-folio .lp-rn { font-size: 17px; text-align: left; }
}

/* 01 Зачем */
.lp-why-grid { row-gap: 56px; }
.lp-why-pull { grid-column: 1 / span 7; }
.lp-why-text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.lp-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.lp-fact { border-top: 1px solid var(--of-rule); padding-top: 16px; }
.lp-fact-n { font-family: var(--of-serif); font-size: clamp(44px, 4.4vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.lp-fact-n small { font-size: .5em; font-style: italic; color: var(--of-muted); }
.lp-fact p { font-size: 14px; color: var(--of-muted); margin-top: 8px; }
@media (max-width: 1023px) {
  .lp-why-pull, .lp-why-text { grid-column: 1 / -1; }
  .lp-why-text { padding-top: 0; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 02 Возможности */
.lp-features-h2 { max-width: 20ch; margin-bottom: clamp(32px, 4.4vw, 64px); }
.lp-frow { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--of-line); align-items: start; }
.lp-frow:first-of-type { border-top-color: var(--of-rule); }
.lp-frow:last-of-type { border-bottom: 1px solid var(--of-rule); }
.lp-frow .lp-n { font-family: var(--of-serif); font-size: 40px; font-style: italic; line-height: 1; color: var(--of-muted); }
.lp-frow h3 { font-family: var(--of-serif); font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; line-height: 1.15; margin-bottom: 12px; }
.lp-frow h3 em { font-style: italic; font-weight: 400; }
.lp-frow p { font-size: 16px; color: var(--of-muted); max-width: 44ch; }
.lp-frow .lp-art { justify-self: end; width: 100%; max-width: 520px; }
.lp-art-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--of-line); font-size: 14.5px; }
.lp-art-row:first-child { border-top-color: var(--of-rule); }
.lp-art-row:last-child { border-bottom: 1px solid var(--of-line); }
.lp-art-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lp-art-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; border-bottom: 1px solid var(--of-rule); }
.lp-art-bars-m { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.lp-art-bars i { flex: 1; display: block; position: relative; background: var(--of-line-2); }
/* Демо-подсказка над столбцом текущего месяца (в кабинете — по наведению, здесь — статично) */
.lp-art-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); min-width: 176px; padding: 10px 12px; background: var(--of-surface); border: 1px solid var(--of-ink); font-size: 12.5px; line-height: 1.5; color: var(--of-ink); white-space: nowrap; }
.lp-art-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: var(--of-surface); border-right: 1px solid var(--of-ink); border-bottom: 1px solid var(--of-ink); transform: rotate(45deg); }
.lp-art-tip > b { display: block; font-family: var(--of-serif); font-style: italic; font-weight: 400; font-size: 14px; margin-bottom: 4px; }
.lp-art-tip > span { display: flex; align-items: center; gap: 6px; color: var(--of-muted); }
.lp-art-tip > span > b { margin-left: auto; padding-left: 14px; color: var(--of-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-art-tip i { flex: none; display: inline-block; width: 8px; height: 8px; }
.lp-art-bars i.is-paid { background: var(--of-ink); }
.lp-art-bars i.is-now { background: var(--of-accent); }
.lp-art-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--of-muted); flex-wrap: wrap; }
.lp-art-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: middle; background: var(--of-line-2); }
.lp-art-legend i.is-paid { background: var(--of-ink); }
.lp-art-legend i.is-now { background: var(--of-accent); }
.lp-art-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--of-rule); border-left: 1px solid var(--of-line); }
.lp-art-cal div { height: 96px; border-right: 1px solid var(--of-line); border-bottom: 1px solid var(--of-line); padding: 8px 6px; font-family: var(--of-serif); font-style: italic; font-size: 14px; color: var(--of-muted); }
.lp-art-cal div.is-today { background: var(--of-accent-soft); color: var(--of-accent-strong); }
/* Событие в ячейке — как плашка в календаре кабинета (of-calendar__item / __task): обводка,
   скругление, текст обрезается внутри плашки; задача — мягкий акцент с иконкой */
.lp-cal-ev { display: block; margin-top: 8px; padding: 4px 6px; border: 1px solid var(--of-line-2); border-radius: 3px; background: var(--of-surface); font-family: var(--of-sans); font-style: normal; font-size: 11px; line-height: 1.3; color: var(--of-ink); overflow: hidden; }
.lp-cal-ev b { display: block; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cal-ev small { display: block; margin-top: 1px; font-size: 10px; color: var(--of-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cal-ev.is-task { display: flex; align-items: flex-start; gap: 4px; background: var(--of-accent-soft); border-color: color-mix(in srgb, var(--of-accent) 30%, var(--of-line-2)); }
.lp-cal-ev.is-task svg { flex: none; margin-top: 1px; color: var(--of-accent-strong); }
.lp-cal-ev.is-task b { white-space: normal; overflow: visible; text-overflow: clip; }
.lp-art-inn { display: flex; align-items: center; gap: 12px; height: 48px; border-bottom: 1px solid var(--of-rule); font-family: var(--of-mono); font-size: 16px; }
.lp-art-inn span { margin-left: auto; font-family: var(--of-sans); font-size: 13px; color: var(--of-good); }
.lp-art-hint { font-size: 13px; color: var(--of-muted); margin-top: 8px; }
@media (max-width: 1023px) {
  .lp-frow { grid-template-columns: 64px 1fr; }
  .lp-frow .lp-art { grid-column: 2; justify-self: start; max-width: none; }
}
@media (max-width: 560px) {
  /* в узких ячейках плашка схлопывается до полосы-маркера */
  .lp-art-cal div { height: 64px; }
  .lp-cal-ev { height: 4px; padding: 0; border: 0; background: var(--of-ink); }
  .lp-cal-ev > * { display: none; }
  .lp-art-cal div.is-today .lp-cal-ev, .lp-cal-ev.is-task { background: var(--of-accent); }
  .lp-frow { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .lp-frow .lp-n { font-size: 26px; }
  .lp-frow .lp-art { grid-column: 1; margin-top: 8px; }
}

/* 03 Как это работает */
.lp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
.lp-step { border-top: 1px solid var(--of-rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.lp-step .lp-n { font-family: var(--of-serif); font-style: italic; font-size: 28px; line-height: 1; }
.lp-step h4 { font-family: var(--of-serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.lp-step p { font-size: 15px; color: var(--of-muted); }
@media (max-width: 1023px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lp-steps { grid-template-columns: 1fr; row-gap: 0; }
  .lp-step { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 16px 0; border-top-color: var(--of-line); }
  .lp-step:first-child { border-top-color: var(--of-rule); }
  .lp-step .lp-n { grid-row: 1 / span 2; font-size: 24px; }
  .lp-step h4 { font-size: 20px; }
}

/* 04 Telegram и AI */
.lp-tg-grid { row-gap: 40px; }
.lp-tg-main { grid-column: 1 / span 5; }
.lp-tg-chat { grid-column: 6 / span 3; padding-top: 6px; }
.lp-tg-ai { grid-column: 10 / span 3; }
.lp-tg-main h3, .lp-tg-ai h3 { margin-bottom: 16px; }
.lp-tg-list { display: flex; flex-direction: column; margin-top: 22px; }
.lp-tg-list li { padding: 12px 0; border-top: 1px solid var(--of-line); font-size: 15px; }
.lp-tg-list li:last-child { border-bottom: 1px solid var(--of-line); }
.lp-tg-act { margin-top: 24px; }
.lp-chat { border: 1px solid var(--of-ink); padding: 18px; font-size: 13.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; background: var(--of-surface); }
.lp-chat .lp-folio { font-size: 11px; }
.lp-chat-out { align-self: flex-end; max-width: 85%; padding: 8px 12px; background: var(--of-paper-2); }
.lp-chat-in { align-self: flex-start; max-width: 92%; padding: 8px 12px; border: 1px solid var(--of-line); }
.lp-chat-in .lp-mono { color: var(--of-accent-strong); font-size: 12.5px; }
.lp-ai-notes { margin-top: 20px; border-top: 1px solid var(--of-rule); padding-top: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 12px; }
.lp-ai-notes .lp-badge { margin-right: 8px; }
@media (max-width: 1023px) {
  .lp-tg-main, .lp-tg-chat, .lp-tg-ai { grid-column: 1 / -1; }
  .lp-tg-chat { padding-top: 0; }
}

/* 05 Тарифы */
.lp-price-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.lp-price-head .lp-h2 { max-width: 18ch; font-size: clamp(30px, 3.1vw, 44px); }
.lp-seg { display: flex; border: 1px solid var(--of-ink); font-size: 14px; flex: none; }
.lp-seg button { font: inherit; font-weight: 500; padding: 9px 16px; background: transparent; color: var(--of-ink); border: 0; cursor: pointer; }
.lp-seg button.is-on { background: var(--of-ink); color: var(--of-paper); }
.lp-price-scroll { overflow-x: auto; }
.lp-price { width: 100%; min-width: 760px; border-collapse: collapse; }
.lp-price th { text-align: left; font-weight: 500; padding: 0 16px 18px; border-bottom: 1px solid var(--of-rule); vertical-align: bottom; }
.lp-price th:first-child, .lp-price td:first-child { padding-left: 0; }
.lp-price th:last-child, .lp-price td:last-child { padding-right: 0; }
.lp-price th .lp-pn { font-family: var(--of-serif); font-size: 30px; line-height: 1.1; }
.lp-price th .lp-pn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lp-price th .lp-pd { font-size: 14px; color: var(--of-muted); font-weight: 400; margin-top: 6px; max-width: 26ch; }
.lp-price td { padding: 14px 16px; border-bottom: 1px solid var(--of-line); font-size: 15px; vertical-align: middle; }
.lp-price td:first-child, .lp-price th:first-child { color: var(--of-muted); font-size: 14px; width: 22%; padding-right: 24px; }
.lp-price .lp-p { font-family: var(--of-serif); font-size: 34px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.lp-price .lp-p span { font-family: var(--of-sans); font-size: 14px; color: var(--of-muted); letter-spacing: 0; }
.lp-price th.is-pop, .lp-price td.is-pop { background: var(--of-surface); padding-left: 20px; padding-right: 20px; border-left: 1px solid var(--of-rule); border-right: 1px solid var(--of-rule); }
.lp-price th.is-pop { padding-top: 20px; border-top: 1px solid var(--of-rule); } /* замыкаем рамку выделенной колонки сверху, симметрично низу CTA-строки */
.lp-price th.is-pop + th, .lp-price td.is-pop + td { padding-left: 20px; }
.lp-price tr.lp-price-cta td { padding-top: 20px; border-bottom: none; }
.lp-price tr.lp-price-cta td.is-pop { padding-bottom: 20px; border-bottom: 1px solid var(--of-rule); }
.lp-price tr.lp-price-cta .lp-btn { width: 100%; }
.lp-price-note { margin-top: 20px; max-width: 70ch; }
/* ---------- Документы (layouts/content: /pages, /pages/:slug) ----------
   Заголовок журнальным дисплеем, текст страницы — lp-prose (контент из редактора Trix). */
.lp-doc { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.lp-doc-head { padding-top: 14px; border-top: 1px solid var(--of-rule); margin-bottom: clamp(28px, 3.9vw, 48px); max-width: 860px; }
.lp-doc-title { margin: 14px 0 0; }
.lp-doc-crumb { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lp-doc-crumb:hover { color: var(--of-accent-strong); }
.lp-doc-article { max-width: 760px; }
.lp-prose { font-size: 17px; line-height: 1.7; color: var(--of-ink); overflow-wrap: anywhere; }
/* Контент ActionText лежит в .trix-content — отступы задаём самим элементам, не «детям» */
.lp-prose :is(p, ul, ol, blockquote, pre, table, figure) { margin: 0 0 1em; }
.lp-prose :is(h1, h2, h3) { font-family: var(--of-serif); font-weight: 500; line-height: 1.2; margin: 1.6em 0 .6em; }
.lp-prose .trix-content > :first-child, .lp-prose > :first-child { margin-top: 0; }
.lp-prose h1 { font-size: 32px; }
.lp-prose h2 { font-size: 26px; }
.lp-prose h3 { font-size: 21px; }
.lp-prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lp-prose a:hover { color: var(--of-accent-strong); }
.lp-prose ul, .lp-prose ol { padding-left: 1.4em; }
.lp-prose ul { list-style: disc; }
.lp-prose ol { list-style: decimal; }
.lp-prose li + li { margin-top: .35em; }
.lp-prose blockquote { padding-left: 18px; border-left: 2px solid var(--of-rule); font-family: var(--of-serif); font-style: italic; font-size: 20px; color: var(--of-muted); }
.lp-prose pre, .lp-prose code { font-family: var(--of-mono); font-size: 14px; }
.lp-prose pre { padding: 14px 16px; background: var(--of-paper-2); overflow-x: auto; }
.lp-prose img { max-width: 100%; height: auto; }
.lp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-prose th, .lp-prose td { padding: 8px 10px; border-bottom: 1px solid var(--of-line); text-align: left; vertical-align: top; }
.lp-doc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--of-line); max-width: 860px; }
.lp-doc-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--of-line); }
.lp-doc-list-title { font-family: var(--of-serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
.lp-doc-list-title:hover { color: var(--of-accent-strong); }
@media (max-width: 640px) {
  .lp-doc-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .lp-doc-list li .lp-small { grid-column: 2; }
}

/* ---------- Авторизация (layouts/devise: вход, регистрация, пароль, подтверждение) ----------
   Форма слева в журнальной сетке, справа — о сервисе. Поля — lp-field / lp-label / lp-input. */
.lp-auth { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.lp-auth-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.lp-auth-main { min-width: 0; }
.lp-auth-head { padding-top: 14px; border-top: 1px solid var(--of-rule); margin-bottom: 28px; }
.lp-auth-title { margin: 14px 0 12px; font-size: clamp(34px, 3.4vw, 48px); }
.lp-auth-head .lp-body { margin: 0; }
.lp-auth-form { display: flex; flex-direction: column; }
.lp-auth-form .lp-field { margin-bottom: 20px; }
.lp-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -4px 0 24px; }
.lp-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--of-muted); cursor: pointer; }
.lp-check input { width: 16px; height: 16px; accent-color: var(--of-ink); }
.lp-auth-submit { width: 100%; }
.lp-auth-or { display: flex; align-items: center; gap: 14px; margin: 28px 0 20px; font-family: var(--of-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--of-faint); }
.lp-auth-or::before, .lp-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--of-line); }
.lp-auth-telegram { display: flex; justify-content: center; min-height: 40px; }
.lp-auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--of-line); }
.lp-auth-links p { margin: 0; }
.lp-auth-flash { margin-bottom: 24px; padding: 12px 16px; border-left: 2px solid var(--of-good); background: var(--of-good-soft); font-size: 14px; color: var(--of-ink); }
.lp-auth-flash.is-error { border-left-color: var(--of-danger); background: var(--of-danger-soft); }
.lp-auth-errors { margin-bottom: 24px; padding: 12px 16px; border-left: 2px solid var(--of-danger); background: var(--of-danger-soft); font-size: 14px; color: var(--of-ink); }
.lp-auth-errors .lp-folio { margin: 0 0 6px; color: var(--of-danger); }
.lp-auth-errors ul { margin: 0; padding-left: 18px; }
.lp-auth-danger { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--of-rule); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-auth-danger .lp-small { margin: 0; }
.lp-auth-danger-btn { border-color: var(--of-danger); color: var(--of-danger); }
.lp-auth-danger-btn:hover { background: var(--of-danger); border-color: var(--of-danger); color: var(--of-paper); }
.lp-auth-aside { position: sticky; top: 32px; padding-top: 14px; border-top: 1px solid var(--of-rule); }
.lp-auth-quote { margin: 18px 0 28px; font-family: var(--of-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; color: var(--of-ink); text-wrap: balance; }
.lp-auth-points { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--of-line); }
.lp-auth-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--of-line); font-size: 15.5px; color: var(--of-muted); }
.lp-auth-trial b { color: var(--of-ink); font-weight: 500; }
@media (max-width: 860px) {
  .lp-auth-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-auth-aside { position: static; }
  .lp-auth-points li { font-size: 14.5px; }
}

.lp-price-packs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--of-line); }
.lp-price-pack { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--of-ink); }
.lp-price-empty { padding: 28px 0; border-top: 1px solid var(--of-rule); border-bottom: 1px solid var(--of-line); }
.lp-price-cards { display: none; }
@media (max-width: 860px) {
  .lp-price-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .lp-price-scroll { display: none; }
  .lp-price-cards { display: flex; flex-direction: column; gap: 8px; }
  .lp-price-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--of-line); }
  .lp-price-card.is-pop { background: var(--of-surface); border: 1px solid var(--of-ink); padding: 22px; margin-bottom: 8px; gap: 14px; }
  .lp-price-card .lp-pn-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .lp-price-card .lp-pn { font-family: var(--of-serif); font-size: 26px; font-weight: 500; }
  .lp-price-card .lp-p { font-family: var(--of-serif); font-size: 36px; line-height: 1; }
  .lp-price-card .lp-p span { font-family: var(--of-sans); font-size: 14px; color: var(--of-muted); }
  .lp-price-card:not(.is-pop) .lp-p { font-size: 24px; }
  .lp-price-card-rows { display: flex; flex-direction: column; font-size: 15px; }
  .lp-price-card-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--of-line); }
  .lp-price-card-rows div:last-child { border-bottom: 1px solid var(--of-line); }
  .lp-price-card-rows div span:first-child { color: var(--of-muted); }
  .lp-price-card .lp-btn { width: 100%; }
}

/* 06 Вопросы */
.lp-faq-title { grid-column: 1 / span 3; }
.lp-faq-title .lp-h2 { font-size: clamp(30px, 2.8vw, 40px); }
.lp-faq { grid-column: 4 / span 9; }
.lp-q { border-top: 1px solid var(--of-line); }
.lp-q:first-child { border-top-color: var(--of-rule); }
.lp-q:last-child { border-bottom: 1px solid var(--of-line); }
.lp-q summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr 32px; gap: 20px; padding: 24px 0; align-items: start; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q .lp-n { font-family: var(--of-serif); font-style: italic; font-size: 20px; color: var(--of-muted); line-height: 1.3; }
.lp-q b { font-family: var(--of-serif); font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; line-height: 1.25; }
.lp-q svg { width: 20px; height: 20px; color: var(--of-faint); margin-top: 6px; transition: transform .18s ease; }
.lp-q[open] svg { transform: rotate(180deg); }
.lp-q p { font-size: 16px; color: var(--of-muted); max-width: 64ch; padding: 0 0 24px 84px; }
@media (max-width: 1023px) { .lp-faq-title, .lp-faq { grid-column: 1 / -1; } .lp-faq-title { margin-bottom: 8px; } }
@media (max-width: 560px) {
  .lp-q summary { grid-template-columns: 32px 1fr 24px; gap: 12px; padding: 18px 0; }
  .lp-q p { padding-left: 44px; }
}

/* Колофон-CTA */
.lp-colophon { background: var(--of-ink); color: var(--of-paper); padding: clamp(56px, 7.2vw, 104px) 0; }
.lp-colophon .lp-muted { color: var(--of-on-dark-muted); }
.lp-colophon-grid { align-items: end; row-gap: 40px; }
.lp-colophon-text { grid-column: 1 / span 8; }
.lp-colophon-text .lp-folio { color: var(--of-accent-on-dark); margin-bottom: 24px; display: block; }
.lp-colophon-text .lp-h2 { font-size: clamp(36px, 4.4vw, 64px); color: var(--of-paper); }
.lp-colophon-cta { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 12px; }
.lp-colophon-cta p { font-size: 16px; margin-bottom: 8px; }
@media (max-width: 1023px) { .lp-colophon-text, .lp-colophon-cta { grid-column: 1 / -1; } }

/* Заявка */
.lp-ar-grid { row-gap: 40px; align-items: start; }
.lp-ar-text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 18px; }
.lp-ar-form { grid-column: 7 / span 6; background: var(--of-surface); border: 1px solid var(--of-ink); padding: clamp(22px, 2.8vw, 40px); }
.lp-ar-form h3 { margin-bottom: 22px; }
.lp-field { margin-bottom: 16px; }
.lp-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-family: var(--of-mono); color: var(--of-muted); margin-bottom: 8px; }
.lp-input { width: 100%; font-family: inherit; font-size: 16px; color: var(--of-ink); background: transparent; border: 0; border-bottom: 1px solid var(--of-ink); border-radius: 0; padding: 10px 0; transition: border-color .15s ease; }
.lp-input::placeholder { color: var(--of-faint); }
.lp-input:focus { outline: none; border-bottom-color: var(--of-accent); box-shadow: 0 1px 0 var(--of-accent); }
.lp-help { font-size: 13px; color: var(--of-faint); margin: 6px 0 0; }
.lp-ar-fields .lp-btn { width: 100%; margin-top: 8px; }
.lp-ar-success { text-align: center; padding: 14px 0; }
.lp-ar-success h3 { margin-bottom: 10px; }
.lp-ar-success p { color: var(--of-muted); font-size: 15px; margin: 0 auto 10px; max-width: 40ch; }
.lp-ar-error { margin-top: 14px; padding: 12px 14px; background: var(--of-danger-soft); border: 1px solid color-mix(in srgb, var(--of-danger) 25%, transparent); color: var(--of-danger); font-size: 14px; }
@media (max-width: 1023px) { .lp-ar-text, .lp-ar-form { grid-column: 1 / -1; } }

/* Футер */
.lp-foot { padding: clamp(36px, 3.9vw, 56px) 0 40px; }
.lp-foot-grid { row-gap: 32px; }
.lp-foot-about { grid-column: 1 / span 4; }
.lp-foot-about .lp-brand { display: inline-flex; margin-bottom: 12px; } /* как в мастхеде: знак 28px, зазор 10px, по центру строки */
.lp-foot-about p { max-width: 36ch; }
/* Колонки ссылок: сколько бы блоков ни пришло из админки, раскладываются равномерно */
.lp-foot-cols { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.lp-foot-col { min-width: 0; }
.lp-foot-col .trix-content ul, .lp-foot-col .trix-content ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-foot-col .trix-content a { color: var(--of-muted); font-size: 14.5px; }
.lp-foot-col .trix-content a:hover { color: var(--of-ink); }
.lp-foot-col .trix-content div { font-size: 14.5px; color: var(--of-muted); }
.lp-foot h5 { margin: 0 0 14px; font-family: var(--of-serif); font-style: italic; font-weight: 400; font-size: 16px; }
.lp-foot ul { display: flex; flex-direction: column; gap: 9px; }
.lp-foot li a { color: var(--of-muted); font-size: 14.5px; }
.lp-foot li a:hover { color: var(--of-ink); }
.lp-foot-social { display: flex; gap: 10px; margin-top: 16px; }
.lp-foot-social a { width: 36px; height: 36px; border: 1px solid var(--of-ink); display: grid; place-items: center; color: var(--of-ink); }
.lp-foot-social a:hover { background: var(--of-ink); color: var(--of-paper); }
.lp-foot-social svg { width: 18px; height: 18px; }
.lp-foot-bottom { margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--of-muted); line-height: 1.6; }
@media (max-width: 860px) {
  .lp-foot-about, .lp-foot-cols { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .lp-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Появление */
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal { opacity: 0; transform: translateY(12px); animation: lp-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .lp-reveal.lp-d1 { animation-delay: .1s; }
  .lp-reveal.lp-d2 { animation-delay: .2s; }
  @keyframes lp-rise { to { opacity: 1; transform: none; } }
}
