/* ИнвестРеалити визуал — компоненты: корешок слоя, карточки, пилюли, ромбы, матрица, дорожки */

/* Слой = горизонтальная полоса; контент уезжает вправо при необходимости */
.layer {
  margin: 0 0 var(--gap-layer) 0;
  position: relative;
}
.layer-inner {
  display: flex;
  align-items: stretch;
  gap: 32px;
  min-width: max-content;
}
.layer-scroller {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 16px;
}
.layer-scroller::-webkit-scrollbar { height: 10px; }
.layer-scroller::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

/* Корешок слоя слева — стикер с номером и названием (статичный, не sticky) */
.layer-spine {
  flex: 0 0 var(--label-w);
  width: var(--label-w);
  max-width: var(--label-w);
  padding: 22px 20px 20px;
  border-radius: var(--r-card);
  align-self: flex-start;
  min-height: 220px;
  background: var(--accent, var(--l2-risk));
  color: white;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
.layer-spine .n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.layer-spine .title {
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.layer-spine .desc {
  font-size: 13px;
  opacity: 0.94;
  line-height: 1.4;
}
.layer-spine .legend-inline {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.layer-spine .legend-inline .legend-item {
  color: white;
  font-size: 12px;
  margin-bottom: 6px;
}
.layer-spine .legend-inline .legend-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }

/* Тело слоя */
.layer-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* Карточки */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  word-wrap: break-word;
}
.card-header {
  /* шапка натягивается по всей ширине карточки с учётом padding и border */
  margin: calc(-1 * var(--pad-card)) calc(-1 * var(--pad-card)) 12px;
  padding: 10px var(--pad-card);
  border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0;
  background: var(--accent, var(--txt-1));
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.card-header .sub { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; margin-top: 2px; }

/* Цветовые акценты карточек по линии результата */
.card-l1 { --accent: var(--l1-discipline); }
.card-l2 { --accent: var(--l2-risk); }
.card-l3 { --accent: var(--l3-technique); }
.card-l4 { --accent: var(--l4-emotions); }
.card-seg1 { --accent: var(--seg-1-expert); }
.card-seg2 { --accent: var(--seg-2-worker); }
.card-seg3 { --accent: var(--seg-3-analyst); }
.card-seg5 { --accent: var(--seg-5-selfdev); }

/* Маленькая пилюля (модуль/блок/тег) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent, var(--txt-1));
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill-outline {
  background: transparent;
  color: var(--accent, var(--txt-1));
  border: 1.5px solid var(--accent, var(--txt-1));
}
.pill-sm { padding: 3px 9px; font-size: 11px; }

/* Тег */
.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-tag);
  background: var(--bg-grid);
  color: var(--txt-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Эмодзи-якорь точки А/Б */
.anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.anchor .emo { font-size: 28px; }

/* Стрелка */
.arrow {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-3);
  font-size: 24px;
}
.arrow::before { content: '→'; }

/* Ромб гейта — настоящий ромб через clip-path, точно вписан в контейнер */
.gate-diamond {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
}
.gate-diamond .shape {
  position: absolute;
  inset: 0;
  background: var(--act-gate);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: drop-shadow(0 8px 16px rgba(16,185,129,.25));
}
.gate-diamond .inner {
  position: relative;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 130px;
}
.gate-diamond .inner b { display: block; font-size: 14px; margin-bottom: 6px; letter-spacing: 0.02em; }

/* Колонка-блок (для Слоёв 1, 2, 6) */
.col-block {
  width: var(--col-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-block.wide { width: var(--col-w-wide); }
.col-block .col-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  min-height: 28px;
}
.col-block .card { flex: 1 1 auto; }
.col-block .spiral-note { flex: 0 0 auto; margin-top: auto; }

/* Ряд из колонок-блоков с гейтом или офлайном между ними */
.col-row, .l2-blocks {
  display: flex;
  gap: var(--gap-col);
  align-items: stretch;
}
.l2-blocks { gap: 14px; flex-wrap: nowrap; }

/* Спираль возврата — стрелка-дуга */
.spiral-note {
  font-size: 12px;
  color: var(--txt-2);
  padding: 8px 12px;
  background: var(--bg-grid);
  border-radius: var(--r-tag);
  border-left: 3px solid var(--l4-emotions);
  line-height: 1.35;
}

/* Матрица сегментов × недель (Слой 3) */
.matrix {
  display: grid;
  grid-template-columns: 200px repeat(6, 1fr);
  gap: 8px;
  min-width: 1000px;
}
.matrix-head, .matrix-row-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--txt-2);
  padding: 8px 6px;
}
.matrix-head {
  background: var(--accent, var(--bg-grid));
  color: white;
  text-align: center;
  border-radius: 6px 6px 0 0;
}
.matrix-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 4px solid var(--accent, var(--seg-2-worker));
  padding-left: 0;
}
.matrix-row-label .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent, var(--seg-2-worker));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 36px;
}
.matrix-row-label .nm { font-size: 13px; color: var(--txt-1); text-transform: none; letter-spacing: 0; font-weight: 700; }
.matrix-row-label .sm { font-size: 11px; color: var(--txt-2); text-transform: none; letter-spacing: 0; font-weight: 500; }

