/* Кор — собственное ИИ-ядро компании. Лендинг BoevLab.
   Стиль BoevLab в духе Apple: один синий акцент, холст #f5f5f7, тонкие линии,
   радиусы по ролям (pill · 11 · 18 · 24 · 28), тень только у «парящего» (меню-остров),
   системный шрифт SF Pro, подписи без капса, движение — только как ответ на действие. */

:root {
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;

  --ground: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --fill: rgba(0, 0, 0, .05);
  --fill-hover: rgba(0, 0, 0, .09);
  --seg-on: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #515154;
  --ink-faint: #6e6e73;
  --hairline: #e0e0e0;
  --rule: #ececee;
  --brand: #0066cc;
  --brand-strong: #0071e3;
  --brand-ink: #0066cc;
  --brand-tint: rgba(0, 102, 204, .08);
  --brand-tint-2: rgba(0, 102, 204, .14);
  --island: rgba(255, 255, 255, .72);
  --shadow-float: 0 14px 44px rgba(0, 0, 0, .10), 0 1px 3px rgba(0, 0, 0, .06);

  /* статусы в макетах интерфейса */
  --ok: #1d7f3a; --ok-tint: rgba(29, 127, 58, .1);
  --warn: #9a5b00; --warn-tint: rgba(255, 159, 10, .16);
  --shot-shadow: 0 30px 80px rgba(0, 0, 0, .09), 0 2px 6px rgba(0, 0, 0, .04);

  /* «тёмная плитка» для схемы организма */
  --tile: #000000;

  --r-md: 11px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-sheet: 28px;

  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #000000; --surface: #1d1d1f; --surface-2: #272729;
    --fill: rgba(255, 255, 255, .08); --fill-hover: rgba(255, 255, 255, .14); --seg-on: #48484a;
    --ink: #f5f5f7; --ink-soft: #c7c7cc; --ink-faint: #98989d;
    --hairline: rgba(255, 255, 255, .14); --rule: rgba(255, 255, 255, .09);
    --brand: #0071e3; --brand-strong: #2997ff; --brand-ink: #2997ff;
    --brand-tint: rgba(41, 151, 255, .12); --brand-tint-2: rgba(41, 151, 255, .2);
    --island: rgba(29, 29, 31, .72);
    --shadow-float: 0 14px 44px rgba(0, 0, 0, .6);
    --tile: #111113;
    --ok: #30d158; --ok-tint: rgba(48, 209, 88, .14);
    --warn: #ff9f0a; --warn-tint: rgba(255, 159, 10, .16);
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #000000; --surface: #1d1d1f; --surface-2: #272729;
  --fill: rgba(255, 255, 255, .08); --fill-hover: rgba(255, 255, 255, .14); --seg-on: #48484a;
  --ink: #f5f5f7; --ink-soft: #c7c7cc; --ink-faint: #98989d;
  --hairline: rgba(255, 255, 255, .14); --rule: rgba(255, 255, 255, .09);
  --brand: #0071e3; --brand-strong: #2997ff; --brand-ink: #2997ff;
  --brand-tint: rgba(41, 151, 255, .12); --brand-tint-2: rgba(41, 151, 255, .2);
  --island: rgba(29, 29, 31, .72);
  --shadow-float: 0 14px 44px rgba(0, 0, 0, .6);
  --tile: #111113;
  --ok: #30d158; --ok-tint: rgba(48, 209, 88, .14);
  --warn: #ff9f0a; --warn-tint: rgba(255, 159, 10, .16);
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -.016em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(0, 113, 227, .28); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--ink); }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec--surface { background: var(--surface); }
.sec--ground { background: var(--ground); }

.h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.07; letter-spacing: -.035em; max-width: 18ch; }
.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; letter-spacing: -.02em; color: var(--ink-soft); max-width: 40em; margin-top: 22px; }
.sec__head { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: 500 16px/1.2 var(--font); letter-spacing: -.016em;
  cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-strong); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--brand-ink); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--fill); }
.btn--sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }

/* ---------- меню-«остров» ---------- */
.island {
  position: sticky; top: 12px; z-index: 50;
  width: calc(100% - 24px); max-width: 1180px; margin: 12px auto 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-xl);
  background: var(--island); border: 1px solid var(--hairline); box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark img { width: 100%; height: 100%; }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: -.022em; line-height: 1.1; }
