/* ============================================================
 * Лендинг «Арендаток» v3 (Arendatok-Landing/Арендаток - Лендинг v3.dc.html,
 * дизайн-контекст v3 — Arendatok-Landing/brief-v3.md).
 *
 * Файл попадает и в общий бандл :app (layouts CRM подключают все стили
 * каталога), поэтому всё здесь — только классы с префиксом lp- и правила
 * внутри .lp-body: стили CRM и кабинета он не трогает. Сам лендинг
 * подключает лишь fonts.css и этот файл (layouts/landing).
 * ============================================================ */

.lp-body {
  --lp-bg: #F4F5F7;
  --lp-surface: #FFFFFF;
  --lp-surface-soft: #FAFBFC;
  --lp-stage: #E9EBF0;
  --lp-text: #161B26;
  --lp-muted: #535D6F;
  --lp-faint: #9AA3B2;
  --lp-on-dark: #F2F4F7;
  --lp-accent: #2F54C9;
  --lp-accent-hover: #2443A6;
  --lp-line: #E4E7EC;
  --lp-line-soft: #EEF0F3;
  --lp-control: #D5D9E0;
  --lp-control-hover: #9AA3B2;
  --lp-dash: #C9CED8;
  --lp-ok-bg: #DCF5E3;
  --lp-ok: #14612E;
  --lp-warn-bg: #FDEFD2;
  --lp-warn: #7A4B00;
  --lp-danger-bg: #FDE2E0;
  --lp-danger: #A3261E;
  --lp-field-error: #D92D20;
  --lp-info-bg: #E3EAFB;
  --lp-info: #2443A6;
  --lp-shadow-float: 0 0 0 1px rgba(22, 27, 38, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.18);
  --lp-shadow-card: 0 0 0 1px rgba(22, 27, 38, 0.08);
  --lp-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lp-sans: "Onest", -apple-system, system-ui, sans-serif;
  --lp-mono: "JetBrains Mono", ui-monospace, monospace;
  --lp-gutter: clamp(16px, 3vw, 32px);

  margin: 0;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  padding-bottom: 96px;
}

.lp-body *,
.lp-body *::before,
.lp-body *::after { box-sizing: border-box; }

.lp-body a { color: var(--lp-accent); }
.lp-body a:hover { color: var(--lp-accent-hover); }
.lp-body button,
.lp-body input,
.lp-body textarea { font-family: inherit; }
.lp-body :focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.lp-body) { scroll-behavior: smooth; }
}

.lp-mono { font-family: var(--lp-mono); }
.lp-num { font-variant-numeric: tabular-nums; }
.lp-nowrap { white-space: nowrap; }

.lp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}

/* Надстрочник «01 · Начисление»: Onest 500, прописные, разрядка +4 % */
.lp-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.lp-h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lp-lead {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--lp-muted);
  text-wrap: pretty;
}

/* ---------- Кнопки ---------- */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 100ms, color 100ms, box-shadow 100ms;
}
.lp-btn--dark { background: var(--lp-text); color: var(--lp-on-dark); }
.lp-body .lp-btn--dark,
.lp-body .lp-btn--dark:hover { color: var(--lp-on-dark); }
.lp-body .lp-btn--dark:hover { background: var(--lp-accent); color: #fff; }
.lp-btn--accent { background: var(--lp-accent); color: #fff; }
.lp-body .lp-btn--accent,
.lp-body .lp-btn--accent:hover { color: #fff; }
.lp-body .lp-btn--accent:hover { background: var(--lp-accent-hover); }
.lp-btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--lp-text);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--lp-control);
}
.lp-body .lp-btn--ghost,
.lp-body .lp-btn--ghost:hover { color: var(--lp-text); }
.lp-body .lp-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--lp-control-hover); }
.lp-btn--md { height: 40px; padding: 0 16px; font-size: 14px; }
.lp-btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.lp-btn--block { display: flex; width: 100%; }
.lp-btn[disabled] { opacity: 0.6; cursor: progress; }

