/* ============================================================================
   B7 Nesting — лендинг. «Тихая элегантность»: максимум воздуха, крупная
   спокойная типографика (Onest), почти монохром с одним сдержанным акцентом.
   Цвет и «характер» дают сами скриншоты продукта, а не декор. Мягкие тени,
   волосяные линии, ноль мишуры. Тема-адаптивно, всё под body.lp.
   ========================================================================== */

@font-face{font-family:'Onest';font-style:normal;font-weight:300 800;font-display:swap;src:url(/static/fonts/onest-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Onest';font-style:normal;font-weight:300 800;font-display:swap;src:url(/static/fonts/onest-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

body.lp {
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
  --gutter: clamp(22px, 5vw, 60px);

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #0f1012;
  --muted: #5b616b;
  --faint: #9498a1;
  --line: rgba(16,20,28,.09);
  --line-2: rgba(16,20,28,.16);
  --accent: #2f62f0;
  --accent-ink: #1f4fd8;
  --accent-soft: rgba(47,98,240,.09);
  --ink-btn: #141518;
  --ink-btn-fg: #ffffff;
  --shadow: 0 1px 2px rgba(16,22,34,.05), 0 18px 40px -22px rgba(16,22,34,.16);
  --shadow-hero: 0 60px 120px -48px rgba(16,24,40,.34), 0 2px 6px rgba(16,24,40,.08);
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(47,98,240,.10), transparent 70%);

  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

@media (prefers-color-scheme: dark) {
  body.lp {
    --bg: #0a0b0d;
    --surface: #131519;
    --surface-2: #1a1d22;
    --text: #ecedf0;
    --muted: #969ba4;
    --faint: #61656e;
    --line: rgba(255,255,255,.085);
    --line-2: rgba(255,255,255,.15);
    --accent: #6a94ff;
    --accent-ink: #8aabff;
    --accent-soft: rgba(106,148,255,.12);
    --ink-btn: #ecedf0;
    --ink-btn-fg: #0a0b0d;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 22px 48px -24px rgba(0,0,0,.75);
    --shadow-hero: 0 70px 140px -50px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.5);
    --glow: radial-gradient(60% 60% at 50% 40%, rgba(106,148,255,.16), transparent 70%);
  }
}

.lp * { box-sizing: border-box; }
.lp img { max-width: 100%; display: block; }
.lp ::selection { background: var(--accent); color: #fff; }
.lp-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: 11px; border: 1px solid var(--line-2);
  color: var(--text); background: transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s, transform .16s, box-shadow .18s;
}
.lp-btn:hover { border-color: var(--text); text-decoration: none; transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }
.lp-btn--primary { background: var(--ink-btn); border-color: var(--ink-btn); color: var(--ink-btn-fg); box-shadow: var(--shadow); }
.lp-btn--primary:hover { color: var(--ink-btn-fg); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16,22,34,.06), 0 26px 50px -22px rgba(16,22,34,.28); }
.lp-btn--lg { font-size: 17px; padding: 16px 26px; }
.lp-btn--sm { font-size: 14px; padding: 10px 16px; border-radius: 9px; }

.lp-btn--ghost { color: var(--muted); border-color: transparent; padding-left: 6px; padding-right: 6px; }
.lp-btn--ghost:hover { color: var(--text); border-color: transparent; background: transparent; }

/* «Скоро в продаже» — сдержанная пилюля с акцентной точкой */
.lp-badge-soon {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 14px; color: var(--muted);
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; background: var(--surface);
}
.lp-badge-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lp-badge-soon--sm { font-size: 13px; padding: 7px 13px; }

/* Малая надпись-эйбрау */
.lp-eyebrow { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink); margin-bottom: 18px; }

/* ── Хедер ────────────────────────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.lp-header.is-scrolled { border-bottom-color: var(--line); }
.lp-header__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lp-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.lp-brand__logo { width: 27px; height: 27px; flex-shrink: 0; }
.lp-brand__sub { font-weight: 400; font-size: 14px; color: var(--faint); letter-spacing: 0; }
.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav__link { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: 9px; transition: color .16s, background .16s; }
.lp-nav__link:hover { color: var(--text); background: var(--surface-2); }

/* ── Секции ───────────────────────────────────────────────────────────── */
/* Вертикальный ритм — только верхний отступ, чтобы паддинги соседних секций
   не складывались (иначе между двумя полноразмерными блоками зазор удваивался). */
