/* Питер Гетти — AI-системы для бизнеса · REDESIGN 2026-07
   Direction: forensic / engineered authority — committed deep-forest drench.
   Type: Golos Text (RU humanist grotesque) + JetBrains Mono (forensic data layer). */

:root {
  /* Brand-aligned palette (Deep Forest Green, Titanium Gray, Signal White, Gold Accent) */
  --bg:        #F8F9FA;   /* Signal White (основной фон страниц) */
  --surface:   #ffffff;
  --ink:       #0B3022;   /* Deep Forest Green для основного текста на светлом фоне */
  --ink-2:     #3A3F42;   /* Titanium Gray для второстепенного текста */
  --muted:     #51615a;   /* secondary text */
  --line:      #d3dad3;
  --line-soft: #e2e7e1;

  --forest:    #0B3022;   /* Deep Forest Green (основной фон темных блоков) */
  --forest-2:  #102619;   /* dark surface */
  --forest-3:  #18341f;   /* dark elevated / hairline */
  --on-dark:       #F8F9FA;   /* Signal White на темном фоне */
  --on-dark-2:     #b9ccbf;
  --on-dark-muted: #8aa394;

  --green:        #1f8a63;  /* signal: verified */
  --green-bright: #38c98c;  /* on-dark accent */
  --green-deep:   #0B3022;  /* Deep Forest Green */
  --titanium:     #3A3F42;  /* Titanium Gray */
  --gold:         #D4AF37;  /* Gold Accent (матовое золото для точечных акцентов) */
  --risk:         #e2664a;  /* money found / red flag */
  --risk-soft:    #f4d9d1;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);

  --sans-title: 'Golos Text', system-ui, -apple-system, sans-serif;
  --sans-body:  'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);            /* ease-out-quart-ish */
  --z-sticky: 50; --z-nav: 60;

  --gold:      #D4AF37;   /* металлик-акцент (статусы, детали) */
  --gold-deep: #AA7C11;
  --glow:      0 0 24px rgba(56,201,140,.35);
  --glow-soft: 0 0 60px rgba(31,138,99,.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-body);
  font-size: 17.5px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-family: var(--sans-title); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--green-deep); text-decoration: none; }
strong, b { font-weight: 700; color: var(--ink); }
/* на тёмных панелях жирный наследует светлый цвет контейнера (иначе ink-на-тёмном невидим) */
.hero b, .hero strong, .section--dark b, .section--dark strong, .doctool b, .doctool strong, .foot b, .foot strong, .step b, .step strong { color: inherit; }
em { font-style: normal; color: var(--green-deep); }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding: clamp(64px, 9vw, 128px) 0; }

/* a single, deliberate kicker system (mono) — NOT an eyebrow on every section */
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; }
.kicker::before { display: none; }
.section--dark .kicker { color: var(--green-bright); }

.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { font-size: clamp(29px, 4.2vw, 52px); }
.head p { color: var(--muted); font-size: clamp(17px,2vw,20px); margin: 18px 0 0; max-width: 60ch; }
.section--dark .head p { color: var(--on-dark-2); }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans-body); font-size: 16px; font-weight: 600; padding: 15px 26px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); letter-spacing: -.01em; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 24px -12px rgba(31,138,99,.7); }
.btn--primary:hover { background: #1c9b6e; transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(31,138,99,.85); color:#fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }
.section--dark .btn--primary { background: var(--green-bright); color: #06140d; box-shadow: 0 14px 30px -12px rgba(56,201,140,.55); }
.section--dark .btn--primary:hover { background: #4cdc9d; }
.section--dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.22); }
.section--dark .btn--ghost:hover { border-color: var(--green-bright); color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-sub { font-size: 14.5px; color: var(--muted); font-family: var(--mono); letter-spacing: -.01em; }
.section--dark .btn-sub { color: var(--on-dark-muted); }

/* ---------------- header ---------------- */
.hdr { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--forest) 92%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.07); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-dark); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand__txt { font-family: var(--sans-title); line-height: 1.05; }
.brand__txt small { display: block; font: 500 9.5px/1.3 var(--mono); letter-spacing: .07em; color: var(--on-dark-muted); text-transform: uppercase; margin-top: 2px; }
.brand__logo { width: 32px; height: 32px; flex-shrink: 0; }
.brand__mk { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(150deg, var(--green) , var(--green-deep)); color:#fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-dark-2); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--on-dark); }
.nav__cta { color: #06140d !important; background: var(--green-bright); padding: 9px 17px; border-radius: 8px; font-weight: 700 !important; }
.nav__cta:hover { background:#4cdc9d; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--on-dark); margin: 4px auto; transition: .2s; }

/* ---------------- hero (тихий, editorial) ---------------- */
.hero { background: radial-gradient(140% 130% at 50% -20%, #12291d 0%, var(--forest) 62%); color: var(--on-dark); position: relative; overflow: clip; }
/* ambient drift-пятно (адаптация motion-языка antigravity.google под спокойный бренд: CSS-only, без canvas/WebGL) */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 640px; height: 640px; top: -220px; right: -180px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(56,201,140,.28), rgba(212,175,55,.12) 46%, transparent 72%);
  filter: blur(70px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-60px, 40px) rotate(16deg); } }
@media (prefers-reduced-motion: reduce){ .hero::before { animation: none; } }
.hero__inner { max-width: 900px; padding-block: clamp(84px, 13vw, 176px); position: relative; z-index: 1; }

/* флагман-hero главной: fullscreen + canvas-рой частиц */
.hero--flag { min-height: 92vh; display: grid; align-items: center; }
.hero--flag .hero__inner { padding-block: clamp(64px, 9vw, 120px); }
.hero--flag h1 { font-size: clamp(42px, 6.6vw, 88px); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.32); border-radius: 14px; z-index: 1; }
.hero__hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--green-bright); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .hero__hint span { animation: none; } }
@media (max-width: 760px){ .hero--flag { min-height: 84vh; } .hero__hint { display: none; } }
.hero h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.035em; max-width: 17ch; color: var(--on-dark); }
.hero__sub { font-size: clamp(17px, 2vw, 21px); color: var(--on-dark-2); max-width: 60ch; margin: 28px 0 0; line-height: 1.6; }
.hero__cta { margin-top: 38px; }
.hero__note { margin-top: 26px; font-size: 14.5px; color: var(--on-dark-muted); max-width: 56ch; line-height: 1.55; }