/* Пилюля «Пауза» у петель (WCAG 2.2.2): стекло поверх сцены */
.lp-pause {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--lp-shadow-card);
  color: var(--lp-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
html:not(.lp-motion) .lp-pause { display: none; }

.lp-caption {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  font-size: 12px;
  color: var(--lp-muted);
}

/* Метки статуса: всегда словом, цвет — по смыслу */
.lp-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.lp-tag--ok { background: var(--lp-ok-bg); color: var(--lp-ok); }
.lp-tag--warn { background: var(--lp-warn-bg); color: var(--lp-warn); }
.lp-tag--danger { background: var(--lp-danger-bg); color: var(--lp-danger); }
.lp-tag--info { background: var(--lp-info-bg); color: var(--lp-info); }

/* ---------- Первый экран ---------- */

.lp-hero {
  position: relative;
  /* Облака сдвигаются параллаксом вниз — за секцию не выходят */
  overflow: clip;
  min-height: min(100vh, 920px);
  display: flex;
  flex-direction: column;
  background: var(--lp-surface);
}

/* Атмосфера: тёплые облака и сетка 14 px в углах, маской растворяются */
.lp-hero__art {
  position: absolute;
  inset: -120px 0 0;
  pointer-events: none;
  will-change: transform;
}
.lp-hero__art > span { position: absolute; inset: 0; }
.lp-hero__glow {
  background:
    radial-gradient(64% 70% at 100% 0%, #FFC9A8 0%, #FFC9A8 18%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(56% 62% at 0% 100%, #CBC2FF 0%, #CBC2FF 16%, rgba(255, 255, 255, 0) 100%);
}
.lp-hero__grid--a {
  background:
    linear-gradient(to right, rgba(224, 106, 38, 0.4) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(to bottom, rgba(224, 106, 38, 0.4) 1px, transparent 1px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(62% 66% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
  mask-image: radial-gradient(62% 66% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
}
.lp-hero__grid--b {
  background:
    linear-gradient(to right, rgba(110, 86, 230, 0.4) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(to bottom, rgba(110, 86, 230, 0.4) 1px, transparent 1px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(54% 58% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
  mask-image: radial-gradient(54% 58% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
}
.lp-hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 58%, var(--lp-bg) 100%);
  pointer-events: none;
}

.lp-header {
  position: relative;
  z-index: 5;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.lp-body .lp-brand,
.lp-body .lp-brand:hover { color: var(--lp-text); }
.lp-brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lp-text);
  color: var(--lp-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lp-mono);
  font-size: 13px;
  font-weight: 500;
}
.lp-header__actions { display: flex; align-items: center; gap: 8px; }
.lp-header__login {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.lp-body .lp-header__login { color: var(--lp-text); }
.lp-body .lp-header__login:hover { color: var(--lp-text); background: rgba(22, 27, 38, 0.06); }
.lp-cta-short { display: none; }

.lp-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(120px, 16vw, 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lp-hero__copy { max-width: 980px; }
.lp-hero__copy .lp-eyebrow { margin-bottom: 24px; }
.lp-hero__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lp-hero__lead {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  color: var(--lp-muted);
  text-wrap: pretty;
}
.lp-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero__note { margin: 18px 0 0; font-size: 16px; line-height: 1.5; color: var(--lp-muted); }

/* ---------- L1 «Кокпит оживает»: окно главной CRM на сцене ---------- */

.lp-product {
  position: relative;
  z-index: 3;
  /* В макете clamp(-96px, -10vw, -140px) — по правилам clamp это всегда −96 px */
  margin-top: -96px;
  scroll-margin-top: 16px;
}
.lp-stage {
  position: relative;
  background: var(--lp-stage);
  border-radius: 20px;
  padding: clamp(12px, 2.6vw, 36px);
}

/* Парящая квитанция «Платёж разнесён» — только на широком экране */
.lp-float-receipt {
  position: absolute;
  left: -18px;
  bottom: 52px;
  width: 252px;
  z-index: 2;
  transform: rotate(-2deg);
  background: #fff;
  padding: 12px 14px 14px;
  font-family: var(--lp-mono);
  font-size: 11px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--lp-shadow-float);
}
.lp-float-receipt__title { font-family: var(--lp-sans); font-size: 13px; font-weight: 600; }

/* Чек: пунктирные разделители, строки «подпись — сумма», рваный край */
.lp-receipt-line { display: flex; justify-content: space-between; gap: 8px; }
.lp-receipt-dash { border-top: 1px dashed var(--lp-dash); margin: 8px 0; }
.lp-receipt-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 7px;
  background:
    linear-gradient(-45deg, transparent 4.9px, #fff 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(45deg, transparent 4.9px, #fff 0) 5px 0 / 10px 10px repeat-x;
}

.lp-window {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--lp-shadow-float);
}
.lp-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  background: var(--lp-surface-soft);
  border-bottom: 1px solid var(--lp-line);
}
.lp-window__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-control); }
.lp-window__title { flex: 1; text-align: center; font-size: 12px; color: var(--lp-muted); margin-right: 44px; }
.lp-window__body { display: flex; }

.lp-side {
  width: 232px;
  flex-shrink: 0;
  border-right: 1px solid var(--lp-line);
  background: var(--lp-surface-soft);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-side__org {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-side__org-label { font-size: 11px; color: var(--lp-muted); }
.lp-side__org-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-side__org-switch { color: var(--lp-faint); font-size: 12px; }
.lp-side__item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-side__item--active { background: var(--lp-info-bg); color: var(--lp-info); font-weight: 500; }
.lp-side__count {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--lp-danger-bg);
  color: var(--lp-danger);
}
.lp-side__close { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--lp-line); }
.lp-side__close-label { font-size: 11px; color: var(--lp-muted); }
.lp-side__progress { margin-top: 6px; height: 4px; border-radius: 2px; background: var(--lp-line); overflow: hidden; }
.lp-side__progress > span { display: block; width: 60%; height: 100%; background: var(--lp-accent); }
.lp-side__close-steps { margin-top: 4px; font-size: 12px; }

.lp-cockpit {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: clamp(14px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.lp-cockpit__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.lp-cockpit__title { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.lp-cockpit__sub { font-size: 13px; color: var(--lp-muted); font-variant-numeric: tabular-nums; }
.lp-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--lp-control);
  background: #fff;
}
.lp-period > span { color: var(--lp-muted); }

.lp-cockpit__tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-panel { border: 1px solid var(--lp-line); border-radius: 10px; }
.lp-showcase {
  flex: 1 1 380px;
  min-width: 0;
  padding: clamp(14px, 1.6vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-muted-13 { font-size: 13px; color: var(--lp-muted); }
.lp-showcase__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lp-showcase__sum {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lp-indicators { flex: 0 1 272px; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.lp-indicator {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-indicator__label { font-size: 12px; color: var(--lp-muted); }
.lp-indicator__value {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.lp-chevron { color: var(--lp-faint); font-size: 18px; }

.lp-attention { overflow: hidden; }
.lp-attention__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--lp-surface-soft);
  font-size: 14px;
  font-weight: 600;
}
.lp-attention__count {
  font-size: 12px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--lp-bg);
  color: var(--lp-muted);
}
.lp-attention__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--lp-line-soft);
}
.lp-attention__status { position: relative; flex: 0 0 118px; height: 22px; }
.lp-attention__status > .lp-tag { position: absolute; left: 0; top: 0; }
.lp-attention__text { flex: 1 1 220px; min-width: 0; }
.lp-attention__title { font-size: 14px; font-weight: 500; }
.lp-attention__meta { font-size: 12px; color: var(--lp-muted); font-variant-numeric: tabular-nums; }
.lp-row-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--lp-control);
}
.lp-row-btn--primary {
  border: 0;
  background: var(--lp-accent);
  color: #fff;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
  min-width: 150px;
  justify-content: center;
  box-shadow: none;
  transition: transform 100ms;
}

/* Финальный кадр сцены «Выставлено» (сцену ведёт JS через CSSOM) */
.lp-row-btn--done {
  background: #DCF5E3;
  color: #14612E;
}

.lp-cursor {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2px;
  z-index: 3;
  will-change: transform;
  transform: translate(-9999px, 0);
}
.lp-cursor__name {
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lp-text);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.lp-toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 0);
  max-width: calc(100% - 32px);
  background: var(--lp-text);
  color: var(--lp-on-dark);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}
.lp-toast__check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lp-ok-bg);
  color: var(--lp-ok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- L2 «Деньги от арендатора»: лента из пяти шагов ---------- */

.lp-section { position: relative; padding-top: clamp(72px, 9vw, 128px); scroll-margin-top: 16px; }
.lp-section__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px 56px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--lp-line);
}