.lp-section { padding: clamp(72px, 10vw, 124px) 0 0; }
.lp-section--tight { padding: clamp(46px, 6vw, 76px) 0 0; }
.lp-section__head { max-width: 720px; margin: 0 0 clamp(40px, 5vw, 60px); }
.lp-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-section__head--wide { max-width: 960px; }
.lp-section__head--wide .lp-h2 { white-space: nowrap; }
@media (max-width: 720px) { .lp-section__head--wide .lp-h2 { white-space: normal; } }
.lp-h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; margin: 0; text-wrap: balance; }
.lp-lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; color: var(--muted); line-height: 1.55; margin: 20px 0 0; max-width: 60ch; }
.lp-section__head--center .lp-lead { margin-left: auto; margin-right: auto; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 0; text-align: center; }
.lp-hero__inner { max-width: 880px; margin: 0 auto; }
.lp-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--muted); padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 30px; }
.lp-hero__eyebrow b { color: var(--text); font-weight: 600; }
.lp-hero__headline { font-size: clamp(40px, 6.6vw, 80px); font-weight: 600; line-height: 1.02; letter-spacing: -0.038em; margin: 0; text-wrap: balance; }
.lp-hero__accent { color: var(--accent-ink); }
.lp-hero__sub { font-size: clamp(18px, 1.9vw, 22px); font-weight: 400; color: var(--muted); line-height: 1.5; margin: 26px auto 0; max-width: 60ch; }
.lp-hero__sub b { color: var(--text); font-weight: 500; }
.lp-hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 38px 0 0; }
.lp-hero__note { font-size: 14.5px; color: var(--faint); margin: 20px 0 0; }
.lp-hero__note a { color: var(--accent-ink); text-decoration: none; }
.lp-hero__note a:hover { text-decoration: underline; }

/* большой скриншот-герой */
.lp-hero__media { position: relative; max-width: 1040px; margin: clamp(52px, 7vw, 84px) auto 0; }
.lp-hero__media::before { content: ""; position: absolute; inset: -14% -6% -6%; background: var(--glow); pointer-events: none; z-index: 0; }
.lp-shot-frame { position: relative; z-index: 1; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-hero); overflow: hidden; }
.lp-shot-frame img { width: 100%; height: auto; }
.lp-hero__badge { position: absolute; z-index: 2; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(12,16,24,.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); }
.lp-hero__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

/* ── Видео-showcase ───────────────────────────────────────────────────── */
.lp-video { position: relative; max-width: 1040px; margin: 0 auto; }
.lp-video::before { content: ""; position: absolute; inset: -14% -6% -6%; background: var(--glow); pointer-events: none; z-index: 0; }
.lp-video__el { position: relative; z-index: 1; width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow-hero); background: #0a0b0d; }
.lp-video__cap { text-align: center; font-size: 14.5px; color: var(--faint); margin: 18px 0 0; }

/* ── Статы ────────────────────────────────────────────────────────────── */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 40px); }
.lp-stat { text-align: center; }
.lp-stat__n { font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.lp-stat__n span { color: var(--faint); font-weight: 500; }
.lp-stat__l { font-size: 15px; color: var(--muted); margin-top: 12px; }

/* ── Было / Стало ─────────────────────────────────────────────────────── */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.lp-col__tag { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--faint); }
.lp-col--now .lp-col__tag { color: var(--accent-ink); }
.lp-col__h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 22px; }
.lp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lp-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 16.5px; line-height: 1.45; color: var(--text); }
.lp-list li span { color: var(--faint); }
.lp-ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.lp-ic--x { color: var(--faint); }
.lp-ic--ok { color: var(--accent); }

/* ── Фичи ─────────────────────────────────────────────────────────────── */
/* Каждая фича — центрированный заголовок + КРУПНЫЙ скриншот во всю ширину. */
.lp-feature { display: block; text-align: center; }
.lp-feature + .lp-feature { margin-top: clamp(78px, 11vw, 148px); }
.lp-feature__text { max-width: 760px; margin: 0 auto clamp(34px, 4vw, 54px); }
.lp-feature__media { min-width: 0; }
.lp-feature__h { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
.lp-feature__p { font-size: 17.5px; color: var(--muted); line-height: 1.6; margin: 20px auto 0; max-width: 58ch; }
.lp-taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px auto 0; justify-content: center; }
.lp-tag { font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.lp-tag--accent { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 32%, transparent); background: var(--accent-soft); }

