/* ═══════════════════════════════════════════════════════════════════════
   Лендинг — ОБОЛОЧКА: сброс, типографика, утилиты, шапка, кнопки,
   обложка с панелью продукта, подвал.
   Секции 02–10 живут в landing-sections.css.
   Направление и запреты — docs/design/landing-2026-07-27/LOCK.md.
   ═══════════════════════════════════════════════════════════════════════ */

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;      /* страховка: горизонтальной прокрутки не бывает */
}

/* Мера набора внутри полей = 1280. Поле прибавлено СНАРУЖИ, а не съедено из меры:
   при 1280 вместе с полями сцена «Хаос→порядок» получала 1216 и её строка поиска
   наезжала на полку «Письма» — поймано съёмкой, не чтением. */
.wrap{ width:100%; max-width:calc(var(--max-width) + var(--gutter) * 2); margin:0 auto; padding:0 var(--gutter); }

h1,h2,h3{ font-family:var(--font-display); font-weight:500; margin:0; }
p{ margin:0; text-wrap:pretty; }
a{ color:var(--accent); text-decoration:none; }
img,svg{ max-width:100%; }

h1{ font-size:clamp(32px,4.6vw,48px); line-height:1.06; letter-spacing:-.025em; margin-bottom:22px; text-wrap:balance; }
h2{ font-size:clamp(25px,3.1vw,34px); line-height:1.15; letter-spacing:-.02em; margin-bottom:18px; text-wrap:balance; }
h3{ font-size:18px; line-height:1.3; letter-spacing:-.01em; }
.lead{ font-size:17px; line-height:1.6; color:var(--text-muted); max-width:36em; }

.mono{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.01em;
}
/* Моно-надзаголовок секции: выходная строка типографии, не маркетинговый kicker. */
.label{
  font-family:var(--font-mono);
  font-size:11.5px; line-height:1;
  letter-spacing:.11em; text-transform:uppercase;
  color:var(--text-faint);
}
.label.ink{ color:var(--text); }

:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r-sm); }

/* Правило на всю систему: ЦИФРА — моно, ЗНАК ВАЛЮТЫ — корпусной Inter.
   В моноширинной сетке ₽ занимает целую ячейку и рвёт число дырой. */
.rur{ font-family:var(--font-body); margin-left:2px; }
/* Хвост того же правила (LOCK §3): запятая в моносетке тоже занимает ячейку,
   и «1,25» разъезжается в «1 , 25». Набираем корпусным и подтягиваем. */
.dec{ font-family:var(--font-body); letter-spacing:0; margin:0 -.02em 0 -.06em; }

/* Якорь-псевдоним: секция «Возможности» переехала в «Честность», но ссылки
   вида /#features живут во внешних письмах — они не должны падать в никуда. */
.anchor-alias{ display:block; height:0; overflow:hidden; }

/* ═══ ШАПКА — колонтитул документа ═══════════════════════════════════════ */
.top{ border-bottom:1px solid var(--border); background:var(--bg); position:sticky; top:0; z-index:40; }
.top .wrap{ height:60px; display:flex; align-items:center; gap:32px; }
.brand{ display:flex; align-items:center; gap:9px; font-family:var(--font-display); font-weight:500; font-size:16px; letter-spacing:-.01em; color:var(--text); }
.brand .glyph{ display:block; flex:none; }
.top nav{ display:flex; gap:26px; margin-left:16px; }
.top nav a{ color:var(--text-muted); font-size:14px; transition:color var(--dur-fast) var(--ease); }
.top nav a:hover{ color:var(--text); }
.top .right{ margin-left:auto; display:flex; align-items:center; gap:14px; }