.lp-strip {
  position: relative;
  margin-top: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8FA3D9 0%, #C3D0EF 52%, #E6ECFA 100%);
  padding: 76px 24px 24px;
}
.lp-strip__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

/* Линия, заливка прогресса, шевроны и жетон ставит сцена по замерам;
 * пока сцена не готова (или JS не загрузился), они скрыты */
.lp-strip__line,
.lp-strip__fill { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 2px; }
.lp-strip__fill { background: var(--lp-text); }
.lp-strip__chev {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms;
}
.lp-token {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 14px;
  background: var(--lp-text);
  color: var(--lp-on-dark);
  font-family: var(--lp-mono);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
  will-change: transform;
  z-index: 3;
}
.lp-strip:not(.is-ready) :is(.lp-strip__line, .lp-strip__fill, .lp-strip__chev, .lp-token, .lp-step__stem) { visibility: hidden; }

.lp-step {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--lp-shadow-card);
  transition: box-shadow 240ms var(--lp-ease-out), transform 240ms var(--lp-ease-out);
}
.lp-step__stem { position: absolute; background: var(--lp-text); opacity: 0.3; }
.lp-step__dot {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--lp-text);
  color: var(--lp-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 500;
  z-index: 2;
  transition: background 200ms, color 200ms, box-shadow 240ms var(--lp-ease-out);
}
.lp-step .lp-eyebrow { margin: 0; }
.lp-step__title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lp-step__text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lp-muted); }