.brand__sub { font-size: 12px; color: var(--ink-faint); letter-spacing: -.01em; }
.island__nav { display: flex; gap: 2px; }
.island__nav-cta { display: none !important; }
.menu-btn { display: none; }
.island__nav a { color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-md); }
.island__nav a:hover { background: var(--fill); text-decoration: none; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.theme-btn:hover { background: var(--fill-hover); color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; }

/* птичка: синяя в светлой теме, белая в тёмной */
.bird-dark { display: none; }
:root[data-theme="dark"] .bird-light { display: none; }
:root[data-theme="dark"] .bird-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bird-light { display: none; }
  :root:not([data-theme="light"]) .bird-dark { display: block; }
}

/* ---------- первый экран ---------- */
.hero { background: var(--surface); margin-top: -64px; padding: calc(64px + clamp(88px, 13vw, 168px)) 0 clamp(80px, 10vw, 128px); text-align: center; }
.hero__title { font-size: clamp(46px, 7.6vw, 96px); line-height: 1.02; letter-spacing: -.048em; max-width: 13ch; margin: 0 auto; }
.hero__slogan { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; color: var(--ink-faint); margin-top: 26px; }
.hero__text { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 34em; margin: 30px auto 0; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero__note { margin-top: 22px; font-size: 14px; color: var(--ink-faint); }

/* ---------- боль ---------- */
.pain { border-top: 1px solid var(--hairline); }
.pain__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; padding: 34px 0; border-bottom: 1px solid var(--hairline); }
.pain__row h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
.pain__row p { font-size: 18px; color: var(--ink-soft); line-height: 1.55; padding-top: 4px; }
.pain__turn { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.03em; font-weight: 600; margin-top: 56px; max-width: 26em; }
.pain__turn span { color: var(--ink-faint); }

