/* ==========================================================================
   Шрифты. Локальные файлы в public/fonts — ни одного внешнего запроса.
   ========================================================================== */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/golos-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/golos-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/golos-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/golos-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sourceserif-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sourceserif-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sourceserif-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sourceserif-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sourceserif-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sourceserif-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sourceserif-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sourceserif-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Бриф на разработку корпоративного сайта
   Один файл, без сборки. Шрифты локальные, внешних запросов нет.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Палитра. Светлая тема определяет ВСЕ переменные; тёмная только переопределяет.
   -------------------------------------------------------------------------- */
:root {
  --ground: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #eaefec;
  --surface-3: #dfe7e2;
  --ink: #141b18;
  --ink-2: #3b4844;
  --muted: #6b7a74;
  --line: #d5ddd8;
  --line-strong: #b4c2bb;
  --accent: #0b6e5b;
  --accent-ink: #075044;
  --accent-soft: #e1efea;
  --danger: #a3301f;
  --danger-soft: #fbeae6;
  --danger-line: #e0b3a9;

  --p1-bg: #0b6e5b; --p1-fg: #ffffff;
  --p2-bg: #d7e4de; --p2-fg: #28443c;
  --p3-bg: #efdcd7; --p3-fg: #7e2e22;
  --p4-bg: #f1e6c9; --p4-fg: #6b4e10;

  --shadow: 0 1px 2px rgba(20, 27, 24, .05), 0 8px 24px -16px rgba(20, 27, 24, .25);
  --shadow-up: 0 -10px 28px -22px rgba(20, 27, 24, .7);

  --sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 4px;
  --focus: 0 0 0 3px var(--accent-soft);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e1412;
    --surface: #161e1b;
    --surface-2: #1d2724;
    --surface-3: #26332e;
    --ink: #e6ece8;
    --ink-2: #b6c3bd;
    --muted: #8b9a94;
    --line: #2a3733;
    --line-strong: #3f504a;
    --accent: #4fc0a2;
    --accent-ink: #8fe0c8;
    --accent-soft: #12332b;
    --danger: #f0a18f;
    --danger-soft: #33201c;
    --danger-line: #5c332b;

    --p1-bg: #1e6b58; --p1-fg: #e2f6ef;
    --p2-bg: #2c3a35; --p2-fg: #cfe0d8;
    --p3-bg: #4a2a24; --p3-fg: #f0bfb4;
    --p4-bg: #443a22; --p4-fg: #ebd59b;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .8);
    --shadow-up: 0 -10px 28px -22px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --ground: #0e1412;
  --surface: #161e1b;
  --surface-2: #1d2724;
  --surface-3: #26332e;
  --ink: #e6ece8;
  --ink-2: #b6c3bd;
  --muted: #8b9a94;
  --line: #2a3733;
  --line-strong: #3f504a;
  --accent: #4fc0a2;
  --accent-ink: #8fe0c8;
  --accent-soft: #12332b;
  --danger: #f0a18f;
  --danger-soft: #33201c;
  --danger-line: #5c332b;

  --p1-bg: #1e6b58; --p1-fg: #e2f6ef;
  --p2-bg: #2c3a35; --p2-fg: #cfe0d8;
  --p3-bg: #4a2a24; --p3-fg: #f0bfb4;
  --p4-bg: #443a22; --p4-fg: #ebd59b;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .8);
  --shadow-up: 0 -10px 28px -22px rgba(0, 0, 0, .9);
}

/* --------------------------------------------------------------------------
   Основа
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

[x-cloak] { display: none !important; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Шапка: название, счётчик и полоса прогресса во всю ширину
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.masthead h1 { font-size: clamp(21px, 3vw, 30px); margin-top: 8px; max-width: 24ch; }

.counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.counter-num { font-size: 26px; font-weight: 700; color: var(--accent-ink); }
.counter-of { font-size: 12px; color: var(--muted); }

.bar { height: 4px; background: var(--surface-3); }
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .35s ease;
}

/* --------------------------------------------------------------------------
   Каркас: оглавление слева, вопросы справа
   -------------------------------------------------------------------------- */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 140px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.side { position: sticky; top: 24px; padding: 30px 0 40px; }