.matrix-cell {
  background: var(--cell, var(--bg-grid));
  color: white;
  border-radius: 6px;
  padding: 10px 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  min-height: 110px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.matrix-cell .cell-title { font-weight: 700; font-size: 12.5px; }
.matrix-cell .cell-desc { font-size: 11.5px; opacity: .95; flex: 1; }
.matrix-cell .tempo {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 13px;
  background: rgba(255,255,255,.18);
  padding: 1px 5px;
  border-radius: 4px;
}
.matrix-cell.state-neutral      { --cell: var(--st-neutral); }
.matrix-cell.state-overload     { --cell: var(--st-overload); color: #4a2f00; }
.matrix-cell.state-crisis       { --cell: var(--st-crisis); }
.matrix-cell.state-breakthrough { --cell: var(--st-breakthrough); color: #1a3500; }
.matrix-cell.state-final        { --cell: var(--st-final); }

.matrix-week-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  padding: 12px 6px;
  border-radius: 6px 6px 0 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.matrix-week-top .ln { font-size: 10px; font-weight: 600; opacity: 0.92; text-transform: uppercase; letter-spacing: 0.06em; }
.mw-1 { background: var(--l4-emotions); }
.mw-2 { background: var(--l2-risk); }
.mw-3 { background: var(--l3-technique); }
.mw-4 { background: var(--l3-technique); }
.mw-5 { background: var(--l1-discipline); }
.mw-6 { background: var(--l1-discipline); }

/* Якорь точки А и Б над матрицей */
.matrix-anchors {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 8px;
  padding: 0 4px;
}

/* Панель фильтра сегментов (Слой 3) */
.seg-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.seg-filter .sf-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-2);
  margin-right: 6px;
}
.seg-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--txt-1);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  font-family: inherit;
}
.seg-filter button .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c, var(--txt-3));
  flex: 0 0 12px;
}
.seg-filter button:hover {
  background: white;
  border-color: var(--c, var(--txt-2));
}
.seg-filter button.active {
  background: var(--c, var(--txt-1));
  color: white;
  border-color: var(--c, var(--txt-1));
}
.seg-filter button.active .dot { background: rgba(255,255,255,.85); }
.seg-filter .sf-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--txt-3);
  font-style: italic;
}

