/* ============================================================
   Витрина meb-crm.ru — «Офис и объект в одной карточке».
   ============================================================

   Логика продажи (по Данфорд: не лавина возможностей, а ответ на
   «почему мы, а не то, чем вы пользуетесь сейчас»):

     обещание  — заказ больше не теряется между офисом и объектом;
     контекст  — сейчас он живёт в пяти местах;
     механизм  — три опоры: доска, объект в кармане, файлы и разговор;
     доказательство — мелочи, которые выдают ремесло, и живой автор;
     действие  — одна цена на всю компанию, тридцать дней без карты.

   Главный кадр — сам продукт, как у Linear: не скриншот, а живая
   доска, свёрстанная тем же языком, что и кабинет, на которой заказ
   переезжает по стадиям. Покупают то, что видят.

   И главное правило: витрина обещает ровно то, что есть в продукте.
   Смет, цеха и кассы в нём сейчас нет — значит, и здесь их нет.
   ============================================================ */

@font-face {
  font-family: 'Onest';
  src: url('/static/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/static/fonts/onest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2190-2193, U+2212, U+2215;
}

:root {
  /* бумага витрины */
  --bg: #fbfbfa;
  --white: #ffffff;
  --tint: #f3f3f0;
  --ink: #0f1115;
  --ink-2: #4a505b;
  --ink-3: #868c97;
  --line: rgba(15, 17, 21, 0.1);
  --line-2: rgba(15, 17, 21, 0.06);

  /* цвета кабинета — чтобы нарисованный продукт был тем же продуктом */
  --app-accent: #3a56d4;
  --app-wash: #eef1fc;
  --app-surface: #ffffff;
  --app-ground: #f3f5f9;
  --app-line: #e3e6ec;
  --app-muted: #7a8190;
  --app-danger: #d4493a;
  --app-danger-wash: #fdeeec;
  --app-ok: #24674c;
  --app-warn: #a8631b;
  --st-1: #8a93a6;
  --st-2: #3a56d4;
  --st-3: #a8631b;
  --st-4: #24674c;

  --gut: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --sec: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);

  /* тень предмета: несколько слоёв, как у настоящего окна на столе */
  --lift: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(15, 17, 21, 0.06),
    0 12px 24px -8px rgba(15, 17, 21, 0.1), 0 50px 100px -30px rgba(15, 23, 42, 0.28);
}

/*
 * Горизонтальной прокрутки у страницы нет — и обрезка стоит на обоих
 * уровнях. Одного body мало: по правилам CSS его overflow при
 * «пустом» html уходит на весь экран, а экран на телефоне это правило
 * не соблюдает — страница ездила вбок пальцем, хотя в эмуляторе
 * стояла ровно. С html на экран уходит его значение, а body режет
 * своё содержимое уже сам. clip, а не hidden: hidden сделал бы body
 * прокручиваемым, и липкая шапка перестала бы липнуть.
 *
 * Это страховка, а не лечение: вылезать за край не должно ничего,
 * и проверять это надо со снятой обрезкой.
 */
