/* ============================================================
   Поток · светлый интерфейс. Один акцент: зелёный.
   Радиусы: карточки 16, контролы 12, бейджи и кнопки-пилюли.
   ============================================================ */
:root {
  --bg: #F5F7F4;
  --surface: #FFFFFF;
  --ink: #14201A;
  --muted: #56645C;
  --faint: #7C8A81;
  --border: #E3E8E2;
  --border-strong: #D3DCD5;
  --accent: #16803C;
  --accent-strong: #0F6A2F;
  --accent-soft: #E9F5EC;
  --accent-softer: #F2F9F4;
  --accent-border: #CBE5D3;
  --danger: #B4372E;
  --danger-soft: #FBEFEE;
  --shadow: 0 1px 2px rgba(18, 32, 24, .05), 0 10px 30px rgba(18, 32, 24, .07);
  --shadow-lift: 0 2px 4px rgba(18, 32, 24, .06), 0 16px 40px rgba(18, 32, 24, .10);
  --r-card: 16px;
  --r-ctl: 12px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg { display: block; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-sub { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.topnav a:hover { color: var(--ink); background: #EDF1EC; }
.topnav a.active { color: var(--accent-strong); background: var(--accent-soft); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center;
}

/* ---------- общие блоки ---------- */
main { min-height: 60vh; padding: 8px 24px 72px; }
main.wrap { padding-left: 24px; padding-right: 24px; }
section { margin-top: 56px; }
.h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.h2-sub { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; padding: 11px 20px; text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid var(--accent-border); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; padding: 3px 10px;
}
.chip-muted {
  background: #EFF2EE; color: var(--muted); border-color: var(--border);
}
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--muted); transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--accent-strong); border-color: var(--accent-border); background: var(--accent-softer); }
.icon-btn.added { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---------- главный экран ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px; align-items: center; padding: 64px 0 8px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--accent-strong);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 5px 13px; margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 14px; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent); display: inline-block; }
.hero-sub { font-size: 17.5px; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }

.inn-form { max-width: 520px; }
.inn-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.inn-row { display: flex; gap: 10px; }
.inn-row input {
  flex: 1; min-width: 0; height: 50px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--border-strong); background: var(--surface);
  padding: 0 16px; font-size: 17px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.inn-row input::placeholder { color: #A6B1A9; font-weight: 500; letter-spacing: .02em; }
.inn-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.inn-row .btn { height: 50px; padding: 0 22px; white-space: nowrap; }
.inn-hint { margin-top: 9px; font-size: 13px; color: var(--faint); }
.inn-hint button {
  border: none; background: none; padding: 0; color: var(--accent-strong);
  font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.inn-error {
  margin-top: 10px; display: flex; gap: 8px; align-items: flex-start;
  color: var(--danger); background: var(--danger-soft);
  border: 1px solid #F0D7D5; border-radius: var(--r-ctl); padding: 10px 13px; font-size: 14px;
}
.inn-error .icon { width: 17px; height: 17px; margin-top: 1.5px; }
.inn-loading { margin-top: 10px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* мини-схема в герое */
.hero-demo { position: relative; }
.hero-demo-card { padding: 20px 20px 16px; }
.hero-demo-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.hero-demo-title .icon { width: 17px; height: 17px; color: var(--accent); }
.mini-steps { display: flex; flex-direction: column; gap: 8px; }
.mini-step {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: var(--r-ctl); border: 1px solid var(--border); background: #FBFCFA;
  font-size: 13.5px; font-weight: 600;
}
.mini-step .icon { width: 17px; height: 17px; color: var(--faint); }
.mini-step.is-agent { background: var(--accent-softer); border-color: var(--accent-border); }
.mini-step.is-agent .icon { color: var(--accent); }
.mini-step .ms-kind { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.mini-step.is-agent .ms-kind { color: var(--accent-strong); }
.mini-result {
  margin-top: 12px; padding: 11px 13px; border-radius: var(--r-ctl);
  background: #14201A; color: #fff; font-size: 13.5px; display: flex; align-items: center; gap: 9px;
}
.mini-result .icon { width: 16px; height: 16px; color: #7FD89E; }
.mini-result b { color: #7FD89E; }
.hero-demo-note { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 10px; }

/* «как это работает» */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { padding: 22px; display: flex; gap: 15px; align-items: flex-start; }
.how-num {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.how-card h3 { margin: 2px 0 5px; font-size: 16px; font-weight: 700; }
.how-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* отрасли */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.ind-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ind-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--accent-border); }
.ind-ico {
  width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft);
  color: var(--accent-strong); display: grid; place-items: center;
}
.ind-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.ind-card p { margin: 0; font-size: 13px; color: var(--muted); }
.ind-count { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent-strong); }

/* про агентов */
.agent-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact-card { padding: 20px; }
.fact-card .ind-ico { margin-bottom: 12px; }
.fact-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.fact-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cowork-note {
  margin-top: 18px; padding: 16px 20px; display: flex; gap: 12px; align-items: center;
  border-radius: var(--r-card); background: #14201A; color: #E8EFE9;
}
.cowork-note .icon { color: #7FD89E; width: 22px; height: 22px; }
.cowork-note a { color: #7FD89E; font-weight: 600; }

/* ---------- список сценариев ---------- */
.scn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.scn-card { padding: 20px; display: flex; flex-direction: column; gap: 11px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.scn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--accent-border); }
.scn-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scn-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.scn-card h3 a { text-decoration: none; }
.scn-card h3 a:hover { color: var(--accent-strong); }
.scn-card .summary { margin: 0; color: var(--muted); font-size: 14px; }
.scn-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.scn-open {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  color: var(--accent-strong); text-decoration: none;
}
.scn-open .icon { width: 16px; height: 16px; transition: transform .15s; }
.scn-open:hover .icon { transform: translateX(3px); }
.scn-meta { font-size: 12.5px; color: var(--faint); font-weight: 500; }

/* ---------- страница сценария ---------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--faint); margin: 22px 0 14px; flex-wrap: wrap; }
.crumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--accent-strong); }
.crumb .icon { width: 14px; height: 14px; }
.scn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.scn-head h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 10px; font-weight: 800; max-width: 24ch; }
.scn-lead { margin: 0; font-size: 16.5px; color: var(--muted); max-width: 62ch; }
.scn-actions { display: flex; gap: 10px; align-items: center; }
.pain-callout {
  margin-top: 22px; display: flex; gap: 13px; padding: 17px 19px;
  border-radius: var(--r-card); background: #FBF7EE; border: 1px solid #EFE3CC;
}
.pain-callout .icon { color: #A8792A; width: 21px; height: 21px; margin-top: 2px; }
.pain-callout b { display: block; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: #A8792A; margin-bottom: 3px; }
.pain-callout p { margin: 0; font-size: 14.5px; color: #6B5B36; }

/* схема процесса */
.diagram-card { margin-top: 26px; padding: 24px; }
.diagram-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.diagram-top h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.seg { display: inline-flex; background: #EDF1EC; border-radius: 999px; padding: 4px; gap: 2px; }
.seg button {
  border: none; background: transparent; border-radius: 999px; padding: 8px 16px;
  font-weight: 700; font-size: 13.5px; color: var(--muted); transition: background .15s, color .15s;
  display: inline-flex; gap: 7px; align-items: center;
}
.seg button .icon { width: 15px; height: 15px; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(18,32,24,.12); }
.seg button.active.seg-agent { color: var(--accent-strong); }
.flow-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.flow-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lg-dot { width: 22px; height: 22px; border-radius: 8px; display: inline-grid; place-items: center; }
.lg-dot .icon { width: 13px; height: 13px; }
.lg-human { background: #EFF2EE; color: var(--muted); }
.lg-agent { background: var(--accent-soft); color: var(--accent-strong); }
.flow-list { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.fstep { display: flex; gap: 14px; position: relative; padding-left: 46px; }
.fstep::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: -14px; width: 2px;
  background: var(--border); border-radius: 2px;
}
.fstep:last-child::before { display: none; }
.fnode {
  position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; background: #EFF2EE; color: var(--muted);
}
.fnode .icon { width: 18px; height: 18px; }
.fbody {
  flex: 1; min-width: 0; background: #FBFCFA; border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 15px;
}
.fstep.is-agent .fnode { background: var(--accent); color: #fff; }
.fstep.is-agent .fbody { background: var(--accent-softer); border-color: var(--accent-border); }
.fstep.is-start .fbody { background: transparent; border-style: dashed; }
.fstep.is-start .fnode { background: transparent; border: 1.5px dashed var(--border-strong); color: var(--faint); }
.ftop { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.fkind { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fstep.is-agent .fkind { color: var(--accent-strong); }
.ftime { margin-left: auto; font-size: 12.5px; color: var(--faint); font-weight: 600; background: #EFF2EE; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.fstep.is-agent .ftime { background: #DFF0E4; color: var(--accent-strong); }
.ftitle { font-weight: 700; font-size: 15px; line-height: 1.35; }
.fdesc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.flow-note { margin-top: 16px; font-size: 13px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.flow-note .icon { width: 15px; height: 15px; flex: none; }

/* эффекты */
.fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fx-card { padding: 19px; }
.fx-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; min-height: 34px; }
.fx-was { font-size: 13.5px; color: var(--faint); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.fx-was .icon { width: 14px; height: 14px; }
.fx-now { margin-top: 3px; font-size: 17px; font-weight: 800; color: var(--accent-strong); display: flex; align-items: center; gap: 7px; letter-spacing: -.01em; }
.fx-now .icon { width: 16px; height: 16px; }
.fx-prefix { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.fx-now .fx-prefix { color: var(--accent-strong); opacity: .75; }

/* агенты и внедрение */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.agent-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.agent-card-head { display: flex; align-items: center; gap: 12px; }
.agent-card-head .ind-ico { width: 44px; height: 44px; }
.agent-card h3 { margin: 0; font-size: 16px; font-weight: 800; }
.agent-card .what { margin: 0; font-size: 14px; color: var(--muted); }
.agent-card .works { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--faint); display: flex; gap: 7px; align-items: center; }
.agent-card .works .icon { width: 15px; height: 15px; flex: none; }
.setup-strip { margin-top: 14px; padding: 17px 20px; display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.setup-item { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.setup-item .icon { color: var(--accent-strong); width: 19px; height: 19px; }
.setup-item b { color: var(--ink); font-weight: 700; }

/* ---------- компания ---------- */
.company-card { margin-top: 22px; padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.company-ico {
  flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft);
  color: var(--accent-strong); display: grid; place-items: center;
}
.company-ico .icon { width: 26px; height: 26px; }
.company-main { flex: 1; min-width: 0; }
.company-main h1 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; font-weight: 800; }
.company-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13.5px; }
.company-meta .src { color: var(--faint); display: inline-flex; gap: 5px; align-items: center; }
.company-meta .src .icon { width: 14px; height: 14px; }
.company-note { margin-top: 7px; font-size: 13.5px; color: var(--faint); }
.industry-pick { margin-top: 22px; padding: 24px; }
.industry-pick h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.industry-pick p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pick-btn {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl); background: var(--surface);
  font-weight: 700; font-size: 14px; text-align: left; transition: border-color .15s, background .15s;
}
.pick-btn:hover { border-color: var(--accent); background: var(--accent-softer); }
.pick-btn .icon { color: var(--accent-strong); width: 19px; height: 19px; }

/* ---------- база знаний ---------- */
.kb-controls { display: flex; gap: 12px; margin: 22px 0 20px; flex-wrap: wrap; }
.kb-search { position: relative; flex: 1; min-width: 240px; max-width: 430px; }
.kb-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.kb-search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--border-strong);
  background: var(--surface); padding: 0 16px 0 42px; font-size: 15px; color: var(--ink);
}
.kb-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.kb-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-pill {
  border: 1.5px solid var(--border-strong); background: var(--surface); border-radius: 999px;
  padding: 9px 15px; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: all .15s;
}
.kb-pill:hover { border-color: var(--accent-border); color: var(--accent-strong); }
.kb-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.kb-group { margin-top: 34px; }
.kb-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.kb-group-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.kb-group-head span { color: var(--faint); font-size: 13.5px; font-weight: 600; }
.kb-empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.kb-empty .icon { width: 34px; height: 34px; color: var(--faint); margin-bottom: 10px; }
.kb-empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 4px; }

/* ---------- подборка ---------- */
.sel-head { margin-top: 30px; }
.sel-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.sel-item { padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.sel-item-main { flex: 1; min-width: 0; }
.sel-item-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.sel-item h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.sel-item h3 a { text-decoration: none; }
.sel-item h3 a:hover { color: var(--accent-strong); }
.sel-item .summary { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.sel-fx { display: flex; gap: 7px; flex-wrap: wrap; }
.sel-summary-row {
  margin-top: 18px; padding: 18px 22px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: #14201A; border: none; color: #E8EFE9;
}
.sel-summary-row .stat b { font-size: 24px; font-weight: 800; color: #fff; display: block; line-height: 1.1; }
.sel-summary-row .stat span { font-size: 12.5px; color: #9FB3A5; font-weight: 600; }
.sel-summary-row .btn { margin-left: auto; }
.btn-dark-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-dark-ghost:hover { background: rgba(255,255,255,.16); }
.sel-empty { margin-top: 24px; padding: 56px 24px; text-align: center; }
.sel-empty .icon { width: 40px; height: 40px; color: var(--faint); margin-bottom: 12px; }
.sel-empty h2 { margin: 0 0 6px; font-size: 20px; }
.sel-empty p { margin: 0 0 18px; color: var(--muted); }

/* ---------- футер, тост, анимации ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-in { padding: 30px 24px 38px; color: var(--faint); font-size: 13px; }
.footer-in p { margin: 0 0 6px; max-width: 88ch; }
.footer-brand { font-weight: 700; color: var(--muted); }
.footer-in a { color: var(--accent-strong); font-weight: 600; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: #14201A; color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 60; display: flex; gap: 9px; align-items: center;
}
.toast .icon { width: 16px; height: 16px; color: #7FD89E; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.flow-swap { animation: flowIn .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes flowIn { from { opacity: 0; transform: translateY(8px); } }

.skeleton { display: flex; gap: 18px; margin-top: 22px; padding: 24px; }
.sk-block { border-radius: 12px; background: linear-gradient(100deg, #EDF1EC 40%, #F6F8F5 50%, #EDF1EC 60%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .agent-facts { grid-template-columns: repeat(2, 1fr); }
  .fx-grid, .how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  main.wrap { padding: 0 16px 60px; }
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .topnav a { padding: 8px 9px; font-size: 13px; gap: 5px; }
  .hero h1 { max-width: none; }
  .inn-row { flex-direction: column; }
  .inn-row .btn { height: 48px; }
  .how-grid, .fx-grid, .agent-facts { grid-template-columns: 1fr; }
  .diagram-card, .industry-pick, .company-card { padding: 18px; }
  .scn-head { flex-direction: column; }
  .setup-strip { gap: 12px; }
}

/* ---------- печать подборки ---------- */
@media print {
  body { background: #fff; font-size: 12.5px; }
  .topbar, .footer, .toast, .no-print, .scn-actions { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #D8DED9; }
  .sel-item, .sel-summary-row { break-inside: avoid; }
  .sel-summary-row { background: #fff; color: var(--ink); border: 1.5px solid #D8DED9; }
  .sel-summary-row .stat b, .sel-summary-row .btn { color: var(--ink); }
  .sel-summary-row .stat span { color: var(--muted); }
  .print-title { display: block !important; margin: 0 0 4px; font-size: 20px; font-weight: 800; }
  .print-sub { display: block !important; color: var(--muted); margin-bottom: 16px; font-size: 12px; }
}
.print-title, .print-sub { display: none; }

/* ---------- схема «было / станет» на одном экране ---------- */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flow-col { min-width: 0; }
.flow-col-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14.5px; letter-spacing: -.01em;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
}
.flow-col-head .icon { width: 17px; height: 17px; }
.flow-col-head.was { color: var(--muted); }
.flow-col-head.now { color: var(--accent-strong); }
.flow-col-head .cnt { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); }
.fsystep { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.sys-chip {
  font-size: 11px; font-weight: 700; color: var(--faint);
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 6px; padding: 1.5px 7px; white-space: nowrap;
}
.fstep.is-agent .sys-chip { color: var(--accent-strong); border-color: var(--accent-border); }
.fstep.is-start .sys-chip { color: var(--muted); }
.flows-note { margin-top: 16px; font-size: 13px; color: var(--faint); display: flex; gap: 8px; align-items: flex-start; }
.flows-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ---------- калькулятор эффекта ---------- */
.calc-card { margin-top: 26px; padding: 24px; }
.calc-card h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.calc-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
.calc-field input {
  width: 100%; height: 46px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--border-strong); background: var(--surface);
  padding: 0 13px; font-size: 16px; font-weight: 700; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.calc-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.calc-field .hint { margin-top: 6px; font-size: 12px; color: var(--faint); }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.calc-res {
  background: #14201A; color: #fff; border-radius: var(--r-card);
  padding: 16px 18px; border: none;
}
.calc-res b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.calc-res span { font-size: 12.5px; color: #9FB3A5; font-weight: 600; }
.calc-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); display: flex; gap: 7px; align-items: center; }
.calc-note .icon { width: 14px; height: 14px; flex: none; }

/* ---------- сквозные агенты ---------- */
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.uni-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.uni-card-head { display: flex; align-items: center; gap: 12px; }
.uni-card-head .ind-ico { width: 44px; height: 44px; }
.uni-card h3 { margin: 0; font-size: 16px; font-weight: 800; }
.uni-card .what { margin: 0; font-size: 14px; color: var(--muted); }
.uni-card .when {
  margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--accent-strong);
  display: flex; gap: 7px; align-items: flex-start; font-weight: 600;
}
.uni-card .when .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }

@media (max-width: 860px) {
  .flows { grid-template-columns: 1fr; }
  .flow-col-head.now { margin-top: 8px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
}

/* ---------- продукты ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.prod-card { padding: 20px; display: flex; flex-direction: column; gap: 11px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--accent-border); }
.prod-card-head { display: flex; align-items: center; gap: 12px; }
.prod-card-head .ind-ico { width: 44px; height: 44px; }
.prod-card-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.prod-vendor { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.prod-code {
  margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  color: var(--faint); border: 1px solid var(--border); border-radius: 7px; padding: 2px 7px;
}
.prod-code-lg {
  font-size: 14px; font-weight: 800; color: var(--faint);
  border: 1.5px solid var(--border-strong); border-radius: 9px; padding: 3px 10px; vertical-align: middle;
}
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-gold { background: #FBF3E2; color: #8A6519; border-color: #EDDDBA; }
.prod-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-price { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.prod-card .scn-open { flex: none; }
.prod-filter-note { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.prod-filter-note a { color: var(--accent-strong); font-weight: 700; }

.prod-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.prod-strip-item {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  padding: 9px 16px 9px 10px; font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s;
}
.prod-strip-item:hover { border-color: var(--accent-border); background: var(--accent-softer); }
.prod-strip-ic {
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center;
}
.prod-strip-ic .icon { width: 15px; height: 15px; }

/* детальная карточка продукта */
.prod-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.prod-detail-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.price-card { padding: 18px; border-color: var(--accent-border); background: var(--accent-softer); }
.price-card b { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }
.price-main { margin-top: 8px; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.price-detail { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.side-card { padding: 18px; }
.side-card b { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-card p { margin: 8px 0 0; }

.feat-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.feat-list .icon { color: var(--accent-strong); width: 17px; height: 17px; margin-top: 2px; flex: none; }

.cases-card { margin-top: 14px; padding: 6px 18px; }
.case-row { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); }
.case-row:last-child { border-bottom: none; }
.case-row b { flex: none; width: 200px; font-size: 13.5px; }
.case-row span { font-size: 13.5px; color: var(--accent-strong); font-weight: 700; }

.sell-card { margin-top: 14px; padding: 8px 20px; }
.sell-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sell-row:last-child { border-bottom: none; }
.sell-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent-strong); display: grid; place-items: center;
}
.sell-ic .icon { width: 17px; height: 17px; }
.sell-row b { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; margin-bottom: 4px; }
.sell-row p { margin: 0; font-size: 14.5px; }
.pain-list { margin: 0; padding-left: 18px; font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.battle-card { margin-top: 14px; padding: 16px 20px; background: #14201A; border: none; color: #E8EFE9; }
.battle-card b { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.battle-card .icon { color: #7FD89E; width: 16px; height: 16px; flex: none; }
.battle-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: #C6D5CB; display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 960px) {
  .prod-detail { grid-template-columns: 1fr; }
  .prod-detail-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: 1fr; }
  .case-row b { width: auto; }
}