/* ═══ КНОПКИ ═════════════════════════════════════════════════════════════ */
.btn-ghost{
  display:inline-flex; align-items:center; height:36px; padding:0 14px;
  border:1px solid var(--border); border-radius:var(--r-md);
  font-family:var(--font-body); font-size:14px; color:var(--text);
  background:var(--bg); white-space:nowrap; cursor:pointer;
  transition:border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.btn-ghost:hover{ border-color:var(--border-hover); background:var(--surface); }

.btn-primary{
  display:inline-flex; align-items:center; justify-content:center;
  height:46px; padding:0 22px;
  border:1px solid var(--text); border-radius:var(--r-sm);
  background:var(--text); color:var(--text-invert);
  font-family:var(--font-body); font-size:15px; font-weight:500; white-space:nowrap;
  cursor:pointer;
  transition:background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn-primary:hover{ background:#000; border-color:#000; }

/* Второе действие — НИКОГДА не вторая залитая кнопка (LOCK §0).
   Работает и на <a>, и на <button>: вход открывает модалку, а не переход. */
.link-2{
  display:inline-flex; align-items:center; min-height:44px;
  border:0; padding:0; background:none; cursor:pointer;
  font-family:var(--font-body); font-size:16px; color:var(--accent);
  box-shadow:inset 0 -1px var(--accent-line);
  transition:box-shadow var(--dur-fast) var(--ease);
}
.link-2:hover{ box-shadow:inset 0 -1px var(--accent); }
.link-2 span{ display:inline-block; margin-left:6px; }

/* ═══ ШАПКА СЕКЦИИ — индекс полосы + имя раздела на линейке, строго слева ══ */
.sec-head{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 22px;
  padding-bottom:16px; margin-bottom:34px;
  border-bottom:1px solid var(--border);
}
.sec-head .far{ margin-left:auto; }

/* ═══ 01. ОБЛОЖКА — стопка слева + панель продукта с живой сценой ═════════ */
.hero{ border-bottom:1px solid var(--border); }
/* 600, а не 568: строке запроса нужно место, иначе плейсхолдер обрезается
   и поле читается сломанным. */
.hero .wrap{ display:grid; grid-template-columns:minmax(0,600px) minmax(0,1fr); gap:56px; padding-top:76px; padding-bottom:84px; align-items:center; }
.hero .lead{ max-width:33em; }

.eyebrow{ display:inline-flex; align-items:center; gap:9px; margin-bottom:26px; }
.eyebrow .dot{ width:5px; height:5px; border-radius:var(--r-pill); background:var(--accent); flex:none; }

/* ЕДИНСТВЕННАЯ чёрная рамка на всей странице — строка запроса к базе.
   Поле рабочее: набранный запрос уезжает в регистрацию и подставляется
   в поиск после входа (решение Кати 27.07.2026). */
.askbar{
  margin-top:34px;
  display:flex; align-items:center; gap:12px;
  height:62px; padding:0 8px 0 16px;
  border:1px solid var(--text);
  border-radius:var(--r-md);
  background:var(--bg);
  transition:box-shadow var(--dur-base) var(--ease);
}
.askbar:focus-within{ box-shadow:0 0 0 3px var(--accent-soft); }
.askbar svg{ flex:none; }
.askbar input{
  flex:1; min-width:0; height:100%;
  border:0; outline:0; background:transparent;
  font-family:var(--font-body); font-size:16px; color:var(--text);
}
.askbar input::placeholder{ color:var(--text-faint); }
/* padding 18, а не 22: на 1440 при 22 плейсхолдер обрезался на «№ 47». */
.askbar .btn-primary{ height:46px; padding:0 18px; }

.hero-under{ margin-top:14px; }
.note{ margin-top:10px; font-size:14px; color:var(--text-faint); }
.note .mono{ color:var(--text-muted); }

/* ── ПАНЕЛЬ ПРОДУКТА: единственное место, где разрешена тень ───────────── */
.panel{
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  background:var(--bg);
  box-shadow:var(--shadow-ring);
  overflow:hidden;
}
.panel-bar{
  min-height:46px; padding:0 16px;
  display:flex; align-items:center; gap:10px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.panel-bar .file{ font-size:12.5px; color:var(--text-muted); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* NB: класс НЕ .chip — .chip занят летящей таблеткой движка сцен (LOCK §4). */
.pchip{
  margin-left:auto;
  display:inline-flex; align-items:center; gap:6px;
  height:22px; padding:0 9px;
  border:1px solid var(--border); border-radius:var(--r-pill);
  background:var(--bg);
  font-size:11.5px; color:var(--text-muted); white-space:nowrap;
}
.pchip .tick{ width:5px; height:5px; border-radius:var(--r-pill); background:var(--accent); flex:none; }

/* Сцена упирается в края панели: «окно в продукт, а не картина в раме». */
#hero-doc-showcase{ display:block; }
.hero-scene-stage{ display:block; }
.hero-scene-foot{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:46px; padding:8px 16px;
  border-top:1px solid var(--border);
  background:var(--surface);
}

/* ═══ ПОДВАЛ — выходные данные документа ═════════════════════════════════ */
.foot{ border-top:1px solid var(--border); background:var(--surface); }
.foot .wrap{ padding-top:52px; padding-bottom:40px; }
.foot .grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,280px); gap:44px; }
.foot .tag{ margin-top:14px; font-size:15px; color:var(--text-muted); max-width:24em; }
.foot dl{ margin:0; display:flex; flex-direction:column; gap:10px; }
.foot dt{ margin-bottom:12px; }
.foot dd{ margin:0; font-size:15px; color:var(--text-muted); }
.foot .colhead{ display:block; margin-bottom:12px; }
.foot .req{ font-size:15px; color:var(--text-muted); line-height:1.7; }
.foot .bottom{
  margin-top:40px; padding-top:20px; border-top:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:12px; color:var(--text-faint);
}
.foot a{ min-height:auto; }

/* ═══ АДАПТИВ ОБОЛОЧКИ. Переломы 1024 / 860 / 640, зона нажатия ≥44px ════ */
@media (max-width:1024px){
  .hero .wrap{ grid-template-columns:minmax(0,1fr); gap:44px; padding-top:56px; padding-bottom:64px; align-items:start; }
  .hero .lead{ max-width:40em; }
  .foot .grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px; }
}
@media (max-width:860px){
  .top nav{ display:none; }
}
@media (max-width:640px){
  .top .wrap{ height:56px; gap:14px; }
  .btn-ghost{ height:44px; padding:0 14px; }
  .hero .wrap{ padding-top:40px; padding-bottom:48px; gap:36px; }
  /* Строка запроса на узком: тот же объект и та же единственная чёрная рамка,
     но в два ряда — кнопка встаёт под полем во всю ширину. Кнопка ОДНА
     И ТА ЖЕ, дублей в разметке нет. */
  .askbar{ height:auto; flex-wrap:wrap; align-items:stretch; padding:10px 14px; row-gap:10px; }
  .askbar svg{ align-self:center; }
  .askbar input{ height:44px; }
  .askbar .btn-primary{ flex:1 0 100%; height:50px; }
  .foot .grid{ grid-template-columns:minmax(0,1fr); gap:30px; }
}