html {
  overflow-x: clip;
}
.l6 {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.l6 *,
.l6 *::before,
.l6 *::after {
  box-sizing: border-box;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* ---------- типографика ----------
   Заголовки плотные, а не тонкие: тонкий гигант по центру — это язык
   модного журнала, продукту он чужой. Продукт говорит уверенно и
   коротко — полужирным с тугим трекингом. */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-accent);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.h1 {
  margin: 0;
  /* 68 на широком экране, а не 84: при 84 заголовок ложился в три строки
     и выталкивал продукт за сгиб — а продукт и есть главный кадр */
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.042em;
}
.h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.028em;
}
.lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.muted {
  color: var(--ink-3);
}
.nums {
  font-variant-numeric: tabular-nums;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--slow),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.35s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-go {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -8px rgba(15, 17, 21, 0.5);
}
.btn-go:hover {
  background: var(--app-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 12px 26px -10px rgba(58, 86, 212, 0.7);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(15, 17, 21, 0.28);
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- шапка ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.78);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.solid {
  border-bottom-color: var(--line-2);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-act {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 900px) {
  .nav-links,
  .nav-act .btn-ghost {
    display: none;
  }
  .nav-act {
    margin-left: auto;
  }
  .nav-in {
    height: 60px;
  }
}

/* ============================================================
   ПЕРВЫЙ ЭКРАН: обещание и живой продукт
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(40px, 5vw, 72px);
  overflow: hidden;
}
/* мягкий свет сверху — единственное «украшение»: он делает бумагу
   объёмной, как стол под лампой, и не спорит с продуктом */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background: radial-gradient(50% 60% at 50% 30%, rgba(58, 86, 212, 0.09), transparent 70%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  text-align: center;
}
.hero .h1 {
  max-width: 19ch;
  margin: 18px auto 0;
}
.hero .lead {
  margin: 20px auto 0;
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  text-wrap: balance;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* сцена с продуктом: окно кабинета и телефон бригады поверх */
.stage {
  position: relative;
  max-width: 1180px;
  margin: clamp(36px, 4vw, 56px) auto 0;
  padding-bottom: clamp(60px, 7vw, 110px);
}

/* ---------- окно кабинета ---------- */

.win {
  position: relative;
  border-radius: 16px;
  background: var(--app-ground);
  box-shadow: var(--lift);
  overflow: hidden;
  border: 1px solid rgba(15, 17, 21, 0.08);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--app-line);
}
.win-dots {
  display: flex;
  gap: 6px;
}
.win-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e4e9;
}
.win-url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  height: 24px;
  border-radius: 7px;
  background: var(--app-ground);
  color: var(--app-muted);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

/* шапка кабинета внутри окна */
.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--app-line);
}
.app-head b {
  font-size: 15px;
  font-weight: 600;
}
.app-search {
  flex: 0 1 280px;
  height: 32px;
  border: 1px solid var(--app-line);
  border-radius: 9px;
  color: var(--app-muted);
  font-size: 12.5px;
  line-height: 30px;
  padding-left: 12px;
}
.app-sp {
  flex: 1;
}
.app-new {
  height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--app-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 32px;
}
.app-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--app-wash);
  color: var(--app-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

/* доска */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  text-align: left;
}

/*
 * Окно первого экрана — постоянной высоты.
 *
 * Высоту доски задавала самая длинная колонка, а карточки по ней ездят:
 * окно становилось то 456, то 518, то 551 px, и вместе с ним прыгало всё,
 * что ниже, — на телефоне прямо под пальцем. Теперь окно одно и то же,
 * а что не влезло в колонку, уходит под мягкое затухание снизу — так
 * выглядит настоящая длинная доска, которую листают.
 */
.hero {
  --win-h: 500px;
}
.hero .win {
  display: flex;
  flex-direction: column;
  height: var(--win-h);
}
.hero .board {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 330px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(227, 230, 236, 0.8);
}
.col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 6px;
  font-size: 12.5px;
  font-weight: 600;
}
.col-head i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.col-head span {
  margin-left: auto;
  color: var(--app-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.col-sum {
  padding: 0 4px 4px;
  font-size: 11.5px;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}

/* карточка сделки — тем же языком, что DealCard в кабинете */
.card {
  position: relative;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--app-line);
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.05);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
}
.card-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px 0;
}
.card-top em {
  font-style: normal;
  color: var(--app-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card-top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.pill {
  flex: none;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--app-ground);
  color: var(--app-muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.pill.late {
  background: var(--app-danger-wash);
  color: var(--app-danger);
}
.card-sk {
  display: block;
  width: 100%;
  height: 74px;
  margin-top: 8px;
  object-fit: cover;
  border-block: 1px solid var(--app-line);
}
.card-body {
  padding: 7px 10px 9px;
}
.card-who {
  color: #4b5160;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* число не рвётся («425 / 000 ₽» на узкой карточке телефона): если
   рядом не хватает места, долг уходит строкой ниже целиком */
.card-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card-sum small {
  color: var(--app-warn);
  font-size: 11px;
  font-weight: 500;
}
.card-own {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #4b5160;
  font-size: 11px;
}
.card-own i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--app-wash);
  color: var(--app-accent);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.card.late {
  border-color: rgba(212, 73, 58, 0.45);
  box-shadow: inset 3px 0 0 var(--app-danger);
}

/* карточка, которая сейчас «едет» по доске */
.card.flying {
  z-index: 5;
  box-shadow:
    0 2px 4px rgba(15, 17, 21, 0.06),
    0 24px 40px -12px rgba(15, 23, 42, 0.35);
  transform: rotate(-1.5deg) scale(1.03);
  transition: transform 0.35s var(--slow), box-shadow 0.35s var(--ease);
}
.card.landed {
  animation: land 0.9s var(--slow);
}
@keyframes land {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 86, 212, 0.45);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(58, 86, 212, 0);
  }
}

/* ---------- телефон бригады поверх окна ---------- */

.hand {
  position: absolute;
  right: clamp(-10px, -1vw, 0px);
  bottom: 0;
  width: clamp(220px, 23vw, 290px);
  z-index: 6;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2b313d, #0e1118 60%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 50px 80px -30px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(15, 17, 21, 0.1);
}
.phone-in {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--app-ground);
  font-size: 11.5px;
  line-height: 1.4;
}
.phone-in::before {
  /* вырез камеры */
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 76px;
  height: 20px;
  border-radius: 100px;
  background: #0e1118;
  transform: translateX(-50%);
  z-index: 3;
}
.ph-head {
  padding: 36px 14px 10px;
  background: #fff;
  border-bottom: 1px solid var(--app-line);
  font-size: 14px;
  font-weight: 600;
}
.ph-body {
  padding: 12px;
}
.visit {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--app-line);
  padding: 12px;
}
.visit-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.visit-top b {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.st {
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--app-wash);
  color: var(--app-accent);
  font-size: 10px;
  font-weight: 600;
}
.visit-when {
  margin-top: 6px;
  font-weight: 600;
}
.visit-where {
  color: #4b5160;
}
.visit-act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.visit-act span {
  height: 32px;
  border-radius: 9px;
  background: var(--app-ground);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.shots i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: center / cover;
}
/* плашка «нет связи» — главная мысль телефона */
.offline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #0f1115;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}
.offline i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0b429;
  box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.25);
}
.offline.sent i {
  background: #33c46b;
  box-shadow: 0 0 0 4px rgba(51, 196, 107, 0.25);
}