/* Эффект фильтра: приглушаем строки/карточки не выбранного сегмента */
.matrix [data-seg],
.l3-segments-row [data-seg],
.sp-card[data-segs] {
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.matrix.filter-active [data-seg].dim,
.l3-segments-row.filter-active [data-seg].dim,
.sp-strip.filter-active .sp-card.dim {
  opacity: 0.22;
  filter: grayscale(0.65);
}
.l3-segments-row.filter-active [data-seg].selected {
  box-shadow: 0 0 0 3px var(--c, var(--seg-2-worker));
  transform: translateY(-2px);
}

/* Лента 7 точек спада */
.sp-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 24px;
  align-items: start;
}
.sp-card {
  background: white;
  border-top: 4px solid var(--sp, var(--sp-mid));
  border-radius: 4px 4px 8px 8px;
  padding: 12px 12px 14px;
  font-size: 12.5px;
  position: relative;
}
.sp-card.risk-low  { --sp: var(--sp-low); }
.sp-card.risk-mid  { --sp: var(--sp-mid); }
.sp-card.risk-high { --sp: var(--sp-high); }
.sp-card .sp-tag {
  display: inline-block;
  background: var(--sp);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.sp-card .sp-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; line-height: 1.3; }
.sp-card .sp-when { font-size: 11px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.sp-card .sp-quote {
  font-style: italic;
  color: var(--txt-2);
  font-size: 11.5px;
  margin: 6px 0;
  padding-left: 8px;
  border-left: 2px solid var(--sp);
  line-height: 1.35;
}
.sp-card .sp-segments {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.sp-card .sp-segments .chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--bg-grid);
  color: var(--txt-2);
  font-weight: 600;
}
.sp-card .sp-intervention {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--txt-1);
  background: var(--bg-soft);
  padding: 6px 8px;
  border-radius: 4px;
}

/* Дорожки коммуникации (Слой 4) */
.lanes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-width: 1200px;
}
.lane {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  gap: 16px;
  position: relative;
}
.lane-label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 14px;
  border-radius: var(--r-card);
  background: var(--ch, var(--ch-platform));
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  min-height: 100px;
}
.lane-label .role {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 4px;
}
.lane.ch-platform .lane-label { background: var(--ch-platform); }
.lane.ch-zoom     .lane-label { background: var(--ch-zoom); }
.lane.ch-chat     .lane-label { background: var(--ch-chat); }
.lane.ch-bot      .lane-label { background: var(--ch-bot); }
.lane.ch-channel  .lane-label { background: var(--ch-channel); }

.lane-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: linear-gradient(to right, transparent 0, var(--line) 0) repeat-x;
  background-size: 1px 1px;
  background-position: 0 50%;
  position: relative;
  padding: 6px 0;
}
.lane-track::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.lane-week {
  position: relative;
  z-index: 1;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
}
.lane-week::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -4px;
  width: 1px;
  border-left: 1px dashed var(--line-strong);
}
.lane-marker {
  background: white;
  border: 1.5px solid var(--ch, var(--ch-platform));
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--txt-1);
  position: relative;
}
.lane-marker.solid {
  background: var(--ch, var(--ch-platform));
  color: white;
  border: none;
}
.lane-marker .marker-time {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 3px;
}

/* Полоса недель (под дорожками, цвет по линии результата) */
.weeks-strip {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 10px;
}
.weeks-strip .ws-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.weeks-strip .w {
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
}
.weeks-strip .w .sub { display: block; font-size: 10px; font-weight: 500; opacity: 0.92; text-transform: uppercase; letter-spacing: 0.06em; }

