/* klaster-key — стили главной страницы (лендинга).
   Отдельный файл поверх style.css: кабинет и лендинг решают разные задачи,
   и смешивать их правки в одном файле дорого.

   Палитра переопределяется на `body.landing`, а не в :root — так модалки
   входа и регистрации (они стилизованы в style.css через переменные)
   автоматически становятся тёмно-изумрудными на лендинге и остаются
   прежними в кабинете. Специфичность `body.landing` (0,1,1) выше `:root`,
   поэтому светлая системная тема лендинг не перекрашивает: страница
   намеренно одноцветная, тёмная.
   Референс: PF Market (referens1.pdf, referens_2.pdf) — карточки со скруглением,
   изумрудный акцент, капслейблы с иконкой, крупные числа. */

body.landing {
  --bg: #05080b;
  --bg-soft: #0b1116;
  --card: #0e1620;
  --card-2: #121c26;
  --line: #1d2b36;
  --line-soft: #16222c;
  --text: #eaf3f0;
  --muted: #8ba0a5;
  --accent: #2ee6a0;
  --accent-2: #0f9d6f;
  --accent-dim: rgba(46, 230, 160, .12);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);

  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.landing a { color: var(--accent); }

/* Плавная прокрутка по анкорам шапки и отступ под саму шапку, чтобы
   заголовок секции не уезжал под неё. */
html:has(body.landing) { scroll-behavior: smooth; }
body.landing section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html:has(body.landing) { scroll-behavior: auto; } }

.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ── типографика секций ─────────────────────────────────────────────────── */
.lp-sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.lp-sec + .lp-sec { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  border: 1px solid rgba(46, 230, 160, .28); background: var(--accent-dim);
  color: var(--accent); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.1px;
}
.eyebrow svg { opacity: .9; }

.lp-h2 {
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15;
  letter-spacing: -1px; font-weight: 680; margin: 18px 0 14px;
  max-width: 760px; text-wrap: balance;
}
.lp-h2 em { font-style: normal; color: var(--accent); }
.lp-lead {
  color: var(--muted); font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6; max-width: 660px; margin: 0 0 34px;
}
.lp-sec-head { margin-bottom: clamp(30px, 4vw, 48px); }

/* ── шапка ──────────────────────────────────────────────────────────────── */
.lp-top {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(5, 8, 11, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: border-color .25s, background .25s;
}
.lp-top.stuck { border-bottom-color: var(--line); background: rgba(5, 8, 11, .92); }
.lp-top-in {
  max-width: 1120px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 26px;
}
.lp-top .brand { font-size: 17px; }
.lp-top .brand img { width: 28px; height: 28px; }
.lp-top .brand span b { color: var(--accent); }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.lp-nav a.lp-navlink { color: var(--muted); font-size: 14px; }
.lp-nav a.lp-navlink:hover { color: var(--text); text-decoration: none; }

/* ── герой ──────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: clamp(46px, 7vw, 92px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
/* Свечение и сетка — чистый CSS, без картинок: страница должна открываться
   мгновенно и с российского хостинга без внешних запросов. */
.lp-hero::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: -340px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(46, 230, 160, .22), rgba(46, 230, 160, .05) 42%, transparent 68%);
  pointer-events: none;
}
.lp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 230, 160, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 160, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.lp-hero .lp-wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.lp-h1 {
  font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07;
  letter-spacing: -1.8px; font-weight: 700; margin: 20px 0 20px;
  text-wrap: balance;
}
.lp-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, #7dd3fc 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--muted); font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.6; margin: 0 0 12px; max-width: 560px; }
.hero-lead b { color: var(--text); font-weight: 600; }
.hero-note { color: var(--muted); font-size: 13.5px; margin: 0 0 28px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; font-weight: 600; border-radius: 12px; }
body.landing .btn {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  color: #04140d; box-shadow: 0 10px 30px rgba(46, 230, 160, .18);
}
body.landing .btn:hover { filter: brightness(1.08); box-shadow: 0 14px 38px rgba(46, 230, 160, .28); }
body.landing .btn.ghost {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  color: var(--text); box-shadow: none;
}
body.landing .btn.ghost:hover { border-color: var(--accent); background: rgba(46, 230, 160, .06); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 30px 0 0;
  padding: 0; list-style: none; color: var(--muted); font-size: 13.5px;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--accent); flex: none; }