/* ---------- организм (тёмная плитка) ---------- */
.organism {
  --ink: #f5f5f7; --ink-soft: #c7c7cc; --ink-faint: #a1a1a6;
  --hairline: rgba(255, 255, 255, .16); --rule: rgba(255, 255, 255, .1);
  --brand-ink: #2997ff; --o-core: rgba(41, 151, 255, .22); --o-ring: rgba(41, 151, 255, .45);
  --o-house: rgba(255, 255, 255, .035);
  background: var(--tile); color: var(--ink);
}
.organism .lead { color: var(--ink-soft); }
.org-figure { margin: 0 auto; max-width: 1180px; }
.org-svg--narrow { display: none; }
.org-svg text { font-family: var(--font); letter-spacing: -.01em; }
.o-house { fill: var(--o-house); stroke: var(--hairline); stroke-width: 1.2; }
.o-line { stroke: var(--hairline); stroke-width: 1.5; fill: none; }
.o-feed { stroke: #2997ff; stroke-width: 2; fill: none; stroke-dasharray: 3 7; stroke-linecap: round; }
.o-ring-1 { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.o-ring-2 { fill: none; stroke: var(--o-ring); stroke-width: 1.2; stroke-dasharray: 2 5; }
.o-core { fill: var(--o-core); stroke: #2997ff; stroke-width: 1.5; }
.o-pill { fill: rgba(255, 255, 255, .06); stroke: var(--hairline); }
.o-pill--on { fill: #0071e3; stroke: #0071e3; }
.o-guide { fill: rgba(41, 151, 255, .14); stroke: #2997ff; stroke-width: 1.5; }
.o-step { fill: rgba(255, 255, 255, .1); stroke: var(--hairline); }
.o-step--top { fill: rgba(41, 151, 255, .3); stroke: #2997ff; }
.o-t { fill: var(--ink); font-size: 15px; font-weight: 500; }
.o-t--on { fill: #fff; }
.o-t--strong { font-weight: 600; }
.o-t--core { font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.o-t--soft { fill: var(--ink-soft); font-size: 14px; font-weight: 400; }
.o-t--faint { fill: var(--ink-faint); font-size: 13px; font-weight: 400; }
.o-t--head { fill: var(--ink-soft); font-size: 14px; font-weight: 600; }
.o-t--halo { paint-order: stroke; stroke: var(--tile); stroke-width: 7px; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .o-feed { animation: feed 1.6s linear infinite; }
  @keyframes feed { to { stroke-dashoffset: -20; } }
}

.org-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--hairline); }
.org-legend div { padding: 26px 0 28px; border-bottom: 1px solid var(--hairline); }
.org-legend dt { font-size: 19px; font-weight: 600; letter-spacing: -.022em; }
.org-legend dt span { color: var(--ink-faint); font-weight: 500; }
.org-legend dd { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* ---------- проводник: небоскрёб ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.guide__story p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.guide__story p strong { color: var(--ink); font-weight: 600; }
.guide__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.guide__list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.guide__list b { font-weight: 600; }
.guide__list span { color: var(--ink-soft); }

.tower { position: relative; display: grid; gap: 6px; max-width: 420px; margin-left: auto; width: 100%; }
.tower__roof { height: 30px; width: 46%; margin: 0 auto -2px; border: 1px solid var(--hairline); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); }
.floor {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  font-size: 15px; font-weight: 500;
}
.floor i { flex: none; width: 92px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--brand-tint-2) 0 14px, transparent 14px 20px); }
.floor--ground { min-height: 76px; background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; font-size: 17px; }
.floor--ground small { display: block; font-weight: 400; font-size: 13px; opacity: .85; margin-top: 2px; }
.floor__door { flex: none; width: 40px; height: 52px; border-radius: 20px 20px 0 0; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5); border-bottom: 0; align-self: flex-end; }
.tower__guest { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-faint); justify-content: flex-start; }
.tower__guest b { font-weight: 500; color: var(--ink); background: var(--surface); border: 1px dashed var(--brand-ink); border-radius: 999px; padding: 6px 14px; }

/* ---------- роли ---------- */
.models-line { margin-top: 26px; font-size: 17px; color: var(--ink-soft); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--fill); border-radius: 999px; max-width: 100%; }
.seg button {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 500 14.5px/1.2 var(--font); letter-spacing: -.014em; padding: 9px 18px; border-radius: 999px; min-height: 38px;
  transition: background .15s ease;
}
.seg button:hover { background: var(--fill); }
.seg button[aria-selected="true"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .04); }
.role { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); margin-top: 36px; padding: clamp(26px, 3.4vw, 44px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sheet); }
.role[hidden] { display: none; }
.role h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.12; }
.role__text { margin-top: 14px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.role__note { margin-top: 18px; font-size: 14px; color: var(--ink-faint); line-height: 1.5; padding-left: 14px; border-left: 2px solid var(--hairline); }
.chat { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.chat__who { font-size: 12.5px; color: var(--ink-faint); margin: 6px 4px -4px; }
.chat__who--me { text-align: right; }
.bubble { max-width: 86%; padding: 11px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; }
.bubble--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.bubble--kor { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 6px; }
.roles__more { margin-top: 26px; font-size: 16px; color: var(--ink-faint); }

/* ---------- сравнение ---------- */
.cmp { border-top: 1px solid var(--hairline); }
.cmp__row { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
.cmp__row > * { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.cmp__row > :first-child { color: var(--ink); font-weight: 600; }
.cmp__row > .is-kor { color: var(--ink); background: var(--brand-tint); padding-left: 20px; font-weight: 500; }
.cmp__row--head > * { font-size: 15px; font-weight: 600; color: var(--ink); padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.cmp__row--head > .is-kor { color: var(--brand-ink); border-radius: 14px 14px 0 0; font-weight: 600; font-size: 17px; }
.cmp__row:last-child > .is-kor { border-radius: 0 0 14px 14px; }
.cmp__k { display: none; font-style: normal; }

/* ---------- растёт годами ---------- */
.grow { margin-top: 8px; }
.grow__models, .grow__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grow__models span { display: block; text-align: center; padding: 9px 10px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink-faint); font-size: 14px; background: var(--surface); }
.grow__models span:last-child { border-style: dashed; }
.grow__band { position: relative; height: clamp(120px, 14vw, 170px); margin: 14px 0 26px; }
.grow__band svg { width: 100%; height: 100%; }
.grow__band .g-mem { fill: var(--brand-tint-2); stroke: var(--brand-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.grow__band .g-tick { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.grow__label { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-weight: 600; font-size: 17px; color: var(--brand-ink); letter-spacing: -.02em; }
.grow__stages div { padding-top: 16px; border-top: 2px solid var(--ink); }
.grow__stages b { display: block; font-size: 18px; letter-spacing: -.022em; }
.grow__stages p { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.grow__quote { margin-top: clamp(48px, 6vw, 72px); font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; font-size: clamp(30px, 4vw, 48px); text-align: center; }

/* ---------- лестница доверия ---------- */
.stairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.stair { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.stair:nth-child(1) { min-height: 210px; }
.stair:nth-child(2) { min-height: 270px; }
.stair:nth-child(3) { min-height: 330px; background: var(--brand-tint); border-color: var(--brand-tint-2); }
.stair small { font-size: 14px; color: var(--ink-faint); }
.stair h3 { font-size: 22px; letter-spacing: -.026em; line-height: 1.2; margin-top: 6px; }
.stair p { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.always { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 22px; border: 1px solid var(--hairline); border-radius: var(--r-lg); font-size: 16px; }
.always b { font-weight: 600; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; }

.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(56px, 7vw, 88px); }
.level { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px; background: var(--surface); }
.level h3 { font-size: 24px; letter-spacing: -.028em; }
.level__sub { margin-top: 4px; color: var(--ink-faint); font-size: 15px; }
.level ul { margin: 18px 0 0; padding: 0; list-style: none; }
.level li { padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--ink-soft); position: relative; }
.level li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-ink); }
.level li.is-out::before { background: transparent; border: 1.5px solid var(--ink-faint); }
.safety { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.safety p { padding: 22px 24px 0 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.safety b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- шаги внедрения ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.steps li { counter-increment: s; padding: 26px 0 30px; border-top: 1px solid var(--hairline); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.steps li.is-pilot::before { background: var(--brand); color: #fff; }
.steps h3 { font-size: 21px; letter-spacing: -.024em; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* ---------- оплата ---------- */
.pay { border-top: 1px solid var(--ink); }
.pay__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2.4fr); gap: 20px 40px; padding: 30px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.pay__row h3 { font-size: 24px; letter-spacing: -.028em; line-height: 1.15; }
.pay__when { margin-top: 6px; color: var(--ink-faint); font-size: 15px; }
.pay__row > p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.pay__who { font-size: 15px; color: var(--ink-faint); }
.pay__who b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-top: 2px; }
.mark { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 8px; background: rgba(255, 159, 10, .16); color: var(--ink); font-size: 14px; font-weight: 500; }
.pay__foot { margin-top: 28px; font-size: 18px; color: var(--ink-soft); max-width: 44em; }
.pay__foot b { color: var(--ink); }

/* ---------- честные ответы ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.022em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fill)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.faq details p + p { margin-top: -12px; }

/* ---------- живой прототип ---------- */
.proto { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.proto p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.proto__does { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.phone { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sheet); padding: 18px 16px 22px; max-width: 420px; width: 100%; margin-left: auto; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.phone__ava { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; }
.phone__bar b { display: block; font-size: 15px; }
.phone__bar small { font-size: 12.5px; color: var(--ink-faint); }
.phone .chat { gap: 8px; }
.phone .bubble { font-size: 15px; }
.phone .bubble--kor { background: var(--surface-2); }
.proto .phone__cap { margin-top: 12px; font-size: 13px; color: var(--ink-faint); text-align: center; }

/* ---------- контакт ---------- */
.contact { text-align: center; }
.contact .h2 { margin: 0 auto; max-width: 16ch; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact__cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact__ways { font-size: 17px; color: var(--ink-soft); }

.foot { background: var(--ground); border-top: 1px solid var(--hairline); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--ink-faint); }
.foot .brand__name { font-size: 15px; }
.foot .brand__mark { width: 28px; height: 28px; }

/* ================= планшет и телефон ================= */
@media (max-width: 1020px) {
  .org-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .island { top: max(8px, env(safe-area-inset-top)); width: calc(100% - 16px); margin-top: 8px; padding: 6px 6px 6px 10px; border-radius: 20px; }
  .brand__sub { display: none; }
  .hero { margin-top: -56px; padding-top: calc(56px + 72px); text-align: left; }
  .hero__title, .hero__text { margin-left: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__cta .btn { flex: 1 1 100%; }

  .pain__row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; }
  .pain__row p { font-size: 16.5px; }

  .org-svg--wide { display: none; }
  .org-svg--narrow { display: block; margin: 0 auto; max-width: 440px; }
  .org-legend { grid-template-columns: minmax(0, 1fr); }

  .guide, .proto { grid-template-columns: minmax(0, 1fr); }
  .guide__story p, .proto p { font-size: 17px; }
  .guide__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tower { margin: 0 auto; }

  .seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 16px; width: 100%; }
  .seg button { border-radius: 13px; padding: 10px 10px; min-height: 44px; }
  .seg button:last-child { grid-column: 1 / -1; }
  .role { grid-template-columns: minmax(0, 1fr); border-radius: 22px; margin-top: 18px; }
  .bubble { max-width: 92%; font-size: 15.5px; }

  .cmp__row--head { display: none; }
  .cmp__row { grid-template-columns: minmax(0, 1fr); padding: 18px 0 20px; border-bottom: 1px solid var(--hairline); }
  .cmp__row > * { border-bottom: 0; padding: 4px 0; }
  .cmp__row > :first-child { font-size: 18px; padding-bottom: 8px; }
  .cmp__row > .is-kor { padding: 10px 12px; border-radius: 12px; margin-top: 6px; }
  .cmp__row:last-child > .is-kor { border-radius: 12px; }
  .cmp__k { display: block; font-size: 13px; color: var(--ink-faint); font-weight: 500; }
  .is-kor .cmp__k { color: var(--brand-ink); }

  .grow__models, .grow__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grow__models span:nth-child(n+3) { display: none; }
  .grow__label { font-size: 15px; right: 10px; }
  .grow__stages { gap: 22px 14px; }

  .stairs { grid-template-columns: minmax(0, 1fr); }
  .stair { min-height: 0 !important; }
  .stair:nth-child(2) { margin-left: 18px; }
  .stair:nth-child(3) { margin-left: 36px; }
  .levels, .safety { grid-template-columns: minmax(0, 1fr); }
  .level { padding: 22px 20px; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 20px 0 22px; }
  .steps li::before { margin: 0; grid-row: 1 / span 2; }
  .steps h3 { align-self: center; }
  .steps p { grid-column: 2; }

  .pay__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; font-size: 16px; }

  .phone { margin: 0 auto; }
  .contact { text-align: left; }
  .contact .h2, .contact .lead { margin-left: 0; }
  .contact__cta { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   v2: меню на телефоне, «скриншоты» продукта, модели, отрасли,
   интеграции, цены, контакты, подвал
   ===================================================================== */

/* ---------- меню: кнопка и выпадающий список (≤1120px) ---------- */
@media (max-width: 1120px) {
  .island__nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl);
    box-shadow: var(--shadow-float); max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .island.is-open .island__nav { display: flex; }
  .island__nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 17px; }
  .menu-btn {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--fill); color: var(--ink); cursor: pointer;
  }
  .menu-btn:hover { background: var(--fill-hover); }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .menu-btn path { transition: transform .2s ease; transform-box: fill-box; transform-origin: center; }
  .island.is-open .menu-btn__a { transform: translateY(3px) rotate(45deg); }
  .island.is-open .menu-btn__b { transform: translateY(-3px) rotate(-45deg); }
  .theme-btn { width: 44px; height: 44px; }
  .btn--sm { min-height: 44px; }
  .brand { min-height: 44px; }
  .seg button { min-height: 44px; }
  .foot li a, .foot__brand p a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 560px) {
  .island__cta { display: none; }
  .island__nav .island__nav-cta { display: flex !important; justify-content: center; margin-top: 6px; color: #fff; background: var(--brand); border-radius: 999px; }
  .island__nav .island__nav-cta:hover { background: var(--brand-strong); }
}

/* ---------- общий каркас «скриншота» ---------- */
.shot { margin: 0; min-width: 0; }
.shot__cap { margin-top: 14px; font-size: 13px; color: var(--ink-faint); text-align: center; letter-spacing: -.01em; }
.win {
  container-type: inline-size;
  background: var(--surface); color: var(--ink); text-align: left;
  border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shot-shadow);
  font-size: 14px; line-height: 1.4; letter-spacing: -.01em;
}
.win svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win__bar { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--rule); }
.win__dots { display: flex; gap: 7px; }
.win__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline); }
.win__title { text-align: center; font-size: 12.5px; font-weight: 500; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ava { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--fill-hover); color: var(--ink); font-weight: 600; font-size: 12.5px; letter-spacing: 0; }
.ava--kor { background: var(--brand); color: #fff; }
.ava--s { width: 24px; height: 24px; font-size: 12px; }
.ava--a { background: rgba(235, 104, 52, .18); }
.ava--lg { width: 38px; height: 38px; font-size: 15px; }

.b { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--brand-ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.b--pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.st { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st--ok { background: var(--ok-tint); color: var(--ok); }
.st--warn { background: var(--warn-tint); color: var(--warn); }
.st--info { background: var(--brand-tint); color: var(--brand-ink); }
.st--off { background: var(--fill); color: var(--ink-faint); }
.set__head { margin-bottom: 10px; }
.set__head b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.016em; }
.set__head small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- (б) веб-кабинет на первом экране ---------- */
.hero__shot { margin-top: clamp(56px, 7vw, 88px); }
.app__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 520px; }
.app__side { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; background: var(--surface-2); border-right: 1px solid var(--rule); }
.app__side ul { list-style: none; margin: 0; padding: 0; }
.app__new { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); font-weight: 500; }
.app__new svg { color: var(--brand-ink); }
.app__search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--ink-faint); }
.app__group { padding: 14px 12px 4px; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.app__projects li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--r-md); }
.app__projects li i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.app__projects small { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.app__projects .is-on { background: var(--fill); font-weight: 500; }
.app__recent li { padding: 7px 12px; border-radius: var(--r-md); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__recent .is-on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 500; }
.app__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 2px; border-top: 1px solid var(--rule); font-weight: 500; }
.app__me small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-faint); }
.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.app__menu { display: none; }
.app__ttl { min-width: 0; }
.app__ttl b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__ttl small { display: block; font-size: 12.5px; color: var(--ink-faint); }
.chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 11px; border-radius: 999px; background: var(--fill); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.app__thread { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; }
.msg--me { align-self: flex-end; max-width: 70%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--brand); color: #fff; }
.msg--kor { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.msg__who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mini { overflow-wrap: anywhere; border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; font-size: 13px; }
.mini__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 8px 12px; border-top: 1px solid var(--rule); }
.mini__row--head { border-top: 0; background: var(--surface-2); color: var(--ink-faint); font-size: 12px; font-weight: 500; }
.is-warn { color: var(--warn); font-weight: 500; }
.msg__src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-faint); }
.msg__src em { font-style: normal; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink-soft); }
.msg__act { display: flex; flex-wrap: wrap; gap: 8px; }
.app__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 20px 18px; padding: 9px 9px 9px 16px; border: 1px solid var(--hairline); border-radius: 16px; color: var(--ink-faint); }
.app__mic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--ink-soft); }

