/* Публичная часть stataview.pro: лендинг и документы.
   Отдельно от темы кабинета, чтобы страница была лёгкой. План — plans/2026-11-08-lending-dlya-yukassy.md */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #172033;
  --muted: #5b6678;
  --brand: #00b0f3;
  --primary: #0077b6;
  --primary-hover: #00659b;
  --on-primary: #ffffff;
  --accent-soft: #e5f6fd;
  --violet: #6c5ce7;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #c2410c;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
  --radius: 14px;
  --header-h: 68px;
}

body.lp-dark {
  --bg: #0e1420;
  --bg-soft: #131b2a;
  --surface: #172133;
  --border: #263248;
  --text: #e7ecf4;
  --muted: #9ba7bb;
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --on-primary: #06121e;
  --accent-soft: #10283a;
  --violet: #a39bff;
  --ok: #4ade80;
  --ok-soft: #12301f;
  --warn: #fb923c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.lp a { color: var(--primary); text-decoration: none; }
.lp a:hover { color: var(--primary-hover); text-decoration: underline; }
.lp img { max-width: 100%; }
.lp h1, .lp h2, .lp h3, .lp h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
.lp p { margin: 0 0 1em; }

.lp-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .lp-container { padding: 0 24px; } }

.lp-muted { color: var(--muted); }

/* Кнопки */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 10px;
  font: inherit; font-weight: 500; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.lp a.lp-btn:hover { text-decoration: none; }
.lp-btn--primary { background: var(--primary); color: var(--on-primary) !important; }
.lp-btn--primary:hover { background: var(--primary-hover); }
.lp-btn--ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.lp-btn--ghost:hover { border-color: var(--primary); color: var(--primary) !important; }
.lp-btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

/* Шапка */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.lp-logo { display: flex; align-items: center; flex-shrink: 0; color: var(--text); }
.lp-logo:hover { text-decoration: none; }
/* SVG из кабинета: контуры без заливки рисуются currentColor, белок глаза — отдельным цветом */
.lp-logo__svg, .lp-footer__logo { display: block; height: auto; fill: currentColor; color: var(--text); }
.lp-logo__svg { width: 160px; }
.lp-logo__eye { fill: #ffffff; }
.lp-dark .lp-logo__eye { fill: transparent; }
.lp-nav { display: none; gap: 22px; margin-left: 12px; }
.lp-nav a { color: var(--muted); font-size: 15px; }
.lp-nav a:hover { color: var(--text); text-decoration: none; }
.lp-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-theme {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--muted);
}
.lp-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lp-theme__moon { fill: currentColor !important; stroke: none !important; }
.lp-theme__sun { display: none; }
.lp-dark .lp-theme__sun { display: block; }
.lp-dark .lp-theme__moon { display: none; }
@media (min-width: 960px) { .lp-nav { display: flex; } }
@media (max-width: 559px) {
  .lp-hide-sm { display: none !important; }
  .lp-logo__svg { width: 128px; }
}

/* Секции */
.lp-section { padding: 56px 0; }
.lp-section--soft { background: var(--bg-soft); }
@media (min-width: 768px) { .lp-section { padding: 88px 0; } }
.lp-section__head { max-width: 720px; margin-bottom: 36px; }
.lp-section__head h2 { font-size: clamp(26px, 4vw, 36px); }
.lp-section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.lp-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}

/* Первый экран */
.lp-hero { padding: 48px 0 56px; background:
  radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(700px 360px at 0% 100%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 70%); }
@media (min-width: 768px) { .lp-hero { padding: 80px 0 96px; } }
.lp-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .lp-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.lp-hero h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 700; letter-spacing: -0.01em; }
.lp-hero__lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.lp-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.lp-hero__facts li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* Демо-карточка счёта */
.lp-demo { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.lp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.lp-demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lp-demo__name { font-weight: 600; }
.lp-demo__sub { font-size: 13px; color: var(--muted); }
.lp-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--ok-soft); color: var(--ok);
  white-space: nowrap; flex-shrink: 0;
}
.lp-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lp-demo__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.lp-demo__list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft);
}
.lp-demo__acc { flex: 1; min-width: 0; font-weight: 500; }
.lp-demo__acc small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-demo__state { font-size: 13px; color: var(--ok); white-space: nowrap; }
.lp-demo__state--warn { color: var(--warn); }
.lp-dot {
  flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
}
.lp-dot--warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.lp-demo__uptime { display: flex; gap: 3px; height: 26px; }
.lp-demo__uptime i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--ok) 65%, transparent); }
.lp-demo__uptime i.is-warn { background: var(--warn); }
.lp-demo__foot { font-size: 13px; color: var(--muted); margin-top: 8px; }
.lp-toast {
  margin: -18px 16px 0 auto; position: relative; max-width: 330px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.lp-toast__icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-toast__icon svg { width: 16px; height: 16px; fill: currentColor; }
.lp-toast b { display: block; font-weight: 600; }

/* Возможности */
.lp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.lp-feature { padding: 24px; }
.lp-feature h3 { font-size: 19px; margin-top: 14px; }
.lp-feature p { color: var(--muted); margin: 0; }
.lp-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Шаги */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.lp-step { padding: 24px; position: relative; counter-increment: step; }
.lp-step::before {
  content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 600; background: var(--primary); color: var(--on-primary); margin-bottom: 14px;
}
.lp-step h3 { font-size: 18px; }
.lp-step p { margin: 0; color: var(--muted); }
.lp-note { margin-top: 24px; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft); color: var(--text); }