/* ---------------- about (raised, trust) ---------------- */
.about { display:grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px,4vw,64px); align-items:center; }
.about__port { aspect-ratio: 4/5; border-radius: 18px; background:
   radial-gradient(120% 90% at 30% 10%, #1a3a2a, var(--forest)); position: relative; overflow: clip; box-shadow: 0 30px 60px -30px rgba(12,26,19,.5); border: 1px solid var(--forest-3); display:grid; place-items:center; }
.about__port .mono { font-family: var(--mono); font-size: 10.5px; letter-spacing:.18em; text-transform:uppercase; color: var(--on-dark-muted); position:absolute; bottom: 16px; left: 18px; }
.about__port .pg { font-weight: 800; font-size: 72px; color: rgba(255,255,255,.07); letter-spacing: -.04em; }
.about__name { font-size: clamp(28px,3.6vw,42px); margin: 16px 0 18px; }
.about p { color: var(--ink-2); font-size: 18px; max-width: 56ch; }
.about__meta { display:flex; gap: 28px; flex-wrap:wrap; margin-top: 26px; }
.about__meta div { }
.about__meta .n { font-family: var(--mono); font-weight: 700; font-size: 26px; color: var(--gold-deep); letter-spacing: -.02em; }
.about__meta .l { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------------- method ---------------- */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,2.6vw,34px); }
.princ { padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s var(--ease); }
.princ:hover { border-color: var(--green); transform: translateY(-3px); }
.princ__ico { width: 46px; height: 46px; border-radius: 12px; background: #e7f2ec; color: var(--green-deep); display:grid; place-items:center; margin-bottom: 20px; }
.princ__ico svg { width: 23px; height: 23px; }
.princ h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -.02em; }
.princ p { color: var(--muted); font-size: 15.5px; margin: 0; }
.method__close { grid-column: 1/-1; margin-top: clamp(20px,3vw,32px); font-size: clamp(20px,2.6vw,27px); font-weight: 700; letter-spacing: -.025em; color: var(--ink); max-width: 30ch; line-height: 1.25; }
.method__close em { color: var(--green); }

/* ---------------- dark sections ---------------- */
.section--dark { background: var(--forest); color: var(--on-dark); }
.section--dark h2,.section--dark h3 { color:#fff; }

/* ---------------- proof band ---------------- */

/* ---------------- capabilities ---------------- */

/* ---------------- narrative proof ---------------- */
.narr { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.narr__lead h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; margin: 0 0 20px; }
.narr__lead p { color: var(--ink-2); font-size: 17.5px; max-width: 46ch; margin: 0 0 30px; }
.narr__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; align-self: center; }
.narr__points li { font-size: 17px; color: var(--ink); padding: 20px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.narr__points li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 820px){ .narr{ grid-template-columns: 1fr; gap: 30px; } .narr__points li{ font-size: 16px; padding-block: 16px; } }

/* ---------------- cases ---------------- */
.cases { display: grid; gap: 22px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px,3vw,38px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(22px,3vw,44px); transition: border-color .2s, box-shadow .2s; }
.case:hover { border-color: var(--green); box-shadow: 0 30px 60px -40px rgba(12,26,19,.35); }
.case__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.case h3 { font-size: clamp(19px,2.1vw,24px); letter-spacing: -.025em; margin-bottom: 12px; }
.case__ctx { color: var(--muted); font-size: 15px; }
.case__ctx b, .case__ctx .amt { font-family: var(--mono); color: var(--ink); font-weight: 700; }
.finds { list-style: none; padding: 0; margin: 0 0 6px; display:grid; gap: 12px; }
.finds li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.finds .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; }
.finds .dot--r { background: var(--risk); box-shadow: 0 0 0 4px rgba(226,102,74,.13); }
.finds .dot--g { background: var(--green); box-shadow: 0 0 0 4px rgba(31,138,99,.13); }
.finds b { font-family: var(--mono); font-size: 13.5px; }
.case__win { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.case__win .amt { font-family: var(--mono); font-weight: 700; font-size: clamp(22px,2.4vw,30px); color: var(--green-deep); letter-spacing: -.02em; }
.case__win p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.case__winhead { display:flex; align-items:center; gap: 10px; margin-bottom: 12px; }
.case__winico { width: 38px; height: 38px; flex:none; border-radius: 10px; background: #e7f2ec; color: var(--green-deep); display:grid; place-items:center; }
.case__winico svg { width: 20px; height: 20px; }
.case__winlbl { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.case__side .case__win { margin-top: auto; }
.case__mock { padding: 10px 10px 6px; }
.case__mock::before { height: 16px; }
@media (max-width: 720px){ .case{ grid-template-columns: 1fr; } }

/* ---------------- instant audit (dark band) ---------------- */
.audit__wrap { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,4vw,64px); align-items:center; }
.audit h2 { font-size: clamp(28px,3.8vw,46px); letter-spacing: -.03em; }
.audit p { color: var(--on-dark-2); max-width: 48ch; margin: 18px 0 28px; }
.steps { display:grid; gap: 2px; border-radius: 14px; overflow:hidden; border:1px solid var(--forest-3); }
.step { display:flex; align-items:center; gap: 14px; padding: 15px 20px; background: var(--forest-2); font-size: 14.5px; color: var(--on-dark-2); }
.step .si { font-family: var(--mono); font-size: 12px; color: var(--green-bright); width: 24px; }
.step .sx { margin-left:auto; color: var(--on-dark-muted); }
.step--done { color: var(--on-dark); }

/* ---------------- practices ---------------- */

/* ---------------- faq ---------------- */
.faq { display:grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--green); }
.faq summary { list-style:none; cursor:pointer; font-weight: 600; font-size: 17px; padding: 16px 0; display:flex; justify-content:space-between; gap: 16px; align-items:center; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after { content:"+"; font-family: var(--mono); color: var(--green); font-size: 22px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; max-width: 70ch; }

/* ---------------- lead magnet ---------------- */
.lm { background: linear-gradient(135deg, var(--forest-2), var(--forest)); border:1px solid var(--forest-3); border-radius: 22px; padding: clamp(30px,4vw,52px); display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,56px); align-items:center; color: var(--on-dark); }
.lm h2 { font-size: clamp(24px,2.8vw,34px); color:#fff; letter-spacing: -.03em; }
.lm p { color: var(--on-dark-2); margin: 16px 0 0; font-size: 16px; }
.lm__form { display:grid; gap: 12px; }
.lm__label { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--on-dark-muted); }
.lm__row { display:flex; gap: 10px; flex-wrap:wrap; }
input, textarea { font-family: var(--sans); font-size: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--forest-3); background: rgba(255,255,255,.04); color: var(--on-dark); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--on-dark-muted); }
input:focus, textarea:focus { outline: none; border-color: var(--green-bright); background: rgba(255,255,255,.07); }
.lm__row input { flex: 1 1 200px; }
.lm__row .btn { flex-shrink: 0; }
.lm__tg { font-size: 13.5px !important; color: var(--on-dark-muted) !important; }
.lm__tg a { color: var(--green-bright); }

