/* ИнвестРеалити визуал — базовые токены, типографика, сетка */

:root {
  /* 4 линии результата (сквозной код через все слои) */
  --l1-discipline:   #3B82F6;
  --l2-risk:         #10B981;
  --l3-technique:    #A855F7;
  --l4-emotions:     #EC4899;

  /* 4 активных сегмента ЦА + спящие */
  --seg-1-expert:    #1F2937;
  --seg-2-worker:    #F97316;
  --seg-3-analyst:   #0EA5E9;
  --seg-5-selfdev:   #8B5CF6;
  --seg-4-sleeping:  #9CA3AF;

  /* Точки спада — градация по интенсивности риска */
  --sp-low:          #FCA5A5;
  --sp-mid:          #EF4444;
  --sp-high:         #B91C1C;

  /* Состояния эмоционального контура */
  --st-neutral:      #06B6D4; /* включена */
  --st-overload:    #F59E0B; /* тонет */
  --st-crisis:       #EF4444; /* кризис */
  --st-breakthrough: #84CC16; /* прорыв */
  --st-final:        #059669; /* интегрировано */

  /* 5 каналов коммуникации */
  --ch-platform:     #1E40AF; /* платформа — знания */
  --ch-zoom:         #EA580C; /* эфиры */
  --ch-chat:         #0891B2; /* чат потока */
  --ch-bot:          #7C3AED; /* чат-бот */
  --ch-channel:      #DB2777; /* открытый канал */

  /* Типы активностей на дорожках */
  --act-content:     #06B6D4;
  --act-motivation:  #F59E0B;
  --act-measure:     #3B82F6;
  --act-gate:        #10B981;
  --act-special:     #DC2626;

  /* База */
  --bg:              #FFFFFF;
  --bg-soft:         #F9FAFB;
  --bg-grid:         #F3F4F6;
  --txt-1:           #1F2937;
  --txt-2:           #6B7280;
  --txt-3:           #9CA3AF;
  --line:            #E5E7EB;
  --line-strong:     #D1D5DB;

  /* Радиус, спейсинги */
  --r-pill:          999px;
  --r-card:          8px;
  --r-tag:           4px;

  --pad-card:        14px;
  --gap-card:        16px;
  --gap-col:         24px;
  --gap-layer:       80px;

  --col-w:           260px;     /* стандартная ширина колонки-блока */
  --col-w-wide:      320px;
  --label-w:         260px;     /* ширина левого корешка слоя — вмещает «ТЕМАТИЧЕСКИЙ» */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--txt-1);
  background: var(--bg-soft);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .4em 0; color: var(--txt-1); letter-spacing: -0.01em; }
h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--txt-2); }
p { margin: 0 0 .6em 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin-bottom: .2em; }
a { color: var(--l1-discipline); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Цитата ученицы */
.quote {
  font-style: italic;
  color: var(--txt-2);
  font-size: 12.5px;
  line-height: 1.4;
  border-left: 2px solid var(--line-strong);
  padding: 0 0 0 8px;
  margin: 6px 0 0 0;
}
.quote::before { content: '«'; }
.quote::after  { content: '»'; }

/* Маркер достоверности — пунктирная обводка для ⚠️ */
.unconfirmed { border-style: dashed !important; }

/* Глобальный контейнер страницы */
.page {
  max-width: none;
  padding: 64px 48px 96px;
}

/* Шапка-обложка */
.cover {
  max-width: 1200px;
  margin: 0 auto 80px;
}
.cover .meta {
  color: var(--txt-2);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cover h1 {
  font-size: 56px;
  margin-bottom: 14px;
  line-height: 1.05;
}
.cover .lead {
  font-size: 18px;
  color: var(--txt-2);
  max-width: 720px;
  margin-bottom: 32px;
}

/* Навигация по слоям (на обложке) */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 48px;
}
.nav-tile {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--l2-risk));
  border-radius: var(--r-card);
  padding: 18px 18px 16px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  color: var(--txt-1);
  text-decoration: none;
}
.nav-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  text-decoration: none;
}
.nav-tile .n { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--txt-2); margin-bottom: 6px; }
.nav-tile .t { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.nav-tile .d { font-size: 13px; color: var(--txt-2); }

/* Глобальная легенда — горизонтальный блок */
.legend-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 22px;
  margin: 32px 0;
}
.legend-block h3 { margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--txt-2); }
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--txt-1);
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 14px;
}
.legend-bar {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  flex: 0 0 22px;
}

/* Печать */
@media print {
  body { background: white; }
  .page { padding: 24px; }
  .layer { page-break-inside: avoid; break-inside: avoid; }
  .nav-tile, .legend-block { box-shadow: none; }
}
