/* self-review.valiotti.tech — досье личности. Тёмная редакторская тема. */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0d0f13;
  --bg-soft: #14181f;
  --bg-card: #161b23;
  --bg-card2: #1b212b;
  --line: #28303c;
  --line-soft: #1f2630;
  --text: #ece6d9;
  --text-dim: #aab0bb;
  --muted: #6b727e;
  --fact: #79b894;      /* эмпирическое */
  --fact-bg: rgba(121,184,148,.10);
  --lens: #b3a3cf;      /* интерпретативная линза */
  --lens-bg: rgba(179,163,207,.10);
  --gold: #cda869;
  --accent: #7fa0cb;    /* холодный slate-blue, палитра Nick */
  --accent-soft: rgba(127,160,203,.12);
  --radius: 14px;
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #161c26 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }

/* Layout */
.shell { display: grid; grid-template-columns: 248px 1fr; max-width: 1180px; margin: 0 auto; gap: 0; }
.toc {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  padding: 38px 22px 38px 30px; border-right: 1px solid var(--line-soft);
}
.toc .brand { font-family: 'Spectral', serif; font-size: 19px; font-weight: 600; letter-spacing: .2px; color: var(--text); margin-bottom: 4px; }
.toc .brand small { display: block; font-family: 'Inter'; font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.toc nav { margin-top: 26px; display: flex; flex-direction: column; gap: 1px; }
.toc a { color: var(--text-dim); font-size: 13.5px; padding: 7px 11px; border-radius: 8px; display: flex; gap: 9px; align-items: baseline; transition: .15s; }
.toc a .n { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; min-width: 15px; }
.toc a:hover { background: var(--bg-card); color: var(--text); }
.toc a.active { background: var(--accent-soft); color: var(--text); }
.toc a.active .n { color: var(--accent); }

.main { padding: 0 46px 140px; min-width: 0; }

/* Cover */
.cover { padding: 84px 0 30px; border-bottom: 1px solid var(--line-soft); }
.cover .kicker { font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.cover h1 { font-family: 'Spectral', serif; font-weight: 600; font-size: 52px; line-height: 1.05; margin: 0 0 8px; letter-spacing: -.5px; }
.cover h1 .gr { color: var(--muted); font-style: italic; font-weight: 400; }
.cover .lede { font-size: 18px; color: var(--text-dim); max-width: 640px; margin: 18px 0 30px; line-height: 1.6; }
.cover .meta { display: flex; flex-wrap: wrap; gap: 26px; font-size: 13.5px; color: var(--text-dim); }
.cover .meta b { display: block; color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }

/* Legend */
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 0; }
.legend .item { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--line); padding: 8px 13px; border-radius: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.fact { background: var(--fact); box-shadow: 0 0 10px var(--fact-bg); }
.dot.lens { background: var(--lens); box-shadow: 0 0 10px var(--lens-bg); }

/* Sections */
section.block { padding: 64px 0 8px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 24px; }
.block > .head { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.block .num { font-family: 'Spectral', serif; font-style: italic; color: var(--gold); font-size: 21px; opacity: .8; }
.badge { font-size: 10.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; border: 1px solid; }
.badge.fact { color: var(--fact); border-color: rgba(121,184,148,.4); background: var(--fact-bg); }
.badge.lens { color: var(--lens); border-color: rgba(179,163,207,.4); background: var(--lens-bg); }
.badge.meta { color: var(--gold); border-color: rgba(205,168,105,.4); background: rgba(205,168,105,.08); }
.block h2 { font-family: 'Spectral', serif; font-weight: 600; font-size: 30px; margin: 0 0 4px; letter-spacing: -.3px; }
.verdict { font-size: 18px; color: var(--text); font-family: 'Spectral', serif; font-style: italic; line-height: 1.5; margin: 14px 0 22px; padding-left: 16px; border-left: 2px solid var(--gold); }
.block p { color: var(--text-dim); margin: 14px 0; }
.block p strong, .block li strong { color: var(--text); font-weight: 600; }
.block ul { color: var(--text-dim); padding-left: 0; list-style: none; }
.block ul li { position: relative; padding-left: 20px; margin: 9px 0; }
.block ul li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Cards & grids */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin: 22px 0; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; }
.card .k { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.card .v { font-family: 'Spectral', serif; font-size: 23px; font-weight: 600; color: var(--text); line-height: 1.15; }
.card .v small { display: block; font-family: 'Inter'; font-size: 12.5px; font-weight: 400; color: var(--text-dim); margin-top: 5px; letter-spacing: 0; text-transform: none; }

table.data { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); }
table.data td.hl { color: var(--text); font-weight: 500; }
table.data tr:hover td { background: var(--bg-soft); }
.glyph { color: var(--accent); font-size: 15px; }

/* Chart wheel */
.wheel-wrap { display: flex; justify-content: center; margin: 26px 0; }
svg.wheel { max-width: 460px; width: 100%; height: auto; }

/* element bars */
.bars { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 12px; font-size: 13px; }
.bar-row .lab { color: var(--text-dim); }
.bar-track { height: 9px; background: var(--bg-card2); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.bar-row .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* photos */
.photos { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.photos img { height: 220px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; filter: saturate(.92) contrast(1.02); }

/* convergence callouts */
.conv { background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--fact); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.conv.diverge { border-left-color: var(--lens); }
.conv h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--text); font-family: 'Spectral', serif; font-weight: 600; }
.conv p { margin: 0; font-size: 14px; }
.conv .tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.conv .tag { font-size: 11px; color: var(--text-dim); background: var(--bg-card2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; }

.note { font-size: 13px; color: var(--muted); font-style: italic; margin: 16px 0; padding: 12px 15px; background: var(--bg-soft); border-radius: 10px; }
.footer { padding: 50px 0 0; color: var(--muted); font-size: 12.5px; }

/* unlock page */
.unlock { min-height: 100vh; display: grid; place-items: center; }
.unlock .box { width: 320px; text-align: center; }
.unlock h1 { font-family: 'Spectral', serif; font-weight: 600; font-size: 26px; margin: 0 0 6px; }
.unlock p { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }
.unlock input { width: 100%; background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 22px; text-align: center; letter-spacing: 8px; padding: 13px; font-family: 'Spectral', serif; }
.unlock input:focus { outline: none; border-color: var(--accent); }
.unlock button { width: 100%; margin-top: 12px; background: var(--accent); color: #0d0f13; border: none; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s; }
.unlock button:hover { filter: brightness(1.08); }
.unlock .err { color: #d98a8a; font-size: 13px; margin-top: 12px; min-height: 18px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .toc { display: none; }
  .main { padding: 0 22px 100px; }
  .cover h1 { font-size: 38px; }
}