/* масштаб сцены на узком экране: доску не ломаем в колонку, а
   уменьшаем целиком — продукт должен выглядеть собой */
.scale {
  --k: 1;
  transform-origin: top center;
}
@media (max-width: 1100px) {
  .board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .col:nth-child(5) {
    display: none;
  }
}
@media (max-width: 760px) {
  .stage {
    padding-bottom: 40px;
  }
  /* только окно первого экрана: его масштаб (--k) выставляет скрипт.
     Правило без .win-hold цепляло и окно опоры «Как устроено» — оно
     становилось шириной 760 px без масштаба и распирало страницу на
     телефоне вдвое. То окно тянется по колонке само. */
  .win-hold .win {
    width: 760px;
    transform: scale(var(--k));
    transform-origin: top left;
  }
  .win-hold {
    height: calc(var(--win-h) * var(--k));
    overflow: visible;
  }
  /* телефон бригады на телефоне не показываем: ниже окна он стоял
     отдельным огромным предметом, и доска прыгала прямо над ним. На
     компьютере он часть сцены, здесь — лишний: человек и так держит
     телефон в руке. Только первый экран (.stage): телефон в фото кухни
     у опоры «Замеры и монтаж» — другой макет, он остаётся */
  .stage .hand {
    display: none;
  }
}

/* ============================================================
   КОНТЕКСТ: пять мест, где живёт заказ
   ============================================================ */

.scatter {
  padding-block: var(--sec);
  background: var(--white);
  border-block: 1px solid var(--line-2);
}
.scatter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
}
.scatter .lead {
  margin-top: 20px;
}
.pile {
  position: relative;
  height: 420px;
}
.bit {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.25);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  /* из разброса к центру — по доле прокрутки --g (0…1); --spread-x/y
     сжимают разброс на узком экране, чтобы листки не торчали за край */
  transform: translate(
      calc(-50% + var(--x) * var(--spread-x, 1) * (1 - var(--g, 0))),
      calc(-50% + var(--y) * var(--spread-y, 1) * (1 - var(--g, 0)))
    )
    rotate(calc(var(--r) * (1 - var(--g, 0))))
    scale(calc(1 - var(--g, 0) * 0.35));
  opacity: calc(1 - var(--g, 0) * 0.95);
}
.bit span {
  font-size: 18px;
}
/* карточка, в которую всё собирается */
.one {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 290px;
  transform: translate(-50%, -50%) scale(calc(0.85 + var(--g, 0) * 0.15));
  opacity: var(--g, 0);
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.35);
}
.one .card-body {
  padding-bottom: 12px;
}
.one-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.one-tags span {
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--app-wash);
  color: var(--app-accent);
  font-size: 10.5px;
  font-weight: 600;
}
@media (max-width: 860px) {
  .scatter-grid {
    grid-template-columns: 1fr;
  }
  .pile {
    height: 360px;
  }
}
/*
 * Телефон: разброс был рассчитан на колонку в 600 px — листки стояли
 * до 190 px от центра при ширине колонки 350 и торчали за оба края.
 * По горизонтали сжимаем почти вдвое, по вертикали оставляем: высоты
 * хватает, а хаос должен читаться хаосом, а не стопкой.
 */