/* Мини-сцена шага */
.lp-mini {
  position: relative;
  margin-top: auto;
  height: 212px;
  border-radius: 8px;
  background: var(--lp-bg);
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.lp-mini--gap8 { gap: 8px; }
.lp-mini__label { font-size: 11px; color: var(--lp-muted); }
.lp-mini__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}
/* Колонка шага на 1440 — около 150 px: сумма с копейками и название
 * рядом не помещаются. В узкой мини-сцене строка встаёт в две строки —
 * название сверху, сумма целиком снизу */
.lp-mini { container-type: inline-size; }
.lp-mini__row > :last-child { flex: none; }
@container (max-width: 200px) {
  .lp-mini__row { flex-direction: column; align-items: flex-start; gap: 1px; padding-top: 4px; padding-bottom: 4px; }
}
/* Строки в две строки длиннее — в ленте из пяти колонок сцене нужна
 * высота 250 вместо 212 (иначе чек шага «Платёж» и пауза шага
 * «Напоминание» обрезаются) */
@media (min-width: 960px) {
  .lp-mini { height: 250px; }
}
.lp-mini__row--sm { font-size: 11px; min-height: 28px; }
.lp-mini__more { font-size: 11px; color: var(--lp-muted); }
.lp-mini__total {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed var(--lp-dash);
  padding-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.lp-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  background: #fff;
  border-radius: 6px 6px 0 0;
  padding: 10px 10px 12px;
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-sheet__title { font-size: 12px; font-weight: 600; }
.lp-sheet__line { font-size: 11px; }
.lp-sheet__line--muted { color: var(--lp-muted); }
.lp-sheet__sign { font-size: 10px; color: var(--lp-muted); }
.lp-sheet__total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--lp-text);
  font-size: 12px;
  font-weight: 600;
}
.lp-sheet__pdf {
  position: absolute;
  top: -11px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--lp-text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.lp-match { position: relative; display: flex; flex-direction: column; gap: 4px; }
.lp-match__link-wrap { display: flex; justify-content: center; height: 10px; }
.lp-match__link { width: 2px; height: 10px; background: var(--lp-text); transform-origin: top; }
.lp-match__tag { height: 18px; padding: 0 6px; font-size: 11px; }
.lp-match__coin {
  position: absolute;
  right: 6px;
  top: 3px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--lp-text);
  color: #fff;
  font-family: var(--lp-mono);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  z-index: 2;
}
.lp-mini-receipt {
  margin: auto 0 8px;
  position: relative;
  background: #fff;
  padding: 8px 10px 10px;
  font-family: var(--lp-mono);
  font-size: 11px;
  line-height: 1.5;
}
.lp-mini-receipt .lp-receipt-dash { margin: 4px 0; }
.lp-mini-receipt .lp-receipt-edge {
  bottom: -6px;
  height: 6px;
  background:
    linear-gradient(-45deg, transparent 4px, #fff 0) 0 0 / 8px 8px repeat-x,
    linear-gradient(45deg, transparent 4px, #fff 0) 4px 0 / 8px 8px repeat-x;
}

.lp-legend__key { display: flex; align-items: center; gap: 6px; }
.lp-legend__key > span { width: 8px; height: 8px; border-radius: 2px; }
.lp-aging-1 { background: #F2B8B2; }
.lp-aging-2 { background: #E0675C; }
.lp-aging-3 { background: #A3261E; }

.lp-msg {
  background: #fff;
  border-radius: 10px 10px 10px 2px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
}
.lp-msg__buttons { display: flex; gap: 4px; }
.lp-msg__buttons > span {
  flex: 1;
  text-align: center;
  padding: 5px 6px;
  border-radius: 6px;
  background: #fff;
  color: var(--lp-accent);
  font-size: 11px;
  font-weight: 500;
}
.lp-msg-pause {
  margin-top: auto;
  align-self: flex-start;
  height: auto;
  min-height: 22px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

/* До старта сцены (движение разрешено, JS подхватит) скрыты элементы
 * первого экрана, которые сцена «проявляет», — чтобы не мигнул финальный
 * кадр. Без JS и при уменьшенном движении виден финальный кадр. Класс
 * lp-motion ставит скрипт в <head>. Сцене ниже первого экрана это не
 * нужно: она встаёт в начальный кадр задолго до прокрутки к ней */
.lp-motion [data-pre="hidden"] { opacity: 0; }

/* ---------- Смыслы Р-164: кокпит, «Деньги от арендатора», «Деньги собственнику» ---------- */

/* Кокпит: вместо графика сборов — «Долг по срокам просрочки», как на главной CRM */
.lp-bars { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lp-line-soft); display: flex; flex-direction: column; gap: 10px; }
.lp-bars__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; }
.lp-bars__head .lp-muted { font-weight: 400; }
.lp-bars__row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.lp-bars__label { color: var(--lp-muted); white-space: nowrap; }
.lp-bars__track { height: 8px; border-radius: 4px; background: var(--lp-line-soft); overflow: hidden; }
.lp-bars__fill { display: block; height: 100%; border-radius: 4px; transform-origin: left; }
.lp-bars__sum { font-size: 12px; white-space: nowrap; text-align: right; }
.lp-w-57-6 { width: 57.6%; }
.lp-w-31-1 { width: 31.1%; }
.lp-w-11-3 { width: 11.3%; }

/* Жетон ленты «Октябрь 2026» — знак рубля в кружке */
.lp-token__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--lp-sans);
  font-size: 10px;
  font-weight: 600;
}

/* 04 · Дата оплаты: лист кабинета, а не пузырь чата */
.lp-msg--sheet { border-radius: 8px; }
.lp-msg__buttons > .lp-msg__pick--on { box-shadow: inset 0 0 0 1px var(--lp-accent); }
.lp-datepick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px var(--lp-accent);
}
/* Колонка ленты на 960–1199 — около 115 px: дата уходит под подпись */
@container (max-width: 150px) {
  .lp-datepick { flex-wrap: wrap; gap: 0 8px; }
}

/* 05 · Звонок ИИ-ассистента: разговор, причина, обещание, пауза */
.lp-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
}
.lp-call__icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lp-ok-bg);
  color: var(--lp-ok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-call__name { flex: 1 0 auto; font-weight: 500; white-space: nowrap; }
.lp-call__time { flex: none; color: var(--lp-muted); }
.lp-call__line { background: #fff; border-radius: 6px; padding: 5px 8px; font-size: 11px; line-height: 1.35; }
.lp-call__key { display: block; font-size: 10px; line-height: 13px; color: var(--lp-muted); }
.lp-call__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
/* Кнопка и метка паузы — в одной ячейке: одна сменяет другую на месте */
.lp-swap { display: grid; margin-top: auto; }
.lp-swap > * { grid-area: 1 / 1; align-self: end; justify-self: start; }
.lp-swap > .lp-msg-pause { margin-top: 0; }
.lp-mini > .lp-msg-pause { flex-shrink: 0; }

/* L7 «Деньги собственнику»: отчёт агента и акты расходов на сцене */
.lp-owner { margin-top: 32px; }
.lp-owner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  background: var(--lp-stage);
  border-radius: 20px;
  padding: clamp(12px, 2.6vw, 36px);
}
.lp-owner__report,
.lp-owner__docs {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--lp-shadow-float);
  padding: clamp(16px, 2vw, 24px);
}
.lp-owner__report { display: flex; flex-direction: column; }
.lp-owner__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lp-owner__party { margin-top: 2px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lp-owner__pdf {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lp-text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.lp-owner__collected { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.lp-owner__sum {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lp-split { display: flex; gap: 2px; height: 14px; margin-top: 14px; transform-origin: left; }
.lp-split__seg { position: relative; overflow: hidden; border-radius: 4px; background: var(--lp-accent); }
.lp-split__ink { position: absolute; inset: 0; }
.lp-split__ink--fee,
.lp-split-key--fee { background: var(--lp-muted); }
.lp-split__ink--exp,
.lp-split-key--exp { background: #D9932B; }
.lp-split-key--out { background: var(--lp-accent); }
.lp-owner__legend { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.lp-owner__line,
.lp-owner__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lp-owner__legend .lp-legend__key > span { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.lp-owner__total { margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--lp-dash); font-size: 16px; font-weight: 600; }
.lp-owner__note { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--lp-muted); }

.lp-owner__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lp-owner__docs { display: flex; flex-direction: column; gap: 8px; }
.lp-owner__docs .lp-mini__label { margin-bottom: 4px; }
.lp-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--lp-bg);
  font-size: 13px;
}
.lp-doc__title { font-weight: 500; }
.lp-doc__meta { font-size: 12px; color: var(--lp-muted); }
.lp-doc__tag { flex: none; }
.lp-doc__strike {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  background: var(--lp-danger);
  transform-origin: left;
}
.lp-doc--void .lp-doc__title { position: relative; display: inline-block; color: var(--lp-muted); }
.lp-owner__receipt {
  position: relative;
  margin-bottom: 8px;
  background: #fff;
  padding: 12px 14px 14px;
  font-family: var(--lp-mono);
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--lp-shadow-float);
}
.lp-owner__receipt .lp-w500 { font-family: var(--lp-sans); font-size: 13px; font-weight: 600; }

@media (min-width: 960px) and (max-width: 1199px) {
  .lp-mini { height: 300px; }
}
@media (max-width: 959px) {
  .lp-owner__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .lp-bars__row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px; }
  .lp-doc { flex-wrap: wrap; }
}

/* ---------- Онбординг ---------- */

.lp-onboarding__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(22, 27, 38, 0.06);
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px 56px;
  align-items: start;
}
.lp-onboarding__intro .lp-lead { margin-top: 16px; max-width: 560px; }
.lp-plan { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; }
.lp-plan__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--lp-line);
}
.lp-plan__num {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lp-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 500;
}
.lp-plan__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.lp-plan__from { font-size: 14px; line-height: 1.45; color: var(--lp-muted); }