.side-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.side-title::-webkit-details-marker { display: none; }
.side-title .chev { display: none; font-size: 14px; transition: transform .2s; }

.nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.nav-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 9px 8px 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.nav-item:hover { color: var(--accent-ink); background: var(--accent-soft); }
.nav-item .n { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 18px; }
.nav-item .nav-label { min-width: 0; }

.nav-item .dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
  align-self: center;
  transition: background .2s;
}

.nav-item[data-done="part"] .dot { background: var(--p4-fg); }
.nav-item[data-done="full"] .dot { background: var(--accent); }

.nav-item.active { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.nav-item.active .n { color: var(--accent); }

/* --------------------------------------------------------------------------
   Основная колонка
   -------------------------------------------------------------------------- */
main { padding: 30px 0 0; min-width: 0; }

.intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}

.intro h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.intro ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

.intro li {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  max-width: 68ch;
}

.intro li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.intro li b { color: var(--ink); font-weight: 600; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.section-head .code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
}

.section-head h2 { font-size: 20px; }

.section-note {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0 6px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Вопрос
   -------------------------------------------------------------------------- */
.q {
  padding: 22px 0 22px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  margin-left: -16px;
  transition: border-color .2s, background .2s;
}

.q:last-child { border-bottom: none; }

.q.has-error {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.q-head { display: flex; gap: 12px; align-items: baseline; }

.q-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  min-width: 32px;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.q-label {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
}

.q-label .req {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  vertical-align: super;
  margin-left: 3px;
}

.q-hint { font-size: 13.5px; color: var(--muted); margin: 7px 0 0 44px; max-width: 62ch; }
.q-body { margin: 14px 0 0 44px; }

.q-error {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Поля ввода
   -------------------------------------------------------------------------- */
input[type="text"], input[type="date"], textarea {
  width: 100%;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}

input[type="date"] { max-width: 220px; color-scheme: light dark; }
textarea { resize: vertical; min-height: 92px; line-height: 1.55; }

input[type="text"]:focus, input[type="date"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }

.has-error input[type="text"], .has-error input[type="date"], .has-error textarea { border-color: var(--danger-line); }

.opts { display: flex; flex-direction: column; gap: 9px; }
.opts.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px 18px; }

.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
  padding: 2px 0;
}

.opt:hover { color: var(--ink); }
.opt input { margin: 2px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.opt.unsure { color: var(--p4-fg); }

.other-wrap { margin-top: 12px; display: flex; align-items: center; gap: 10px; }

.other-wrap .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}

/* --------------------------------------------------------------------------
   Таблица приоритетов
   -------------------------------------------------------------------------- */
.prio-table {
  padding: 22px 0 6px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  margin-left: -16px;
}

.prio-table.has-error { border-left-color: var(--danger); background: var(--danger-soft); }

.prio-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 14px;
}

.prio-title .req { color: var(--accent); font-family: var(--mono); font-size: 12px; vertical-align: super; margin-left: 3px; }

.prio-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
}

.chip.c1 { background: var(--p1-bg); color: var(--p1-fg); }
.chip.c2 { background: var(--p2-bg); color: var(--p2-fg); }
.chip.c3 { background: var(--p3-bg); color: var(--p3-fg); }
.chip.c4 { background: var(--p4-bg); color: var(--p4-fg); }

.prio-item {
  padding: 9px 8px 9px 0;
  border-bottom: 1px solid var(--line);
}

.prio-item:last-of-type { border-bottom: none; }
.prio-item:hover { background: var(--surface-2); }
.prio-item.has-error { box-shadow: inset 2px 0 0 var(--danger); padding-left: 8px; }

.prio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

/* Иконка комментария — рядом с названием позиции. Заполненный комментарий
   помечает её акцентным цветом: видно, что уточнение есть, даже когда свёрнуто. */
.comment-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  vertical-align: -5px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--line-strong);
  cursor: pointer;
  transition: color .15s, background .15s;
}

