.layers-label { margin-bottom: 18px; }
/* Главная pr-b.pro — только своё для главной (блоки 3–13, часть 3 #361).
   Общие компоненты — components.css; кандидаты в общий набор отмечены «→ в общий набор». */

/* ---------- 3. Цена заявки ≠ цена клиента ---------- */
.crm-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 16px;
  align-items: stretch;
}
.crm-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-900);
}
.crm-how { gap: 18px; justify-content: flex-start; }
.crm-how .kv { margin-top: 4px; }
.crm-how .kv-val { max-width: 60%; }
@media (max-width: 1024px) {
  .crm-layout { grid-template-columns: 1fr; }
}

/* ---------- 4. Все кабинеты — схема слоёв ---------- */
.layers-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: stretch;
}
.layers-label--prb { color: var(--violet-ink); }

.silo {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.silo-row {
  display: grid;
  grid-template-columns: 112px minmax(16px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
}
.silo-row + .silo-row { border-top: 1px solid var(--line); }
.silo-who { color: var(--ink-700); font-weight: 500; }
.silo-line { height: 1px; border-top: 1px dashed var(--ink-300); }
.silo-src, .src {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  white-space: nowrap;
}
.silo-src i, .src i, .agency-ch i {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 7px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--ink-900);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.silo-src { opacity: 0.75; }
.silo-note { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--ink-500); line-height: 1.5; }

.layers {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}
.layers::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 59, 255, 0.09), rgba(134, 59, 255, 0));
  pointer-events: none;
}
.layer {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.layer + .layer { margin-top: 8px; }
.layer-num { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 550; color: var(--ink-900); }
.layer-num b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--violet-ink); }
.layer-items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.src--plan { padding-left: 10px; white-space: normal; font-weight: 400; color: var(--ink-700); }
.layers-merge { display: grid; place-items: center; height: 40px; color: var(--violet); }
.layers-merge svg { width: 22px; height: 22px; }

.agency { display: grid; gap: 2px; }
.agency .panel-title { margin-bottom: 6px; }
.agency-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(60px, 1.4fr) 104px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.agency-row .chip { justify-self: end; }
.agency-ch { display: flex; gap: 4px; }
@media (max-width: 1024px) {
  .layers-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .silo-row { grid-template-columns: 1fr auto; }
  .silo-line { display: none; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .layer-num { flex-direction: row; gap: 8px; align-items: baseline; }
  .src { white-space: normal; }
  .agency-row { grid-template-columns: minmax(0, 1fr) 92px; gap: 8px 12px; }
  .agency-row .agency-ch { display: none; }
  .agency-row .pf-track { grid-column: 1 / -1; grid-row: 2; }
  .agency-row .chip { grid-column: 2; grid-row: 1; }
}

/* ---------- 5. Автопилот (ночная секция) ---------- */
.auto-bento { margin-top: 16px; }

/* График «бюджет теста» — → в общий набор как .line-chart, если понадобится на других страницах */
.test-chart {
  position: relative;
  height: 230px;
  margin: 0 0 30px 46px;
}
.test-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.test-chart line, .test-chart polyline { fill: none; vector-effect: non-scaling-stroke; }
.tc-grid { stroke: var(--line); stroke-width: 1; }
.tc-base { stroke: var(--line-strong); stroke-width: 1; }
.tc-limit { stroke: var(--st-bad); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: 0.8; }
.tc-a { stroke: var(--st-bad); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.tc-b { stroke: var(--st-ok); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.tc-ghost { stroke: var(--ink-400); stroke-width: 1.4; stroke-dasharray: 3 5; opacity: 0.6; }
.tc-ylab {
  position: absolute;
  left: -46px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-400);
  white-space: nowrap;
}
.tc-limit-label {
  position: absolute;
  right: 0;
  transform: translateY(-130%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--st-bad);
  white-space: nowrap;
}
.tc-dot, .tc-stop { position: absolute; transform: translate(-50%, -50%); font-style: normal; }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-ok) 22%, transparent); }
.tc-stop {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--st-bad);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-bad) 22%, transparent);
}
.tc-stop::before, .tc-stop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.6px;
  background: var(--night, #0f0d17);
  transform: translate(-50%, -50%) rotate(45deg);
}
.tc-stop::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tc-x { position: absolute; left: 0; right: 0; top: 100%; height: 24px; }
.tc-x span {
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-400);
  white-space: nowrap;
}
.tc-x span:last-child { transform: translateX(-90%); }
.tc-legend { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-700); }
.tc-key { display: flex; align-items: baseline; gap: 10px; }
.tc-key::before { content: ""; flex: none; width: 14px; height: 3px; border-radius: 2px; transform: translateY(-3px); }
.tc-key--a::before { background: var(--st-bad); }
.tc-key--b::before { background: var(--st-ok); }
@media (max-width: 560px) {
  .test-chart { height: 190px; margin-left: 40px; }
  .tc-ylab { left: -40px; font-size: 10px; }
  .tc-limit-label { font-size: 10px; }
  .tc-x span:nth-child(2), .tc-x span:nth-child(4) { display: none; }
}