.lp-form-card {
  border-radius: 12px;
  background: var(--lp-bg);
  padding: clamp(16px, 2.4vw, 28px);
}
.lp-form { display: flex; flex-direction: column; gap: 16px; }
.lp-form__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.lp-form__alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--lp-danger-bg);
  color: var(--lp-danger);
  font-size: 14px;
  line-height: 1.4;
}
/* Два поля в ряд: подпись, поле и ошибка — общие строки сетки (subgrid),
 * поэтому поля стоят на одной линии, даже если одна подпись в две строки */
.lp-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 0; }
.lp-form__row > .lp-field { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; row-gap: 6px; }
.lp-form__row > .lp-field > .lp-field__label { align-self: end; }
.lp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.lp-field__label { font-size: 13px; line-height: 18px; font-weight: 500; padding: 0; }
.lp-field__optional { font-weight: 400; color: var(--lp-muted); }
.lp-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #CDD3DD;
  border-radius: 8px;
  background: #fff;
  color: var(--lp-text);
  font-size: 16px;
  transition: border-color 100ms, box-shadow 100ms;
}
textarea.lp-input { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.lp-input:hover { border-color: var(--lp-control-hover); }
.lp-body .lp-input:focus-visible { outline: none; border-color: var(--lp-accent); box-shadow: 0 0 0 3px rgba(47, 84, 201, 0.18); }
.lp-input[aria-invalid="true"] { border-color: var(--lp-field-error); }
.lp-field__error { font-size: 12px; line-height: 16px; color: var(--lp-danger); }

/* Размер портфеля — радио-кнопки пилюлями */
.lp-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-choice { position: relative; }
.lp-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lp-choice span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #CDD3DD;
  font-size: 14px;
  white-space: nowrap;
  transition: background 100ms, color 100ms, box-shadow 100ms;
}
.lp-choice input:hover + span { box-shadow: inset 0 0 0 1px var(--lp-control-hover); }
.lp-choice input:checked + span { background: var(--lp-text); color: var(--lp-on-dark); box-shadow: none; }
.lp-choice input:focus-visible + span { outline: 2px solid var(--lp-accent); outline-offset: 2px; }