/* ---------------- final cta ---------------- */
.final { text-align:center; }
.final h2 { font-size: clamp(28px,4vw,48px); letter-spacing: -.03em; max-width: 24ch; margin: 0 auto; }
.final > .container > p { color: var(--on-dark-2); max-width: 54ch; margin: 20px auto 0; }
.final .btn-row { justify-content:center; margin: 32px 0 0; }
.final__note { font-size: 14.5px !important; color: var(--on-dark-muted) !important; max-width: 52ch !important; margin: 22px auto 0 !important; }
.cform { max-width: 560px; margin: 0 auto; display:grid; gap: 12px; text-align:left; }
.cform__row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform .btn { justify-content:center; }
.contacts { display:flex; gap: 26px; justify-content:center; flex-wrap:wrap; margin-top: 36px; font-family: var(--mono); font-size: 14px; }
.contacts a { color: var(--on-dark-2); display:inline-flex; gap: 8px; align-items:center; }
.contacts a:hover { color: var(--green-bright); }
.contacts svg { width: 17px; height: 17px; }

/* ---------------- footer ---------------- */
.foot { background: #06110b; color: var(--on-dark-muted); padding: 40px 0; border-top: 1px solid var(--forest-3); position: relative; overflow: hidden; }
.foot__wordmark { font-family: var(--sans-title); font-weight: 800; font-size: clamp(84px, 16.5vw, 236px); line-height: .82; letter-spacing: -.04em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); user-select: none; pointer-events: none; margin: 0 0 8px; white-space: nowrap; }
.foot__in { display:flex; flex-wrap:wrap; gap: 16px 32px; align-items:center; justify-content:space-between; position: relative; }

/* каретка печатной машинки */
.tw--typing::after { content:""; display:inline-block; width:.08em; height:.85em; background:currentColor; margin-left:3px; vertical-align:baseline; animation: twblink .8s steps(1) infinite; }
@keyframes twblink { 50% { opacity: 0; } }

/* статус-чип направлений */
.chip { display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--green-deep); border:1px solid rgba(31,138,99,.4); border-radius:999px; padding:4px 10px; }
.chip::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); }
.section--dark .chip, .hero .chip, .doctool .chip { color: var(--green-bright); }

/* сетка шести направлений платформы */
.dirs { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dir { display:flex; flex-direction:column; gap:12px; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:26px; color:inherit; transition: transform .25s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.dir__top { display:flex; justify-content:space-between; align-items:center; }
.dir__ix { font-family:var(--mono); font-size:12.5px; font-weight:600; letter-spacing:.1em; color:var(--gold-deep); transition: color .2s; }
.dir h3 { font-size:20px; letter-spacing:-.02em; }
.dir p { font-size:14.5px; color:var(--muted); line-height:1.55; margin:0; }
.dir__go { margin-top:auto; padding-top:10px; font-family:var(--mono); font-size:13px; font-weight:600; color:var(--green-deep); }
.dir:active { transform: scale(.99); }
@media (hover:hover){
  .dir:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--glow-soft); }
  .dir:hover .dir__ix { color: var(--gold); }
}
.dirs--blog { grid-template-columns: 1fr 1fr; } /* 4 карточки без «сироты» */
@media (max-width: 1020px){ .dirs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .dirs, .dirs--blog { grid-template-columns: 1fr; } }

/* ---------------- how: sticky-эпизоды «как это работает» ---------------- */
.how .head { margin-bottom: clamp(10px, 3vw, 30px); }
.how .head h2 { color: var(--on-dark); }
.how .kicker { color: var(--green-bright); }
.ep { display: grid; grid-template-columns: minmax(300px, 1fr) 1.15fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(24px, 5vh, 60px); }
.ep__txt { position: sticky; top: 24vh; align-self: start; }
.ep__txt h3 { font-size: clamp(24px, 3vw, 38px); color: var(--on-dark); margin: 14px 0 16px; letter-spacing: -.025em; }
.ep__txt p:not(.kicker) { color: var(--on-dark-2); font-size: 16.5px; line-height: 1.65; max-width: 44ch; }
.ep__vis { min-height: 100vh; display: flex; align-items: center; }
.ep__vis .mock-frame { width: 100%; }
@media (max-width: 900px){
  .ep { grid-template-columns: 1fr; padding-block: 22px; }
  .ep__txt { position: static; }
  .ep__vis { min-height: 0; }
}

/* ---------------- точечный фон CTA (canvas из graviton.js) ---------------- */
.dots-bg { position: relative; }
.dots-bg > canvas.dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dots-bg > .container { position: relative; }

/* ---------------- кино-интро (кнопка «Смотреть, как это работает») ---------------- */
.cine { position: fixed; inset: 0; z-index: 200; background: rgba(5,14,9,.96); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: clamp(18px,4vw,48px); opacity: 0; transition: opacity .35s var(--ease); }
.cine--in { opacity: 1; }
.cine__stage { width: min(780px, 94vw); align-self: center; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cine__stage--in { opacity: 1; transform: none; }
.cine__cap { font-family: var(--mono); font-size: clamp(12px,1.6vw,15px); letter-spacing: .08em; text-transform: uppercase; color: var(--green-bright); margin: 14px 0 4px; }
.cine__skip { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--on-dark); border-radius: 9px; padding: 9px 16px; font: 600 13.5px var(--mono); cursor: pointer; transition: border-color .2s, color .2s; }
.cine__skip:hover { border-color: var(--green-bright); color: var(--green-bright); }