@media (max-width: 560px) {
  .pile {
    height: 380px;
  }
  .bit {
    --spread-x: 0.5;
    --spread-y: 0.95;
    gap: 8px;
    padding: 10px 13px;
    font-size: 13px;
  }
}
/* самые узкие телефоны (320–360): колонка ещё на 70 px уже */
@media (max-width: 360px) {
  .bit {
    --spread-x: 0.38;
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

/* ============================================================
   МЕХАНИЗМ: три опоры
   ============================================================ */

.pillars {
  padding-block: var(--sec);
}
.pillars-head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 90px);
  text-align: center;
}
.pillars-head .lead {
  margin: 20px auto 0;
}
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 80px);
}
.pillar + .pillar {
  border-top: 1px solid var(--line-2);
}
.pillar.flip .pillar-txt {
  order: 2;
}
.pillar-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-accent);
  font-variant-numeric: tabular-nums;
}
.pillar .h2 {
  margin-top: 14px;
}
.pillar .lead {
  margin-top: 18px;
}
.facts {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.facts li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%233a56d4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--app-wash);
}
.pillar-vis {
  position: relative;
}
@media (max-width: 900px) {
  .pillar {
    grid-template-columns: 1fr;
  }
  .pillar.flip .pillar-txt {
    order: 0;
  }
}

/* опора 1: крупный фрагмент доски */
.zoom-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

/* опора 2: объект — фото кухни и телефон поверх */
.site {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: url('/static/img/landing2/kitchen-showcase.jpg') center / cover;
  box-shadow: var(--lift);
}
.site::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 17, 21, 0.35));
}
.site .hand {
  position: absolute;
  right: 6%;
  bottom: -14%;
  width: 44%;
  z-index: 2;
}
.site-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .site {
    aspect-ratio: 4 / 5;
  }
  .site .hand {
    width: 58%;
    right: 50%;
    transform: translateX(50%);
    bottom: -8%;
  }
  .site-tag {
    display: none;
  }
}

/* опора 3: карточка сделки с файлами и чатом */
.drawer {
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--lift);
  border: 1px solid rgba(15, 17, 21, 0.08);
  overflow: hidden;
}
.drawer-head {
  padding: 16px 18px 0;
}
.drawer-head b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.drawer-head span {
  font-size: 12.5px;
  color: var(--app-muted);
}
.tabs {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--app-line);
  font-size: 12.5px;
}
.tabs span {
  padding-bottom: 9px;
  color: var(--app-muted);
}
.tabs span.on {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--app-accent);
}
.drawer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}
.files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 16px 18px;
  border-right: 1px solid var(--app-line);
}
.files i {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--app-ground) center / cover;
}
.files i.doc {
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--app-muted);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.4;
}
.msg {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--app-ground);
}
.msg.me {
  align-self: flex-end;
  background: var(--app-accent);
  color: #fff;
}
.msg small {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
}
.ydisk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--app-line);
  background: #fffdf5;
  font-size: 12px;
  color: #6b5a1e;
}
.ydisk b {
  font-weight: 600;
}
@media (max-width: 560px) {
  .drawer-grid {
    grid-template-columns: 1fr;
  }
  .files {
    border-right: 0;
    border-bottom: 1px solid var(--app-line);
  }
}

/* ============================================================
   ДОКАЗАТЕЛЬСТВО: мелочи, по которым видно ремесло
   ============================================================ */