/* ── карточка результата в герое ─────────────────────────────────────────── */
.hero-visual { position: relative; }
.sheet {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .5s ease;
}
.sheet:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.sheet-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.sheet-dots { display: flex; gap: 6px; }
.sheet-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3944; display: block; }
.sheet-dots i:first-child { background: rgba(46, 230, 160, .55); }
.sheet-name { font-size: 12.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.sheet-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.sheet-tab {
  font-size: 11.5px; color: var(--muted); padding: 6px 11px;
  border-radius: 8px 8px 0 0; white-space: nowrap;
}
.sheet-tab.on { color: var(--accent); background: rgba(46, 230, 160, .09); }

/* table-layout: fixed — иначе ячейки с nowrap задают таблице min-content
   ширину и она вылезает за экран на телефоне. */
.sheet-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 0; table-layout: fixed; }
.sheet-table col.c-q { width: 50%; }
.sheet-table col.c-n { width: 17%; }
.sheet-table th {
  text-align: left; padding: 9px 14px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.sheet-table td {
  padding: 8px 14px; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}
.sheet-table tr:last-child td { border-bottom: 0; }
.sheet-table .num { font-family: ui-monospace, Consolas, monospace; color: var(--muted); text-align: right; }
.sheet-table .cl { color: var(--accent); }
.sheet-table tbody tr:hover td { background: rgba(46, 230, 160, .04); }
.grp { border-left: 2px solid rgba(46, 230, 160, .5); }
.sheet-foot {
  padding: 11px 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px;
}
/* Плашка вынесена к верхнему углу: у нижнего она перекрывала подпись
   «190 фраз · 68 кластеров». */
.sheet-badge {
  position: absolute; left: -14px; top: -16px;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  color: #04140d; font-size: 12px; font-weight: 650;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(46, 230, 160, .3);
}

/* ── полоса цифр ────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--card); padding: 26px 24px; }
.stat .k {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -1.4px;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent), #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .t { color: var(--text); font-size: 14px; font-weight: 550; margin-top: 8px; }
.stat .k-vs {
  color: var(--muted); font-weight: 500; font-size: 12.5px;
  border-left: 1px solid var(--line); padding-left: 8px; margin-left: 6px;
}
.stat .h { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 5px; }

/* ── шаги ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
}
.step .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid rgba(46, 230, 160, .3);
  color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -.2px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.step p code { font-family: ui-monospace, Consolas, monospace; color: var(--text); font-size: 12.5px; }

/* ── две колонки «до / после» ───────────────────────────────────────────── */
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.vs-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--card); }
.vs-col.bad { background: rgba(248, 113, 113, .03); border-color: rgba(248, 113, 113, .18); }
.vs-col.good {
  border-color: transparent; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(140deg, var(--accent), rgba(125, 211, 252, .6)) border-box;
  border: 1px solid transparent; box-shadow: var(--shadow);
}
.vs-col.good::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(46, 230, 160, .16), transparent 70%);
  pointer-events: none;
}
.vs-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.vs-col.bad .vs-title { color: #f2a5a5; }
.vs-col.good .vs-title { color: var(--accent); }
.vs-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 20px; }
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.vs-list li { display: flex; gap: 11px; font-size: 14px; line-height: 1.5; color: var(--text); }
.vs-list li span { color: var(--muted); }
.vs-list .mark { flex: none; margin-top: 2px; }
.vs-col.bad .mark { color: #e07a7a; }
.vs-col.good .mark { color: var(--accent); }

/* ── выгоды ─────────────────────────────────────────────────────────────── */
.bens { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ben {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s, border-color .25s;
}
.ben:hover { transform: translateY(-3px); border-color: rgba(46, 230, 160, .35); }
.ben .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent); margin-bottom: 16px;
}
.ben h3 { margin: 0 0 9px; font-size: 16px; font-weight: 620; letter-spacing: -.2px; }
.ben p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.6; }
.ben.wide { grid-column: span 2; }
.ben-key {
  display: inline-block; margin-top: 14px; font-size: 13px; color: var(--accent);
  border-top: 1px solid var(--line); padding-top: 12px; width: 100%;
}

/* ── файл-результат ─────────────────────────────────────────────────────── */
.file-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.file-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 14.2px; line-height: 1.55; }
.file-list .tag {
  flex: none; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px;
  padding: 4px 9px; border-radius: 7px; background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(46, 230, 160, .25); margin-top: 1px; white-space: nowrap;
}
.file-list b { font-weight: 600; }
.file-list span { color: var(--muted); }

/* ── автор ──────────────────────────────────────────────────────────────── */
.author {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 34px);
  align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 40px);
}
.author-ava {
  width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  color: #04140d; font-size: 34px; font-weight: 700; letter-spacing: -1px;
  box-shadow: 0 14px 34px rgba(46, 230, 160, .22);
}
.author h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.4px; }
.author .role { color: var(--accent); font-size: 13px; font-weight: 550; margin: 0 0 14px; }
.author p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 620px; }
.author-meta { display: flex; gap: 10px 26px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.author-meta b { color: var(--text); font-size: 15px; font-weight: 650; }

/* ── честно про бету ────────────────────────────────────────────────────── */
.beta { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.beta-item {
  border: 1px dashed var(--line); border-radius: 14px; padding: 20px;
  background: rgba(255, 255, 255, .015);
}
.beta-item h4 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.beta-item p { margin: 0; color: var(--muted); font-size: 13.2px; line-height: 1.55; }

/* ── финальный призыв ───────────────────────────────────────────────────── */
.final { position: relative; text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(46, 230, 160, .16), transparent 65%);
  pointer-events: none;
}
.final .lp-wrap { position: relative; z-index: 1; }
.final .lp-h2, .final .lp-lead { margin-left: auto; margin-right: auto; }
.final .hero-cta { justify-content: center; }
.final .lp-lead { text-align: center; }

.lp-foot {
  border-top: 1px solid var(--line-soft); padding: 34px 0 46px;
  color: var(--muted); font-size: 13px;
}
.lp-foot-in { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.lp-foot .brand { font-size: 15px; }
.lp-foot nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* ── появление при скролле ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sheet { transform: none; }
  .ben:hover { transform: none; }
}

/* ── адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .file-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet { transform: none; }
  /* right не сбросить — плашка растянется на всю ширину карточки */
  .sheet-badge { left: 12px; right: auto; }
  .hero-visual { margin-bottom: 20px; }
  .ben.wide { grid-column: auto; }
  .author { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .lp-nav a.lp-navlink { display: none; }
  .hero-cta .btn { width: 100%; }
  .lp-top-in { gap: 12px; }
  .sheet-table th:nth-child(4), .sheet-table td:nth-child(4) { display: none; }
}