/* ---------------- орб-переходы между блоками ---------------- */
.orb { position: relative; height: 170px; display: grid; place-items: center; pointer-events: none; }
.orb::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(56,201,140,.42), rgba(31,138,99,.22) 46%, transparent 70%);
  filter: blur(42px); opacity: .5; transform: scale(.6);
  transition: transform .9s var(--ease), opacity .9s var(--ease); }
.orb__label { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); opacity: .85; }
.orb--in::before { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce){ .orb::before { transform: none; opacity: .65; } }
@media (max-width: 760px){ .orb { height: 100px; } .orb::before { width: 210px; height: 210px; filter: blur(32px); } }

/* ---------------- split: для собственника / для команды ---------------- */
.split { display: flex; gap: 18px; }
.split__col { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 40px);
  transition: flex .45s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.split__col h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 16px; }
.split__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.split__col li { padding-left: 24px; position: relative; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.split__col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (hover: hover){
  .split:hover .split__col:not(:hover) { flex: .82; }
  .split__col:hover { flex: 1.18; border-color: var(--green); box-shadow: var(--glow-soft); }
}
@media (max-width: 820px){ .split { flex-direction: column; } }

/* ---------------- карусель кейсов и отраслей ---------------- */
.carou__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carou__track::-webkit-scrollbar { display: none; }
.ccard { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.ccard__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.ccard__tag--gold { color: var(--gold-deep); }
.ccard h3 { font-size: 19px; letter-spacing: -.02em; }
.ccard p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.ccard a { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--green-deep); }
.carou__ui { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 18px; }
.carou__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.carou__btn:hover { border-color: var(--green); box-shadow: var(--glow-soft); }
.carou__dots { display: flex; gap: 7px; }
.carou__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s; }
.carou__dot.is-on { background: var(--green); }
.foot__tag { font-weight: 700; color: var(--on-dark); font-size: 17px; letter-spacing: -.02em; }
.foot a { color: var(--on-dark-2); }
.foot a:hover { color: var(--green-bright); }
.foot__meta { font-size: 13.5px; font-family: var(--mono); }

/* ---------------- reveal motion ----------------
   Паттерн :not(.in): после появления .reveal не держит transform/opacity,
   поэтому hover-подъём карточек работает, а transition карточек не затирается. */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
/* скрытое состояние только когда JS активен (класс .js на <html>) → без JS контент виден */
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
/* карточки с собственными hover-переходами: один комбинированный список */
.princ.reveal, .start__step.reveal, .case.reveal {
  transition: opacity .6s var(--ease), transform .3s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
@media (prefers-reduced-motion: reduce){ .reveal, .js .reveal:not(.in){ opacity:1 !important; transform:none !important; transition:none !important; } }
/* фото «оседает» на месте (scale) вместо общего slide-up */
.about__port.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .about__port.reveal:not(.in) { opacity: 0; transform: scale(1.045); }

/* ---------------- header hide-on-scroll ---------------- */
.hdr { transition: transform .3s var(--ease); }
.hdr--hidden { transform: translateY(-100%); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px){
  .about{ grid-template-columns: 1fr; } .about__port{ max-width: 280px; aspect-ratio: 3/3.4; }
  .method{ grid-template-columns: 1fr; }
  .audit__wrap{ grid-template-columns: 1fr; }
  .lm{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav{ position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--forest); padding: 18px var(--gut) 26px; gap: 16px; border-bottom: 1px solid var(--forest-3); transform: translateY(-130%); transition: transform .3s var(--ease); align-items: stretch; }
  .nav.open{ transform: none; }
  .nav-toggle{ display:block; }
  .cform__row{ grid-template-columns: 1fr; }
}

/* founder photo in the About frame (light section, restored type scale) */
.about__port { display: block; }
.about__port img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__port figcaption { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 36px 16px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(8,17,11,.66)); }