.lp-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--lp-muted); cursor: pointer; }
.lp-consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--lp-accent); cursor: pointer; }
.lp-form__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lp-muted); }

/* Ловушка для ботов: поле есть в разметке, людям не видно */
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lp-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.lp-done__check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lp-ok-bg);
  color: var(--lp-ok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-done__title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.lp-done__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--lp-muted); }

.lp-footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--lp-muted);
}
.lp-footer strong { font-weight: 600; color: var(--lp-text); }
.lp-body .lp-footer a { color: var(--lp-muted); }

/* ---------- Плавающая стеклянная панель разделов ---------- */

.lp-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 40;
  /* Три вкладки (Р-164): активная с подписью до ~100 px, две иконки и «Ещё» */
  width: 316px;
  height: 52px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(22, 27, 38, 0.08), 0 24px 48px -12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.lp-dock.is-open { height: 156px; border-radius: 20px; }
.lp-dock__bar { display: flex; align-items: center; gap: 4px; padding: 6px; height: 52px; }
.lp-dock__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.lp-body .lp-dock__tab,
.lp-body .lp-dock__tab:hover { color: var(--lp-text); }
.lp-dock__tab-label { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; }
.lp-body .lp-dock__tab.is-active { background: var(--lp-text); color: var(--lp-on-dark); padding: 0 14px 0 11px; }
.lp-dock__tab.is-active .lp-dock__tab-label { max-width: 120px; opacity: 1; }
.lp-dock__more {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--lp-text);
  cursor: pointer;
}
.lp-dock.is-open .lp-dock__more { background: rgba(22, 27, 38, 0.08); }
.lp-dock__menu { padding: 2px 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.lp-dock:not(.is-open) .lp-dock__menu { visibility: hidden; }
.lp-dock__link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.lp-body .lp-dock__link,
.lp-body .lp-dock__link:hover { color: var(--lp-text); }
.lp-body .lp-dock__link:hover { background: rgba(22, 27, 38, 0.06); }
.lp-dock__sep { height: 1px; background: rgba(22, 27, 38, 0.08); margin: 4px 10px; }

@media (prefers-reduced-motion: no-preference) {
  .lp-dock,
  .lp-dock__tab,
  .lp-dock__tab-label,
  .lp-dock__more {
    transition:
      width 320ms var(--lp-ease-out), height 320ms var(--lp-ease-out),
      border-radius 320ms var(--lp-ease-out), max-width 320ms var(--lp-ease-out),
      padding 320ms var(--lp-ease-out), opacity 200ms, background 160ms, color 160ms;
  }
}

/* ---------- Узкий экран (<960): как narrow-режим макета ---------- */

@media (max-width: 959px) {
  .lp-cta-full { display: none; }
  .lp-cta-short { display: inline; }
  .lp-float-receipt,
  .lp-side { display: none; }

  .lp-strip { padding: 56px 16px 20px 16px; }
  .lp-strip__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lp-step__dot { top: -28px; left: 24px; }

  .lp-onboarding__card { grid-template-columns: minmax(0, 1fr); }
  /* Показатели под витриной — во всю ширину, а не 272 px */
  .lp-indicators { flex-grow: 1; }
}

@media (max-width: 479px) {
  .lp-header__login { padding: 0 8px; }
  .lp-form__row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .lp-form__row > .lp-field { display: flex; grid-row: auto; }
  .lp-form__row > .lp-field > .lp-field__label { align-self: auto; }
}

/* Утилиты вместо inline-стилей (CSP без 'unsafe-inline', W3) */
.lp-mt-6 { margin-top: 6px; }
.lp-list-reset { list-style: none; margin: 0; padding: 0; }
.lp-w500 { font-weight: 500; }
.lp-muted { color: var(--lp-muted); }
.lp-pad-5-8 { padding: 5px 8px; }
.lp-minw0 { min-width: 0; }
.lp-invisible { opacity: 0; }
.lp-flex-8 { flex: 8; }
.lp-flex-17-8 { flex: 17.8; }
.lp-flex-74-2 { flex: 74.2; }