/* ---------- 6. Роли ---------- */
.roles { align-items: start; }
.role-where {
.roles-rail { background: var(--bg); }
.roles-rail .tab { font-size: 14.5px; }
.role-panel { min-height: 100%; }
.role-panel .card-head { flex-wrap: wrap; }

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 26px;
  font-size: 13px;
  color: var(--ink-500);
}
.role-where > span:first-child { margin-right: 4px; }
@media (max-width: 1024px) {
  .roles > .b-4, .roles > .b-8 { grid-column: 1 / -1; }
  .roles-rail { display: flex; overflow-x: auto; border-radius: 999px; padding: 4px; gap: 4px; }
  .roles-rail .tab { display: inline-flex; flex: none; height: 38px; padding: 0 14px; border-radius: 999px; gap: 8px; }
  .roles-rail .tab .mono { grid-row: auto; }
  .roles-rail .tab small { display: none; }
}

/* ---------- 7. Интеграции по группам ---------- */
.int-groups { display: grid; gap: 12px; }
.int-group {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.int-group-head { display: grid; gap: 6px; padding-top: 6px; }
.int-group-num { font-family: var(--font-mono); font-size: 11.5px; color: var(--violet-ink); }
.int-group-head b { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); }
.int-group-head > span:last-child { font-size: 14px; color: var(--ink-500); line-height: 1.45; }
.int-tile--soon { opacity: 0.62; border-style: dashed; }
@media (max-width: 1024px) {
  .int-group { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .int-group { padding: 14px; }
}

/* ---------- 8. В цифрах ---------- */
#v-cifrah .section-head { margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- 9. Сравнение ---------- */
.compare-wrap--wide .compare { min-width: 900px; }
.compare-wrap--wide .compare tbody th { width: 18%; }
.compare-cost td { color: var(--ink-700); }
.compare-cost .is-prb b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; }
.compare-hint { display: none; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); }
@media (max-width: 960px) { .compare-hint { display: block; } }

/* ---------- 10. Безопасность ---------- */
.perm { display: grid; font-size: 12.5px; }
.perm-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
}
.perm-row:last-child { border-bottom: 0; }
.perm-row .chip { justify-self: start; }
.perm-head { padding-top: 0; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); }
@media (max-width: 560px) {
  .perm { font-size: 11.5px; }
  .perm-row { grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 4px; }
  .perm-row .chip { padding-left: 6px; padding-right: 6px; font-size: 10.5px; }
}

/* ---------- 11. Блог ---------- */
.home-blog-link { margin-top: 18px; padding-left: 0; }
.home-blog:empty { display: none; }

/* ---------- Правки после проверки глазами ---------- */
.crm-verdict { max-width: none; }
.crm-how .layers-label { margin-bottom: 0; }