/* ---- long-read prose (privacy, blog articles) ---- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: 8px; }
.legal .upd { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { margin: 34px 0 12px; font-size: 1.25rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { margin: 10px 0 10px 20px; }
.legal li { margin: 6px 0; }
.legal .fill { background: #fde68a; color: #7c2d12; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal .note { background: #f1f5f9; border-left: 3px solid var(--green); padding: 14px 18px; border-radius: 8px; margin: 22px 0; }

/* ---- простая линейная схема процесса (uslugi #documents) ---- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 22px 0 26px; }
.flow__step { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 128px; }
.flow__ix { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--green); }
.flow__lbl { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.flow__step--result { background: #e7f2ec; border-color: var(--green); }
.flow__step--result .flow__lbl { color: var(--ink); font-weight: 600; }
.flow__step--result .amt { font-family: var(--mono); font-weight: 700; color: var(--green-deep); }
.flow__arrow { color: var(--line); font-size: 16px; flex-shrink: 0; }
@media (max-width: 620px){ .flow{ flex-direction: column; align-items: stretch; } .flow__arrow{ align-self: center; transform: rotate(90deg); } }

/* ---- uslugi: detailed service blocks ---- */
.svc { display: grid; gap: 4px; padding: clamp(30px,4vw,52px) 0; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc__top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.svc__ix { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold-deep); }
.svc__top .chip { margin-left: auto; }
.svc__mock { max-width: 640px; margin-top: 20px; }
.svc__mock--wide { max-width: 900px; }
.svc { position: relative; }
.svc > span[id] { position: absolute; top: -70px; } /* legacy-якоря с поправкой на sticky-шапку */
.svc__ico { width: 46px; height: 46px; border-radius: 12px; background: #e7f2ec; color: var(--green-deep); display: grid; place-items: center; flex-shrink: 0; }
.svc__ico svg { width: 23px; height: 23px; }
.svc__tier { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.svc__tier--now { background: rgba(31,138,99,.12); color: var(--green-deep); }
.svc__tier--next { background: #eef0ec; color: var(--muted); }
.svc h2 { font-size: clamp(24px,3vw,34px); letter-spacing: -.03em; margin: 6px 0 4px; }
.svc__list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 13px; max-width: 780px; }
.svc__list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.svc__list .c { color: var(--green); font-weight: 700; }
.svc__list b { color: var(--ink); font-weight: 600; }
.svc__demo { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.svc__demo a { font-family: var(--mono); font-size: 13.5px; color: var(--green-deep); font-weight: 600; }

/* ---- live audit widget (в блоке #audit, тёмный) ---- */
.la-card { background: var(--forest-2); border: 1px solid var(--forest-3); border-radius: 18px; padding: clamp(24px,3vw,34px); }
.la-field { margin-bottom: 16px; }
.la-label { display: block; font-size: 13.5px; color: var(--on-dark-2); margin-bottom: 8px; }
.la-input { width: 100%; font-family: var(--sans); font-size: 15.5px; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--forest-3); background: rgba(255,255,255,.04); color: var(--on-dark); }
.la-input::placeholder { color: var(--on-dark-muted); }
.la-input:focus { outline: none; border-color: var(--green-bright); background: rgba(255,255,255,.07); }
.la-file { padding: 10px 14px; color: var(--on-dark-2); }
.la-file::file-selector-button { font-family: var(--sans); font-size: 13px; padding: 7px 13px; margin-right: 12px; border-radius: 8px; border: 1px solid var(--forest-3); background: rgba(255,255,255,.06); color: var(--on-dark); cursor: pointer; }
.la-submit { width: 100%; justify-content: center; margin-top: 4px; }
.la-note { font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); margin: 12px 0 0; text-align: center; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.45; text-align: left; color: var(--on-dark-muted); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--green-bright); }
.consent a { color: var(--green-bright); text-decoration: underline; }
.consent--light { color: #5b6b62; }
.consent--light a { color: var(--accent, #1f8a63); }
.la-msg { font-size: 14px; color: var(--risk); margin: 10px 0 0; display: none; }
.la-msg.on { display: block; }
.la-loader__title { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 6px; letter-spacing: -.02em; }
.la-loader__sub { font-size: 14px; color: var(--on-dark-2); margin: 0 0 22px; }
.la-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.la-step { display: flex; align-items: center; gap: 13px; font-size: 15px; color: var(--on-dark-muted); transition: color .3s var(--ease); }
.la-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--forest-3); color: var(--on-dark-2); flex-shrink: 0; transition: background .3s var(--ease); }
.la-step.is-active, .la-step.is-done { color: var(--on-dark); }
.la-step.is-active .la-dot, .la-step.is-done .la-dot { background: var(--green); color: #fff; }
.la-result__title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 12px; letter-spacing: -.02em; }
.la-summary { font-size: 15.5px; color: var(--on-dark-2); margin: 0 0 20px; max-width: 60ch; line-height: 1.55; }
.la-result .btn { margin: 0 12px 12px 0; }
@media (prefers-reduced-motion: reduce){ .la-step, .la-dot{ transition: none; } }

/* ---- hero ghost button (hero is dark, but not .section--dark) ---- */
.hero .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.22); }
.hero .btn--ghost:hover { border-color: var(--green-bright); color:#fff; transform: translateY(-2px); }

/* ---- "подробнее" section link ---- */
.more-link { display:inline-flex; align-items:center; gap:7px; margin-top: 28px; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--green-deep); }
.more-link::after { content:"→"; transition: transform .2s var(--ease); }
.more-link:hover::after { transform: translateX(4px); }
.section--dark .more-link { color: var(--green-bright); }

/* ---- "Как начнём" — numbered steps ---- */
.start { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; counter-reset: st; }
.start__step { padding: 26px 24px; background: var(--surface); border:1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s var(--ease); }
.start__step:hover { border-color: var(--green); transform: translateY(-3px); }
.start__step::before { counter-increment: st; content: counter(st); font-family: var(--mono); font-weight:700; font-size: 15px; color: var(--green-deep); display:grid; place-items:center; width: 34px; height: 34px; border-radius: 9px; background: #e7f2ec; margin-bottom: 16px; }
.start__step h3 { font-size: 17px; letter-spacing:-.02em; margin-bottom: 8px; }
.start__step p { font-size: 14.5px; color: var(--muted); margin:0; }
@media (max-width: 900px){ .start{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .start{ grid-template-columns: 1fr; } }

/* ---- case study "что доказывает" callout (cases.html) ---- */
.case-proves { margin: 20px 0 0; font-size: 15px; color: var(--muted); border-left: 2px solid var(--green); padding: 2px 0 2px 16px; line-height: 1.5; }
.case-proves b { color: var(--ink); font-weight: 700; }

/* ---- subpage hero (тихий, короче главной) ---- */
.hero--sub .hero__inner { padding-block: clamp(58px, 9vw, 112px); max-width: 820px; }
.hero--sub h1 { font-size: clamp(34px, 5vw, 60px); }
.hero--sub .hero__sub { margin-top: 22px; }

/* ---- uslugi: category intro + example ---- */
.svc__intro { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin: 8px 0 4px; }
.svc__eg { font-size: 14.5px; color: var(--muted); border-left: 2px solid var(--green); padding: 2px 0 2px 16px; margin: 16px 0 4px; max-width: 60ch; }
.svc__eg b { color: var(--ink); font-weight: 600; }

/* ---- documents tool panel (аудит-виджет, встроенный) ---- */
.doctool { margin: 24px 0 8px; background: var(--forest); border: 1px solid var(--forest-3); border-radius: 18px; padding: clamp(24px, 3vw, 38px); color: var(--on-dark); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: center; }
.doctool h3 { color: #fff; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.025em; }
.doctool__intro p { color: var(--on-dark-2); font-size: 15px; margin: 14px 0 0; }
.doctool__intro .doctool__note { font-size: 12.5px; color: var(--on-dark-muted); margin-top: 14px; }
@media (max-width: 820px){ .doctool{ grid-template-columns: 1fr; } }

/* ---- kontakty: primary contact rows ---- */
.kcontacts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 0; }
.kcontact { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s var(--ease); }
.kcontact:hover { border-color: var(--green); transform: translateY(-3px); }
.kcontact__ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #e7f2ec; color: var(--green-deep); display: grid; place-items: center; }
.kcontact__ico svg { width: 23px; height: 23px; }
.kcontact__l { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kcontact__v { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-top: 2px; }
@media (max-width: 620px){ .kcontacts{ grid-template-columns: 1fr; } }

/* ---- simple list (что прислать / что после) ---- */
.slist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; max-width: 640px; }
.slist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.slist .c { color: var(--green); font-weight: 700; }

/* ================= Interactive polish v1.1 ================= */

/* 2. Proof count-up: моноширинные цифры; итоговую ширину резервирует JS → единицы («млн ₽», «/7») не сдвигаются */

/* 1. Hero: stagger-хореография при первом входе (CSS-only, текст не ждёт JS) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero__inner > * { animation: rise .6s var(--ease) backwards; }
.hero__inner > :nth-child(2) { animation-delay: .09s; }
.hero__inner > :nth-child(3) { animation-delay: .18s; }
.hero__inner > :nth-child(4) { animation-delay: .26s; }
.hero__inner > :nth-child(5) { animation-delay: .32s; }

/* 1b. Tactile-кнопки: press + явный focus (hover-подъём уже есть) */
.btn:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.hero :focus-visible, .section--dark :focus-visible, .hdr :focus-visible, .doctool :focus-visible { outline-color: var(--green-bright); }

/* 3. Возможности: hover-depth только там, где есть настоящий hover (не липнет на тач); tap-state — :active */

/* 4. Нарратив: sticky-лид + акцент текущего пункта */
@media (min-width: 821px){ .narr__lead { position: sticky; top: 110px; } }
.narr__points li { transition: color .35s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); }
.narr__points.tracking li:not(.is-current) { color: var(--muted); }
.narr__points.tracking li.is-current { color: var(--ink); }

/* 5. CTA и контакты: живые состояния */
.kcontact { transition: border-color .2s, transform .2s var(--ease), box-shadow .25s var(--ease); }
.kcontact:active { transform: scale(.99); transition-duration: .12s; }
.kcontact__ico { transition: transform .25s var(--ease); }
.contacts a, .foot__meta a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s var(--ease), color .15s; }
@media (hover: hover){
  .kcontact:hover { box-shadow: 0 0 0 4px rgba(31,138,99,.10); }
  .kcontact:hover .kcontact__ico { transform: translateX(2px); }
  .contacts a:hover, .foot__meta a:hover { background-size: 100% 1px; }
}
.faq details[open] > p { animation: faqin .25s var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translateY(-4px); } }
input:focus, textarea:focus, .la-input:focus { box-shadow: 0 0 0 3px rgba(56,201,140,.18); }