@container (max-width: 760px) {
  .app__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app__side { display: none; }
  .app__menu { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink-soft); flex: none; }
  .app__head { padding: 10px 14px; gap: 8px; }
  .app__thread { padding: 16px 14px; }
  .msg--me { max-width: 88%; }
  .app__input { margin: 0 14px 14px; }
}
@container (max-width: 440px) {
  .chip { display: none; }
  .mini { font-size: 12.5px; }
  .mini__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; }
  .mini__row > :first-child { grid-column: 1 / -1; font-weight: 500; }
  .mini__row--head > :first-child { display: none; }
}

/* ---------- (д) модели ---------- */
.set__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.set__list { padding: 20px 22px; border-right: 1px solid var(--rule); }
.mdl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.mdl__ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--fill); color: var(--ink-soft); font-weight: 600; }
.mdl.is-on .mdl__ico { background: var(--brand); color: #fff; }
.mdl__name { flex: 1; min-width: 0; font-weight: 500; }
.mdl__name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-faint); }
.mdl--add .mdl__ico { background: transparent; border: 1px dashed var(--brand-ink); color: var(--brand-ink); }
.mdl--add .mdl__name { color: var(--brand-ink); }
.route { display: flex; flex-direction: column; padding: 20px 22px; background: var(--surface-2); }
.route__map { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.route__node { position: relative; padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-weight: 500; }
.route__node + .route__node::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 12px; border-left: 1.5px dashed var(--brand-ink); }
.route__node--guide { background: var(--brand-tint); border-color: var(--brand-ink); color: var(--brand-ink); font-weight: 600; }
.route__lanes { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 24px; }
.route__lanes::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 24px; border: 1.5px dashed var(--brand-ink); border-bottom: 0; border-radius: 12px 12px 0 0; }
.route__lanes::after { content: ""; position: absolute; top: -12px; left: 50%; height: 12px; border-left: 1.5px dashed var(--brand-ink); }
.route__lane { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.route__lane b { font-weight: 600; }
.route__lane span { font-size: 12.5px; color: var(--ink-soft); }
.route__lane em { align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--fill); font-style: normal; font-size: 12.5px; font-weight: 500; }
.route__lane--hi em { background: var(--brand); color: #fff; }
.route__note { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--ink-soft); }
@container (max-width: 700px) {
  .set__body { grid-template-columns: minmax(0, 1fr); }
  .set__list { padding: 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .route { padding: 16px; }
}
@container (max-width: 400px) {
  .mdl { gap: 10px; }
  .mdl .b { padding: 5px 11px; }
  .route__lane { padding: 10px; }
}

.notes3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--hairline); }
.notes3 p { padding-top: 20px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.notes3 b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }

/* ---------- Кор в работе: строки «текст + экран» ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hairline); }
.feat:last-child { padding-bottom: 0; }
.feat__text h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
.feat__text p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.feat__text .feat__note { font-size: 14.5px; color: var(--ink-faint); padding-left: 14px; border-left: 2px solid var(--hairline); }
.feat__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.feat__list li { position: relative; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.feat__list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-ink); }
.feat--wide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.feat--wide .feat__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px clamp(32px, 6vw, 88px); align-items: start; }
.feat--wide .feat__text h3 { grid-row: 1 / span 2; }
.feat--wide .feat__text p { margin-top: 0; }

/* ---------- (а) Telegram в телефоне ---------- */
.shot--phone { justify-self: center; width: 100%; max-width: 384px; padding: 9px; }
.tg {
  --tg-bg: #e7ebf0; --tg-me: #dcebff; --bezel: #1d1d1f;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 38px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 9px var(--bezel), var(--shot-shadow);
  font-size: 14px; line-height: 1.38; letter-spacing: -.01em; text-align: left;
}
:root[data-theme="dark"] .tg { --tg-bg: #0e1621; --tg-me: #2b5278; --bezel: #3a3a3c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tg { --tg-bg: #0e1621; --tg-me: #2b5278; --bezel: #3a3a3c; } }
.tg svg { flex: none; }
.tg__bar { display: flex; align-items: center; gap: 10px; padding: 22px 14px 10px; border-bottom: 1px solid var(--rule); }
.tg__back svg { width: 12px; height: 20px; fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg__who { flex: 1; text-align: center; }
.tg__who b { display: block; font-size: 15px; font-weight: 600; }
.tg__who small { font-size: 12px; color: var(--ink-faint); }
.tg__feed { display: flex; flex-direction: column; gap: 7px; padding: 12px 10px 10px; background: var(--tg-bg); }
.tg__day { align-self: center; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.tgm { max-width: 88%; padding: 8px 11px 5px; border-radius: 16px; }
.tgm--kor { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 5px; }
.tgm--me { align-self: flex-end; background: var(--tg-me); border-bottom-right-radius: 5px; }
.tgm p + p { margin-top: 6px; }
.tgm ul { margin: 6px 0 0; padding-left: 17px; }
.tgm li + li { margin-top: 3px; }
.tgm time { display: block; margin-top: 2px; text-align: right; font-size: 12px; color: var(--ink-faint); }
.tgm--voice { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; width: 88%; }
.tg__play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); }
.tg__play svg { width: 14px; height: 14px; fill: #fff; }
.tg__wave { display: flex; align-items: center; gap: 2px; height: 24px; min-width: 0; }
.tg__wave i { flex: 1 1 0; max-width: 3px; height: var(--h); border-radius: 2px; background: var(--brand-ink); opacity: .45; }
.tg__wave i:nth-child(-n+7) { opacity: 1; }
.tg__dur { font-size: 12px; color: var(--ink-faint); }
.tg__tr { grid-column: 1 / -1; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-soft); }
.tgm--voice time { grid-column: 1 / -1; }
.tg__card { padding: 7px 10px; border-left: 3px solid var(--brand-ink); border-radius: 6px; background: var(--brand-tint); font-size: 13.5px; }
.tg__card span { display: block; font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.tg__kb { align-self: flex-start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: 88%; margin-top: -2px; }
.tg__kb span { padding: 8px 4px; border-radius: 10px; background: var(--surface); color: var(--brand-ink); text-align: center; font-size: 13.5px; font-weight: 600; }
.tg__input { display: flex; align-items: center; gap: 10px; padding: 8px 10px 16px; border-top: 1px solid var(--rule); }
.tg__input > span:first-child { flex: 1; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink-faint); }
.tg__mic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; }
.tg__mic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- (в) панель контроля чатов ---------- */
.chats__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.useg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fill); }
.useg span { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.useg small { font-size: 12px; color: var(--ink-faint); }
.useg .is-on { background: var(--seg-on); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.chats__time { font-size: 12.5px; color: var(--ink-faint); }
.crow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .65fr) minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, 1.25fr); gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--rule); }
.crow--head { padding-top: 9px; padding-bottom: 9px; background: var(--surface-2); font-size: 12.5px; font-weight: 500; color: var(--ink-faint); }
.crow__name { font-weight: 500; }
.crow__ch { color: var(--ink-soft); }
.crow__who { display: flex; align-items: center; gap: 8px; }
.crow__last { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .st { justify-self: start; }
.chats__kor { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: var(--brand-tint); }
.chats__kor p { font-size: 13.5px; padding-top: 4px; }
@container (max-width: 760px) {
  .crow--head { display: none; }
  .crow { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "name name st" "who ch ch" "last last last"; gap: 6px 12px; padding: 12px 14px; }
  .crow__name { grid-area: name; }
  .crow .st { grid-area: st; justify-self: end; }
  .crow__who { grid-area: who; }
  .crow__ch { grid-area: ch; align-self: center; font-size: 13px; }
  .crow__last { grid-area: last; white-space: normal; }
  .chats__top { padding: 10px 14px; }
  .chats__time { display: none; }
  .chats__kor { padding: 12px 14px; }
}
@container (max-width: 380px) {
  .useg span { padding: 5px 9px; font-size: 12.5px; }
}

/* ---------- (г) журнал и лестница доверия ---------- */
.log__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.ladder { padding: 20px 22px; background: var(--surface-2); border-right: 1px solid var(--rule); }
.lrole { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-md); }
.lrole--sel { background: var(--surface); border-color: var(--hairline); }
.lrole__name { font-weight: 600; }
.lrole small { font-size: 12.5px; color: var(--ink-faint); }
.lbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lbar i { height: 6px; border-radius: 3px; background: var(--fill-hover); }
.lbar[data-lvl="1"] i:nth-child(1), .lbar[data-lvl="2"] i:nth-child(-n+2), .lbar[data-lvl="3"] i { background: var(--brand-ink); }
.lrole__stat { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.lrole .b { align-self: flex-start; margin-top: 4px; }
.lrole__lock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-faint); }
.lrole__lock svg { width: 14px; height: 14px; }
.journal { padding: 20px 22px; }
.jrow { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); }
.jrow time { padding-top: 1px; font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.jrow small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-faint); }
@container (max-width: 700px) {
  .log__body { grid-template-columns: minmax(0, 1fr); }
  .ladder { padding: 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .journal { padding: 16px; }
}
@container (max-width: 440px) {
  .jrow { grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; }
  .jrow .st { grid-column: 2; justify-self: start; }
}

/* ---------- для кого ---------- */
.ind { border-top: 1px solid var(--hairline); }
.ind__row { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 5fr) minmax(0, 2.2fr); gap: 16px 40px; padding: 32px 0 24px; border-bottom: 1px solid var(--hairline); }
.ind__who h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.03em; }
.ind__who p { margin-top: 6px; font-size: 15px; color: var(--ink-faint); }
.ind__tasks { list-style: none; margin: 0; padding: 0; }
.ind__tasks li { position: relative; padding: 0 0 10px 22px; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.ind__tasks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ink); }
.ind__start { font-size: 14px; color: var(--ink-faint); }
.ind__start b { display: table; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: 15px; font-weight: 600; }