/* Тарифы */
.lp-pricing { display: grid; gap: 20px; }
@media (min-width: 960px) { .lp-pricing { grid-template-columns: 320px 1fr; align-items: start; } }
.lp-plan { padding: 24px; }
.lp-plan h3 { font-size: 20px; }
.lp-plan__price { font-size: 34px; font-weight: 700; margin: 4px 0 2px; }
.lp-plan__price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.lp-list { list-style: none; padding: 0; margin: 16px 0 20px; }
.lp-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.lp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.lp-list li.is-off { color: var(--muted); }
.lp-list li.is-off::before { content: "—"; color: var(--muted); }
.lp-paid__head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-paid__head h3 { margin: 0; font-size: 20px; }
.lp-periods { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.lp-periods button {
  font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted);
  padding: 7px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.lp-periods button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }
.lp-periods button em { font-style: normal; color: var(--ok); font-size: 12px; margin-left: 4px; }
.lp-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (max-width: 400px) { .lp-tiles { grid-template-columns: 1fr 1fr; } }
.lp-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.lp-tile__acc { font-size: 14px; color: var(--muted); }
.lp-tile__price { font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
.lp-tile__old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 4px; font-weight: 400; }
.lp-tile__meta { font-size: 13px; color: var(--muted); }
.lp-tile__bonus { font-size: 13px; color: var(--ok); }
/* Без JS виден только месяц; JS переключает data-period у контейнера */
.lp-paid [data-p] { display: none; }
.lp-paid[data-period="1"] [data-p="1"],
.lp-paid[data-period="3"] [data-p="3"],
.lp-paid[data-period="6"] [data-p="6"],
.lp-paid[data-period="9"] [data-p="9"],
.lp-paid[data-period="12"] [data-p="12"] { display: block; }
.lp-paid__foot { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Оплата */
.lp-pay { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.lp-pay .lp-card { padding: 24px; }
.lp-pay h3 { font-size: 18px; display: flex; align-items: center; gap: 12px; }
.lp-pay p, .lp-pay li { color: var(--muted); }
.lp-pay ul { margin: 0; padding-left: 20px; }
.lp-pay li { margin-bottom: 6px; }

/* Партнёрам */
.lp-partner { display: grid; gap: 24px; align-items: center; padding: 32px; }
@media (min-width: 960px) { .lp-partner { grid-template-columns: 1.3fr 1fr; padding: 40px 48px; } }
.lp-partner h2 { font-size: clamp(24px, 3.4vw, 32px); }
.lp-partner .lp-list { margin-bottom: 0; }

/* Вопросы */
.lp-faq { max-width: 860px; }
.lp-faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.lp-faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 500; font-size: 17px; position: relative;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--muted);
}
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { color: var(--muted); padding-right: 36px; }

/* Подвал: контакты и реквизиты исполнителя — здесь, отдельного блока на странице нет */
.lp-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: var(--bg-soft); font-size: 15px; }
.lp-footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 28px; }
@media (min-width: 1100px) { .lp-footer__grid { gap: 24px; grid-template-columns: 1fr 1.25fr 0.9fr 1.2fr 1.2fr; } }
.lp-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.lp-footer nav a { display: block; color: var(--text); margin-bottom: 8px; }
.lp-footer__logo { width: 140px; margin-bottom: 10px; }
.lp-footer__req { overflow-wrap: anywhere; }
/* Контакты в подвале — цветом текста колонки, а не синими ссылками */
.lp-footer__req a { color: inherit; }
.lp-footer__req a:hover { color: var(--text); }
.lp-footer__note { font-size: 13px; color: var(--muted); max-width: 900px; }
.lp-footer__copy { font-size: 13px; color: var(--muted); margin: 0; }

/* Документы */
.lp-doc { max-width: 860px; padding-top: 40px; padding-bottom: 72px; }
.lp-doc h1 { font-size: clamp(26px, 4vw, 34px); }
.lp-doc h2 { font-size: 20px; margin-top: 2em; }
.lp-doc p, .lp-doc li { color: var(--text); }
.lp-doc ol, .lp-doc ul { padding-left: 22px; }
.lp-doc li { margin-bottom: 6px; }
/* Сквозная нумерация пунктов «8.1.», «8.2.»: на неё ссылается текст оферты.
   Номер раздела в тексте h2 стоит вручную, счётчик идёт параллельно — разделы без пропусков */
.lp-doc--numbered { counter-reset: sec; }
.lp-doc--numbered h2 { counter-increment: sec; counter-reset: item; }
.lp-doc--numbered ol { list-style: none; padding-left: 0; }
.lp-doc--numbered ol > li { counter-increment: item; position: relative; padding-left: 2.6em; }
.lp-doc--numbered ol > li::before { content: counter(sec) "." counter(item) "."; position: absolute; left: 0; color: var(--muted); }
.lp-doc__meta { color: var(--muted); font-size: 15px; }
.lp-doc table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15px; }
.lp-doc th, .lp-doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.lp-doc th { background: var(--bg-soft); font-weight: 500; }
.lp-doc .lp-table-wrap { overflow-x: auto; }
.lp-back { display: inline-block; margin-bottom: 20px; font-size: 15px; }