.comment-toggle svg { width: 15px; height: 15px; }
.comment-toggle:hover { color: var(--accent-ink); background: var(--accent-soft); }
.comment-toggle.is-open { color: var(--accent-ink); background: var(--accent-soft); }
.comment-toggle.has-comment { color: var(--accent); }

.prio-item:hover .comment-toggle { color: var(--muted); }
.prio-item:hover .comment-toggle.has-comment { color: var(--accent); }

/* Комментарий подчинён строке: мельче и без заливки, пока не в фокусе. */
.prio-comment { margin-top: 8px; }

.prio-comment input[type="text"] {
  font-size: 13.5px;
  padding: 7px 10px;
  background: transparent;
  border-color: var(--line);
}

.prio-comment input[type="text"]:hover { border-color: var(--line-strong); }

.prio-comment input[type="text"]:focus {
  background: var(--surface);
  border-color: var(--accent);
}

/* Видно скринридеру, не видно глазом. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prio-name { font-family: var(--serif); font-size: 15.5px; line-height: 1.35; color: var(--muted); }
.prio-name.done { color: var(--ink); }

.seg { display: flex; gap: 3px; flex: none; }

.seg-btn {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background .12s, color .12s, border-color .12s;
}

.seg-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.seg-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-btn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg-btn.on.c1 { background: var(--p1-bg); color: var(--p1-fg); border-color: var(--p1-bg); }
.seg-btn.on.c2 { background: var(--p2-bg); color: var(--p2-fg); border-color: var(--p2-bg); }
.seg-btn.on.c3 { background: var(--p3-bg); color: var(--p3-fg); border-color: var(--p3-bg); }
.seg-btn.on.c4 { background: var(--p4-bg); color: var(--p4-fg); border-color: var(--p4-bg); }

/* --------------------------------------------------------------------------
   Нижняя панель
   -------------------------------------------------------------------------- */
.actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow-up);
  z-index: 20;
}

.actions-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.actions-buttons { display: flex; gap: 10px; }
.actions-hint { font-size: 12.5px; color: var(--muted); }

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity .15s, background .15s, border-color .15s;
}

:root[data-theme="dark"] .btn:not(.ghost) { color: #06211b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.ghost) { color: #06211b; }
}

.btn:hover { opacity: .88; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line-strong); }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); opacity: 1; }

.btn-busy { display: inline-flex; align-items: center; gap: 8px; }

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Незаполненные обязательные — не поломка, а подсказка: тон мягче ошибки. */
.alert-warning {
  background: var(--surface-2);
  border-color: var(--line-strong);
  border-left: 2px solid var(--p4-fg);
  color: var(--ink-2);
}

.alert {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 14.5px;
  max-width: 62ch;
}

/* Поле-ловушка: убрано из потока и от скринридеров, но не display:none —
   боты такие поля пропускают. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Экран после отправки
   -------------------------------------------------------------------------- */
.thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(70px, 16vh, 150px) 20px;
  text-align: left;
}

.thanks h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 10px; }

.thanks-text {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 20px;
}

.thanks-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-left: 2px solid var(--p4-fg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Адаптив: до 980px оглавление сворачивается в список над содержимым
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; gap: 0; padding-bottom: 150px; }
  .side { position: static; padding: 18px 0 0; }

  .side-title {
    pointer-events: auto;
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-2);
  }

  .side-title .chev { display: inline; }
  .sidenav[open] .side-title .chev { transform: rotate(180deg); }
  main { padding-top: 26px; }
}

@media (max-width: 640px) {
  .masthead-in { padding: 20px 16px 16px; align-items: flex-start; }
  .shell { padding-left: 16px; padding-right: 16px; }
  .q-hint, .q-body { margin-left: 0; }
  .q-num { min-width: auto; }
  .q, .prio-table { padding-left: 12px; margin-left: -14px; }
  .prio-row { grid-template-columns: 1fr; gap: 8px; }
  .prio-item { padding-right: 0; }
  .seg { flex-wrap: wrap; }
  .actions-in { padding: 12px 16px; gap: 10px; }
  .actions-buttons { width: 100%; }
  .actions-buttons .btn { flex: 1; padding: 11px 12px; }
  .actions-hint { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