/* Вертикальные полосы гейта и офлайна — точное совпадение с сеткой дорожек */
.lanes-wrap {
  position: relative;
  padding-top: 36px; /* свободная зона под лейблы «ГИБКИЙ ГЕЙТ» и «ОФЛАЙН Н6» */
}
.ribbon-overlay {
  position: absolute;
  inset: 36px 0 0 0; /* совпадает с дорожками, не залезает в зону лейблов */
  display: grid;
  grid-template-columns: 180px 16px 1fr;
  pointer-events: none;
  z-index: 2;
}
.ribbon-tracks {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
}
.ribbon {
  position: relative;
  background: var(--rbn-bg, rgba(245, 158, 11, .18));
  border-left: 2px dashed var(--rbn-line, #F59E0B);
  border-right: 2px dashed var(--rbn-line, #F59E0B);
}
.ribbon .lbl {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rbn-line, #F59E0B);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.ribbon-gate {
  --rbn-bg: rgba(245, 158, 11, .14);
  --rbn-line: #F59E0B;
  grid-column: 3 / 6; /* Н3 → Н5 */
}
.ribbon-offline {
  --rbn-bg: rgba(220, 38, 38, .14);
  --rbn-line: #DC2626;
  grid-column: 6; /* Н6 */
}

/* Сетка 3×3 для 9 элементов среды */
.env-grid {
  column-count: 3;
  column-gap: 12px;
}
.env-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 15px;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 12px;
}
.env-tile .num {
  display: inline-block;
  width: 26px; height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: var(--accent, var(--l2-risk));
  color: white;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}
.env-tile h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--txt-1);
  margin-bottom: 5px;
}
.env-tile p { font-size: 12.5px; line-height: 1.45; color: var(--txt-2); margin: 0; }

/* Карточка сегмента (с фото-кружком цветом) */
.segment-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px;
  width: 240px;
  flex: 0 0 240px;
}
.segment-card .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent, var(--seg-2-worker));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 8px;
}
.segment-card h4 {
  text-transform: none;
  letter-spacing: 0;
  color: var(--txt-1);
  font-size: 14px;
  margin-bottom: 4px;
}
.segment-card .age { font-size: 11px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.segment-card p { font-size: 12px; margin: 4px 0; }
.segment-card .label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--txt-3); margin-top: 6px; }

/* Расписание недели — 7 колонок */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.day-col {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 10px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.day-col .day-event:last-child { margin-bottom: 0; }
.day-col h4 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--txt-2);
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.day-event {
  background: var(--ch, var(--ch-platform));
  color: white;
  border-radius: 4px;
  padding: 6px 7px;
  margin-bottom: 6px;
  font-size: 11.5px;
  line-height: 1.3;
}
.day-event .time { display: block; font-size: 10px; font-weight: 700; opacity: 0.92; letter-spacing: 0.05em; margin-bottom: 2px; }
.day-event.ev-platform { background: var(--ch-platform); }
.day-event.ev-zoom     { background: var(--ch-zoom); }
.day-event.ev-chat     { background: var(--ch-chat); }
.day-event.ev-bot      { background: var(--ch-bot); }
.day-event.ev-channel  { background: var(--ch-channel); }
.day-event.ev-special  { background: var(--act-special); }

/* Таблица дэшборда триггеров (Слой 6) */
.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: 13px;
}
.dash-table th, .dash-table td { padding: 10px 12px; text-align: left; }
.dash-table thead th {
  background: var(--bg-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--txt-2);
  border-bottom: 1px solid var(--line);
}
.dash-table tbody tr + tr td { border-top: 1px solid var(--line); }
.dash-table .yel { background: rgba(245,158,11,.12); }
.dash-table .red { background: rgba(239,68,68,.12); }

/* Кольцевая/столбчатая диаграмма нагрузки */
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .bar { background: var(--bg-grid); border-radius: 4px; height: 16px; position: relative; overflow: hidden; }
.bar-row .fill { background: var(--accent, var(--l1-discipline)); height: 100%; border-radius: 4px; }
.bar-row .val { color: var(--txt-2); font-weight: 600; font-size: 12px; text-align: right; }

/* Чек-лист */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 4px 0 4px 24px;
  font-size: 12.5px;
  color: var(--txt-1);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: white;
}

/* Список с буллетом-стрелкой */
.arrows { list-style: none; padding: 0; margin: 0; }
.arrows li { position: relative; padding-left: 16px; font-size: 12.5px; margin-bottom: 4px; line-height: 1.35; }
.arrows li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--accent, var(--l2-risk)); font-weight: 700; }
.arrows li b { color: var(--txt-1); }