.craft {
  padding-block: var(--sec);
  background: var(--white);
  border-block: 1px solid var(--line-2);
}
.craft-head {
  max-width: 700px;
}
.craft-head .lead {
  margin-top: 18px;
}
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 5vw, 64px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.craft-item {
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--white);
  transition: background-color 0.3s var(--ease);
}
.craft-item:hover {
  background: #fcfcfb;
}
.craft-item b {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.craft-item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 1000px) {
  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .craft-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ЦЕНА
   ============================================================ */

.price {
  padding-block: var(--sec);
}
.price-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 60px 120px -50px rgba(15, 23, 42, 0.6);
}
.price-l {
  padding: clamp(32px, 5vw, 72px);
}
.price-l .eyebrow {
  color: #9db0ff;
}
.price-l .h2 {
  margin-top: 16px;
}
.price-l .lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.price-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 34px;
}
.price-num b {
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 620;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.price-num span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.price-l .btn-go {
  margin-top: 30px;
  background: #fff;
  color: var(--ink);
}
.price-l .btn-go:hover {
  background: #dfe5ff;
}
.price-r {
  padding: clamp(32px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.incl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.incl li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}
.incl li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    rgba(255, 255, 255, 0.12);
}
@media (max-width: 860px) {
  .price-box {
    grid-template-columns: 1fr;
  }
  .price-r {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ============================================================
   АВТОР, ВОПРОСЫ, ФИНАЛ, ПОДВАЛ
   ============================================================ */

.author {
  padding-block: 0 var(--sec);
}
/*
 * Портрет, а не аватарка. Кружок в 120 px читался как значок учётной
 * записи — рядом с первым лицом компании это мелко. Здесь — карточка
 * 4:5, как фото автора в журнале: человек за работой, свет на лице,
 * имя подписью прямо по снимку.
 */
.author-box {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.author-photo {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1714;
  box-shadow: var(--lift);
}
.author-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
/* подпись по снимку: низ кадра и так в полутени, мягкий градиент
   делает текст читаемым, не пряча фото */
.author-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 56px 22px 20px;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.78), rgba(12, 10, 8, 0));
  color: #fff;
}
.author-photo b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.author-photo span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.author-text .eyebrow {
  margin-bottom: 18px;
}
.author-box q {
  display: block;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.024em;
  quotes: '«' '»';
  /* без одинокого слова в последней строке */
  text-wrap: pretty;
}
.author-box p {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
/* P.S. — тише основного текста: для тех, кому интересно, а не для всех */
.author-box .author-ps {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-3);
}
.author-ps a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.author-ps a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
@media (max-width: 760px) {
  .author-box {
    grid-template-columns: 1fr;
  }
  .author-photo {
    width: min(100%, 420px);
    border-radius: 20px;
  }
}

.faq {
  padding-block: var(--sec);
  background: var(--white);
  border-top: 1px solid var(--line-2);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 90px);
}
.qa {
  border-top: 1px solid var(--line);
}
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--slow);
}
.qa details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.qa p {
  margin: 0;
  padding: 0 0 22px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.final {
  padding-block: clamp(100px, 12vw, 180px);
  text-align: center;
}
.final .h2 {
  max-width: 18ch;
  margin: 0 auto;
}
.final .lead {
  margin: 20px auto 0;
}

.foot {
  padding-block: clamp(48px, 6vw, 80px) 32px;
  border-top: 1px solid var(--line-2);
  background: var(--white);
}
/* пять колонок: марка, сервис, документы, приложение, связь — с
   появлением «Приложения» четырёх стало мало, и «Связь» уезжала во
   второй ряд под марку */
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
@media (max-width: 1100px) {
  .foot-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .foot-top > :first-child {
    grid-column: 1 / -1;
  }
}
.foot h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.foot ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}
.foot-note {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
@media (max-width: 860px) {
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- приход ---------- */

[data-in] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--slow),
    transform 0.9s var(--slow);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-in].seen {
  opacity: 1;
  transform: none;
}
.no-js [data-in] {
  opacity: 1;
  transform: none;
}

.l6 a:focus-visible,
.l6 button:focus-visible,
.l6 summary:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}

/* ---------- без движения ----------
   Всё стоит на местах и видно сразу: карточки на доске, разброс уже
   собран в одну карточку. Мысль страницы от этого не теряется. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) [data-in] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html:not(.motion) .pile {
    --g: 1;
  }
  html:not(.motion) .card.flying {
    transform: none;
  }
}

/* ============================================================
   Опоры 3–5: смета, цех, деньги — тем же языком кабинета
   ============================================================ */

.sheet {
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--lift);
  border: 1px solid rgba(15, 17, 21, 0.08);
  overflow: hidden;
  font-size: 13px;
}
.sheet-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--app-line);
}
.sheet-head b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sheet-head span {
  margin-left: auto;
  font-size: 12px;
  color: var(--app-muted);
}

