/* Argelit Fabrika — промо-сайт платформы.
   Визуальный язык — argelit.com и редизайн веб-версии платформы: тёмно-синий «космос» #0A1326/#0E1930
   с синими крестиками, акцент #0066FF, фон #F2F4F7, линии #E5EAF2, текст #111/#667085; Inter для текста,
   Oswald капслоком для заголовков, цифр и кнопок; кнопки-«таблетки», карточки 20 px. Три цвета участков
   (серый, жёлтый, зелёный) — как в платформе. Порядок: шрифты → токены → база → шапка → секции → форма →
   макеты → адаптив → слой Argelit. */

/* ---------- Шрифты (Inter и Oswald, SIL Open Font License; файлы в assets/fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+25B6, U+25CB, U+2713, U+2726, U+21BB, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/oswald-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

/* ---------- Токены ---------- */
:root {
  color-scheme: light;

  /* Палитра argelit.com — та же, что в редизайне платформы. */
  --bg: #f2f4f7;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --text: #111111;
  --text-2: #344054;
  --muted: #667085;
  --faint: #667085;
  --border: #e5eaf2;
  --primary: #0066ff;
  --primary-2: #0052cc;
  --primary-soft: #e6f0ff;
  --accent: #0066ff;
  --accent-soft: #e6f0ff;
  --accent-light: #4d94ff;
  --warning: #864b00;
  --warning-soft: #fff1d6;
  --danger: #a8322d;
  --danger-soft: #fbe4e2;
  --funnel-b: #754838;
  --funnel-b-soft: #f3e7e1;

  /* Три состояния участка — как в платформе, во всех темах. */
  --stage-gray: #475569;
  --stage-gray-on: #ffffff;
  --stage-yellow: #facc15;
  --stage-yellow-on: #1f2937;
  --stage-green: #15803d;
  --stage-green-on: #ffffff;

  /* Ночной «космос» argelit.com — для тёмных секций. */
  --night: #0a1326;
  --night-2: #0e1930;
  --night-3: #17253b;
  --night-line: #24324d;
  --night-text: #f2f4f7;
  --night-muted: #a3acc2;
  --night-primary: #4d94ff;
  --night-accent: #4d94ff;
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='176' height='176'%3E%3Cpath d='M88 76v24M76 88h24' stroke='%230066ff' stroke-opacity='.55' stroke-width='1.5'/%3E%3C/svg%3E");

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 1px 2px rgb(14 25 48 / 4%), 0 12px 32px -20px rgb(14 25 48 / 22%);
  --shadow: 0 2px 6px rgb(14 25 48 / 6%), 0 18px 40px -18px rgb(14 25 48 / 30%);
  --shadow-lg: 0 4px 12px rgb(14 25 48 / 8%), 0 40px 80px -30px rgb(14 25 48 / 50%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.icon { width: 1em; height: 1em; flex: none; }

:focus-visible {
  outline: 3px solid rgb(0 102 255 / 55%);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px; left: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--white { background: var(--surface); }
.section--paper2 { background: var(--bg-alt); }
.section--night { background: var(--night); color: var(--night-text); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section--night .eyebrow { color: var(--night-accent); }
.eyebrow__plates { display: inline-flex; gap: 3px; }
.eyebrow__plates i { width: 9px; height: 9px; border-radius: 2px; background: var(--stage-gray); }
.eyebrow__plates i:nth-child(2) { background: var(--stage-yellow); }
.eyebrow__plates i:nth-child(n + 3) { background: var(--stage-green); }

.h1, .h2 { font-weight: 900; letter-spacing: -0.025em; text-wrap: balance; }
.h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.06; }

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.lead a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.section--night .lead { color: var(--night-muted); }

.section-head { display: grid; gap: 18px; max-width: 840px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; justify-items: center; text-align: center; }

.accent-mark {
  color: var(--primary);
  background: linear-gradient(transparent 60%, rgb(250 204 21 / 65%) 60%, rgb(250 204 21 / 65%) 92%, transparent 92%);
  padding-inline: 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  --btn-border: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { --btn-bg: var(--primary-2); --btn-border: var(--primary-2); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgb(0 102 255 / 65%); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--primary); --btn-border: rgb(0 102 255 / 30%); }
.btn--ghost:hover { --btn-bg: var(--primary-soft); --btn-border: var(--primary); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 86%);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgb(255 255 255 / 94%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--text); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: grid; gap: 3px; line-height: 1; }
.brand__name { font-size: 18px; font-weight: 900; letter-spacing: -0.01em; }
.brand__by { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.nav a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Прогресс прокрутки — четыре плашки участков. */
.scroll-plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 60px; margin-right: 4px; }
.scroll-plates span { height: 6px; border-radius: 2px; background: rgb(71 85 105 / 25%); transition: background-color 260ms ease; }
.scroll-plates span[data-state="in_progress"] { background: var(--stage-yellow); }
.scroll-plates span[data-state="done"] { background: var(--stage-green); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.mobile-nav { display: none; }

/* ---------- Герой ---------- */
.hero { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  /* Сетка раскройного стола. */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(0 102 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(0 102 255 / 6%) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 40%, #000 25%, transparent 75%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 26px; align-content: start; }

.hero__order { display: grid; gap: 10px; }
.hero__order-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.hero__order-label strong { color: var(--text); font-weight: 900; }
.hero__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.stage-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 6px;
  border-radius: 10px;
  background: var(--stage-gray);
  color: var(--stage-gray-on);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}
.stage-chip i { display: none; }
.stage-chip[data-state="in_progress"] { background: var(--stage-yellow); color: var(--stage-yellow-on); }
.stage-chip[data-state="done"] { background: var(--stage-green); color: var(--stage-green-on); }

.hero__note { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.hero__note .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.hero__note a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

.hero__visual { position: relative; height: 560px; }
.hero__desktop { position: absolute; top: 0; left: 14%; width: 104%; }
.hero__desktop .browser { box-shadow: var(--shadow-lg); }
.hero__phone { position: absolute; z-index: 2; left: 0; bottom: -12px; width: 262px; filter: drop-shadow(0 30px 40px rgb(14 25 48 / 32%)); }
.hero__toast { position: absolute; z-index: 3; right: 0; bottom: 48px; width: min(330px, 62%); }

.note-toast {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 18px;
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 44px -18px rgb(14 25 48 / 50%), 0 2px 6px rgb(14 25 48 / 8%);
}
.note-toast__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.note-toast__icon .icon { width: 22px; height: 22px; }
.note-toast__body { display: grid; gap: 2px; }
.note-toast__top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.note-toast__top b { font-weight: 900; }
.note-toast__top time { color: var(--faint); font-size: 12px; font-weight: 700; }
.note-toast__text { color: var(--muted); font-size: 13.5px; }

/* ---------- Факты ---------- */
.facts { border-block: 1px solid var(--border); background: var(--surface); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: 8px; align-content: start; padding: 30px 26px; border-left: 1px solid var(--border); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__value { display: flex; align-items: baseline; gap: 8px; color: var(--primary); font-size: clamp(36px, 4vw, 50px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.fact__value small { color: var(--accent); font-size: 0.4em; font-weight: 800; letter-spacing: 0; }
.fact__label { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Знакомые вопросы ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.pain__quote { font-size: 20px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.3; }
.pain__quote::before { content: "«"; color: var(--accent); }
.pain__quote::after { content: "»"; color: var(--accent); }
.pain__who { color: var(--faint); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pain__fix { display: flex; gap: 10px; align-self: end; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.pain__fix .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--stage-green); }

/* ---------- Четыре участка ---------- */
.stage-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: stage; }
.stage-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.stage-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--primary-soft), var(--bg-alt)); }
.stage-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.stage-card:hover .stage-card__photo { transform: scale(1.04); }
.stage-card__plate {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--stage-gray);
  color: var(--stage-gray-on);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgb(0 0 0 / 22%);
}
.stage-card__plate[data-state="in_progress"] { background: var(--stage-yellow); color: var(--stage-yellow-on); }
.stage-card__plate[data-state="done"] { background: var(--stage-green); color: var(--stage-green-on); }
.stage-card__body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.stage-card__title { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 900; letter-spacing: -0.015em; }
.stage-card__title span { color: var(--accent); font-size: 13px; font-weight: 800; }
.stage-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- Как это работает ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.flow__steps { display: grid; }
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 18px 0 20px; border-bottom: 1px solid var(--night-line); }
.flow-step:first-child { padding-top: 0; }
.flow-step:last-child { border-bottom: 0; }
.flow-step__num { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--night-3); color: var(--night-accent); font-size: 15px; font-weight: 900; }
.flow-step__title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; }
.flow-step__text { color: var(--night-muted); font-size: 15.5px; line-height: 1.55; }

.flow__diagram {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 80% at 100% 0%, rgb(0 102 255 / 22%), transparent 60%), var(--night-2);
}
.flow__diagram-title { margin-bottom: 16px; color: var(--night-muted); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.dep-graph { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.dep-graph--tall { display: none; }
.dep-node rect { fill: var(--stage-gray); }
.dep-node .dep-node__name { fill: var(--stage-gray-on); font-size: 17px; font-weight: 900; }
.dep-node .dep-node__sub { fill: var(--stage-gray-on); font-size: 12.5px; font-weight: 500; opacity: 0.9; }
.dep-node[data-state="in_progress"] rect { fill: var(--stage-yellow); }
.dep-node[data-state="in_progress"] text { fill: var(--stage-yellow-on); }
.dep-node[data-state="done"] rect { fill: var(--stage-green); }
.dep-node--step rect { fill: var(--night-3); stroke: var(--night-line); stroke-width: 1.5; }
.dep-node--step text { fill: var(--night-text); }
.dep-note { fill: var(--night-muted); font-size: 13.5px; }
.flow__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--night-muted); font-size: 13.5px; }
.flow__legend span { display: inline-flex; align-items: center; gap: 8px; }
.flow__legend i { width: 12px; height: 12px; border-radius: 3px; }
.flow__legend .is-gray { background: var(--stage-gray); }
.flow__legend .is-yellow { background: var(--stage-yellow); }
.flow__legend .is-green { background: var(--stage-green); }