/* «Ручная сводная таблица» в блоке 4 */
.sheet {
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-700);
  overflow: hidden;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-sm);
}
.sheet-bar { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sheet-file { color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-edit { color: var(--ink-400); white-space: nowrap; }
.sheet-row { display: grid; grid-template-columns: 28px repeat(3, minmax(0, 1fr)); }
.sheet-row > span { padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-row > span:first-child { color: var(--ink-400); text-align: center; background: var(--surface-2); }
.sheet-row > span:last-child { border-right: 0; }
.sheet-row:last-child > span { border-bottom: 0; }
.sheet-head > span { color: var(--ink-400); text-align: center; background: var(--surface-2); }
.sheet .is-q { color: var(--st-warn); }
.sheet .is-err { color: var(--st-bad); }

/* Компактный список ролей: статус в той же строке */
@media (min-width: 1025px) {
  .roles-rail .tab { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 10px 14px; }
  .roles-rail .tab .mono { grid-row: auto; }
  .roles-rail .tab small { grid-column: 3; }
  .roles-panels { position: sticky; top: 96px; }
}
@media (max-width: 1024px) {
  .roles-rail .tab small { display: inline-flex; font-size: 0; gap: 0; }
}
@media (max-width: 560px) {
  .tc-x span:nth-child(5) { display: none; }
}
@media (max-width: 960px) {
  .compare-wrap--wide .compare tbody th,
  .compare-wrap--wide .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .compare-wrap--wide .compare thead th:first-child { background: var(--surface-2); }
  .compare-wrap--wide .compare tbody th { width: 128px; min-width: 128px; }
}
@media (max-width: 560px) {
  .int-groups .int-name { font-size: 14px; }
  .tc-limit-label { transform: translateY(35%); }
}

/* ---------- Правки Дениса 04.11 ---------- */
/* 2. Автопилот: режимы */
.fix-list .kv-key { color: var(--ink-700); }
.mode-switch { margin-bottom: 14px; }
.mode-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mode-grid[hidden] { display: none; }
.mode-msg { font-size: 14.5px; color: var(--ink-900); }
.mode-checks li { font-size: 14.5px; }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } }

/* 3. Одна таблица: цена заявки и окупаемость рядом */
.crm-table .mt-row { --mt-cols: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.9fr) 88px; }
.crm-table .mt-row:not(.mt-head) { position: relative; }
.crm-table .is-trap { background: color-mix(in srgb, var(--st-bad) 6%, transparent); box-shadow: inset 3px 0 0 var(--st-bad); }
.crm-table .is-gem { background: color-mix(in srgb, var(--st-ok) 7%, transparent); box-shadow: inset 3px 0 0 var(--st-ok); }
.crm-table .is-trap > :first-child, .crm-table .is-gem > :first-child { padding-left: 10px; }
.crm-do { font-size: 12.5px; font-weight: 550; }
.crm-do.is-down { color: var(--st-bad); }
.crm-do.is-up { color: var(--st-ok); }
.crm-do::before { margin-right: 4px; }
.crm-do.is-down::before { content: "↓"; }
.crm-do.is-up::before { content: "↑"; }
.crm-verdicts { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.crm-verdicts .crm-verdict { margin: 0; padding: 0; border: 0; }
@media (max-width: 560px) {
  .crm-table .mt-row { --mt-cols: minmax(0, 1fr) 72px 66px; gap: 8px; }
  .crm-table .mt-head { font-size: 9.5px; letter-spacing: 0.03em; }
  .crm-note { display: none; }
  .crm-table .crm-do, .crm-table .crm-do-h { display: none; }
}

/* 5. График теста на всю ширину */
.test-card .test-chart { height: 260px; margin-top: 30px; }

/* 6. Роли: функции в две колонки */
.role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 26px; }
.role-list li { font-size: 15px; }
@media (min-width: 1025px) { .roles-rail .tab small { color: var(--ink-400); } }
@media (max-width: 760px) { .role-list { grid-template-columns: 1fr; } }

/* ---------- Комментарии Дениса 04.11 (вечер) ---------- */
.layers-why { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 16px; color: var(--ink-500); line-height: 1.55; }
.layers-why b { color: var(--ink-900); font-weight: 550; }
.agency-row { grid-template-columns: minmax(0, 1fr) minmax(60px, 1.6fr) 110px; }
.int-more { margin-top: 20px; font-size: 15px; color: var(--ink-500); text-align: center; max-width: none; }
.tc-ytitle { position: absolute; left: -46px; top: -6px; transform: translateY(-100%); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); white-space: nowrap; }

/* 6. Паутина ролей — окно интерфейса; → в общий набор, если понадобится на других страницах.
   Без скрипта и на узком экране — карточки «роль + функции». Скрипт включает .is-web: группы по бокам, роли вокруг PRB. */
.web-window { box-shadow: var(--shadow-window); }
.web {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--violet) 10%, transparent), transparent) center / 60% 80% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--sky) 7%, transparent), transparent) 70% 30% / 50% 60% no-repeat,
    var(--surface);
  overflow: hidden;
}
.web::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink-900) 10%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 60%);
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 60%);
  pointer-events: none;
}
.web-side { display: contents; }
.web-core { display: none; }
.web-group {
  position: relative;
  order: var(--o);
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.web-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
}
.web-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--violet-deep);
  transition: background-color 250ms, color 250ms;
}
.web-fns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; margin: 0; padding: 0; list-style: none; }
.web-fn {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink-700);
  transition: color 250ms;
}
.web-fn > i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--violet) 45%, var(--surface));
  translate: 0 -1px;
  transition: background-color 250ms, box-shadow 250ms, scale 250ms;
}
.web-hint { display: none; }
/* Телефон: карточки ролей листаются вбок, край следующей виден */
@media (max-width: 640px) {
  .web { display: flex; align-items: stretch; gap: 10px; padding: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 14px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .web::-webkit-scrollbar { display: none; }
  .web::before { display: none; }
  .web-group { flex: 0 0 84%; padding: 16px 16px 14px; scroll-snap-align: start; }
  .web-fns { grid-template-columns: 1fr; gap: 7px; }
  .web-fn { font-size: 14px; }
  .web-hint { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-500); text-align: center; }
}