/* Сетка под точку Б — 4 эмоциональных модуса */
.modus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
}
.modus-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px;
  border-left: 4px solid var(--accent, var(--st-final));
}
.modus-tile h4 {
  text-transform: none;
  letter-spacing: 0;
  color: var(--txt-1);
  font-size: 14px;
  margin-bottom: 4px;
}
.modus-tile p { font-size: 12px; color: var(--txt-2); margin: 0; font-style: italic; }

/* Тип результата (маркетинговый / обучающий / реальная Б) */
.result-block {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--l2-risk));
  border-radius: var(--r-card);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.result-block .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, var(--l2-risk));
  font-weight: 800;
  margin-bottom: 8px;
}
.result-block h3 { font-size: 17px; margin-bottom: 8px; }
.result-block p { font-size: 13px; color: var(--txt-1); line-height: 1.5; }
.result-block ol { font-size: 13px; padding-left: 1.3em; }
.result-block ol li { margin-bottom: 4px; }

/* Бейдж "🟠 ФИШКА" — для офлайн-интенсива */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--act-special);
  color: white;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(220,38,38,.2);
}

/* Плавающая кнопка «На обложку» в левом-верхнем углу */
.home-fab {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  background: white;
  color: var(--txt-1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.home-fab:hover {
  transform: translateY(-1px);
  background: var(--txt-1);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.home-fab .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--txt-1);
  font-size: 14px;
  line-height: 1;
}
.home-fab:hover .ico { background: white; color: var(--txt-1); }
@media (max-width: 600px) {
  .home-fab { top: 12px; left: 12px; padding: 8px 12px; font-size: 12px; }
}

/* Боковая навигация — фиксированный пульт справа */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 10px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.side-nav hr {
  margin: 2px 4px 4px;
  border: 0;
  border-top: 1px solid var(--line);
}
.side-nav .sn-tile,
.side-nav .sn-home,
.side-nav .sn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--txt-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.side-nav .sn-home { font-size: 18px; line-height: 1; }
.side-nav .sn-arrow { font-size: 16px; color: var(--txt-3); }
.side-nav .sn-tile:hover,
.side-nav .sn-home:hover,
.side-nav .sn-arrow:hover {
  background: var(--c, var(--l1-discipline));
  color: white;
  transform: scale(1.08);
  text-decoration: none;
}
.side-nav .sn-tile.current {
  background: var(--c, var(--l1-discipline));
  color: white;
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--c, var(--l1-discipline));
}
.side-nav .sn-home.current {
  background: var(--txt-1);
  color: white;
}

/* Подпись-тултип слева от кружка при наведении */
.side-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--txt-1);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.side-nav a::before {
  content: '';
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--txt-1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.side-nav a:hover::after,
.side-nav a:hover::before { opacity: 1; }

@media (max-width: 900px) {
  .side-nav {
    right: 12px;
    padding: 6px 4px;
    border-radius: 22px;
  }
  .side-nav .sn-tile,
  .side-nav .sn-home,
  .side-nav .sn-arrow { width: 30px; height: 30px; font-size: 12px; }
}
@media (max-width: 600px) {
  .side-nav { display: none; }
}

/* Footer навигация */
.layer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  gap: 16px;
}
.layer-nav > * { flex: 1 1 0; }
.layer-nav > *:nth-child(2) { text-align: center; }
.layer-nav > *:last-child { text-align: right; }
.layer-nav a { color: var(--txt-2); }
.layer-nav a:hover { color: var(--l1-discipline); }

/* Адаптация для узких экранов: на узком — горизонтальный скролл слоя */
@media (max-width: 1100px) {
  .page { padding: 40px 24px 64px; }
  .cover h1 { font-size: 44px; }
  .cover .lead { font-size: 16px; }
  .nav-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 13px; }
  .page { padding: 24px 16px 48px; }
  .cover h1 { font-size: 32px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  :root { --label-w: 220px; }
  .layer-spine .title { font-size: 17px; }
  .layer-spine { padding: 18px 16px; min-height: 180px; }
}