/* ---------- Интерактивный сценарий ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.demo__panel { padding: clamp(16px, 2.2vw, 26px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.demo__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demo__title { color: var(--faint); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.demo__reset {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.demo__reset:hover { border-color: var(--primary); color: var(--primary); }
.demo__reset .icon { width: 16px; height: 16px; }

.demo-order { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.demo-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-order__name { flex: 1 1 220px; font-size: 19px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.25; }
.demo-order .app-badge { font-size: 12px; min-height: 24px; padding: 2px 9px; }
.demo-order__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.demo-order__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.demo-order__meta .icon { width: 16px; height: 16px; }
.order-status { padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text-2); font-size: 12.5px; font-weight: 800; }
.order-status[data-state="work"] { background: var(--primary-soft); color: var(--primary); }
.order-status[data-state="confirm"] { background: var(--warning-soft); color: var(--warning); }
.order-status[data-state="sending"] { background: #dbeafe; color: #1e40af; }
.order-status[data-state="closed"] { background: #dcfce7; color: #14532d; }

.demo-stages { display: grid; gap: 8px; container-type: inline-size; }
/* Buttons go under the status; a wide card keeps them on the right. */
.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 12px 12px 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--stage-gray);
  color: var(--stage-gray-on);
  transition: background-color 280ms var(--ease), color 280ms var(--ease);
}
.demo-stage[data-state="in_progress"] { background: var(--stage-yellow); color: var(--stage-yellow-on); }
.demo-stage[data-state="done"], .demo-stage[data-state="skipped"] { background: var(--stage-green); color: var(--stage-green-on); }
.demo-stage[data-locked="true"] { border-style: dashed; border-color: #94a3b8; background: #e2e8f0; color: #334155; }
.demo-stage__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.demo-stage__name { font-size: 16px; font-weight: 900; line-height: 1.25; }
.demo-stage__status { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.demo-stage__actions { display: flex; flex-wrap: wrap; gap: 6px; }
@container (min-width: 680px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr) auto; }
  .demo-stage__info { display: grid; }
  .demo-stage__actions { justify-content: flex-end; }
}
.demo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid #fff; border-radius: 10px;
  background: #fff; color: var(--primary);
  font-size: 14px; font-weight: 800; white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms var(--ease), background-color 140ms ease;
}
.demo-btn:hover { transform: translateY(-1px); }
.demo-btn .icon { width: 16px; height: 16px; }
.demo-btn--primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.demo-stage[data-state="in_progress"] .demo-btn--primary { border-color: #111111; background: #111111; }
.demo-btn--manager { border-color: rgb(255 255 255 / 60%); background: transparent; color: inherit; }
.demo-stage[data-locked="true"] .demo-btn--manager { border-color: #64748b; }
.demo-btn--manager small { font-size: 12px; font-weight: 700; opacity: 0.85; }
.demo-order__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.demo-order__footer strong { color: var(--text); font-weight: 900; }

.demo-manager { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius); }
.demo-manager[data-ready="true"] { border-style: solid; border-color: var(--stage-green); background: var(--accent-soft); }
.demo-manager__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.demo-manager__label { display: grid; gap: 2px; flex: 1 1 260px; }
.demo-manager__label b { font-size: 15px; font-weight: 900; }
.demo-manager__label span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.demo-manager__crm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }

.crm-status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 8px; background: #e9eef6; color: #23324a; font-size: 13.5px; font-weight: 800; }
.crm-status i { width: 9px; height: 9px; border-radius: 50%; background: #6b7a90; }
.crm-status[data-state="sending"] { background: #dbeafe; color: #1e40af; }
.crm-status[data-state="sending"] i { background: #2563eb; }
.crm-status[data-state="done"] { background: #dcfce7; color: #14532d; }
.crm-status[data-state="done"] i { background: var(--stage-green); }

.demo__side { display: grid; gap: 16px; }
.demo-log { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.demo-log__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 16px; font-weight: 900; }
.demo-log__title span { color: var(--faint); font-size: 13px; font-weight: 700; }
.demo-log__list { display: grid; max-height: 330px; overflow: auto; overscroll-behavior: contain; }
.demo-log__item { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--bg-alt); font-size: 14.5px; line-height: 1.45; animation: log-in 360ms var(--ease); }
.demo-log__item:first-child { border-top: 0; }
.demo-log__item time { color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-log__item b { font-weight: 900; }
.demo-log__item small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.demo-log__empty { padding: 8px 0; color: var(--muted); font-size: 14.5px; }
@keyframes log-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.demo-rules { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius-lg); background: var(--primary); color: #fff; }
.demo-rules h3 { color: var(--night-accent); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.demo-rules ul { display: grid; gap: 10px; }
.demo-rules li { display: flex; gap: 10px; color: rgb(255 255 255 / 90%); font-size: 15px; line-height: 1.5; }
.demo-rules .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--stage-yellow); }

.demo-live {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 160%);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), visibility 0s linear 320ms;
  pointer-events: none;
}
.demo-live.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform 320ms var(--ease), opacity 320ms var(--ease); }
.demo-live .icon { width: 18px; height: 18px; color: var(--stage-yellow); }

/* ---------- Роли ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.role__icon .icon { width: 24px; height: 24px; }
.role__title { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.25; }
.role__list { display: grid; gap: 9px; align-content: start; }
.role__list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.role__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--stage-green); }

/* ---------- Цех: телефоны ---------- */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 40px); }
.phones__item { display: grid; gap: 16px; width: min(300px, 30%); flex: none; }
.phones__item:nth-child(2) { margin-top: 40px; }
.phones__item .mock { filter: drop-shadow(0 24px 34px rgb(14 25 48 / 22%)); }
.phones__item figcaption { color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; }

.crew__grid { margin-top: clamp(40px, 5vw, 64px); }
.checklist { display: grid; gap: 18px; }
.checklist--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.checklist__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.checklist__icon .icon { width: 20px; height: 20px; }
.checklist b { display: block; font-size: 17px; font-weight: 900; line-height: 1.35; letter-spacing: -0.005em; }
.checklist span { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.photo-band { position: relative; display: grid; margin-top: clamp(40px, 5vw, 64px); overflow: hidden; border-radius: var(--radius-xl); background: var(--primary); min-height: 360px; }
.photo-band__img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
/* The person is on the left of the photo: the text sits on the right. */
.photo-band::after { content: ""; grid-area: 1 / 1; background: linear-gradient(270deg, rgb(10 19 38 / 90%) 0%, rgb(10 19 38 / 66%) 40%, transparent 72%); }
.photo-band__text { position: relative; z-index: 1; grid-area: 1 / 1; justify-self: end; display: grid; gap: 22px; align-content: end; max-width: 540px; padding: clamp(24px, 4vw, 48px); color: #fff; }
.photo-band__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.platform-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px 8px 12px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 14px; background: rgb(255 255 255 / 10%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 15px; font-weight: 800; line-height: 1.2; }
.platform-badge .icon { width: 22px; height: 22px; color: var(--night-accent); }
.platform-badge small { display: block; margin-top: 2px; color: rgb(255 255 255 / 75%); font-size: 12.5px; font-weight: 500; }

/* ---------- Руководитель ---------- */
.board-wrap { filter: drop-shadow(0 30px 50px rgb(14 25 48 / 18%)); }
/* On phones the manager's own phone screen replaces the desktop board. */
.board-phone { display: none; }
.board-phone > div { width: min(300px, 80vw); filter: drop-shadow(0 18px 28px rgb(14 25 48 / 20%)); }
.board-phone figcaption { max-width: 34ch; color: var(--muted); font-size: 14.5px; font-weight: 500; line-height: 1.5; text-align: center; }
.manager__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.manager__photo { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--primary-soft); min-height: 420px; height: 100%; }
.manager__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.manager__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.feature__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 17.5px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.3; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.5; }

