/* Продающий сайт корпоративного ИИ-агента. Только системные шрифты, без внешних ресурсов. */

/* Имя продукта и группы — ОДНО место на весь сайт. Поменять здесь — поменяется везде, включая заголовок вкладки. */
:root {
  --brand-product: "Узел";
  --brand-group: "Нить";
}
.brand-product::before { content: var(--brand-product); }
.brand-group::before { content: var(--brand-group); }


:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #1b2130;
  --muted: #5b6478;
  --line: #dde2ee;
  --accent: #2f5bd3;
  --accent-soft: #e4ebff;
  --human: #b45309;
  --human-soft: #fff1dc;
  --ok: #157f4a;
  --ok-soft: #dcf5e7;
  --work: #2f5bd3;
  --work-soft: #e4ebff;
  --try: #7c3aed;
  --try-soft: #efe6ff;
  --done: #4b5563;
  --done-soft: #e9ecf1;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 6px 20px rgba(20, 30, 60, .06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hero-img: url("../img/hero-light.webp");
  --page-texture: url("../img/texture.webp");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  
    --bg: #10131a;
    --surface: #181c26;
    --surface-2: #1f2431;
    --text: #e7eaf2;
    --muted: #9aa3b8;
    --line: #2b3243;
    --accent: #7e9cff;
    --accent-soft: #232d4d;
    --human: #f5b25c;
    --human-soft: #3a2a14;
    --ok: #4fd18b;
    --ok-soft: #17352a;
    --work: #7e9cff;
    --work-soft: #232d4d;
    --try: #b99bff;
    --try-soft: #2e2448;
    --done: #b3bccb;
    --done-soft: #262c38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --hero-img: url("../img/hero-dark.webp");
    --page-texture: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  
    --bg: #10131a;
    --surface: #181c26;
    --surface-2: #1f2431;
    --text: #e7eaf2;
    --muted: #9aa3b8;
    --line: #2b3243;
    --accent: #7e9cff;
    --accent-soft: #232d4d;
    --human: #f5b25c;
    --human-soft: #3a2a14;
    --ok: #4fd18b;
    --ok-soft: #17352a;
    --work: #7e9cff;
    --work-soft: #232d4d;
    --try: #b99bff;
    --try-soft: #2e2448;
    --done: #b3bccb;
    --done-soft: #262c38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --hero-img: url("../img/hero-dark.webp");
    --page-texture: none;
    color-scheme: dark;
  }

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg) var(--page-texture) repeat;
  background-size: 512px 512px;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none;
  /* обрез при прокрутке превращаем в мягкое затухание у краёв */
  mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
  padding: 0 14px 0 10px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--accent); background: var(--accent-soft); }

/* ---------- первый экран ---------- */
.hero { padding: 56px 0 40px; }
.hero .eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46em; margin: 0 0 28px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.pillar b { display: block; font-size: 18px; margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: 15px; }
.pillar.human { border-color: color-mix(in srgb, var(--human) 45%, var(--line)); background: var(--human-soft); }

/* ---------- секции ---------- */
section { padding: 44px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 24px; max-width: 46em; }
h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.box p { margin: 0 0 8px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box ul { margin: 6px 0 0; padding-left: 20px; }
.box li { margin: 4px 0; }

.note {
  border-left: 4px solid var(--human); background: var(--human-soft);
  padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 20px 0 0;
}

/* ---------- схемы ---------- */
.figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 0 0 20px; box-shadow: var(--shadow);
}
.figure figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.figure svg { display: block; width: 100%; height: auto; }
.svg-narrow { display: none !important; }