/* Сегментный чип в таблице кейсов (Слой 3) */
.seg-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* ===== Портреты ЦА — маркетинговые брифы (Слой 3) ===== */
.seg-portrait-btn {
  display: block; width: 100%; margin-top: 12px; padding: 9px 10px;
  border: none; background: var(--c, var(--txt-1)); color: #fff;
  border-radius: 8px; font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: filter .15s ease, transform .15s ease;
}
.seg-portrait-btn:hover { filter: brightness(1.14); transform: translateY(-1px); }

.portrait-store { display: none; }

.portrait {
  background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--c, var(--txt-1));
  border-radius: var(--r-card); padding: 22px 24px; max-width: 980px;
}
.p-head { display: flex; align-items: center; gap: 14px; }
.p-ava {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 52px;
  background: var(--c, var(--txt-1)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.p-name { font-size: 20px; font-weight: 800; color: var(--txt-1); }
.p-meta { font-size: 12.5px; color: var(--txt-2); margin-top: 2px; }
.p-brief {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c, var(--txt-2)); font-weight: 700; margin: 10px 0 16px;
}
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-sec {
  background: var(--bg-soft); border-radius: 10px; padding: 12px 14px;
  border-left: 3px solid var(--c, var(--line));
}
.p-sec.p-wide { grid-column: 1 / -1; }
.p-sec h5 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 7px;
  font-size: 13px; font-weight: 700; color: var(--txt-1);
  text-transform: none; letter-spacing: 0;
}
.p-sec h5 i {
  font-style: normal; width: 20px; height: 20px; flex: 0 0 20px;
  background: var(--c, var(--txt-1)); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.p-sec p { font-size: 12.5px; line-height: 1.5; color: var(--txt-1); margin: 0 0 6px; }
.p-sec p:last-child { margin-bottom: 0; }
.p-sec ul { margin: 0; padding-left: 18px; }
.p-sec li { font-size: 12.5px; line-height: 1.5; color: var(--txt-1); margin-bottom: 3px; }
.p-sec blockquote {
  margin: 0; padding: 10px 14px; background: #fff;
  border-left: 3px solid var(--c, var(--line)); border-radius: 6px;
  font-style: italic; font-size: 13px; line-height: 1.55; color: var(--txt-1);
}
.p-q-inline { font-size: 11.5px !important; color: var(--txt-2) !important; }
.p-q-inline i { color: var(--txt-1); }
.p-mkt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-mkt-h { font-size: 11.5px; font-weight: 700; margin-bottom: 5px; }
.p-mkt-yes .p-mkt-h { color: var(--st-final); }
.p-mkt-no .p-mkt-h { color: var(--st-crisis); }
.p-cols2 { columns: 2; column-gap: 24px; }

/* Модальное окно портрета */
.portrait-modal { display: none; position: fixed; inset: 0; z-index: 200; }
.portrait-modal.open { display: block; }
.pm-overlay { position: absolute; inset: 0; background: rgba(17,24,39,.55); }
.pm-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(900px, 92vw); max-height: 90vh; overflow-y: auto;
  background: var(--bg-soft); border-radius: 14px; padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.pm-close {
  position: sticky; top: 0; float: right; margin: -6px -6px 6px 0;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--txt-1); color: #fff; font-size: 16px; cursor: pointer; z-index: 1;
}
.pm-close:hover { background: var(--st-crisis); }
.pm-body .portrait { max-width: none; }

@media (max-width: 900px) {
  .p-grid, .p-mkt-cols { grid-template-columns: 1fr; }
  .p-cols2 { columns: 1; }
}
@media (max-width: 640px) {
  .portrait-store { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
  .seg-portrait-btn, .portrait-modal { display: none !important; }
}
@media print {
  .portrait-store { display: block !important; }
  .portrait-store .portrait { page-break-inside: avoid; margin-bottom: 16px; max-width: none; }
  .portrait-modal, .seg-portrait-btn { display: none !important; }
}