/* смета */
.est {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.est th,
.est td {
  padding: 10px 18px;
  text-align: left;
  border-bottom: 1px solid var(--app-line);
}
.est th {
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.est td:last-child,
.est th:last-child {
  text-align: right;
}
.est-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  padding: 14px 18px;
  background: var(--app-ground);
  font-variant-numeric: tabular-nums;
}
.est-total span {
  color: var(--app-muted);
}
.est-total b {
  text-align: right;
}
.est-total .big {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--app-line);
}
.docs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--app-line);
  font-size: 12px;
  font-weight: 600;
}
.docs span::before {
  content: 'PDF';
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--app-danger-wash);
  color: var(--app-danger);
  font-size: 9px;
  font-weight: 700;
}

/* цех: дорожка этапов и наряды */
.track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 18px;
}
.stage-cell {
  position: relative;
  padding: 10px 10px 12px;
  border-radius: 10px;
  background: var(--app-ground);
  font-size: 11.5px;
  font-weight: 600;
}
.stage-cell small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--app-muted);
}
.stage-cell.done {
  background: #eaf5ef;
  color: var(--app-ok);
}
.stage-cell.now {
  background: var(--app-wash);
  color: var(--app-accent);
  box-shadow: inset 0 0 0 1.5px var(--app-accent);
}
.stage-cell.stuck {
  background: var(--app-danger-wash);
  color: var(--app-danger);
}
.orders {
  border-top: 1px solid var(--app-line);
}
.order {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--app-line);
  font-size: 12.5px;
}
.order:last-child {
  border-bottom: 0;
}
.order em {
  font-style: normal;
  font-weight: 600;
  color: var(--app-muted);
  font-variant-numeric: tabular-nums;
}
.bar {
  position: relative;
  height: 6px;
  border-radius: 100px;
  background: var(--app-ground);
  overflow: hidden;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 100px;
  background: var(--app-accent);
}
.bar.red i {
  background: var(--app-danger);
}
.order .pill {
  justify-self: end;
}