/* Схема: группы функций по бокам, PRB и роли в центре, линии рисует скрипт */
.web.is-web { grid-template-columns: minmax(0, 1fr) 380px minmax(0, 1fr); align-items: stretch; gap: 0; padding: 34px 26px; }
.web.is-web .web-side { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.web.is-web .web-group { order: 0; padding: 3px 0 3px 14px; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; background: none; transition: border-color 250ms; }
.web.is-web .web-side--left .web-group { padding: 3px 14px 3px 0; border-left: 0; border-right: 2px solid var(--line-strong); }
.web.is-web .web-group-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.web.is-web .web-fns { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 0; }
.web.is-web .web-fn { padding: 2.5px 0; font-size: 12.5px; line-height: 1.25; cursor: default; }
.web.is-web .web-side--left .web-fn { flex-direction: row-reverse; text-align: right; }
.web.is-web .web-core { position: relative; z-index: 2; display: block; }
.web-lines { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.web-orbit { fill: none; stroke: color-mix(in srgb, var(--violet) 16%, transparent); stroke-width: 1; stroke-dasharray: 2 6; }
.web-edge { fill: none; stroke: var(--line-strong); stroke-width: 1; opacity: 0.55; transition: stroke 250ms, opacity 250ms, stroke-width 250ms; }
.web-edge--core { stroke: color-mix(in srgb, var(--violet) 30%, transparent); stroke-width: 1.2; opacity: 1; }
.web-edge--sec { opacity: 0; stroke-dasharray: 0.012 0.012; }
.web.has-focus .web-edge:not(.is-on) { opacity: 0.2; }
.web.has-focus .web-edge--sec:not(.is-on) { opacity: 0; }
.web-edge.is-on { opacity: 1; stroke: var(--violet); stroke-width: 1.4; }
.web-edge--sec.is-on { stroke-width: 1.1; opacity: 0.8; }
.web-spark { fill: var(--violet); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--violet) 80%, transparent)); }
.web-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--violet) 7%, transparent), 0 24px 48px -18px rgba(126, 20, 255, 0.5);
}
.web-hub img { width: 40px; height: 40px; }
.web-hub::before,
.web-hub::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
  animation: web-pulse 3.6s var(--ease-out) infinite;
  pointer-events: none;
}
.web-hub::after { animation-delay: 1.8s; }
@keyframes web-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }
.web-roles { margin: 0; padding: 0; list-style: none; }
.web-role {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 142px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  color: var(--ink-900);
  cursor: pointer;
  will-change: transform;
  transition: background-color 250ms, color 250ms, border-color 250ms, box-shadow 250ms;
}
.web-role:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.web-role.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(126, 20, 255, 0.7);
}
.web-role.is-on .web-num { background: rgba(255, 255, 255, 0.2); color: #fff; }
.web.has-focus .web-role:not(.is-on) { color: var(--ink-500); }
.web.has-focus .web-fn:not(.is-on) { color: var(--ink-500); }
.web-fn.is-on { color: var(--ink-900); }
.web-fn.is-on > i { background: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent); scale: 1.25; }
.web.is-web .web-group.is-on { border-color: var(--violet); }
@media (max-width: 1360px) {
  .web.is-web { grid-template-columns: minmax(0, 1fr) 330px minmax(0, 1fr); padding: 30px 20px; }
  .web.is-web .web-fns { column-gap: 10px; }
  .web.is-web .web-fn { font-size: 12px; }
  .web-role { max-width: 132px; font-size: 12px; }
}
/* Появление: линии прорисовываются от центра, подписи — каскадом */
.web.is-web:not(.is-live) .web-edge--core,
.web.is-web:not(.is-live) .web-edge--func { stroke-dashoffset: 1; }
.web.is-web .web-edge--core,
.web.is-web .web-edge--func { stroke-dasharray: 1; transition: stroke-dashoffset 900ms var(--ease-out) var(--d, 0ms), stroke 250ms, opacity 250ms, stroke-width 250ms; }
.web.is-web:not(.is-live) .web-fn,
.web.is-web:not(.is-live) .web-role { opacity: 0; }
.web.is-web .web-fn,
.web.is-web .web-role { transition: opacity 500ms var(--ease-out) var(--d, 0ms), color 250ms, background-color 250ms, border-color 250ms, box-shadow 250ms; }
@media (prefers-reduced-motion: reduce) {
  .web-hub::before, .web-hub::after { animation: none; opacity: 0; }
  .web.is-web .web-edge, .web.is-web .web-fn, .web.is-web .web-role { transition: none; }
}

/* Интеграции по направлениям (.int-cats) — в общем наборе components.css */

@media (max-width: 560px) { .niche { padding: 26px; } }
.switch-stack > .mode-grid[hidden] { display: grid; }