.lp-shot { border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.lp-shot img { width: 100%; height: auto; display: block; }

/* тонкое сравнение заполнения (в фиче «Нестинг») */
.lp-fill { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; text-align: left; }
.lp-fill__row + .lp-fill__row { margin-top: 24px; }
.lp-fill__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.lp-fill__lbl { font-size: 15.5px; color: var(--muted); }
.lp-fill__val { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--faint); }
.lp-fill__row--accent .lp-fill__val { color: var(--accent-ink); }
.lp-fill__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lp-fill__bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--faint); opacity: .5; }
.lp-fill__row--accent .lp-fill__bar > i { background: var(--accent); opacity: 1; }
.lp-fill__note { font-size: 14.5px; color: var(--faint); line-height: 1.5; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

/* ── Режимы ───────────────────────────────────────────────────────────── */
.lp-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-mode { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: border-color .18s, transform .18s, box-shadow .18s; }
.lp-mode:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.lp-mode__ico { width: 26px; height: 26px; color: var(--accent-ink); margin-bottom: 18px; }
.lp-mode__ico svg { width: 100%; height: 100%; }
.lp-mode__t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.lp-mode__s { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ── Платформы ────────────────────────────────────────────────────────── */
.lp-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-platform { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px; }
.lp-platform svg { width: 19px; height: 19px; color: var(--muted); }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.lp-cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 96px) clamp(28px, 5vw, 64px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-cta::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.lp-cta > * { position: relative; }
.lp-cta__h { font-size: clamp(30px, 4vw, 50px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 0 auto; max-width: 16ch; text-wrap: balance; }
.lp-cta__p { font-size: 18px; color: var(--muted); line-height: 1.55; margin: 22px auto 0; max-width: 52ch; }
.lp-cta__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ── Футер ────────────────────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: clamp(72px, 10vw, 124px); }
.lp-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.lp-footer__inner a:not(.lp-brand) { font-size: 15px; color: var(--muted); text-decoration: none; }
.lp-footer__inner a:not(.lp-brand):hover { color: var(--text); }
.lp-footer__spacer { flex: 1; text-align: right; font-size: 14px; color: var(--faint); min-width: 200px; }

/* ── Страница входа ───────────────────────────────────────────────────── */
.lp-auth { min-height: 100vh; display: flex; flex-direction: column; }
.lp-auth__main { flex: 1 1 auto; display: grid; place-items: center; padding: 56px 20px 96px; position: relative; }
.lp-auth__main::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.lp-auth__card { position: relative; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 40px 36px 32px; box-shadow: var(--shadow-hero); }
.lp-auth__title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; }
.lp-auth__sub { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 26px; }
.lp-auth__card form.stack { gap: 16px; }
.lp-auth__card label { font-size: 14px; font-weight: 500; color: var(--muted); }
.lp-auth__card input[type=password] { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 11px; padding: 13px 15px; font-size: 16px; }
.lp-auth__card input[type=password]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.lp-auth__card button.primary { background: var(--ink-btn); border: 1px solid var(--ink-btn); color: var(--ink-btn-fg); font-family: var(--font); font-weight: 500; font-size: 16px; padding: 14px; border-radius: 11px; }
.lp-auth__card button.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.lp-auth__card .muted.small a { color: var(--accent-ink); }
.lp-auth__card .muted.small { margin-top: 22px; font-size: 14px; }

/* ── Появление при скролле (сдержанное) ───────────────────────────────── */
.lp-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22,.7,.24,1), transform .7s cubic-bezier(.22,.7,.24,1); }
.lp-reveal.is-in { opacity: 1; transform: none; }
.lp-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,.7,.24,1), transform .6s cubic-bezier(.22,.7,.24,1); }
.lp-stagger.is-in > * { opacity: 1; transform: none; }
.lp-fill__bar > i { transition: width 1.2s cubic-bezier(.22,.7,.24,1) .15s; }
.lp-reveal.is-in .lp-fill__bar > i { width: var(--w, 0); }

@media (prefers-reduced-motion: reduce) {
  .lp-reveal, .lp-stagger > * { opacity: 1; transform: none; transition: none; }
  .lp-fill__bar > i { transition: none; width: var(--w, 0); }
}

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-modes { grid-template-columns: repeat(2, 1fr); }
  .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 600px) {
  body.lp { font-size: 16px; }
  .lp-header__inner { height: 58px; }
  .lp-brand__sub { display: none; }
  .lp-nav__link { display: none; }
  .lp-compare { grid-template-columns: 1fr; gap: 40px; }
  .lp-footer__spacer { text-align: left; }
}