svg .n-machine { fill: var(--accent-soft); stroke: var(--accent); }
svg .n-human { fill: var(--human-soft); stroke: var(--human); }
svg .n-ok { fill: var(--ok-soft); stroke: var(--ok); }
svg .n-plain { fill: var(--surface-2); stroke: var(--line); }
svg .n-stop { fill: var(--surface-2); stroke: var(--muted); stroke-dasharray: 5 4; }
svg .t { fill: var(--text); font-family: var(--font); font-size: 15px; }
svg .t-b { fill: var(--text); font-family: var(--font); font-size: 16px; font-weight: 700; }
svg .t-s { fill: var(--muted); font-family: var(--font); font-size: 13px; }
svg .edge { stroke: var(--muted); stroke-width: 2; fill: none; }
svg .edge-stop { stroke: var(--muted); stroke-width: 2; fill: none; stroke-dasharray: 5 4; }
svg .arrow { fill: var(--muted); }
svg .n-zone { fill: none; stroke: var(--ok); stroke-dasharray: 8 5; }
svg .n-win { fill: var(--surface); stroke: var(--line); }
svg .n-logo { fill: var(--accent); }
svg .n-logo-line { stroke: var(--surface); }
svg .t-logo { fill: var(--accent); font-family: var(--font); font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.svg-scroll { overflow-x: auto; }
.svg-scroll svg { min-width: 720px; }
.tbl tr.row-sub th { background: var(--surface-2); font-weight: 600; }

/* ---------- карточки задач ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button {
  font: inherit; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 6px 14px; border-radius: 999px;
}
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.card[hidden] { display: none; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card .num { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .who { color: var(--muted); font-size: 14px; margin: 0; }
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.shift div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.shift .before b, .shift .after b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.shift .after { background: var(--ok-soft); }
.shift .to { align-self: center; color: var(--muted); font-size: 20px; background: none; padding: 0; }
.status-line { font-size: 15px; color: var(--muted); margin: 0; }

.badge {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.b-ok { color: var(--ok); background: var(--ok-soft); }
.b-work { color: var(--work); background: var(--work-soft); }
.b-try { color: var(--try); background: var(--try-soft); }
.b-done { color: var(--done); background: var(--done-soft); }

/* ---------- разбор ---------- */
.idea .tag { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.idea .human-keeps { margin-top: 10px; font-size: 15px; color: var(--human); }

/* ---------- шаги ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}

/* ---------- подвал ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }

/* ---------- бренд, слоган, кнопки ---------- */
.brand { flex-shrink: 0; }
.brand-sub { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 2px; padding-right: 8px; border-right: 1px solid var(--line); }
.lang-slot { min-width: 0; }  /* место под будущий переключатель языка */
.hero .slogan { font-size: clamp(30px, 5.4vw, 52px); }
.hero-cta { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent);
}
.btn.ghost { background: transparent; color: var(--accent); }
.muted-s { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
section h3 { margin-top: 24px; }
.box h3, .tier h3 { margin-top: 0; }

/* ---------- тарифы ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.tier-price { font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tier-price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.tier-once { margin: 0; color: var(--text); }
.tier-router { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.tier-router span { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tier ul { margin: 12px 0 0; padding-left: 18px; font-size: 15px; }
.tier li { margin: 4px 0; }
.risk { border-left: 4px solid var(--human); }
.risk h3 { margin-top: 0; }
.risk p { margin: 6px 0; }
.alt h3 { margin-top: 0; }

/* ---------- таблицы: прокрутка только внутри таблицы, страница не прокручивается вбок ---------- */
.tbl-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin: 12px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--surface-2); font-size: 14px; color: var(--muted); font-weight: 600; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.num td { font-variant-numeric: tabular-nums; }
.tbl .row-strong th, .tbl .row-strong td { background: var(--accent-soft); font-weight: 700; }
code { font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }

/* ---------- формулы ---------- */
.formula { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 10px 0 0; }
.formula p { margin: 6px 0; }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.calc-in, .calc-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.calc-in label { display: block; }
.calc-in > label[for="emp"] { font-weight: 600; margin-bottom: 6px; }
.calc-in input[type="number"] {
  font: inherit; font-size: 22px; width: 100%; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.calc-in fieldset { border: 0; padding: 0; margin: 16px 0 8px; }
.calc-in legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.calc-in .chk { margin-top: 6px; }
.calc-tier { margin: 0 0 12px; font-size: 18px; }
.calc-sub { margin: 16px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.calc-in .hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.calc-in input + .hint { margin-bottom: 8px; }
.calc-in label[for="assist"] { font-weight: 600; margin: 14px 0 6px; }
.calc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.calc-nums div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.calc-nums span { display: block; font-size: 13px; color: var(--muted); }
.calc-nums b { font-size: clamp(18px, 2.4vw, 22px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
.calc-dl dt { color: var(--muted); }
.calc-dl dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .brand-sub { display: none; }
}
@media (max-width: 860px) {
  .tiers, .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .calc-nums { grid-template-columns: minmax(0, 1fr); }
  .calc-dl { grid-template-columns: minmax(0, 1fr); }
  .calc-dl dd { margin-bottom: 6px; }
}

/* ---------- адаптив (общий) ---------- */
@media (max-width: 860px) {
  .pillars, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .hero { padding: 36px 0 28px; }
  .svg-wide { display: none !important; }
  .svg-narrow { display: block !important; }
  .shift { grid-template-columns: minmax(0, 1fr); }
  .shift .to { transform: rotate(90deg); justify-self: center; }
}

@media print {
  .top, .filters { display: none; }
  section { break-inside: avoid; }
}

/* ---------- графика: нити и узел (16.11.2026) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: 0; top: 0; z-index: 0; pointer-events: none;
  width: min(60%, 960px); aspect-ratio: 16 / 9;
  background: var(--hero-img) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .lead { max-width: 34em; }
.sec-art {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover;
  border-radius: var(--radius); margin: 4px 0 24px; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec-art { filter: brightness(.8); } }
:root[data-theme="dark"] .sec-art { filter: brightness(.8); }
@media (max-width: 860px) {
  .hero { padding-top: calc(50vw + 8px); }
  .hero::before {
    width: 100%; left: 0;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 35%);
  }
  .hero .lead { max-width: none; }
  .sec-art { aspect-ratio: 2 / 1; }
}

/* ---------- многостраничный сайт (17.11.2026) ---------- */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.top-cta { flex-shrink: 0; }
.btn-sm { padding: 6px 14px; font-size: 15px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.page-head { padding: 44px 0 28px; }
.page-head .eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.page-head .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46em; margin: 0; }
.page-head .note { max-width: 46em; }
.legend { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.more { margin: 18px 0 0; font-weight: 600; }
.more a { text-decoration: none; }
.link-box { display: block; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.link-box:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-box p { color: var(--muted); }
.box .badge { margin-bottom: 8px; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.steps li.human-step { background: var(--human-soft); border-color: color-mix(in srgb, var(--human) 45%, var(--line)); }
.steps li.human-step::before { background: var(--human); }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.stat b { display: block; font-size: clamp(26px, 3.4vw, 34px); color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }

/* пример переписки */
.chat-demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.cd-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cd-head b { display: block; }
.cd-head span { font-size: 13px; color: var(--ok); }
.cd-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; transition: opacity .35s, transform .35s; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.pending { opacity: 0; transform: translateY(8px); }
.msg.shown { opacity: 1; transform: none; }
.msg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mb { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); }
.mb.human { border-color: var(--human); color: var(--surface); background: var(--human); font-weight: 600; }

/* вопросы */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style-position: outside; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--text); }
.faq details[open] summary { color: var(--accent); }

/* форма */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.form h2 { margin-top: 0; }
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form label.chk { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form input[type="text"], .form textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.form textarea { resize: vertical; }
.form .btn { margin-top: 16px; }
.form-msg { margin: 10px 0 0; color: var(--human); min-height: 1.4em; }
.contacts dd { font-weight: 600; }

/* документы */
.narrow { max-width: 820px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { margin: 6px 0; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--muted); font-size: 15px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-h { font-weight: 700; color: var(--text); margin: 0 0 8px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 18px; margin: 0 0 6px; }
.foot-legal { border-top: 1px solid var(--line); margin: 24px 0 0; padding-top: 16px; font-size: 14px; }

@media (max-width: 1180px) { .top .nav a { padding: 6px 8px; font-size: 14px; } }
@media (max-width: 960px) {
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 6px; }
  .top .nav { order: 3; width: 100%; margin-left: 0; }
  .top-cta { margin-left: auto; }
  .grid-4, .stats, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: 28px 0 20px; }
  html { scroll-padding-top: 110px; }
}

/* меню из 9 пунктов: подпись бренда убираем раньше, пункты плотнее */
@media (max-width: 1440px) { .brand-sub { display: none; } .top .nav { gap: 0; } .top .nav a { padding: 6px 8px; font-size: 14.5px; } }
@media (max-width: 1100px) and (min-width: 641px) { .top .wrap { flex-wrap: wrap; padding-top: 6px; padding-bottom: 4px; } .top .nav { order: 3; width: 100%; margin-left: 0; } .top-cta { margin-left: auto; } html { scroll-padding-top: 110px; } }

.sec-art.art-2x1 { aspect-ratio: 2 / 1; }

/* словарь на «Вопросах» (17.11.2026) */
.glossary { gap: 12px 24px; }
.glossary dt { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .glossary { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 12px; }
}


/* ==========================================================================
   НОВЫЙ ДИЗАЙН САЙТА УЗЛА (24-25.11.2026, по макету 213843-фото.jpg)
   ========================================================================== */

/* ---------- 1. HERO V2 (Тёмный hero с неоновым 3D-узлом и мокапом) ---------- */
.hero-v2 {
  background: radial-gradient(ellipse at 85% 30%, #152238 0%, #0b0f19 65%);
  color: #ffffff;
  padding: 64px 0 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.badge-icon { font-size: 14px; }
.hero-content h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #ffffff;
}
.highlight-orange {
  color: #f59e0b;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content .lead {
  font-size: 18px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.35);
  transition: all 0.15s ease;
  border: none;
}
.btn-primary-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.45);
}
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0 !important;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Визуал hero: светящийся узел + смартфон */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}
.knot-glow-bg {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 1;
}
.knot-glow-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.45));
}
.phone-mockup {
  position: relative;
  z-index: 2;
  width: 275px;
  background: #0f172a;
  border: 4px solid #334155;
  border-radius: 36px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  padding: 10px;
  color: #ffffff;
  transform: rotate(1deg);
}
.phone-screen {
  background: #0a0f1d;
  border-radius: 26px;
  padding: 12px;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
  padding: 0 4px;
  font-weight: 600;
}
.phone-tg-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.tg-app-title {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.tg-bot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.tg-verified {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
}
.tg-status {
  font-size: 11px;
  color: #38bdf8;
}
.tg-card-msg {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  font-size: 12.5px;
}
.tg-card-lead {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.tg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.tg-item-alert { border-left: 3px solid #ef4444; }
.tg-item-user { border-left: 3px solid #38bdf8; }
.tg-item-night { border-left: 3px solid #f59e0b; }
.tg-btn-confirm {
  width: 100%;
  background: #0284c7;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease;
}
.tg-btn-confirm:hover { background: #0369a1; }

/* Нижняя цепочка Hero */
.hero-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 28px;
  margin-top: 44px;
  color: #cbd5e1;
  font-size: 15px;
}
.pipe-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pipe-human { color: #f59e0b; }
.pipe-arrow { color: #64748b; font-weight: 700; font-size: 14px; }

/* ---------- 2. СЕКЦИЯ «КАК ЭТО ВЫГЛЯДИТ» ---------- */
.sec-demo {
  background: #f8fafc;
  padding: 64px 0;
}
.two-col-demo {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
}
.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}
.bullet-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

/* Десктопный мокап Telegram */
.tg-desktop-mockup {
  display: grid;
  grid-template-columns: 170px 1fr;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-height: 320px;
}
.tg-sidebar {
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  padding: 12px 8px;
  font-size: 13px;
}
.tg-side-head {
  padding: 4px 8px 10px;
  color: #2563eb;
  font-size: 14px;
}
.tg-chat-item {
  padding: 7px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  margin-bottom: 3px;
  font-weight: 500;
}
.tg-chat-item.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
}
.badge-count {
  background: #0284c7;
  color: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
}
.tg-chat-pane {
  display: flex;
  flex-direction: column;
}
.tg-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.tg-subtext {
  font-size: 11.5px;
  color: #64748b;
}
.tg-pane-body {
  padding: 20px 18px;
  flex: 1;
  background: #f8fafc;
}
.tg-msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 24px;
  max-width: 380px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
}
.msg-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  color: #0f172a;
}
.tg-num-list {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}
.tg-btn-confirm-inline {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.tg-btn-confirm-inline:hover { background: #1d4ed8; }
.tg-msg-time {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 11px;
  color: #94a3b8;
}
.tg-pane-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  font-size: 13.5px;
}
.tg-placeholder { flex: 1; }

/* ---------- 3. СЕКЦИЯ «ЧТО ВЫ ПОКУПАЕТЕ» ---------- */
.sec-white {
  background: #ffffff;
  padding: 60px 0;
}
.cards-product .card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cards-product .card-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.card-ico {
  font-size: 30px;
  margin-bottom: 14px;
}

/* ---------- 4. СЕКЦИЯ «ЧТО БЕРЁТ НА СЕБЯ» ---------- */
.sec-light {
  background: #f8fafc;
  padding: 60px 0;
}
.cards-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-role {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.card-role:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
}
.role-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ico-blue { background: #eff6ff; }
.ico-purple { background: #faf5ff; }
.ico-cyan { background: #ecfeff; }
.ico-indigo { background: #e0e7ff; }
.ico-amber { background: #fffbeb; }
.ico-green { background: #f0fdf4; }

/* ---------- 5. СЕКЦИЯ МЕТРИК (ТЁМНАЯ) ---------- */
.sec-dark-metrics {
  background: #0d131f;
  color: #ffffff;
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.metrics-wrap {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 36px;
  align-items: center;
}
.metrics-title h2 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.25;
  margin: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.metric-box {
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  padding-left: 14px;
}
.metric-val {
  font-size: 36px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.metric-lbl {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ---------- 6. ТАРИФЫ И ЗОЛОТАЯ ПЛАШКА ---------- */
.sec-pricing {
  background: #ffffff;
  padding: 60px 0;
}
.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 18px;
}
.price-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}
.price-card.popular {
  border: 2px solid #2563eb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-price {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 6px;
}
.card-price small {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}
.card-impl {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 6px;
}
.card-team {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}
.btn-card {
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.15s ease;
}
.btn-card:hover {
  background: #f1f5f9;
}
.btn-card.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.btn-card.primary:hover {
  background: #1d4ed8;
}

/* Золотая карточка */
.price-card.golden {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}
.golden-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.golden-highlight {
  font-size: 20px;
  font-weight: 800;
  color: #b45309;
  margin: 10px 0;
}
.gold-btn {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}
.gold-btn:hover {
  background: #b45309;
}

/* ---------- 7. СЕКЦИЯ «КАК НАЧАТЬ» (ТЁМНЫЙ СТЕППЕР) ---------- */
.sec-dark-start {
  background: #0b0f19;
  color: #ffffff;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.start-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.start-header-row h2 {
  color: #ffffff;
  margin: 0;
}
.start-stepper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}
.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 18px;
  flex: 1;
  min-width: 0;
}
.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d97706;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.step-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #ffffff;
}
.step-card p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}
.step-divider {
  align-self: center;
  color: #475569;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .two-col-demo { grid-template-columns: 1fr; }
  .cards-roles { grid-template-columns: repeat(2, 1fr); }
  .metrics-wrap { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .start-stepper { flex-direction: column; }
  .step-divider { display: none; }
}

@media (max-width: 640px) {
  .hero-v2 { padding: 40px 0 30px; }
  .hero-pipeline { flex-direction: column; gap: 8px; border-radius: 20px; }
  .pipe-arrow { transform: rotate(90deg); }
  .cards-roles { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .pricing-cards-grid { grid-template-columns: 1fr; }
  .start-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