/* ---------- интеграции ---------- */
.sec--tight { padding: clamp(56px, 7vw, 88px) 0; }
.integ { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 28px 56px; align-items: center; }
.h3x { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.032em; }
.integ p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
.integ__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.integ__list li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--ground); font-size: 16px; font-weight: 500; }

/* ---------- цены ---------- */
.price { display: inline-block; margin-top: 12px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }

/* ---------- контакты ---------- */
.btn--lg { min-height: 52px; padding: 14px 30px; font-size: 17px; }
.contact .contact__ways { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; max-width: 920px; margin: 48px auto 0; padding: 0; border-top: 1px solid var(--hairline); text-align: left; }
.contact__ways li { padding-top: 18px; }
.contact__ways span { display: block; font-size: 14px; color: var(--ink-faint); }
.contact__ways a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- подвал ---------- */
.foot .wrap { display: block; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; }
.foot__brand p { margin-top: 10px; }
.foot__brand .brand { display: inline-flex; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-soft); }
.foot li a:hover { color: var(--ink); }
.foot__brand p a { color: var(--ink-soft); }
.foot__legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-faint); }

/* ---------- v2: планшет и телефон ---------- */
@media (max-width: 1020px) {
  .ind__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .ind__start { grid-column: 2; }
  .contact .contact__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .feat, .feat--wide .feat__text { grid-template-columns: minmax(0, 1fr); }
  .feat { gap: 32px; }
  .feat--wide .feat__text h3 { grid-row: auto; }
  .feat__text p { font-size: 16.5px; }
  .notes3 { grid-template-columns: minmax(0, 1fr); }
  .ind__row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0 18px; }
  .ind__start { grid-column: auto; }
  .ind__tasks li { font-size: 16px; }
  .integ { grid-template-columns: minmax(0, 1fr); }
  .integ__list li { font-size: 15px; padding: 9px 16px; }
  .win { border-radius: 16px; }
  .foot li a { min-height: 44px; }
}
@media (max-width: 480px) {
  .contact .contact__ways { grid-template-columns: minmax(0, 1fr); }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .shot--phone { padding: 9px 6px; }
}

@media (max-width: 1120px) { .foot li a { min-height: 44px; } }