/* деньги: маржа по факту */
.money {
  padding: 18px;
}
.money-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding-block: 9px;
  border-bottom: 1px solid var(--app-line);
  font-variant-numeric: tabular-nums;
}
.money-row span {
  color: #4b5160;
}
.money-row b {
  text-align: right;
}
.money-row.sub span {
  padding-left: 14px;
  color: var(--app-muted);
  font-size: 12px;
}
.money-row.sub b {
  font-weight: 500;
  color: var(--app-muted);
  font-size: 12px;
}
.split {
  display: flex;
  height: 10px;
  margin-top: 16px;
  border-radius: 100px;
  overflow: hidden;
}
.split i {
  display: block;
}
.split .cost {
  flex: 247;
  background: #c9cfdb;
}
.split .gain {
  flex: 138;
  background: var(--app-ok);
}
.margin {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}
.margin b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--app-ok);
  font-variant-numeric: tabular-nums;
}
.margin span {
  color: var(--app-muted);
  font-size: 13px;
}
@media (max-width: 560px) {
  .track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* метка вместо значка у «пяти мест»: цветная точка того же рода, что
   у стадий на доске, — не картинка-эмодзи, которая спорит с продуктом */
.bit i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--app-muted);
}
.bit:nth-child(1) i { background: #3aa76d; }
.bit:nth-child(2) i { background: #a8631b; }
.bit:nth-child(3) i { background: #8a93a6; }
.bit:nth-child(4) i { background: #3a56d4; }
.bit:nth-child(5) i { background: #d4493a; }

/* ---------- телефон: опоры не распираются содержимым ----------
   Доска из трёх колонок внутри опоры была шире экрана и растягивала
   весь блок: вместе с ней обрезались справа заголовок и пункты. Элемент
   сетки по умолчанию не уже своего содержимого — отсюда min-width: 0. */
.pillar > *,
.scatter-grid > *,
.faq-grid > * {
  min-width: 0;
}
@media (max-width: 560px) {
  .zoom-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zoom-board .col:nth-child(3) {
    display: none;
  }
  .est th,
  .est td {
    padding: 9px 12px;
    font-size: 12px;
  }
  .sheet-head {
    flex-wrap: wrap;
  }
}

/* новая заявка приходит на доску */
.card.fresh {
  animation: fresh 0.7s var(--slow);
}
@keyframes fresh {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}
/* сданный заказ уходит с доски */
.card.gone {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

/* ---------- знак RuStore ----------
   Чёрная плашка со знаком и подписью в две строки — так выглядят
   значки магазинов приложений везде, и человек узнаёт её раньше, чем
   прочтёт. Знак — официальный, путь целиком, без перерисовки. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 12px;
  border-radius: 12px;
  background: #0f1115;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.35s var(--slow),
    background-color 0.25s var(--ease);
}
.store:hover {
  background: #22262e;
  transform: translateY(-1px);
}
.store:active {
  transform: scale(0.97);
}
.store-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.store span {
  display: grid;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.store small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.72;
}
.store-in {
  margin-top: 24px;
}
/* в подвале общее правило ссылок (.foot a) перекрашивало подпись
   плашки в серый — на чёрном её было не прочесть */
.foot .store,
.foot .store:hover {
  color: #fff;
}

/* ---------- APK с сайта ----------
   Вторая дорога — тихой ссылкой рядом с плашкой, а не второй плашкой:
   магазин остаётся главным путём, файл — для тех, у кого RuStore нет. */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}
.store-row .store-in {
  margin-top: 0;
}
.store-apk {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition:
    color 0.2s var(--ease),
    text-decoration-color 0.2s var(--ease);
}
.store-apk:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.foot .store-apk {
  display: block;
  width: max-content;
  margin-top: 12px;
  font-size: 13.5px;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.qa p a {
  color: var(--app-accent);
}

/* ============================================================
   ТЕЛЕФОН: доводка
   Витрину на телефоне открывают чаще, чем на компьютере: переходы из
   Телеграма и RuStore. Всё ниже — только для узких экранов, облик на
   компьютере не трогается.
   ============================================================ */

/* ритм: 96 px сверху и снизу у каждого раздела — это почти 200 px
   пустоты между блоками, на телефоне полэкрана ничего */
@media (max-width: 760px) {
  :root {
    --sec: 72px;
  }
}

/* шапка: «Войти» не прячем. Свои приходят на витрину тоже, и листать
   ради входа до подвала — худший из путей. Текстом, а не второй
   пилюлей: главная кнопка в шапке одна */
@media (max-width: 900px) {
  .nav-act .btn-ghost {
    display: inline-flex;
    padding: 0 10px;
    border-color: transparent;
    background: none;
    box-shadow: none;
    color: var(--ink-2);
  }
  .nav-act {
    gap: 4px;
  }
}
/* 320–360: три предмета в шапке влезают только поджатыми */
@media (max-width: 360px) {
  .nav-in {
    gap: 10px;
  }
  .brand {
    gap: 7px;
    font-size: 15px;
  }
  .nav-act .btn {
    font-size: 13.5px;
  }
  .nav-act .btn-ghost {
    padding: 0 8px;
  }
  .nav-act .btn-go {
    padding: 0 13px;
  }
}
/* 320: слову «MebelCRM» места уже нет — остаётся знак. Текст ссылки
   не удалён, а сжат до нуля: читалка экрана его по-прежнему назовёт */
@media (max-width: 340px) {
  .brand {
    gap: 0;
    font-size: 0;
  }
}

/* кнопки первого экрана и финала: столбиком одной ширины — две
   пилюли разной длины друг под другом выглядят случайностью */
@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 360px);
    margin-inline: auto;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .price-l .btn-go {
    width: 100%;
  }
}

/* первый экран без телефона: под окном хватает небольшого воздуха */
@media (max-width: 760px) {
  .stage {
    padding-bottom: 16px;
  }
}

/* доска опоры «Сделки»: вместо названий стояло «Г…». На узкой
   карточке дата уступает место названию, а название переносится */
@media (max-width: 560px) {
  .zoom-board .pill {
    display: none;
  }
  /* номер — строкой выше: рядом с ним «Гардеробная» не влезала
     даже без даты, и слово резалось посередине */
  .zoom-board .card-top {
    flex-wrap: wrap;
    row-gap: 1px;
  }
  .zoom-board .card-top b {
    flex-basis: 100%;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
  .zoom-board .card-who {
    white-space: normal;
  }
}

/* подпись Яндекс.Диска — фразой, а не двумя колонками */
@media (max-width: 560px) {
  .ydisk {
    display: block;
    line-height: 1.45;
  }
}

/* разброс: в собранном виде карточке не нужно 380 px высоты */
@media (max-width: 560px) {
  .pile {
    height: 340px;
  }
  .bit {
    --spread-y: 0.8;
  }
}

/* ============================================================
   ДЕМО-КАБИНЕТ: второй путь на каждом шаге решения
   Регистрация — обязательство; демо — «сначала посмотреть», без формы.
   Кнопкой — там, где решают (первый экран, финал); тихой ссылкой —
   там, где главная кнопка уже есть (цена) или где уместно «потрогать»
   (доска сделок).
   ============================================================ */

/* доска «Сделки»: ссылка со стрелкой под пунктами */
.pillar-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--app-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.pillar-demo::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .pillar-demo:hover::after {
    transform: translateX(3px);
  }
}

/* цена: на тёмной карточке, под подписью про карту */
.price-demo {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}
.price-demo:hover {
  text-decoration-color: #fff;
}

/* финал: основатель — строкой под кнопками, а не третьей кнопкой */
.final-ask {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}
.final-ask a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.final-ask a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ============================================================
   SEO: заголовок с ключом, «Для кого», посадочные страницы
   (docs/seo/semantic-core.md). Облик — тот же язык, что у главной.
   ============================================================ */

/* H1 с ключом: надпись «CRM для …» — часть заголовка, выглядит как
   прежняя надпись над ним. Поисковик читает её как главный заголовок */
.h1-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero .h1.h1-key {
  margin-top: 0;
}
.h1-key .eyebrow {
  letter-spacing: normal;
  line-height: 1.4;
}
.h1-main {
  display: block;
}

/* ---------- Для кого ---------- */
.who {
  padding-block: var(--sec);
}
.who-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.who-head .lead {
  margin: 20px auto 0;
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.who-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line-2), 0 14px 34px -22px rgba(15, 23, 42, 0.35);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.35s var(--slow),
    box-shadow 0.35s var(--ease);
}
.who-card b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.who-card p {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.who-card span {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--app-accent);
}
@media (hover: hover) and (pointer: fine) {
  .who-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--line), 0 22px 44px -24px rgba(15, 23, 42, 0.4);
  }
}
.who-more {
  margin: 26px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}
.who-more a {
  color: var(--app-accent);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 1000px) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .who-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- посадочные: первый экран без сцены ---------- */
.lp-hero {
  padding-bottom: clamp(16px, 3vw, 40px);
}
.crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.lp-pillars {
  padding-top: 0;
  padding-bottom: clamp(24px, 4vw, 60px);
}

/* ---------- шаги ---------- */
.lp-steps {
  padding-block: clamp(48px, 6vw, 96px);
  background: var(--white);
  border-block: 1px solid var(--line-2);
}
.lp-steps .h2 {
  max-width: 760px;
}
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-2);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--app-accent);
  font-variant-numeric: tabular-nums;
}
.steps b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.steps p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- статья: сравнение подходов ---------- */
.lp-article {
  padding-block: clamp(48px, 6vw, 96px);
  background: var(--white);
  border-block: 1px solid var(--line-2);
}
.lp-prose {
  max-width: 820px;
}
.lp-prose .h2 {
  margin-top: clamp(36px, 5vw, 56px);
  font-size: clamp(26px, 3vw, 38px);
}
.lp-prose .h2:first-child {
  margin-top: 0;
}
.lp-prose p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
/* таблица на телефоне прокручивается сама, страница — нет */
.cmp-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}
.cmp th,
.cmp td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}
.cmp thead th {
  background: var(--tint);
  font-size: 13px;
  font-weight: 600;
}
.cmp tbody th {
  width: 26%;
  font-weight: 600;
}
.cmp td:last-child {
  color: var(--ink);
  font-weight: 500;
}
.cmp td:nth-child(2) {
  color: var(--ink-2);
}
.cmp tr:last-child th,
.cmp tr:last-child td {
  border-bottom: 0;
}

/* телефон: таблица сравнения — карточками. Прокрутка вбок прятала
   колонку MebelCRM, ради которой сравнение и читают */
@media (max-width: 600px) {
  .cmp-wrap {
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }
  .cmp {
    min-width: 0;
  }
  .cmp thead {
    display: none;
  }
  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
    width: auto;
  }
  .cmp tr {
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--line);
    background: var(--white);
  }
  .cmp tbody th {
    width: auto;
    padding: 0 0 8px;
    border: 0;
    font-size: 15px;
  }
  .cmp td {
    padding: 6px 0 0;
    border: 0;
  }
  .cmp td::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-3);
  }
  .cmp td:last-child::before {
    color: var(--app-accent);
  }
}