/* reduced motion: всё статично */
@media (prefers-reduced-motion: reduce){
  .hero__inner > * { animation: none; }
  .faq details[open] > p { animation: none; }
}

/* ================= Floating Chat Widget (v1.2) ================= */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  font-family: var(--sans);
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(12,26,19,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.chat-btn:hover {
  transform: scale(1.05);
  background: #1c9b6e;
}

.chat-btn svg {
  width: 24px;
  height: 24px;
}

.chat-btn .close-ico {
  display: none;
}

.chat-widget.open .chat-btn .open-ico {
  display: none;
}

.chat-widget.open .chat-btn .close-ico {
  display: block;
}

.chat-box {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  height: 480px;
  max-height: calc(100vh - 120px);
  max-width: calc(100vw - 48px);
  background: color-mix(in srgb, var(--forest) 96%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  border: 1px solid var(--forest-3);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(12,26,19,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.chat-widget.open .chat-box {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.chat-hdr {
  padding: 16px 20px;
  background: var(--forest-2);
  border-bottom: 1px solid var(--forest-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-hdr__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.chat-hdr__title em {
  font-style: normal;
  color: var(--green-bright);
}

.chat-hdr__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--on-dark-muted);
}

.chat-hdr__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-msg--assistant {
  align-self: flex-start;
  background: var(--forest-2);
  color: var(--on-dark-2);
  border: 1px solid var(--forest-3);
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg--system {
  align-self: center;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 12px;
  text-align: center;
  max-width: 90%;
  padding-block: 4px;
}

.chat-input-row {
  padding: 12px 16px;
  background: var(--forest-2);
  border-top: 1px solid var(--forest-3);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14.5px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--forest-3);
  color: var(--on-dark);
}

.chat-input:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 2px rgba(56,201,140,0.18);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-bright);
  color: #06140d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-send:hover {
  background: #4cdc9d;
}

.chat-send svg {
  width: 18px;
  height: 18px;
}

.chat-send:disabled {
  background: var(--forest-3);
  color: var(--on-dark-muted);
  cursor: not-allowed;
}


.btn--gold:hover {
  background: #e5be49;
  box-shadow: 0 16px 32px -14px rgba(212,175,55,.75);
}


/* ============================================================
   STAGING ADD-ONS — self-hosted fonts + integ + a11y + caps grid
   ============================================================ */

/* Локальные вариативные шрифты (заменяют Google Fonts CDN) */
@font-face{ font-family:'Inter'; src:url('assets/fonts/inter-cyrillic.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:'Inter'; src:url('assets/fonts/inter-latin.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:'Golos Text'; src:url('assets/fonts/golos-text-cyrillic-wght.woff2') format('woff2'); font-weight:400 900; font-style:normal; font-display:swap; unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:'Golos Text'; src:url('assets/fonts/golos-text-latin-wght.woff2') format('woff2'); font-weight:400 900; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:'JetBrains Mono'; src:url('assets/fonts/jbmono-cyrillic.woff2') format('woff2'); font-weight:100 800; font-style:normal; font-display:swap; unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:'JetBrains Mono'; src:url('assets/fonts/jbmono-latin.woff2') format('woff2'); font-weight:100 800; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Скрытые для глаз, доступные скринридеру label'ы формы */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ================= Мокапы процессов (М1-М4): инлайн-SVG + CSS-циклы =================
   База (без .play) = финальный кадр: контент осмыслен без JS и при reduced-motion.
   .play вешает graviton.js по IO; циклы ~9-10с infinite. */
.mock-frame { background: linear-gradient(160deg, var(--forest-2), var(--forest)); border: 1px solid var(--forest-3); border-radius: 18px; padding: 12px 12px 8px; box-shadow: 0 30px 60px -40px rgba(12,26,19,.55); }
.mock-frame::before { content: ""; display: block; height: 20px; margin: 0 0 4px 2px;
  background:
    radial-gradient(circle 4.5px at 10px 10px, #e2664a 4.5px, transparent 5px),
    radial-gradient(circle 4.5px at 28px 10px, #d4af37 4.5px, transparent 5px),
    radial-gradient(circle 4.5px at 46px 10px, #38c98c 4.5px, transparent 5px); }
.mock { display: block; width: 100%; height: auto; }
.mock text { font-family: var(--mono); }
.mock * { transform-box: fill-box; }

/* палитра мокапов */
.mk-panel { fill: rgba(255,255,255,.03); stroke: var(--forest-3); }
.mk-h { fill: #e8f2ec; font-size: 14.5px; font-weight: 600; }
.mk-dim { fill: rgba(232,242,236,.5); font-size: 12px; }
.mk-row { fill: rgba(255,255,255,.10); }
.mk-rowbig { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.08); }
.mk-txt { fill: #cfe0d6; font-size: 13px; }
.mk-sub { fill: rgba(207,224,214,.6); font-size: 11.5px; }
.mk-risk { fill: rgba(226,102,74,.16); stroke: rgba(226,102,74,.5); }
.mk-riskdot { fill: #E2664A; }
.mk-riskmark { fill: #fff; font-size: 11px; font-weight: 700; }
.mk-beam { fill: rgba(56,201,140,.13); }
.mk-beamline { fill: #38c98c; }
.mk-plate { fill: rgba(226,102,74,.13); stroke: #E2664A; }
.mk-plate-t { fill: #ffb4a1; font-size: 14px; font-weight: 700; }
.mk-chip { fill: rgba(56,201,140,.14); stroke: rgba(56,201,140,.55); }
.mk-chip-t { fill: #7fe0b8; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.mk-btn { fill: #1f8a63; }
.mk-btn-t { fill: #fff; font-size: 13.5px; font-weight: 700; }
.mk-dot-g { fill: #38c98c; }
.mk-dot-y { fill: #D4AF37; }
.mk-ava { fill: #1f8a63; }
.mk-axis { fill: rgba(255,255,255,.12); }
.mk-bub-c { fill: rgba(255,255,255,.10); }
.mk-bub-a { fill: rgba(31,138,99,.30); }
.mk-checkdot { fill: #1f8a63; }
.mk-checkmark { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m3-d circle { fill: rgba(207,224,214,.7); }
.m3-d { opacity: 0; } /* тайпинг-точки видны только в цикле */
.m2-wait { opacity: .35; } /* финальный кадр: акт уже подписан, статус пригашен */
.m4-b { fill: #1f8a63; opacity: .9; transform-origin: 50% 100%; }
.mk-kpi { fill: #7fe0b8; font-size: 17px; font-weight: 700; }

/* --- М1: скан-луч → флаги → плашка --- */
.m1-beam { opacity: 0; }
.mock--m1.play .m1-beam { animation: m1beam 9s linear infinite; }
@keyframes m1beam { 0% { transform: translateY(0); opacity: 0; } 4% { opacity: 1; } 58% { transform: translateY(224px); opacity: 1; } 64%, 100% { transform: translateY(224px); opacity: 0; } }
.mock--m1.play .m1-f1 { animation: m1f1 9s linear infinite; }
.mock--m1.play .m1-f2 { animation: m1f2 9s linear infinite; }
.mock--m1.play .m1-f3 { animation: m1f3 9s linear infinite; }
@keyframes m1f1 { 0%, 16% { opacity: 0; } 21%, 100% { opacity: 1; } }
@keyframes m1f2 { 0%, 32% { opacity: 0; } 37%, 100% { opacity: 1; } }
@keyframes m1f3 { 0%, 48% { opacity: 0; } 53%, 100% { opacity: 1; } }
.mock--m1.play .m1-plate { animation: m1plate 9s var(--ease) infinite; }
@keyframes m1plate { 0%, 62% { opacity: 0; transform: translateY(10px); } 70%, 100% { opacity: 1; transform: translateY(0); } }

/* --- М2: подсветка акта → нажатие → галка → строка ЭЦП --- */
.mock--m2.play .m2-hl { animation: m2hl 9s linear infinite; }
@keyframes m2hl { 0%, 6% { stroke: rgba(255,255,255,.08); } 14%, 30% { stroke: #38c98c; } 40%, 100% { stroke: rgba(56,201,140,.45); } }
.mock--m2.play .m2-btn { animation: m2btn 9s var(--ease) infinite; }
@keyframes m2btn { 0%, 32% { transform: scale(1); } 35% { transform: scale(.965); } 38%, 100% { transform: scale(1); } }
.mock--m2.play .m2-check { animation: m2check 9s var(--ease) infinite; }
@keyframes m2check { 0%, 42% { opacity: 0; transform: scale(0); } 47% { opacity: 1; transform: scale(1.15); } 50%, 100% { opacity: 1; transform: scale(1); } }
.mock--m2.play .m2-sign { animation: m2sign 9s linear infinite; }
@keyframes m2sign { 0%, 52% { opacity: 0; } 60%, 100% { opacity: 1; } }
.mock--m2.play .m2-wait { animation: m2wait 9s linear infinite; }
@keyframes m2wait { 0%, 44% { opacity: 1; } 50%, 100% { opacity: .35; } }

/* --- М3: пузыри по очереди + тайпинг + чип заявки --- */
.mock--m3.play .m3-b { animation-duration: 10s; animation-timing-function: var(--ease); animation-iteration-count: infinite; }
.mock--m3.play .m3-b1 { animation-name: m3b1; }
.mock--m3.play .m3-b2 { animation-name: m3b2; }
.mock--m3.play .m3-b3 { animation-name: m3b3; }
.mock--m3.play .m3-b4 { animation-name: m3b4; }
@keyframes m3b1 { 0%, 4%  { opacity: 0; transform: translateY(8px); } 9%, 100%  { opacity: 1; transform: translateY(0); } }
@keyframes m3b2 { 0%, 26% { opacity: 0; transform: translateY(8px); } 31%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes m3b3 { 0%, 42% { opacity: 0; transform: translateY(8px); } 47%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes m3b4 { 0%, 66% { opacity: 0; transform: translateY(8px); } 71%, 100% { opacity: 1; transform: translateY(0); } }
.mock--m3.play .m3-d1 { animation: m3d1 10s linear infinite; }
.mock--m3.play .m3-d2 { animation: m3d2 10s linear infinite; }
@keyframes m3d1 { 0%, 12% { opacity: 0; } 14%, 24% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes m3d2 { 0%, 50% { opacity: 0; } 52%, 64% { opacity: 1; } 66%, 100% { opacity: 0; } }
.mock--m3.play .m3-d circle { animation: m3blink 1s linear infinite; }
.mock--m3.play .m3-d circle:nth-child(2) { animation-delay: .2s; }
.mock--m3.play .m3-d circle:nth-child(3) { animation-delay: .4s; }
@keyframes m3blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.mock--m3.play .m3-chip { animation: m3chip 10s var(--ease) infinite; }
@keyframes m3chip { 0%, 80% { opacity: 0; transform: translateY(8px); } 87%, 100% { opacity: 1; transform: translateY(0); } }

/* --- М4: бары растут → KPI → чип --- */
.mock--m4.play .m4-b1 { animation: m4b1 9s var(--ease) infinite; }
.mock--m4.play .m4-b2 { animation: m4b2 9s var(--ease) infinite; }
.mock--m4.play .m4-b3 { animation: m4b3 9s var(--ease) infinite; }
.mock--m4.play .m4-b4 { animation: m4b4 9s var(--ease) infinite; }
.mock--m4.play .m4-b5 { animation: m4b5 9s var(--ease) infinite; }
@keyframes m4b1 { 0%, 6%  { transform: scaleY(0); } 16%, 100% { transform: scaleY(1); } }
@keyframes m4b2 { 0%, 11% { transform: scaleY(0); } 21%, 100% { transform: scaleY(1); } }
@keyframes m4b3 { 0%, 16% { transform: scaleY(0); } 26%, 100% { transform: scaleY(1); } }
@keyframes m4b4 { 0%, 21% { transform: scaleY(0); } 31%, 100% { transform: scaleY(1); } }
@keyframes m4b5 { 0%, 26% { transform: scaleY(0); } 36%, 100% { transform: scaleY(1); } }
.mock--m4.play .m4-kpi { animation: m4kpi 9s var(--ease) infinite; }
.mock--m4.play .m4-k2 { animation-name: m4kpi2; }
@keyframes m4kpi  { 0%, 38% { opacity: 0; transform: translateY(6px); } 46%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes m4kpi2 { 0%, 46% { opacity: 0; transform: translateY(6px); } 54%, 100% { opacity: 1; transform: translateY(0); } }
.mock--m4.play .m4-chip { animation: m4chip 9s var(--ease) infinite; }
@keyframes m4chip { 0%, 58% { opacity: 0; transform: translateY(8px); } 66%, 100% { opacity: 1; transform: translateY(0); } }

/* --- М5: терминал-пульт gpm://проект/обзор (по мотивам варианта Peter) --- */
.mk-panel--term { fill: #0a130d; }
.mk-card { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.09); }
.mk-card--hl { fill: rgba(56,201,140,.07); stroke: rgba(56,201,140,.6); }
.mk-cardt { fill: rgba(207,224,214,.55); font-size: 10.5px; letter-spacing: .08em; }
.mk-ok { fill: #38c98c; font-size: 11.5px; font-weight: 600; }
.mk-big { fill: #f2f7f4; font-size: 24px; font-weight: 700; }
.mk-huge { fill: #38c98c; font-size: 30px; font-weight: 700; }
.mk-txt-lg { fill: #e8f2ec; font-size: 15px; }
.m5-bar { transform-origin: 50% 100%; fill: #38c98c; }
.m5-bar--dim { fill: #1f8a63; }
/* циклы М5: переиспользуем проверенные keyframes М1/М2/М4 */
.mock--m5.play .m5-bar1, .mock--m5.play .m5-bar6 { animation: m4b1 9s var(--ease) infinite; }
.mock--m5.play .m5-bar2 { animation: m4b2 9s var(--ease) infinite; }
.mock--m5.play .m5-bar3 { animation: m4b3 9s var(--ease) infinite; }
.mock--m5.play .m5-bar4 { animation: m4b4 9s var(--ease) infinite; }
.mock--m5.play .m5-bar5 { animation: m4b5 9s var(--ease) infinite; }
.mock--m5.play .m5-check { animation: m2check 9s var(--ease) infinite; }
.mock--m5.play .m5-aud { animation: m4kpi2 9s var(--ease) infinite; }
.mock--m5.play .m5-val { animation: m1plate 9s var(--ease) infinite; }
.mock--m5.play .m5-tg { animation: m4chip 9s var(--ease) infinite; }

/* reduced-motion: мокапы всегда финальный кадр */
@media (prefers-reduced-motion: reduce) {
  .mock--m1.play .m1-beam, .mock--m1.play .m1-f1, .mock--m1.play .m1-f2, .mock--m1.play .m1-f3, .mock--m1.play .m1-plate,
  .mock--m2.play .m2-hl, .mock--m2.play .m2-btn, .mock--m2.play .m2-check, .mock--m2.play .m2-sign, .mock--m2.play .m2-wait,
  .mock--m3.play .m3-b, .mock--m3.play .m3-d1, .mock--m3.play .m3-d2, .mock--m3.play .m3-d circle, .mock--m3.play .m3-chip,
  .mock--m4.play .m4-b1, .mock--m4.play .m4-b2, .mock--m4.play .m4-b3, .mock--m4.play .m4-b4, .mock--m4.play .m4-b5,
  .mock--m4.play .m4-kpi, .mock--m4.play .m4-chip,
  .mock--m5.play .m5-bar1, .mock--m5.play .m5-bar2, .mock--m5.play .m5-bar3, .mock--m5.play .m5-bar4,
  .mock--m5.play .m5-bar5, .mock--m5.play .m5-bar6, .mock--m5.play .m5-check, .mock--m5.play .m5-aud,
  .mock--m5.play .m5-val, .mock--m5.play .m5-tg { animation: none; }
}