.req-card { display: grid; gap: 10px; max-width: 360px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: rgb(255 255 255 / 96%); box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.3; }
.req-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.req-card__head b { font-size: 14px; font-weight: 900; }
.req-card__head span { color: var(--muted); font-weight: 700; }
.req-card__head em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 900; }
.req-card__person { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; }
.req-card__avatar { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 17px; font-weight: 900; }
.req-card__name { display: grid; color: var(--faint); font-size: 12px; }
.req-card__name b { color: var(--text); font-size: 15px; font-weight: 900; }
.req-card__pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 8px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-size: 12px; font-weight: 800; }
.req-card__pill .icon { width: 13px; height: 13px; }
.req-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-weight: 700; }
.req-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.req-card__meta .icon { width: 14px; height: 14px; }
.req-card__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.req-card__buttons > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.req-card__reject { border: 1.5px solid var(--danger); color: var(--danger); }
.req-card__approve { background: var(--primary); color: #fff; }
.req-card__approve .icon { width: 16px; height: 16px; }

/* ---------- amoCRM ---------- */
.crm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.crm .section-head { margin-bottom: 32px; }
.crm__visual { filter: drop-shadow(0 30px 50px rgb(14 25 48 / 20%)); }

/* ---------- Надёжность ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--night-line); border-radius: var(--radius-xl); background: var(--night-line); }
.trust { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 30px); background: var(--night); }
.trust__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--night-3); color: var(--night-accent); }
.trust__icon .icon { width: 22px; height: 22px; }
.trust h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.3; }
.trust p { color: var(--night-muted); font-size: 15px; line-height: 1.55; }
.stack-title { margin-top: clamp(32px, 4vw, 48px); margin-bottom: 14px; color: var(--night-muted); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--night-line); border-radius: 999px; color: var(--night-text); font-size: 14px; font-weight: 500; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: grid; gap: 12px; align-content: start; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.step__num { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.step__num i { display: inline-grid; grid-template-columns: repeat(3, 10px); gap: 3px; }
.step__num b { height: 8px; border-radius: 2px; background: var(--bg-alt); }
.step__num b.on { background: var(--stage-green); }
.step h3 { font-size: 21px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.25; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 160ms ease, box-shadow 160ms ease; }
.faq details[open] { border-color: rgb(0 102 255 / 32%); box-shadow: var(--shadow-card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; font-size: 17.5px; font-weight: 800; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- Заявка ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--primary); color: #fff; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cta__copy { display: grid; gap: 20px; align-content: start; }
.cta .lead { color: rgb(255 255 255 / 80%); }
.cta__plates { display: flex; gap: 6px; }
.cta__plates i { width: 44px; height: 10px; border-radius: 4px; background: var(--stage-green); }
.cta__photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; background: var(--night-3); }
.cta__img { width: 100%; height: 100%; object-fit: cover; }
.cta__photo figcaption { position: absolute; left: 14px; bottom: 14px; }
.cta__links { display: grid; gap: 10px; }
.cta__links li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.cta__links .icon { width: 20px; height: 20px; color: var(--night-accent); }
.cta__links a { color: #fff; text-decoration-color: rgb(255 255 255 / 40%); text-underline-offset: 4px; }
.cta__form { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }

/* Форма Contact Form 7 в сетке темы. */
.request-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field > label { color: var(--text-2); font-size: 14px; font-weight: 800; }
.field > label span { color: var(--faint); font-weight: 500; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7-text, .wpcf7-textarea, .wpcf7-email, .wpcf7-tel {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.wpcf7-textarea { min-height: 112px; resize: vertical; }
.wpcf7-text::placeholder, .wpcf7-textarea::placeholder { color: #98a2b3; }
.wpcf7-text:hover, .wpcf7-textarea:hover { border-color: #c3cad6; }
.wpcf7-text:focus, .wpcf7-textarea:focus { border-color: var(--accent); background: #fff; outline: none; box-shadow: 0 0 0 4px rgb(0 102 255 / 16%); }
.wpcf7-not-valid { border-color: var(--danger) !important; background: #fff; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--danger); font-size: 13.5px; font-weight: 700; }
.field-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Contact Form 7 keeps its hidden inputs in a fieldset; its own CSS (switched off) hides it. */
.wpcf7 .hidden-fields-container { display: none; }
.request-form__footer { display: grid; gap: 16px; margin-top: 18px; }
.request-form__consent { color: var(--muted); font-size: 14px; line-height: 1.5; }
.request-form__consent .wpcf7-list-item { margin: 0; }
.request-form__consent label { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.request-form__consent input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); }
.request-form__consent a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.request-form .wpcf7-submit { width: 100%; min-height: 54px; font-size: 16.5px; }
.request-form .wpcf7-spinner { display: none; }
.request-form.submitting .wpcf7-submit { opacity: 0.6; cursor: progress; }
.wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; border: 0 !important; border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--text-2); font-size: 15px; font-weight: 700; }
.wpcf7-response-output:empty { display: none; }
.request-form.sent .wpcf7-response-output { background: var(--accent-soft); color: var(--accent); }
.request-form.invalid .wpcf7-response-output, .request-form.unaccepted .wpcf7-response-output, .request-form.failed .wpcf7-response-output, .request-form.spam .wpcf7-response-output { background: var(--danger-soft); color: var(--danger); }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.request-form__fallback { font-size: 18px; font-weight: 700; }
.request-form__fallback a { color: var(--accent); }

/* ---------- Подвал ---------- */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14.5px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-weight: 500; text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__note { flex-basis: 100%; color: var(--faint); font-size: 13px; }

/* ---------- Прочие страницы ---------- */
.page__inner { display: grid; gap: 22px; max-width: 820px; }
.page__content { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.page__content > * + * { margin-top: 1em; }
.page__content a { color: var(--accent); }
.app-plates--big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.app-plates--big span { display: grid; place-items: center; min-height: 48px; border-radius: 10px; background: var(--stage-gray); color: #fff; font-weight: 900; }
.app-plates--big span[data-state="in_progress"] { background: var(--stage-yellow); color: var(--stage-yellow-on); }
.app-plates--big span[data-state="done"] { background: var(--stage-green); }

/* =====================================================================
   Макеты экранов. Каждый макет свёрстан в своей ширине (data-mock-width)
   и масштабируется под колонку скриптом; размеры внутри — как в приложении.
   ===================================================================== */
/* inline-size containment: the fixed design width never stretches a grid column. The script sets
   zoom = column / --mock-width, never below --mock-min-scale; a narrower column scrolls. */
.mock { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; contain: inline-size; scrollbar-width: thin; }
.mock[data-mock-width="320"] { --mock-width: 320; }
.mock[data-mock-width="640"] { --mock-width: 640; }
.mock[data-mock-width="1180"] { --mock-width: 1180; }
.mock__inner { width: calc(var(--mock-width) * 1px); }

/* Телефон. */
.phone { position: relative; width: 320px; height: 680px; padding: 9px; border-radius: 48px; background: linear-gradient(145deg, #2c3634, #0f1513 60%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 10%); }
.phone::before { content: ""; position: absolute; z-index: 5; top: 19px; left: 50%; width: 90px; height: 24px; border-radius: 999px; background: #070a09; transform: translateX(-50%); }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 40px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 12px; line-height: 1.3; }

.app-status { display: flex; align-items: center; justify-content: space-between; flex: none; height: 46px; padding: 16px 26px 0 30px; font-size: 13px; font-weight: 700; }
.app-status__icons { display: flex; align-items: center; gap: 5px; }
.app-status__icons i { width: 15px; height: 10px; border-radius: 2px; background: var(--text); opacity: 0.85; }
.app-status__icons i:first-child { clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.app-status__icons i:last-child { width: 22px; border-radius: 3px; }

.app-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; min-height: 58px; padding: 4px 16px 8px; }
.app-header__over { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.1px; line-height: 15px; text-transform: uppercase; }
.app-header__title { font-size: 20px; font-weight: 900; line-height: 25px; }
.app-header__buttons { display: flex; gap: 8px; }
.app-icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--primary); }
.app-icon-btn .icon { width: 20px; height: 20px; }
.app-icon-btn em { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 999px; background: var(--danger); color: #fff; font-size: 9.5px; font-style: normal; font-weight: 900; }
.app-search { display: flex; align-items: center; gap: 8px; flex: none; height: 42px; margin: 0 16px 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #98a2b3; font-size: 12.5px; }
.app-search .icon { width: 17px; height: 17px; color: var(--faint); }
.app-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: none; margin: 0 16px 10px; }
.app-tabs span { display: grid; place-items: center; height: 32px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 800; }
.app-tabs span.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }
.app-list { display: grid; flex: 1; gap: 8px; align-content: start; overflow: hidden; padding: 0 12px 12px; }

.app-card { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.app-card__title-row { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.app-card__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 900; line-height: 18px; letter-spacing: -0.15px; }
.app-badge { display: inline-flex; align-items: center; flex: none; min-height: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9.5px; font-weight: 900; line-height: 12px; letter-spacing: 0.02em; }
.app-badge--funnel-a { background: var(--primary-soft); color: var(--primary); }
.app-badge--funnel-b { background: var(--funnel-b-soft); color: var(--funnel-b); }
.app-meta { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 15px; }
.app-meta .icon { width: 13px; height: 13px; }
.app-meta.is-today { color: var(--warning); }
.app-meta.is-overdue { color: var(--danger); }
.app-item { overflow: hidden; color: var(--faint); font-size: 11px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.app-plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.app-plates > span { display: grid; place-items: center; min-height: 30px; padding: 2px; border-radius: 8px; background: var(--stage-gray); color: var(--stage-gray-on); font-size: 11px; font-weight: 900; line-height: 13px; text-align: center; }
.app-plates > span[data-state="in_progress"] { background: var(--stage-yellow); color: var(--stage-yellow-on); }
.app-plates > span[data-state="done"] { background: var(--stage-green); color: var(--stage-green-on); }
.app-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-card__footer .app-meta { font-size: 10px; line-height: 14px; }
.app-card__footer strong { flex: none; font-size: 10px; font-weight: 900; }

.app-primary, .app-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.app-primary { background: var(--primary); color: #fff; }
.app-primary .icon { width: 17px; height: 17px; }
.app-primary--sm { min-height: 34px; font-size: 12px; }
.app-primary--sm .icon { width: 15px; height: 15px; }
.app-secondary { border: 1.5px solid var(--border); background: #fff; color: var(--text); }

.app-nav { display: grid; grid-template-columns: repeat(2, 1fr); flex: none; height: 64px; margin-top: auto; padding: 8px 40px 16px; border-top: 1px solid var(--border); background: rgb(255 255 255 / 96%); }
.app-nav span { display: grid; justify-items: center; gap: 2px; color: var(--faint); font-size: 10px; font-weight: 800; }
.app-nav span.is-active { color: var(--accent); }
.app-nav .icon { width: 21px; height: 21px; }

.app-topbar { display: flex; align-items: center; gap: 4px; flex: none; height: 50px; padding: 0 12px; border-bottom: 1px solid var(--border); background: #fff; font-size: 16px; font-weight: 800; }
.app-back { display: grid; place-items: center; width: 34px; height: 34px; color: var(--primary); }
.app-back svg { width: 20px; height: 20px; }
.app-detail { display: grid; flex: 1; gap: 10px; align-content: start; overflow: hidden; padding: 12px; }
.app-detail__card { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.app-detail__title { font-size: 18px; font-weight: 900; line-height: 22px; letter-spacing: -0.2px; }
.app-detail__row { display: flex; align-items: center; gap: 8px; }
.app-pill { padding: 2px 8px; border-radius: 999px; background: var(--stage-yellow); color: var(--stage-yellow-on); font-size: 10px; font-weight: 900; }
.app-id { color: var(--faint); font-size: 10px; font-weight: 700; }
.app-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-detail__grid > span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 12px; font-weight: 800; }
.app-detail__grid small { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.app-detail__grid .icon { width: 12px; height: 12px; }
.app-detail__progress { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.app-detail__progress b { color: var(--text); font-weight: 900; }
.app-file { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.app-file__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.app-file__icon .icon { width: 20px; height: 20px; }
.app-file__name { display: grid; gap: 2px; font-size: 12px; font-weight: 800; }
.app-file__name small { color: var(--faint); font-size: 10.5px; font-weight: 500; }
.app-section-title { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 2px 0; font-size: 14px; font-weight: 900; }
.app-section-title small { color: var(--faint); font-size: 11px; font-weight: 700; }
.app-stage-list { display: grid; gap: 6px; }
.app-stage-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 6px 12px; border-radius: 14px; background: var(--stage-gray); color: var(--stage-gray-on); }
.app-stage-row > span { display: grid; font-size: 11px; line-height: 15px; }
.app-stage-row b { font-size: 12.5px; font-weight: 900; }
.app-stage-row small { font-size: 10px; font-weight: 900; }
.app-stage-row[data-state="in_progress"] { background: var(--stage-yellow); color: var(--stage-yellow-on); }
.app-stage-row[data-state="done"] { background: var(--stage-green); color: var(--stage-green-on); }
.app-stage-row.is-own { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

.app-overlay { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(10 19 38 / 54%); }
.app-dialog { display: grid; gap: 10px; justify-items: center; width: 100%; padding: 20px 14px 14px; border: 1px solid var(--border); border-radius: 22px; background: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.app-dialog__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.app-dialog__icon .icon { width: 22px; height: 22px; }
.app-dialog__title { font-size: 17px; font-weight: 900; line-height: 22px; }
.app-dialog__text { color: var(--muted); font-size: 13px; line-height: 18px; }
.app-dialog__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }

/* Окно браузера. */
.browser { overflow: hidden; border: 1px solid #e5eaf2; border-radius: 14px; background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid #e5eaf2; background: #eef1f6; }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #c3cad6; }
.browser__url { flex: 0 1 340px; height: 24px; margin-inline: auto; padding: 0 10px; border-radius: 7px; background: #fff; color: var(--faint); font-size: 12px; font-weight: 600; line-height: 24px; text-align: center; }

/* Оперативная доска цеха (графит и янтарь, как в платформе). */
.board { display: grid; grid-template-columns: 208px 1fr; background: #f2f4f7; color: #0e1930; font-family: var(--font); font-size: 12px; line-height: 1.3; }
.board__side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: #0a1326; color: #cbd5e1; }
.board__logo { display: flex; align-items: center; gap: 10px; margin: 0 4px 18px; color: #fff; font-size: 14px; font-weight: 800; }
.board__logo small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; font-weight: 500; }
.board__mono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #0066ff; color: #0a1326; font-size: 20px; font-weight: 900; }
.board__nav { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.board__nav .icon { width: 18px; height: 18px; }
.board__nav em { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: #0066ff; color: #0a1326; font-size: 10.5px; font-style: normal; font-weight: 900; }
.board__nav.is-active { background: rgb(255 255 255 / 10%); color: #fff; }
.board__nav.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: #0066ff; }
.board__me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 4px 0; border-top: 1px solid rgb(255 255 255 / 10%); color: #fff; font-size: 12.5px; font-weight: 700; }
.board__me > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #334155; font-weight: 900; }
.board__me small { display: block; color: #94a3b8; font-size: 10.5px; font-weight: 500; }
.board__main { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 16px; }
.board__summary { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; }
.board__heading { display: flex; align-items: center; gap: 10px; }
.board__heading small { display: block; color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.board__heading b { display: block; margin-top: 2px; font-size: 17px; font-weight: 900; letter-spacing: -0.2px; }
.board__live { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #0066ff; box-shadow: 0 0 0 4px rgb(0 102 255 / 20%); }
.board__counters { display: flex; flex: 1; justify-content: center; }
.board__counters > span { display: grid; gap: 1px; padding: 0 14px; border-left: 1px solid #e2e8f0; color: #64748b; font-size: 10px; font-weight: 600; text-align: center; }
.board__counters > span:first-child { border-left: 0; }
.board__counters b { color: #0e1930; font-size: 20px; font-weight: 900; line-height: 1.1; }
.board__counters .is-green b { color: #047857; }
.board__counters .is-red b { color: #b91c1c; }
.board__counters .is-amber b { color: #b45309; }
.board__sync { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; background: #0e1930; color: #fff; font-size: 12px; font-weight: 700; }
.board__sync .icon { width: 15px; height: 15px; }
.board__filters { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border: 1px solid #e5eaf2; border-radius: 12px; background: #f8fafc; }
.board__field { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 3px; min-height: 46px; color: #0e1930; font-size: 12px; }
.board__field small { color: #64748b; font-size: 10px; font-weight: 700; }
.board__field--search { flex: 1.4; }
.board__field--search .icon { display: none; }
.board__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; }
.board__btn--dark { border-color: #0e1930; background: #0e1930; color: #fff; }
.board__btn em { width: 7px; height: 7px; border-radius: 50%; background: #0066ff; }
.board__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.board__col { display: grid; gap: 8px; align-content: start; padding: 0 8px 10px; border-top: 3px solid #f59e0b; border-radius: 12px; background: #eef1f6; }
.board__col[data-tone="work"] { border-top-color: #0066ff; }
.board__col[data-tone="done"] { border-top-color: #059669; }
.board__col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 2px; }
.board__col-head b { display: block; font-size: 13px; font-weight: 900; }
.board__col-head small { display: block; color: #64748b; font-size: 10.5px; }
.board__col-head em { padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 11px; font-style: normal; font-weight: 900; }
.board-card { display: grid; gap: 6px; padding: 10px; border-left: 3px solid transparent; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 6%); }
.board-card[data-flag="overdue"] { border-left-color: #dc2626; }
.board-card[data-flag="confirm"] { border-left-color: #f59e0b; }
.board-card__top { display: flex; align-items: center; justify-content: space-between; }
.board-card__due { color: #64748b; font-size: 10.5px; font-weight: 700; }
.board-card[data-flag="overdue"] .board-card__due { color: #b91c1c; font-weight: 900; }
.board-card__title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.board-card__city { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #64748b; font-size: 11px; }
.board-card__client { padding: 2px 7px; border: 1px solid #a7d8c7; border-radius: 6px; background: #e7f5ef; color: #076a4e; font-size: 10.5px; font-weight: 800; }
.board-card__alert { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 6px; background: #fef2f2; color: #b91c1c; font-size: 10.5px; font-weight: 700; }
.board-card[data-flag="confirm"] .board-card__alert { background: #fffbeb; color: #b45309; }
.board-card__alert .icon { width: 13px; height: 13px; }
.board-card__count { font-size: 10.5px; font-weight: 900; }
.board-card__plates > span { min-height: 28px; border-radius: 6px; font-size: 10px; }
.board-card__event { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 6px; border-top: 1px solid #f1f5f9; color: #64748b; font-size: 10.5px; }
.board-card__icons { display: flex; gap: 6px; color: #94a3b8; }
.board-card__icons .icon { width: 14px; height: 14px; }
.board__status { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; color: #334155; font-size: 11.5px; font-weight: 700; }
.board__status small { color: #64748b; font-weight: 500; }
.board__status > span:not(.board__live) { padding-left: 10px; border-left: 1px solid #e2e8f0; }
.board__status .is-red { color: #b91c1c; }
.board__status .is-amber { color: #b45309; }

/* Карточка сделки CRM с виджетом производства. */
.crm-card { overflow: hidden; border: 1px solid #d8dee8; border-radius: 16px; background: #fff; color: #1d2733; font-family: var(--font); }
.crm-card__head { display: grid; gap: 6px; padding: 16px 20px; border-bottom: 1px solid #e6eaf0; background: #f7f9fc; }
.crm-card__crumb { color: #6b7a90; font-size: 12px; font-weight: 600; }
.crm-card__deal { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.crm-card__pipeline { display: flex; gap: 3px; margin-top: 4px; }
.crm-card__pipeline i { flex: 1; height: 6px; border-radius: 2px; background: #cdd6e3; }
.crm-card__pipeline i.on { background: #7fa6ea; }
.crm-card__pipeline i.cur { background: #2f6fde; }
.crm-card__status { color: #2f6fde; font-size: 12.5px; font-weight: 700; }
.crm-card__body { display: grid; grid-template-columns: 1fr 1.08fr; }
.crm-card__fields { display: grid; gap: 12px; align-content: start; padding: 16px 20px; border-right: 1px solid #e6eaf0; }
.crm-field { display: grid; gap: 3px; }
.crm-field span { color: #8492a6; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.crm-field b { font-size: 13.5px; font-weight: 500; }
.crm-note { display: grid; gap: 2px; padding: 9px 10px; border-left: 3px solid #15803d; border-radius: 6px; background: #f3f7f5; font-size: 12px; line-height: 1.4; }
.crm-note small { color: #6b7a90; font-size: 10.5px; font-weight: 600; }
.crm-card__widget { padding: 16px; background: #fbfcfd; }
.widget { display: grid; gap: 8px; padding: 14px; border: 1px solid #e2e7ec; border-radius: 12px; background: #fff; color: #0a1326; }
.widget__head { display: flex; align-items: center; justify-content: space-between; }
.widget__head small { display: block; color: #6b7280; font-size: 11px; }
.widget__head b { font-size: 22px; font-weight: 900; }
.widget__refresh { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #e2e7ec; border-radius: 50%; font-size: 18px; }
.widget__bar { height: 6px; border-radius: 3px; background: #e8edf2; overflow: hidden; }
.widget__bar i { display: block; width: 50%; height: 100%; background: #15803d; }
.widget__row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid #e2e7ec; border-radius: 9px; }
.widget__dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 12px; font-weight: 900; }
.widget__row[data-tone="done"] .widget__dot { background: #dcfce7; color: #15803d; }
.widget__row[data-tone="work"] .widget__dot { background: #dbeafe; color: #2563eb; font-size: 9px; }
.widget__who { display: grid; color: #7a838e; font-size: 11px; }
.widget__who b { color: #0a1326; font-size: 13px; font-weight: 700; }
.widget__state { font-size: 11px; font-weight: 800; color: #64748b; }
.widget__row[data-tone="done"] .widget__state { color: #15803d; }
.widget__row[data-tone="work"] .widget__state { color: #2563eb; }
.widget__foot { display: flex; justify-content: space-between; color: #6b7280; font-size: 11px; }
.widget__open { display: grid; place-items: center; min-height: 40px; border-radius: 8px; background: #0a1326; color: #fff; font-size: 12.5px; font-weight: 700; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    position: fixed;
    z-index: 49;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 2px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms var(--ease); }
  .mobile-nav > a { display: flex; align-items: center; min-height: 50px; padding: 0 6px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none; }
  .mobile-nav__actions { display: grid; gap: 10px; margin-top: 14px; }

  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .checklist--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { width: 100%; max-width: 720px; height: clamp(420px, 78vw, 580px); margin-inline: auto; }
  .hero__desktop { left: 16%; width: 96%; }

  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .pain-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__diagram { position: relative; top: 0; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .manager__grid { grid-template-columns: minmax(0, 1fr); }
  .manager__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .crm { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__photo { aspect-ratio: 21 / 9; }

  /* The board loses its side panel and never shrinks below 70 %; a narrower column scrolls. */
  .board-wrap .mock { --mock-width: 972; --mock-min-scale: 0.7; }
  .board-wrap .board { grid-template-columns: minmax(0, 1fr); }
  .board-wrap .board__side { display: none; }

  /* Phones become a swipeable row of near natural size. */
  .phones { justify-content: flex-start; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 16px var(--gutter) 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones__item { width: min(300px, 42vw); scroll-snap-align: center; }
  .phones__item:nth-child(2) { margin-top: 0; }
  .phones__item .mock { filter: drop-shadow(0 8px 14px rgb(14 25 48 / 16%)); }

  /* The photo band stacks: photo on top, text below, nobody under the text. */
  .photo-band { min-height: 0; }
  .photo-band__img { aspect-ratio: 3 / 2; height: auto; grid-area: 1 / 1; }
  .photo-band::after { display: none; }
  .photo-band__text { grid-area: auto; justify-self: stretch; max-width: none; padding: 22px 20px 24px; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__by { display: none; }
  .header-actions .btn { display: none; }
  .scroll-plates { width: 48px; }

  .hero__visual { height: auto; }
  .hero__desktop { display: none; }
  .hero__phone { position: relative; left: auto; bottom: auto; width: min(290px, 78vw); margin-inline: auto; }
  .hero__toast { right: 50%; bottom: 22%; width: min(320px, 90vw); transform: translateX(50%); }
  .hero__stages { gap: 4px; }
  .stage-chip { font-size: 12.5px; }

  .stage-cards, .roles, .trust-grid, .feature-grid, .checklist--grid { grid-template-columns: minmax(0, 1fr); }

  .phones__item { width: 76vw; max-width: 300px; }
  .cta__photo { aspect-ratio: 3 / 2; }

  .board-wrap { display: none; }
  .board-phone { display: grid; justify-items: center; gap: 14px; }

  .dep-graph--wide { display: none; }
  .dep-graph--tall { display: block; max-width: 420px; margin-inline: auto; }

  /* The deal card is plain text: on phones it reflows at natural size instead of shrinking. */
  .crm__visual .mock__inner { width: auto !important; zoom: 1 !important; }
  .crm-card__body { grid-template-columns: minmax(0, 1fr); }

  /* The request card sits under the photo instead of covering it. */
  .manager__photo { display: grid; aspect-ratio: auto; height: auto; min-height: 0; overflow: visible; background: none; }
  .manager__img { position: static; aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius-xl); }
  .manager__photo figcaption { position: relative; left: auto; right: auto; bottom: auto; margin: -56px 12px 0; }

  .demo-stage__actions { justify-content: stretch; }
  .demo-stage__actions .demo-btn { flex: 1 1 auto; }

  .fact { padding: 22px 14px; }
  .fact:nth-child(odd) { padding-left: 0; }
  .request-form__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .facts__list { grid-template-columns: minmax(0, 1fr); }
  .fact { padding-inline: 0 !important; border-left: 0 !important; }
  .fact + .fact { border-top: 1px solid var(--border); }
  .btn-row .btn { width: 100%; }
}

/* Lenis (assets/vendor/lenis.min.js): its own CSS, and native smooth scrolling off while it runs. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-nav, .demo-live { display: none; }
  .section--night { background: #fff; color: #000; }
}

/* =====================================================================
   Слой Argelit: тёмный «космос» с синими крестиками, заголовки, цифры и кнопки
   Oswald капслоком, кнопки-«таблетки», бейджи с ✦, карточки 20 px — как на
   argelit.com и в редизайне веб-версии платформы. Идёт последним и уточняет
   правила выше.
   ===================================================================== */

/* ---------- Типографика ---------- */
.h1, .h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.h1 { font-size: clamp(38px, 4vw, 56px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
.lead { color: #475467; }
.section--night .lead { color: var(--night-muted); }

/* Section labels: a pill with a blue sparkle, as on argelit.com. */
.eyebrow {
  width: fit-content;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow::before { content: "✦"; color: var(--primary); font-size: 13px; line-height: 1; }
.section--night .eyebrow { border-color: rgb(255 255 255 / 16%); background: rgb(255 255 255 / 4%); color: #fff; }
.section--night .eyebrow::before { color: var(--accent-light); }
.section-head--center .eyebrow { margin-inline: auto; }

.accent-mark { color: var(--accent-light); background: none; padding: 0; }

/* ---------- Кнопки: «таблетки» с Oswald ---------- */
.btn {
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn:hover { box-shadow: 0 12px 26px -12px rgb(0 102 255 / 70%); }
.btn--ghost { --btn-fg: var(--text); --btn-border: rgb(17 17 17 / 20%); }
.btn--ghost:hover { --btn-bg: rgb(17 17 17 / 4%); --btn-border: var(--text); box-shadow: none; }

/* ---------- Шапка ---------- */
.site-header { background: rgb(255 255 255 / 90%); }
.site-header.is-scrolled { background: rgb(255 255 255 / 96%); }
.brand__name { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.brand__mark { border-radius: 12px; }
.nav a[aria-current="true"], .nav a:hover { background: var(--accent-soft); color: var(--primary); }
/* Oswald buttons are wider than the old ones: keep every header item on one line. */
.nav a { padding: 8px 10px; white-space: nowrap; }
.site-header .btn { white-space: nowrap; }
.site-header .btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 1279px) {
  .site-header .scroll-plates { display: none; }
}

/* ---------- Ночной «космос»: первый экран и тёмные секции ---------- */
.hero,
.section--night {
  background-color: var(--night);
  background-image: var(--cross), radial-gradient(120% 70% at 50% 0%, #1a3672 0%, var(--night-2) 46%, var(--night) 100%);
  background-size: 176px 176px, auto;
  color: var(--night-text);
}
.hero::before { display: none; }
.hero .h1 { color: #fff; }
.hero .lead { color: #c2c9d8; }
.hero .eyebrow { padding: 0; border: 0; background: none; color: rgb(255 255 255 / 88%); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hero .eyebrow::before { display: none; }
.hero .btn--ghost { --btn-fg: #fff; --btn-border: rgb(255 255 255 / 38%); }
.hero .btn--ghost:hover { --btn-bg: rgb(255 255 255 / 8%); --btn-border: #fff; }
.hero__order-label { color: rgb(255 255 255 / 70%); }
.hero__order-label strong { color: #fff; }
.hero__note { color: rgb(255 255 255 / 70%); }
.hero__note .icon, .hero__note a { color: var(--accent-light); }
.hero__desktop .browser { box-shadow: 0 30px 70px -20px rgb(0 0 0 / 60%); }
.hero__phone { filter: drop-shadow(0 30px 40px rgb(0 0 0 / 50%)); }
.hero .phone, .phones .phone, .board-phone .phone { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 14%), 0 0 0 1px rgb(255 255 255 / 8%); }

.flow__diagram { background: rgb(255 255 255 / 3%); border-color: rgb(255 255 255 / 12%); border-radius: var(--radius-lg); }
.flow-step { border-bottom-color: rgb(255 255 255 / 10%); }
.flow-step__num {
  border: 1px solid rgb(77 148 255 / 40%);
  background: rgb(0 102 255 / 12%);
  color: var(--accent-light);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
}
.flow-step__title { font-weight: 600; }
.dep-node--step rect { fill: rgb(255 255 255 / 6%); stroke: rgb(255 255 255 / 16%); }

.trust-grid { border-color: rgb(255 255 255 / 12%); background: rgb(255 255 255 / 12%); border-radius: var(--radius-lg); }
.trust { background: rgb(10 19 38 / 92%); }
.trust__icon { background: rgb(0 102 255 / 14%); color: var(--accent-light); }
.trust h3 { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase; }
.stack li { border-color: rgb(255 255 255 / 16%); border-radius: 999px; }
.stack-title { color: var(--accent-light); }

/* ---------- Цифры и заголовки карточек ---------- */
.fact__value { color: var(--primary); font-family: var(--display); font-size: clamp(42px, 4.6vw, 60px); font-weight: 500; letter-spacing: 0; }
.fact__value small { color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 600; text-transform: none; }

.pain, .stage-card, .role, .feature, .step, .demo-log, .faq details { border-radius: var(--radius-lg); }
.pain__quote::before, .pain__quote::after { color: var(--primary); }
.pain__who { color: var(--muted); }

.stage-card__title, .role__title, .feature h3, .step h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.stage-card__title { font-size: 22px; }
.stage-card__title span { color: var(--primary); font-family: var(--display); font-size: 18px; font-weight: 500; }
.role__title { font-size: 21px; }
.role__list li::before { background: var(--primary); border-radius: 2px; }
.feature h3 { font-size: 20px; }
.step h3 { font-size: 24px; }

/* Steps: big blue numbers with a cross mark, as in the argelit.com «Подход» block. */
.step { position: relative; }
.step::after { content: ""; position: absolute; top: 22px; right: 22px; width: 26px; height: 26px; background: var(--cross) center / 176px 176px; }
.step__num { color: var(--primary); font-family: var(--display); font-size: clamp(56px, 6vw, 76px); font-weight: 500; letter-spacing: 0; line-height: 1; text-transform: none; }

/* ---------- Интерактивный сценарий ---------- */
.demo__panel { border-radius: var(--radius-lg); }
.demo-order { border-radius: var(--radius-lg); }
.demo-btn, .demo__reset {
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.demo-btn { font-size: 14.5px; }
.demo-btn small { font-family: var(--font); letter-spacing: 0; text-transform: none; }
.demo-stage[data-state="in_progress"] .demo-btn--primary { border-color: var(--night-2); background: var(--night-2); }
.demo__reset { font-size: 14px; }
.demo-manager { border-radius: var(--radius-lg); }
.demo-manager[data-ready="true"] { border-color: var(--stage-green); background: #ecfdf3; }
.demo-rules { border-radius: var(--radius-lg); background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%); }
.demo-rules h3 { color: #fff; font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: 0.04em; }
.demo-rules .icon { color: #fff; }
.demo-live { background: var(--night-2); }

/* ---------- Цех, руководитель, amoCRM ---------- */
.role__icon, .checklist__icon, .feature__icon { background: var(--accent-soft); color: var(--primary); }
.photo-band { border-radius: var(--radius-xl); }
.photo-band__title { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: 0.01em; line-height: 1.05; text-transform: uppercase; }
.platform-badge { border-radius: 16px; }
.req-card { border-radius: var(--radius-lg); }
.req-card__buttons > span { border-radius: 999px; font-family: var(--display); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Вопросы ---------- */
.faq summary { font-weight: 600; }
.faq summary::after { border-color: var(--primary); }

/* ---------- Заявка: синяя панель argelit.com ---------- */
.cta { border-radius: var(--radius-xl); background: linear-gradient(135deg, #0066ff 0%, #1f74ff 55%, #0052cc 100%); }
.cta::before { background-image: var(--cross); background-size: 176px 176px; -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 60%); mask-image: linear-gradient(120deg, #000 0%, transparent 60%); }
.cta .lead { color: rgb(255 255 255 / 86%); }
.cta__links .icon { color: #fff; }
.cta__photo { border-radius: var(--radius-lg); }
.cta__form { border-radius: var(--radius-lg); }
.wpcf7-text, .wpcf7-textarea { border-radius: 14px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 0; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__by { color: var(--night-muted); }
.site-footer__nav a { color: #fff; }
.site-footer__nav a:hover { color: var(--accent-light); }
.site-footer__note { color: var(--night-muted); }

/* =====================================================================
   Макеты экранов. Редизайн платформы касается только десктопа (от 1024 px):
   доска руководителя — в палитре argelit.com, а телефон (мобильный веб и
   Android-приложение) остаётся в хвойной гамме платформы, как и в продукте.
   Источники заказов — в цветах из настроек платформы.
   ===================================================================== */
.phone__screen,
.note-toast {
  --bg: #f4f6f8;
  --bg-alt: #eef2f2;
  --text: #12211e;
  --text-2: #31423e;
  --muted: #52625f;
  --faint: #5f6e6a;
  --border: #dde4e2;
  --primary: #143d35;
  --primary-2: #1c5246;
  --primary-soft: #dceae6;
  --accent: #087457;
  --accent-soft: #d7f4e9;
  --shadow-card: 0 3px 10px rgb(11 43 36 / 8%);
  color: var(--text);
}
.app-search { color: #7c8a87; }
.app-badge--funnel-a { background: rgb(20 61 53 / 10%); color: #143d35; }

.board { font-family: var(--font); background: #f2f4f7; }
.board__mono { border-radius: 12px; color: #fff; font-family: var(--display); font-size: 16px; font-weight: 500; }
.board__logo { font-family: var(--display); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.board__logo small { font-family: var(--font); letter-spacing: 0; text-transform: none; }
.board__nav { border-radius: 999px; }
.board__nav.is-active { background: #0066ff; color: #fff; }
.board__nav.is-active::before { display: none; }
.board__nav em { background: #0066ff; color: #fff; }
.board__summary { border-radius: 20px; box-shadow: var(--shadow-card); }
.board__heading b { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase; }
.board__counters b { font-family: var(--display); font-size: 24px; font-weight: 500; }
.board__sync, .board__btn { border-radius: 999px; }
.board__btn--dark { border-color: #0066ff; background: #0066ff; }
.board__btn em { background: #fff; }
.board__col { border-radius: 20px; border: 1px solid #e5eaf2; border-top-width: 3px; }
.board__col[data-tone="new"] { border-top-color: #f59e0b; }
.board__col[data-tone="done"] { border-top-color: #059669; }
.board__col-head b { font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.board-card { border: 1px solid #e5eaf2; border-left-width: 3px; border-radius: 14px; }
.board-card:not([data-flag]) { border-left-color: #e5eaf2; }
.widget__open { border-radius: 999px; }

@media (max-width: 720px) {
  .btn { padding: 0 24px; font-size: 16px; }
  .step::after { top: 18px; right: 18px; }
}
