/* @import must be the first statement(s) in the file (CSS spec) — so the
   fonts/design-system files load here, and the small set of element
   selectors that would otherwise lose to Tailwind's preflight (body, h1-h3,
   p, a) are re-asserted below inside @layer base, which Tailwind splices in
   at @tailwind base's position regardless of where it physically sits in
   this file. *//* Сгенерировано tools/fetch-fonts.mjs — локальные шрифты (Google Fonts, OFL) */
/* cyrillic-ext */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-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;
}
/* cyrillic */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-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;
}
/* latin */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-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;
}
/* cyrillic */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-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;
}
/* latin */
@font-face {
font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-italic-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;
}
/* latin */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-italic-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* cyrillic */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* latin */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* cyrillic */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* latin */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* cyrillic */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* latin */
@font-face {
font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'STIX Two Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'STIX Two Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'STIX Two Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-italic-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;
}
/* latin */
@font-face {
font-family: 'STIX Two Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-italic-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;
}
/* cyrillic-ext */
@font-face {
font-family: 'STIX Two Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-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;
}
/* cyrillic */
@font-face {
font-family: 'STIX Two Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
font-family: 'STIX Two Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-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;
}
/* latin */
@font-face {
font-family: 'STIX Two Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/stix-two-text-400-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;
}
/* ============================================================
   ПСИХОГРАФ — дизайн-система «научная монография»
   Типографика: STIX Two Text / IBM Plex Sans / IBM Plex Mono
   Палитра графика валидирована (CVD, контраст, светлота)
   ============================================================ */

:root {
  /* — поверхность и чернила — */
  --paper: #FAF7F2;
  --paper-2: #F3EFE7;
  --paper-3: #ECE7DC;
  --ink: #191D23;
  --ink-2: #4A5058;
  --ink-3: #666C75;
  --hairline: rgba(25, 29, 35, 0.14);
  --hairline-strong: rgba(25, 29, 35, 0.32);
  --grid-line: rgba(25, 29, 35, 0.045);

  /* — акценты (валидированная палитра, режим light) — */
  --accent: #2456A6;        /* линия профиля, интерактив */
  --accent-ink: #1C4485;
  --accent-2: #B4552D;      /* второй ряд данных, отметки */
  --accent-3: #0E8266;      /* третий ряд данных */
  --accent-soft: rgba(36, 86, 166, 0.08);
  --accent-soft-2: rgba(36, 86, 166, 0.16);

  /* — статусы — */
  --ok: #1C7040;
  --ok-soft: rgba(30, 122, 70, 0.1);
  --warn: #855B00;
  --warn-soft: rgba(154, 106, 0, 0.1);
  --danger: #B3352E;
  --danger-soft: rgba(179, 53, 46, 0.09);

  /* — коридор нормы на графике — */
  --corridor: rgba(36, 86, 166, 0.055);
  --corridor-line: rgba(25, 29, 35, 0.22);

  /* — типографика — */
  --font-display: "STIX Two Text", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* — геометрия — */
  --container: 1120px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 2px rgba(25, 29, 35, 0.05), 0 8px 28px -12px rgba(25, 29, 35, 0.16);
  --shadow-pop: 0 2px 6px rgba(25, 29, 35, 0.08), 0 24px 64px -16px rgba(25, 29, 35, 0.28);

  --header-h: 64px;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #15181C;
  --paper-2: #1B1F25;
  --paper-3: #232830;
  --ink: #E9E6DF;
  --ink-2: #A9ACB3;
  --ink-3: #8E939B;
  --hairline: rgba(233, 230, 223, 0.14);
  --hairline-strong: rgba(233, 230, 223, 0.34);
  --grid-line: rgba(233, 230, 223, 0.04);

  --accent: #5B8FD9;
  --accent-ink: #7FA9E4;
  --accent-2: #D07A4A;
  --accent-3: #2BA37F;
  --accent-soft: rgba(91, 143, 217, 0.12);
  --accent-soft-2: rgba(91, 143, 217, 0.22);

  --ok: #4CAF79;
  --ok-soft: rgba(76, 175, 121, 0.12);
  --warn: #D6A644;
  --warn-soft: rgba(214, 166, 68, 0.12);
  --danger: #E0685F;
  --danger-soft: rgba(224, 104, 95, 0.12);

  --corridor: rgba(91, 143, 217, 0.07);
  --corridor-line: rgba(233, 230, 223, 0.22);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px -12px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 64px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ============ базовое ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* JS переключает hidden у элементов с display-классами */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* миллиметровая сетка научного бланка */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Belt-and-suspenders against any element (fonts/JS-driven widgets)
     rendering a hair wider than the viewport on real mobile browsers —
     nothing in this layout intentionally relies on horizontal page
     scroll; components that need it (tables, pricing grid) declare
     their own overflow-x: auto. */
  overflow-x: hidden;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::-moz-selection { background: var(--accent-soft-2); }
::selection { background: var(--accent-soft-2); }
p { text-wrap: pretty; }

/* зерно бумаги — едва заметная тактильность */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 3000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after { opacity: 0.55; }
@media print { body::after { display: none; } }

/* живое подчёркивание содержательных ссылок */
main a:not(.btn):not(.brand):not(.skip-link):not(.scale-card):not(.about-toc a) {
  text-decoration: none;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(color-mix(in srgb, currentColor 38%, transparent), color-mix(in srgb, currentColor 38%, transparent));
  background-size: 0% 1.5px, 100% 1px;
  background-position: 0 96%, 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
main a:not(.btn):not(.brand):not(.skip-link):hover { background-size: 100% 1.5px, 100% 1px; }

h1, h2, h3, .h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.13rem; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }

.mono, code, .t-val { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* надзаголовок-«шифр» как в монографии */
.overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  row-gap: 8px;
  margin-bottom: 14px;
}
.overline::before { content: ""; width: 26px; height: 1px; background: var(--hairline-strong); }
.overline .num { color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-size: 0.9rem; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ============ шапка ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.28s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
body.pg-header-hidden .progress-rail { top: 0; }
.progress-rail { transition: top 0.28s ease; }
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
  margin-right: auto;
}
.brand svg { flex: none; }
.brand .brand-mark-line { stroke: var(--accent); }
.brand .brand-mark-frame { stroke: var(--hairline-strong); }
.brand sup {
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.1em; top: -0.7em;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 0.92rem; color: var(--ink-2); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; border: 1px solid var(--hairline); background: transparent;
  color: var(--ink-2); width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--hairline-strong); color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-burger {
  display: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; background: none; border: 1px solid var(--hairline);
  border-radius: var(--radius); width: 38px; height: 38px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

[x-cloak] { display: none !important; }

.header-search { position: relative; }
.header-search-form {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  width: min(320px, 80vw);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 10px;
}
.header-search-form input {
  width: 100%; font-family: var(--font-body); font-size: 0.92rem;
  color: var(--ink); background: var(--paper-2); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: 9px 12px;
}
.header-search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.header-search-suggest { margin-top: 8px; display: flex; flex-direction: column; }
.header-search-suggest a {
  padding: 8px 10px; border-radius: var(--radius); font-size: 0.88rem; color: var(--ink-2);
  text-decoration: none;
}
.header-search-suggest a:hover { background: var(--paper-2); color: var(--ink); }

@media (max-width: 500px) {
  .header-actions .btn { display: none; } /* CTA дублируется в hero и меню */
  .brand sup { display: none; }
}
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 8px clamp(16px, 4vw, 32px) 16px;
    box-shadow: var(--shadow-card);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; border-bottom: 1px solid var(--hairline); border-radius: 0; }
  .nav-burger { display: inline-flex; }
}

/* ============ кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
[data-theme="dark"] .btn-primary { color: #10131A; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn[disabled], .btn.disabled { opacity: 0.55; pointer-events: none; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ карточки / плашки ============ */
.card {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.card-paper {
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--hairline-strong); color: var(--ink-2);
}
.badge-accent { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.badge-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }

.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.callout.warn { border-left-color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }
.callout.ok { border-left-color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }

/* штамп «демо» */
.stamp {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1.5px solid color-mix(in srgb, var(--accent-2) 65%, transparent);
  border-radius: 3px;
  padding: 3px 8px;
  transform: rotate(-2deg);
}

/* ============ герой ============ */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(44px, 7vw, 84px); }
.hero .container { display: grid; grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.hero-meta .m { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m b { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.hero-meta .m span { font-size: 0.78rem; color: var(--ink-3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-chart-wrap { position: relative; }
.hero-chart-frame {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 10px 8px;
}
.hero-chart-frame .frame-cap {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 14px 8px; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ============ «живой психограф» в герое ============ */
.psy-frame {
  transition: box-shadow 0.25s ease; /* transform управляется из JS без transition во время слежения */
  transform-style: preserve-3d;
  will-change: transform;
}
.psy-frame:hover { box-shadow: var(--shadow-pop); }
.psy-topcap {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 0 14px 10px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--hairline); margin-bottom: 8px;
}
.psy-rec { display: inline-flex; align-items: center; gap: 7px; }
.psy-rec-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse { 50% { opacity: 0.2; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent); } }
.psy-archetype { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psy-archetype.swap { animation: arch-swap 0.5s ease; }
@keyframes arch-swap { 0% { opacity: 0; transform: translateY(5px); } }

.psy-stage { position: relative; }
#psy-svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 380; }

/* слои SVG — темизация через переменные */
.psy-corridor { fill: var(--corridor); }
.psy-grid { stroke: var(--hairline); stroke-width: 1; }
.psy-grid-mid { stroke: var(--corridor-line); stroke-width: 1; stroke-dasharray: 5 5; }
.psy-axis-x, .psy-axis-y, .psy-note {
  font-family: var(--font-mono); fill: var(--ink-3); font-size: 11px;
}
.psy-note { font-size: 10px; letter-spacing: 0.06em; }
.psy-line {
  stroke: var(--accent); stroke-width: 2.2;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 1px 6px color-mix(in srgb, var(--accent) 30%, transparent));
}
.psy-point { fill: var(--accent); stroke: var(--paper); stroke-width: 2; transition: r 0.15s; }
.psy-point-halo { fill: var(--accent); transition: opacity 0.15s; }
.psy-pen {
  fill: var(--accent-2); stroke: none;
  filter: drop-shadow(0 0 6px var(--accent-2));
}
.psy-crosshair { stroke: var(--hairline-strong); stroke-width: 1; stroke-dasharray: 3 4; transition: opacity 0.15s; }

.psy-tip {
  position: absolute; transform: translate(-50%, -100%);
  background: var(--ink); color: var(--paper);
  font-size: 0.78rem; padding: 5px 10px; border-radius: 5px;
  pointer-events: none; white-space: nowrap; z-index: 3;
  box-shadow: var(--shadow-pop);
}
.psy-tip .mono { font-family: var(--font-mono); }

.psy-delta {
  position: absolute; transform: translate(-50%, -120%);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  pointer-events: none; z-index: 2;
  animation: delta-float 1.35s ease-out forwards;
}
.psy-delta.up { color: var(--accent-2); }
.psy-delta.down { color: var(--accent-3); }
@keyframes delta-float {
  0% { opacity: 0; translate: 0 6px; }
  18% { opacity: 1; }
  100% { opacity: 0; translate: 0 -26px; }
}

/* карточка мини-демо */
.psy-quiz {
  margin-top: 14px;
  padding: 16px 18px 12px;
  border-left: 3px solid var(--accent);
}
.psy-quiz-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
}
.psy-quiz-title {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent-ink);
}
.psy-quiz-step { font-size: 0.72rem; color: var(--ink-3); font-family: var(--font-mono); }
.psy-quiz-q {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 500;
  line-height: 1.35; margin: 0 0 12px; min-height: 2.7em;
}
.psy-quiz-answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.psy-quiz-answers .answer-btn { padding: 9px 6px; font-size: 0.88rem; }
.psy-quiz-note { font-size: 0.72rem; color: var(--ink-3); margin: 10px 0 0; }
.psy-quiz-done { font-size: 0.92rem; margin: 0 0 12px; }
.psy-quiz-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.psy-quiz-cta .btn { white-space: normal; }
@media (max-width: 480px) {
  .psy-quiz-answers { grid-template-columns: 1fr 1fr; }
  .psy-quiz-answers .answer-btn { font-size: 0.8rem; padding: 8px 4px; }
  .psy-quiz-q { min-height: 4.05em; }
  .psy-quiz-cta { flex-direction: column; align-items: stretch; }
  /* номиналы в единицах viewBox: на узком экране SVG сжат вдвое — подписи крупнее */
  .psy-axis-x, .psy-axis-y { font-size: 16px; }
  .psy-note { display: none; }
}

/* появление карточек при скролле */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); }
  .rise.in { animation: rise-in 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--rise-d, 0ms); }
  @keyframes rise-in { to { opacity: 1; transform: none; } }
}

/* появление при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .reveal.d1 { animation-delay: 0.08s; } .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.3s; }  .reveal.d4 { animation-delay: 0.44s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ============ секции главной ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* тонированная полоса для ритма страницы */
.section-tint {
  background: color-mix(in srgb, var(--paper-2) 72%, var(--paper));
}

/* --- 02: процесс-рейл (лабораторный протокол) --- */
.process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.process::before {
  content: ""; position: absolute; top: 24px; left: calc(16.66% ); right: calc(16.66%);
  border-top: 1.5px dashed var(--hairline-strong); z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.ps-marker {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--paper);
}
.process-step:nth-child(3) .ps-marker { border-color: var(--accent-2); color: var(--accent-2); }
.ps-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.ps-tag b { color: var(--accent); font-weight: 500; }
.process-step:nth-child(3) .ps-tag b { color: var(--accent-2); }
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--ink-2); font-size: 0.95rem; margin: 0; max-width: 34ch; }
@media (max-width: 860px) {
  /* padding-left on .process/.process-step must both equal the marker's
     48px width (+ a hair) so the absolutely-positioned circle lands flush
     with .process's own edge instead of a few px past it — a mismatch
     here previously pushed the circle a few pixels off the left edge of
     the viewport on narrow phones. */
  .process { grid-template-columns: 1fr; gap: 34px; padding-left: 56px; }
  .process::before {
    top: 24px; bottom: 24px; left: 24px; right: auto; width: 0;
    border-top: none; border-left: 1.5px dashed var(--hairline-strong);
  }
  .process-step { padding-left: 56px; }
  .ps-marker { position: absolute; left: -56px; top: -4px; }
}

/* --- 03: карта шкал --- */
.scale-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 22px; font-size: 0.82rem; color: var(--ink-2); }
.scale-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }
.scale-legend .dot.validity { background: var(--accent-2); }
.scale-legend .dot.clinical { background: var(--accent); }
.scale-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.scale-card {
  position: relative;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 14px 16px 13px;
  display: flex; flex-direction: column; gap: 3px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.scale-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); box-shadow: var(--shadow-card); }
.scale-card .sc-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 5px;
  transition: transform 0.16s ease;
}
.scale-card .sc-icon svg { width: 18px; height: 18px; }
.scale-card[data-group="validity"] .sc-icon { background: color-mix(in srgb, var(--accent-2) 15%, transparent); color: var(--accent-2); }
.scale-card:hover .sc-icon { transform: scale(1.08); }
.scale-card .sc-code {
  font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: var(--accent);
  display: flex; align-items: baseline; justify-content: space-between;
}
.scale-card[data-group="validity"] .sc-code { color: var(--accent-2); }
.scale-card .sc-mmpi { font-size: 0.68rem; color: var(--ink-3); letter-spacing: 0.08em; }
.scale-card b { font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.scale-card span.sc-desc { font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; }
.scale-card::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2px; border-radius: 2px 2px 0 0;
  background: var(--accent); opacity: 0; transition: opacity 0.16s;
}
.scale-card[data-group="validity"]::after { background: var(--accent-2); }
.scale-card:hover::after { opacity: 0.9; }

/* --- 05: принципы (редакторский список) --- */
.principles { display: flex; flex-direction: column; }
.principle {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--hairline);
}
.principle:last-child { border-bottom: 1px solid var(--hairline); }
.principle .pr-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  color: color-mix(in srgb, var(--accent) 55%, var(--paper-3)); line-height: 1;
}
.principle h3 { margin-bottom: 6px; font-size: 1.12rem; }
.principle p { margin: 0; color: var(--ink-2); font-size: 0.95rem; max-width: 56ch; }
@media (max-width: 560px) { .principle { grid-template-columns: 48px 1fr; gap: 12px; } .principle .pr-num { font-size: 1.5rem; } }

/* --- контакты --- */
.contact-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-hero .lead { margin-top: 10px; }
.contact-orbit { flex: none; width: 108px; height: 108px; position: relative; }
.contact-orbit svg { width: 100%; height: 100%; }
.contact-orbit .co-ring { fill: none; stroke: var(--hairline-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.contact-orbit .co-ring2 { fill: none; stroke: var(--hairline); stroke-width: 1; }
.contact-orbit .co-dot { fill: var(--accent); }
.contact-orbit .co-dot2 { fill: var(--accent-2); }
.contact-orbit .co-core { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 34px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.contact-card .cc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.contact-card .cc-icon svg { width: 22px; height: 22px; }
.contact-card .cc-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); }
.contact-card .cc-value {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600;
  color: var(--ink); text-decoration: none; word-break: break-word; line-height: 1.25;
}
.contact-card a.cc-value:hover { color: var(--accent-ink); }
.contact-card .cc-note { font-size: 0.85rem; color: var(--ink-3); margin-top: -6px; }

.legal-card {
  margin-top: 32px; background: var(--paper-2); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 28px 30px;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.legal-card .cc-icon { flex: none; }
.legal-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.legal-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 0.94rem; }
.legal-card dt { color: var(--ink-3); }
.legal-card dd { margin: 0; }
@media (max-width: 560px) {
  .legal-card { grid-template-columns: 1fr; }
  .contact-hero { flex-direction: column; }
}

/* --- 06: FAQ-разворот --- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .callout { margin-top: 18px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* --- 04: тарифы, премиум-переработка --- */
#pricing .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: start;
  align-items: stretch; row-gap: 44px; -moz-column-gap: clamp(24px, 3vw, 40px); column-gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 860px) { #pricing .grid-2 { grid-template-columns: 1fr; row-gap: 30px; } }

.price-card {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(26px, 3.2vw, 34px) clamp(22px, 2.8vw, 30px) clamp(28px, 3.2vw, 32px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius-lg) + 4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--hairline-strong); }

.price-card .badge { font-size: 0.68rem; }

.price-card.featured {
  background: linear-gradient(168deg, color-mix(in srgb, var(--accent) 7%, var(--paper)) 0%, var(--paper) 60%);
  border: 1.5px solid color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: var(--shadow-pop);
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-11px); box-shadow: var(--shadow-pop); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
@media (max-width: 860px) {
  .price-card.featured, .price-card.featured:hover { transform: none; }
}

.price-card .price-stamp {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 18px; border-radius: 999px;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 65%, transparent);
}
[data-theme="dark"] .price-card .price-stamp { color: #0D1117; }

.price-card .price {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.01em;
}
.price-card.featured .price { color: var(--accent-ink); }
.price-card .price small {
  display: block; margin-top: 8px;
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 400;
  letter-spacing: 0; color: var(--ink-3);
}

.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.93rem; flex: 1; }
.price-card ul li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.4; }
.price-card ul li::before {
  content: "✓"; flex: none; margin-top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700;
  background: var(--paper-3); color: var(--ink-3);
}
.price-card.featured ul li::before { background: var(--accent-soft); color: var(--accent-ink); }

.price-card .btn { margin-top: 4px; justify-content: center; }
.price-card.featured .btn-primary { box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 55%, transparent); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 4px; font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; flex: none; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 18px; color: var(--ink-2); max-width: 70ch; }

/* ============ каталог ============ */
.test-card { display: flex; flex-direction: column; gap: 12px; }
.test-card .test-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.test-card .meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); }
.test-card .actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* паспорт методики: контент + мини-профиль */
.test-passport { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 34px); align-items: stretch; }
.tp-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp-side {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--paper-2); padding: 14px 10px 8px;
  display: flex; flex-direction: column; justify-content: center;
}
.tp-side svg { width: 100%; height: auto; }
.tp-side .tp-cap {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); text-align: center; padding-top: 6px;
}
@media (max-width: 780px) { .test-passport { grid-template-columns: 1fr; } }

/* будущие методики — «чертёжные» карточки */
.test-card.soon {
  border-style: dashed; border-color: var(--hairline-strong);
  background: transparent; box-shadow: none;
}
.test-card.soon h3 { color: var(--ink-2); }

/* ============ прохождение теста ============ */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.progress-rail {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
}
.progress-rail .container { display: flex; align-items: center; gap: 16px; max-width: 820px; }
.progress-track { flex: 1; height: 4px; background: var(--paper-3); border-radius: 2px; overflow: hidden; position: relative; }
.progress-track::after {
  /* деления на 25 / 50 / 75 % */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) 25% 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) 50% 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--hairline-strong), var(--hairline-strong)) 75% 0 / 1.5px 100% no-repeat;
  opacity: 0.6;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.25s ease; position: relative; z-index: 1; }
.progress-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }

.q-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 26px;
}
.q-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); display: flex; justify-content: space-between; margin-bottom: 14px; }
.q-text {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 500; line-height: 1.35; min-height: 3.2em; margin-bottom: 22px;
  overflow-wrap: break-word;
}
.q-text:focus { outline: none; }
.instructions-text { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
.instructions-text p { margin: 0 0 0.85em; }
.instructions-text p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 500; }
.answer-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .answer-row { grid-template-columns: 1fr; } }
.answer-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; cursor: pointer;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  padding: 15px 10px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.answer-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.answer-btn:active { transform: scale(0.985); }
.answer-btn.selected { border-color: var(--accent); background: var(--accent-soft-2); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.answer-btn kbd {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3);
  border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 6px; background: var(--paper-2);
}
.answer-btn.selected kbd { color: var(--accent-ink); }
.quiz-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
@media (max-width: 420px) { .quiz-nav .btn { padding: 11px 13px; font-size: 0.88rem; } }
.quiz-hint { text-align: center; font-size: 0.8rem; color: var(--ink-3); margin-top: 22px; }
.quiz-hint kbd { font-family: var(--font-mono); border: 1px solid var(--hairline); border-radius: 3px; padding: 0 5px; }

/* экран «расчёт профиля» */
.calc-steps {
  list-style: none; margin: 18px auto 4px; padding: 0;
  max-width: 46ch; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
}
.calc-steps li {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-3);
  display: flex; gap: 10px; align-items: baseline;
  opacity: 0.45; transition: opacity 0.3s, color 0.3s;
}
.calc-steps li::before { content: "○"; color: var(--hairline-strong); flex: none; transition: color 0.3s; }
.calc-steps li.done { opacity: 1; color: var(--ink-2); }
.calc-steps li.done::before { content: "✓"; color: var(--ok); }

/* стартовый экран теста */
.consent-box { display: flex; flex-direction: column; gap: 14px; }
.consent-box label.check {
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-2); cursor: pointer;
}
.consent-box input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-pick { grid-template-columns: 1fr; } }
.form-pick .pick {
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: 18px; cursor: pointer; background: var(--paper);
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  font-family: var(--font-body);
}
.form-pick .pick b { font-size: 1.05rem; }
.form-pick .pick span { font-size: 0.84rem; color: var(--ink-3); }
.form-pick .pick.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* ============ результаты ============ */
.result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }

/* стат-плитки протокола */
.stat-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-card);
  margin-top: 22px; overflow: hidden;
}
.stat-tile {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px 14px;
  min-width: 0;
}
.stat-tile + .stat-tile { border-left: 1px solid var(--hairline); }
.stat-label {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3);
}
.stat-value { font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.stat-value.mono { font-family: var(--font-mono); font-weight: 500; }
.stat-sub { font-size: 0.76rem; color: var(--ink-3); }
@media (max-width: 720px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .stat-tile:nth-child(3) { border-left: none; }
  .stat-tile:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 420px) {
  .stat-tiles { grid-template-columns: 1fr; }
  .stat-tile { border-left: none !important; }
  .stat-tile + .stat-tile { border-top: 1px solid var(--hairline); }
  .stat-value { font-size: 1.15rem; }
}

/* поэтапное появление строк таблицы шкал */
@media (prefers-reduced-motion: no-preference) {
  tr.row-in { animation: row-in 0.45s both; animation-delay: var(--row-d, 0ms); }
  @keyframes row-in { from { opacity: 0; } }
}

/* печатная шапка протокола */
.print-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 16px;
  font-size: 0.9rem;
}
.print-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.chart-frame {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 20px 8px 6px; margin-top: 26px;
}
.chart-frame .frame-cap {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 10px; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
#profile-chart { display: block; width: 100%; height: auto; aspect-ratio: 640 / 400; }

.scale-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.scale-table th, .scale-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.scale-table th {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
  border-bottom: 1px solid var(--hairline-strong);
}
.scale-table td.num { font-family: var(--font-mono); font-size: 0.88rem; }
.scale-table tr:hover td { background: var(--paper-2); }
.t-band { font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.t-band.low { background: var(--paper-3); color: var(--ink-2); }
.t-band.norm { background: var(--ok-soft); color: var(--ok); }
.t-band.mild { background: var(--warn-soft); color: var(--warn); }
.t-band.high { background: var(--danger-soft); color: var(--danger); }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.link-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: var(--accent-ink); }

/* ============ ИИ-анализ ============ */
.ai-report {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 44px);
  max-width: 820px; margin: 0 auto;
  overflow-wrap: anywhere;
}
.ai-report h3 { margin-top: 1.6em; }
.ai-report h3:first-child { margin-top: 0; }
.ai-report .report-rule { border: none; border-top: 1px solid var(--hairline); margin: 26px 0; }
.q15 { display: flex; flex-direction: column; gap: 22px; }
.q15 .q15-item label.q-label { display: block; font-weight: 600; margin-bottom: 10px; }
.q15 .q15-item .idx { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; margin-right: 8px; }
.q15 select, .q15 textarea, .q15 input[type="text"], .field input, .field select, .field textarea, .field-input {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: 11px 12px;
}
.q15 textarea { min-height: 84px; resize: vertical; }
.q15 select:focus, .q15 textarea:focus, .q15 input:focus, .field-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-input[disabled] { opacity: 0.6; cursor: not-allowed; }
.field-label { display: block; font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.radio-line { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-line label {
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 7px 14px;
  font-size: 0.88rem; cursor: pointer; background: var(--paper);
}
.radio-line input { position: absolute; opacity: 0; pointer-events: none; }
.radio-line label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft-2); color: var(--accent-ink); }
.radio-line label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.gen-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.gen-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ============ история ============ */
.history-item { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.history-item .mini-profile { flex: none; }
.history-item .info { flex: 1; min-width: 200px; }
.history-item .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty-state .glyph { font-family: var(--font-mono); font-size: 2rem; color: var(--hairline-strong); letter-spacing: 0.2em; }

/* выбор результатов для сравнения */
.cmp-pick {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2);
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: 7px 12px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.cmp-pick input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.cmp-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.cmp-pick:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

/* ============ статьи / правовые ============ */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  font-style: italic; color: var(--ink-2, var(--ink));
}
.prose blockquote p { margin: 0 0 0.8em; }
.prose blockquote p:last-child { margin-bottom: 0; font-style: normal; }

/* временная шкала истории методики */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0 8px; }
.timeline::before {
  content: ""; position: absolute; top: 7px; left: 8px; right: 12%;
  border-top: 1.5px dashed var(--hairline-strong);
}
.tl-item { position: relative; padding-top: 24px; }
.tl-item::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--paper);
}
.tl-item:last-child::before { border-color: var(--accent-2); }
.tl-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); display: block; margin-bottom: 3px; }
.tl-item:last-child .tl-year { color: var(--accent-2); }
.tl-item b { font-size: 0.95rem; display: block; margin-bottom: 3px; }
.tl-item p { font-size: 0.82rem; color: var(--ink-3); margin: 0; line-height: 1.5; }
@media (max-width: 780px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; padding-left: 26px; }
  .timeline::before { top: 8px; bottom: 8px; left: 6px; right: auto; border-top: none; border-left: 1.5px dashed var(--hairline-strong); }
  .tl-item { padding-top: 0; padding-left: 0; }
  .tl-item::before { left: -26px; top: 2px; }
}

/* библиография — как в монографии */
.bibliography {
  list-style: none; margin: 0; padding: 0;
  counter-reset: bib; max-width: 74ch;
  font-size: 0.92rem; color: var(--ink-2);
}
.bibliography li {
  counter-increment: bib;
  padding: 10px 0 10px 3em; text-indent: -3em;
  border-top: 1px solid var(--hairline);
}
.bibliography li:last-child { border-bottom: 1px solid var(--hairline); }
.bibliography li::before {
  content: "[" counter(bib) "]";
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  margin-right: 1em;
}
.bibliography em { font-style: italic; color: var(--ink); }

/* чернильные виньетки пустых состояний */
.vignette { display: block; width: 168px; height: auto; margin: 0 auto 18px; }
.vignette .vg-frame { fill: none; stroke: var(--hairline-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
.vignette .vg-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vignette .vg-ghost { fill: none; stroke: var(--hairline-strong); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.vignette .vg-pen { fill: var(--accent-2); }
.vignette .vg-dot { fill: var(--accent); }

/* липкое оглавление статьи */
.about-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 34px; }
.about-toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.about-toc h4 {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-3); margin: 0 0 10px;
}
.about-toc a {
  font-size: 0.9rem; color: var(--ink-2); text-decoration: none;
  padding: 7px 12px; border-left: 2px solid var(--hairline); border-radius: 0 var(--radius) var(--radius) 0;
}
.about-toc a:hover { color: var(--ink); background: var(--paper-2); }
.about-toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } .about-toc { display: none; } }

/* ============ модальное окно ============ */
dialog.modal {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-pop);
  padding: clamp(22px, 4vw, 34px); max-width: 480px; width: calc(100vw - 40px);
}
dialog.modal::backdrop { background: rgba(12, 14, 18, 0.5); backdrop-filter: blur(3px); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .btn { white-space: normal; }

/* ============ тосты ============ */
.toast-zone { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(420px, calc(100vw - 32px)); }
.toast {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 11px 18px; font-size: 0.9rem;
  box-shadow: var(--shadow-pop); animation: toast-in 0.25s ease;
  text-align: center; overflow-wrap: anywhere;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ============ футер ============ */
.site-footer { border-top: 1px solid var(--hairline); background: var(--paper-2); margin-top: clamp(48px, 8vw, 90px); }
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
  padding: clamp(36px, 5vw, 56px) 0 30px;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin: 0 0 14px;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--hairline); padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--ink-3);
}
.age-badge {
  font-family: var(--font-mono); font-size: 0.72rem; border: 1.5px solid var(--ink-3);
  border-radius: 4px; padding: 2px 7px; color: var(--ink-3); flex: none;
}
.footer-disclaimer { font-size: 0.84rem; color: var(--ink-3); max-width: 40ch; }

/* ============ печать (PDF-экспорт) ============ */
@media print {
  /* печать всегда в светлой палитре — включая тёмную тему */
  :root, [data-theme="dark"] {
    --paper: #fff; --paper-2: #fff; --paper-3: #f0f0f0;
    --ink: #000; --ink-2: #333; --ink-3: #555;
    --hairline: #ccc; --hairline-strong: #999;
    --accent: #2456A6; --accent-ink: #1C4485;
    --ok: #1C7040; --warn: #855B00; --danger: #B3352E;
    --corridor: rgba(36, 86, 166, 0.06); --corridor-line: #999;
  }
  body { background: #fff !important; color: #000; }
  .site-header, .site-footer, .result-actions, .toast-zone, .no-print, .progress-rail { display: none !important; }
  .chart-frame, .ai-report, .card, .hero-chart-frame, .stat-tiles { box-shadow: none !important; border-color: #bbb; }
  .rise, .reveal, tr.row-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  .psy-rec { display: none !important; } /* индикатор «записи» не имеет смысла на бумаге */
  .section { padding: 18px 0; }
  a { color: #000; text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ============ финальный CTA с водяным профилем ============ */
.cta-final { position: relative; overflow: hidden; }
.cta-final .container { position: relative; z-index: 1; }
.cta-watermark {
  position: absolute; inset: auto 0 -12%; width: 100%; height: auto;
  pointer-events: none; z-index: 0;
}
.cta-watermark polyline {
  fill: none; stroke: var(--accent); stroke-width: 2;
  opacity: 0.07; stroke-linejoin: round; stroke-linecap: round;
}
.cta-watermark circle { fill: var(--accent); opacity: 0.07; }

/* ============ админ-панель (M8, демо) ============ */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-card { max-width: 460px; width: 100%; }
.admin-login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.admin-login-form .field label { display: block; margin-bottom: 6px; }

.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; width: 100%; }
.admin-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 18px; border-right: 1px solid var(--hairline);
  background: var(--paper-2);
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.admin-nav a {
  font-size: 0.92rem; color: var(--ink-2); text-decoration: none;
  padding: 9px 12px; border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.admin-nav a:hover { color: var(--ink); background: var(--paper-3); }
.admin-nav a.active { color: var(--accent-ink); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.admin-side-foot .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-main {
  padding: clamp(22px, 3vw, 44px);
  min-width: 0;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto; /* по центру свободной области на широких мониторах */
}
.admin-main:focus { outline: none; }
.admin-h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.admin-h2 { font-size: 1.08rem; margin: 0 0 10px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; align-items: start; }
@media (max-width: 1100px) { .admin-grid-2 { grid-template-columns: 1fr; } }
.admin-more { display: inline-block; margin-top: 10px; font-size: 0.85rem; }

/* таблицы админки — в рамке-карточке */
.table-frame {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  margin-top: 6px;
}
.table-frame .scale-table th:first-child,
.table-frame .scale-table td:first-child { padding-left: 18px; }
.table-frame .scale-table th:last-child,
.table-frame .scale-table td:last-child { padding-right: 18px; }
.table-frame .scale-table tr:last-child td { border-bottom: none; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 16px 0; }
.admin-search {
  flex: 1; min-width: 220px; font-family: var(--font-body); font-size: 0.92rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: 9px 12px;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--hairline-strong); margin: 18px 0; }
.admin-tab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-2);
  padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }

.admin-inline-input {
  width: 100%; min-width: 200px; font-family: var(--font-body); font-size: 0.88rem;
  color: var(--ink); background: transparent; border: 1px solid transparent;
  border-radius: 4px; padding: 5px 8px;
}
.admin-inline-input:hover { border-color: var(--hairline); background: var(--paper); }
.admin-inline-input:focus { border-color: var(--accent); background: var(--paper); outline: none; }
.admin-num {
  width: 92px; font-family: var(--font-mono); font-size: 0.86rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--hairline-strong);
  border-radius: 4px; padding: 6px 8px;
}
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 0.9rem; }
.admin-row:first-of-type { border-top: none; }
.key-chip {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.74rem;
  border: 1px solid var(--hairline-strong); border-radius: 4px;
  background: var(--paper); color: var(--accent-ink);
  padding: 3px 7px; margin: 1px 2px 1px 0;
}
.key-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.admin-items td { vertical-align: top; }
.admin-file { font-size: 0.85rem; }
.admin-main textarea {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: 10px 12px; resize: vertical;
}

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--hairline); }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav a { border-left: none; border-bottom: 2px solid transparent; border-radius: var(--radius) var(--radius) 0 0; }
  .admin-nav a.active { border-left: none; border-bottom-color: var(--accent); }
  .admin-side-foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 4px; }
}

/* ============ мелочи ============ */
.hr-hair { border: none; border-top: 1px solid var(--hairline); margin: 26px 0; }
.kbd-row kbd { font-family: var(--font-mono); border: 1px solid var(--hairline); border-radius: 3px; padding: 0 5px; font-size: 0.8rem; }
.tag-demo { vertical-align: middle; margin-left: 10px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* кросс-фейд при переключении темы и между страницами (View Transitions) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: ease-in-out;
}

/* темизированный скроллбар и элементы форм */
html { accent-color: var(--accent); scrollbar-color: var(--hairline-strong) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb {
  background: var(--hairline-strong); border-radius: 6px;
  border: 3px solid var(--paper); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: padding-box; border: 3px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Results-page "получите ИИ-анализ" sales block. Deliberately built from
   the same restrained vocabulary as .price-card.featured/.scale-card —
   paper surface, hairline/accent border, --shadow-pop, a gentle hover
   lift — rather than a generic dark SaaS gradient card, so it reads as
   part of this site rather than a foreign component. */
.ai-teaser-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1.5px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: linear-gradient(168deg, color-mix(in srgb, var(--accent) 9%, var(--paper)) 0%, var(--paper) 62%);
  box-shadow: var(--shadow-pop);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ai-teaser-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
@media (max-width: 640px) { .ai-teaser-card:hover { transform: none; } }

.ai-teaser-title { font-family: var(--font-display); color: var(--ink); }

.ai-teaser-icon {
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: transform 0.22s ease, background 0.22s ease;
}
.ai-teaser-card:hover .ai-teaser-icon { transform: scale(1.08); background: var(--accent-soft-2); }

/* "AI insight" note — a nested card in the same language as scale-card
   descriptions, with a thin accent rule on the left like a lab annotation. */
.ai-teaser-insight {
  position: relative;
  margin-top: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.ai-teaser-quote {
  position: relative;
  font-family: var(--font-display);
  color: var(--ink-2);
}
.ai-teaser-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.02em;
  top: -0.18em;
  font-size: 1.6em;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
}
.ai-teaser-quote-text { padding-left: 0.65em; }

.ai-teaser-cta {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ai-teaser-card:hover .ai-teaser-cta { transform: translateY(-1px); }
.ai-teaser-cta .arrow { display: inline-block; transition: transform 0.18s ease; }
.ai-teaser-cta:hover .arrow { transform: translateX(3px); }

/* Restrained "live" indicator — a single breathing dot, not a flashy
   shimmer, while the AI call is in flight. */
.ai-teaser-live-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: ai-teaser-breathe 1.8s ease-in-out infinite;
}
@keyframes ai-teaser-breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.ai-teaser-list { list-style: none; margin: 0; padding: 0; }
.ai-teaser-list li { display: flex; gap: 10px; align-items: flex-start; }
.ai-teaser-list li::before {
  content: "✓"; flex: none; margin-top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* ============================================================
   Премиальный протокол результата ММИЛ
   Все селекторы ограничены .results-premium, чтобы аналитический
   «приборный» экран не менял карточки и таблицы других разделов.
   ============================================================ */
.results-premium {
  --result-night: #1b2027;
  --result-night-2: #20262e;
  --result-night-line: rgba(232, 238, 245, 0.18);
  --result-night-muted: #aeb6c0;
  --result-blue: #2964bd;
  --result-blue-bright: #6da7f4;
  --result-orange: #ef6b35;
  padding: clamp(38px, 5vw, 68px) 0 clamp(64px, 8vw, 104px);
}
.results-premium .results-container { max-width: 1280px; }

/* Шапка протокола */
.results-premium .result-protocol-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: 18px;
}
.results-premium .result-protocol-copy { min-width: 0; }
.results-premium .result-protocol-copy .overline { margin-bottom: 12px; }
.results-premium .result-protocol-copy h1 {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.results-premium .result-protocol-lead {
  margin: 0;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
}
.results-premium .result-protocol-meta {
  margin: 0;
  display: grid;
  gap: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.results-premium .result-protocol-meta div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px dotted var(--hairline-strong);
  padding: 8px 0;
}
.results-premium .result-protocol-meta dt {
  color: var(--ink-3);
  font-size: 0.67rem;
  font-weight: 500;
}
.results-premium .result-protocol-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
.results-premium .result-protocol-meta div:first-child dd {
  color: var(--accent-ink);
  font-size: 0.84rem;
}

/* Юридическое примечание остаётся полным, но не перетягивает на себя первый экран. */
.results-premium .result-disclaimer {
  margin-top: 16px;
  max-width: 820px;
  color: var(--ink-2);
}
.results-premium .result-disclaimer summary {
  display: flex;
  align-items: center;
  gap: 9px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
  line-height: 1.4;
}
.results-premium .result-disclaimer summary::-webkit-details-marker { display: none; }
.results-premium .result-disclaimer summary svg { flex: none; color: var(--ink-2); }
.results-premium .result-disclaimer summary strong { color: var(--ink-2); font-weight: 500; }
.results-premium .result-disclaimer-more {
  margin-left: 5px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.results-premium .result-disclaimer[open] .result-disclaimer-more::before { content: "Скрыть"; }
.results-premium .result-disclaimer[open] .result-disclaimer-more { font-size: 0; }
.results-premium .result-disclaimer[open] .result-disclaimer-more::before { font-size: 0.66rem; }
.results-premium .result-disclaimer-body {
  margin-top: 12px;
  padding: 14px 17px;
  border-left: 2px solid var(--warn);
  background: var(--warn-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.results-premium .result-disclaimer-body p { margin: 0 0 0.65em; }
.results-premium .result-disclaimer-body p:last-child { margin-bottom: 0; }

/* Источник и клинические предупреждения */
.results-premium .result-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  margin: 14px 0;
  border: 1px solid var(--hairline);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.86rem;
}
.results-premium .result-notice > svg { flex: none; margin-top: 1px; }
.results-premium .result-notice strong { display: block; color: var(--ink); margin-bottom: 2px; }
.results-premium .result-notice p { margin: 0; }
.results-premium .result-notice ul { margin: 5px 0 0; padding-left: 18px; }
.results-premium .result-notice-info { border-left-color: var(--accent); }
.results-premium .result-notice-info > svg { color: var(--accent); }
.results-premium .result-notice-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.results-premium .result-notice-warn > svg { color: var(--warn); }
.results-premium .result-notice-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.results-premium .result-notice-danger > svg { color: var(--danger); }

/* График как точный тёмный измерительный прибор */
.results-premium .result-instrument {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(13, 17, 22, 0.55);
  border-radius: 12px;
  color: #edf0f4;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.035), transparent 36%),
    linear-gradient(145deg, var(--result-night-2), var(--result-night));
  box-shadow: 0 22px 54px -24px rgba(13, 18, 24, 0.78), inset 0 1px rgba(255,255,255,0.06);
}
.results-premium .result-instrument::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
.results-premium .result-chart-pane { min-width: 0; padding: 20px 20px 8px 22px; }
.results-premium .result-instrument-cap {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 0 4px 13px;
  border-bottom: 1px solid var(--result-night-line);
}
.results-premium .result-instrument-cap h2 {
  margin: 0;
  color: #edf0f4;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.results-premium .result-instrument-cap h2 span { color: var(--result-night-muted); font-weight: 400; }
.results-premium .result-downloads { display: flex; gap: 4px; flex: none; }
.results-premium .result-downloads a,
.results-premium .result-downloads button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  color: #e8edf3;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.results-premium .result-downloads a:hover,
.results-premium .result-downloads button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.results-premium #profile-chart {
  display: block;
  width: 100%;
  height: 390px;
  aspect-ratio: auto;
}
.results-premium .result-instrument-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 20px 18px;
  border-left: 1px solid var(--result-night-line);
}
.results-premium .result-summary-block { padding: 16px 0; border-top: 1px dotted rgba(232,238,245,0.34); }
.results-premium .result-summary-block:first-child { border-top: 0; }
.results-premium .result-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--result-night-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.results-premium .result-summary-block strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--result-orange);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.results-premium .result-summary-block strong.mono { font-family: var(--font-mono); font-size: 1.2rem; }
.results-premium .result-summary-block:last-child strong { font-size: 1.85rem; }
.results-premium .result-summary-ok strong,
.results-premium .result-summary-neutral strong { color: #65c791; }
.results-premium .result-summary-warn strong { color: #f2a34b; }
.results-premium .result-summary-danger strong { color: #f27668; }

/* Три ключевых числа */
.results-premium .result-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.results-premium .result-stat-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 17px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 12px 30px -25px rgba(25,29,35,.6);
}
.results-premium .result-stat-icon {
  flex: none;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
}
.results-premium .result-stat-blue { color: var(--accent); }
.results-premium .result-stat-green { color: var(--accent-3); }
.results-premium .result-stat-card > div { min-width: 0; display: flex; flex-direction: column; }
.results-premium .result-stat-label {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.results-premium .result-stat-value {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
}
.results-premium .result-stat-value.is-high { color: var(--result-orange); }
.results-premium .result-stat-card small { color: var(--ink-3); font-size: 0.73rem; }

/* Таблица + блок расширенной интерпретации */
.results-premium .result-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  grid-template-areas: "table analysis";
  gap: 20px;
  align-items: start;
  margin-top: clamp(30px, 5vw, 48px);
}
.results-premium .result-scale-section { grid-area: table; min-width: 0; }
.results-premium .result-analysis-column { grid-area: analysis; min-width: 0; }
.results-premium .result-scale-section > .overline { margin: 0 0 12px 14px; }
.results-premium .result-table-wrap { overflow-x: auto; border-top: 1px solid var(--hairline-strong); }
.results-premium .result-scale-table { min-width: 760px; margin: 0; }
.results-premium .result-scale-table th,
.results-premium .result-scale-table td { padding: 12px 14px; vertical-align: middle; background: transparent; }
.results-premium .result-scale-table th:nth-child(1) { width: 11%; }
.results-premium .result-scale-table th:nth-child(2) { width: 34%; }
.results-premium .result-scale-table th:nth-child(3) { width: 15%; }
.results-premium .result-scale-table th:nth-child(4) { width: 12%; }
.results-premium .result-scale-code {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.results-premium .result-t-score { color: var(--accent-ink); font-size: 1rem; }
.results-premium .result-t-high { color: var(--result-orange); }
.results-premium .result-t-mild { color: var(--warn); }
.results-premium .result-t-low { color: var(--ink-3); }
.results-premium .result-band {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}
.results-premium .result-band i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.results-premium .result-band-low i { background: var(--ink-3); }
.results-premium .result-band-mild i { background: var(--warn); }
.results-premium .result-band-high i { background: var(--result-orange); }

/* Карточка ИИ — сдержанная редакционная подача, не SaaS-баннер. */
.results-premium .result-analysis-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--hairline));
  background: color-mix(in srgb, var(--paper) 94%, var(--accent-soft));
  box-shadow: var(--shadow-card);
}
.results-premium .result-analysis-card:hover { transform: none; border-color: color-mix(in srgb, var(--accent) 46%, transparent); }
.results-premium .result-analysis-head { display: flex; gap: 13px; align-items: flex-start; }
.results-premium .result-analysis-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}
.results-premium .result-analysis-card:hover .result-analysis-icon { transform: none; }
.results-premium .result-analysis-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.results-premium .result-analysis-kicker {
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.results-premium .result-analysis-card .ai-teaser-title { margin: 3px 0 0; font-size: 1.25rem; }
.results-premium .result-analysis-intro { margin: 15px 0 0; color: var(--ink-2); font-size: 0.84rem; line-height: 1.5; }
.results-premium .result-analysis-card .ai-teaser-insight {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  font-size: 0.82rem;
  line-height: 1.5;
}
.results-premium .result-analysis-card .ai-teaser-insight p { margin: 0; }
.results-premium .result-analysis-card .ai-teaser-quote { font-size: 0.88rem; }
.results-premium .result-analysis-note {
  margin-top: 8px !important;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.results-premium .result-analysis-live { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.results-premium .result-analysis-list { margin-top: 15px; color: var(--ink-2); font-size: 0.8rem; }
.results-premium .result-analysis-list li + li { margin-top: 6px; }
.results-premium .result-analysis-free {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: var(--accent-3);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.results-premium .result-analysis-free span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); }
.results-premium .result-analysis-card form { margin: 17px 0 0; }
.results-premium .result-analysis-card .ai-teaser-cta { width: 100%; padding: 12px 16px; font-size: 0.86rem; }
.results-premium .result-analysis-card:hover .ai-teaser-cta { transform: none; }

/* Состояния уже созданного заказа занимают ту же колонку, что и CTA. */
.results-premium .result-order-state {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 24px;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.results-premium .result-order-state h3 { margin: 5px 0 6px; font-size: 1.25rem; }
.results-premium .result-order-state p { margin: 0; color: var(--ink-2); font-size: 0.85rem; }
.results-premium .result-order-state .btn { width: 100%; margin-top: 18px; }
.results-premium .result-order-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ok);
  font-family: var(--font-mono);
}
.results-premium .result-order-ready { border-top-color: var(--ok); }
.results-premium .result-order-failed { border-top-color: var(--danger); }
.results-premium .result-order-failed .result-order-icon { color: var(--danger); }
.results-premium .result-order-pending { border-top-color: var(--accent); }
.results-premium .result-order-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  border: 2px solid var(--accent-soft-2);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 1040px) {
  .results-premium .result-instrument { grid-template-columns: minmax(0, 1fr) 176px; }
  .results-premium .result-data-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .results-premium .result-stat-card { gap: 13px; padding-inline: 15px; }
  .results-premium .result-stat-icon { width: 50px; height: 50px; }
}

@media (max-width: 900px) {
  .results-premium .result-protocol-head { grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; }
  .results-premium .result-instrument { grid-template-columns: 1fr; }
  .results-premium .result-instrument-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 20px 16px;
    border-top: 1px solid var(--result-night-line);
    border-left: 0;
  }
  .results-premium .result-summary-block { border-top: 0; padding: 16px; }
  .results-premium .result-summary-block + .result-summary-block { border-left: 1px dotted rgba(232,238,245,0.34); }
  .results-premium .result-data-grid { grid-template-columns: 1fr; grid-template-areas: "analysis" "table"; }
  .results-premium .result-analysis-card,
  .results-premium .result-order-state { position: static; }
}

@media (max-width: 720px) {
  .results-premium { padding-top: 30px; }
  .results-premium .result-protocol-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .results-premium .result-protocol-meta { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .results-premium .result-protocol-meta div { grid-template-columns: 1fr; gap: 1px; }
  .results-premium .result-stat-grid { grid-template-columns: 1fr; gap: 9px; }
  .results-premium .result-stat-card { min-height: 90px; }
  .results-premium .result-stat-card > div { display: grid; grid-template-columns: 1fr auto; align-items: center; -moz-column-gap: 12px; column-gap: 12px; flex: 1; }
  .results-premium .result-stat-label { grid-column: 1; }
  .results-premium .result-stat-value { grid-column: 2; grid-row: 1 / span 2; }
  .results-premium .result-stat-card small { grid-column: 1; }
}

@media (max-width: 560px) {
  .results-premium .result-protocol-copy h1 { font-size: clamp(2.15rem, 12vw, 3rem); }
  .results-premium .result-disclaimer summary { align-items: flex-start; }
  .results-premium .result-disclaimer-more { display: none; }
  .results-premium .result-instrument { margin-inline: -8px; border-radius: 9px; }
  .results-premium .result-chart-pane { padding: 16px 8px 4px; }
  .results-premium .result-instrument-cap { margin-inline: 7px; flex-direction: column; gap: 7px; }
  .results-premium .result-instrument-cap h2 span { display: block; }
  .results-premium #profile-chart { height: 340px; }
  .results-premium .result-instrument-summary { grid-template-columns: 1fr; padding: 4px 16px 12px; }
  .results-premium .result-summary-block { padding: 13px 4px; }
  .results-premium .result-summary-block + .result-summary-block { border-left: 0; border-top: 1px dotted rgba(232,238,245,0.34); }
  .results-premium .result-summary-block strong { font-size: 1.05rem; }
  .results-premium .result-summary-block:last-child strong { font-size: 1.45rem; }
  .results-premium .result-analysis-card,
  .results-premium .result-order-state { padding: 20px; }

  .results-premium .result-scale-section > .overline { margin-left: 0; }
  .results-premium .result-table-wrap { overflow: visible; border-top: 0; }
  .results-premium .result-scale-table { display: block; min-width: 0; }
  .results-premium .result-scale-table thead { display: none; }
  .results-premium .result-scale-table tbody {
    display: grid;
    gap: 8px;
  }
  .results-premium .result-scale-table tr {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 58px;
    grid-template-areas:
      "code name score"
      "code band raw";
    gap: 6px 10px;
    align-items: center;
    padding: 13px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
  }
  .results-premium .result-scale-table th,
  .results-premium .result-scale-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .results-premium .result-scale-table td:nth-child(1) {
    grid-area: code;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--hairline);
    font-size: 1.18rem;
  }
  .results-premium .result-scale-table td:nth-child(2) {
    grid-area: name;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .results-premium .result-scale-table td:nth-child(3) {
    grid-area: raw;
    text-align: right;
    color: var(--ink-3);
    font-size: 0.68rem;
  }
  .results-premium .result-scale-table td:nth-child(3)::before {
    content: "raw ";
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .results-premium .result-scale-table td:nth-child(4) {
    grid-area: score;
    text-align: right;
    font-size: 1.16rem;
  }
  .results-premium .result-scale-table td:nth-child(4)::before {
    content: "T";
    display: block;
    margin-bottom: 1px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--ink-3);
    letter-spacing: 0.08em;
  }
  .results-premium .result-scale-table td:nth-child(5) { grid-area: band; }
  .results-premium .result-band { font-size: 0.67rem; line-height: 1.25; }
}

@media print {
  .results-premium { padding: 0; }
  .results-premium .results-container { max-width: none; padding: 0; }
  .results-premium .result-protocol-head { grid-template-columns: 1fr 190px; }
  .results-premium .result-disclaimer summary { display: none; }
  .results-premium .result-disclaimer-body { display: block !important; }
  .results-premium .result-instrument { -moz-column-break-inside: avoid; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .results-premium .result-stat-grid { -moz-column-break-inside: avoid; break-inside: avoid; }
  .results-premium .result-data-grid { grid-template-columns: 1fr; grid-template-areas: "table" "analysis"; }
  .results-premium .result-analysis-column { display: none; }
  .results-premium .result-table-wrap { overflow: visible; }
  .results-premium .result-scale-table { min-width: 0; }
}

/* ============ главная: психометрический атлас / precision instrument ============ */
.home-page .hero {
  padding: clamp(62px, 8vw, 100px) 0 clamp(54px, 7vw, 82px);
}

.home-page .hero .container {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(34px, 4.7vw, 64px);
}

.home-page .hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-inline: 0;
}

.home-page .hero-meta .m {
  min-width: 0;
  padding: 15px 11px;
  border-left: 1px solid var(--hairline);
}

.home-page .hero-meta .m:first-child { border-left: 0; padding-left: 0; }
.home-page .hero-meta .m:last-child { padding-right: 0; }
.home-page .hero-meta .m b { font-size: clamp(0.92rem, 1.2vw, 1.08rem); }
.home-page .hero-meta .m span { font-size: 0.7rem; line-height: 1.35; }

.home-page .hero-chart-wrap {
  --paper: #15181C;
  --paper-2: #1B1F25;
  --paper-3: #242930;
  --ink: #E9E6DF;
  --ink-2: #B5B7BC;
  --ink-3: #898F98;
  --hairline: rgba(232, 238, 245, 0.13);
  --hairline-strong: rgba(232, 238, 245, 0.27);
  --accent: #5B8FD9;
  --accent-ink: #82ADE8;
  --accent-2: #D07A4A;
  --accent-3: #3EA98C;
  --accent-soft: rgba(91, 143, 217, 0.14);
  --accent-soft-2: rgba(91, 143, 217, 0.22);
  --corridor: rgba(91, 143, 217, 0.09);
  --corridor-line: rgba(126, 171, 229, 0.32);
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid rgba(232, 238, 245, 0.16);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 30px 70px -42px rgba(8, 12, 17, 0.86), 0 12px 28px -20px rgba(8, 12, 17, 0.72);
}

.home-page .hero-chart-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 238, 245, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 245, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.home-page .hero-chart-frame {
  position: relative;
  z-index: 1;
  padding: 17px 14px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  transform: none !important;
  transform-style: flat;
  will-change: auto;
}

.home-page .psy-frame:hover { box-shadow: none; }
.home-page .psy-topcap { padding: 0 2px 12px; margin-bottom: 3px; }
.home-page .psy-stage { margin-inline: -2px; }
.home-page .psy-line { stroke-width: 2.8; }
.home-page .psy-point { stroke-width: 2.4; }
.home-page .psy-tip { background: #F4F0E8; color: #191D23; }

.home-page .hero-instrument-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
  border-block: 1px solid var(--hairline);
}

.home-page .hero-instrument-readouts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-left: 1px solid var(--hairline);
}

.home-page .hero-instrument-readouts > div:first-child { border-left: 0; }
.home-page .hero-instrument-readouts span,
.home-page .hero-instrument-readouts strong {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-page .hero-instrument-readouts span { color: var(--ink-3); font-size: 0.58rem; }
.home-page .hero-instrument-readouts strong { color: var(--ink); font-size: 0.78rem; font-weight: 500; }
.home-page .hero-instrument-readouts .is-live { color: var(--accent-3); }

.home-page .hero-chart-frame .frame-cap { padding: 9px 2px 10px; }
.home-page .psy-quiz {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 17px 18px 15px;
  background: rgba(27, 31, 37, 0.95);
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}
.home-page .psy-quiz-q { color: var(--ink); min-height: auto; }
.home-page .psy-quiz-answers .answer-btn {
  min-height: 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--hairline-strong);
}
.home-page .psy-quiz-answers .answer-btn:hover,
.home-page .psy-quiz-answers .answer-btn.selected {
  color: #F3F6FA;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.home-page .process-step { display: flex; flex-direction: column; }
.home-page .process-step p { color: var(--ink-2); line-height: 1.58; }
.home-page .process-step:nth-child(3) h3 { color: var(--accent-ink); }

/* Редакционный контент должен быть доступен сразу: сложная анимация остаётся
   только у графика, а секции не зависят от момента срабатывания observer. */
.home-page .rise,
.home-page .rise.in {
  opacity: 1;
  transform: none;
  animation: none;
}

.home-page .scale-groups { display: grid; gap: 34px; }
.home-page .scale-group-head {
  display: grid;
  grid-template-columns: 38px max-content minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline-strong);
}
.home-page .scale-group-head h3 { margin: 0; font-size: 1rem; }
.home-page .scale-group-head > span:last-child {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.home-page .scale-group-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}
.home-page .scale-group:nth-child(2) .scale-group-index { color: var(--accent); }
.home-page .scale-grid { gap: 12px; }
.home-page .scale-grid-validity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .scale-grid-clinical { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-page .scale-card { min-height: 162px; background: color-mix(in srgb, var(--paper) 90%, transparent); }

.home-page #pricing .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  -moz-column-gap: clamp(20px, 3vw, 34px);
       column-gap: clamp(20px, 3vw, 34px);
}
.home-page .price-card { overflow: visible; }
.home-page .price-card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; }
.home-page .price-card.featured {
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-card);
  transform: none;
}
.home-page .price-card.featured:hover { transform: translateY(-4px); }
.home-page .price-card.featured .price-card-header {
  margin: calc(-1 * clamp(26px, 3.2vw, 34px)) calc(-1 * clamp(22px, 2.8vw, 30px)) 2px;
  padding: clamp(25px, 3vw, 31px) clamp(22px, 2.8vw, 30px) 24px;
  color: #E9E6DF;
  background: #15181C;
  border-radius: calc(var(--radius-lg) + 3px) calc(var(--radius-lg) + 3px) 0 0;
  border-bottom: 1px solid rgba(232, 238, 245, 0.14);
}
.home-page .price-card.featured .badge-accent {
  color: #AFC8EA;
  background: rgba(91, 143, 217, 0.12);
  border-color: rgba(126, 171, 229, 0.42);
}
.home-page .price-card.featured .price { color: #F1EEE7; }
.home-page .price-card.featured .price small { color: #A9ACB3; }
.home-page .price-card .price-stamp {
  top: -13px;
  right: 22px;
  left: auto;
  transform: rotate(-2deg);
  color: #fff;
  background: #B4552D;
  border-radius: 3px;
  box-shadow: none;
}

.home-page .ethics-intro {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  max-width: 42ch;
}
.home-page .principle { padding-block: 24px; }
.home-page .principle p { line-height: 1.58; }
.home-page .principle .principle-footnote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dotted var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.home-page .cta-final { overflow: visible; }
.home-page .cta-final-panel {
  --cta-ink: #E9E6DF;
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 78px) clamp(22px, 6vw, 70px);
  color: var(--cta-ink);
  background: #15181C;
  border: 1px solid rgba(232, 238, 245, 0.16);
  border-top: 3px solid #5B8FD9;
  border-radius: 10px;
  box-shadow: 0 30px 70px -46px rgba(8, 12, 17, 0.88);
}
.home-page .cta-final-content { position: relative; z-index: 1; }
.home-page .cta-final-panel h2 { color: var(--cta-ink); }
.home-page .cta-final-panel .muted { color: #A9ACB3; }
.home-page .cta-final-panel .btn-primary {
  color: #fff;
  background: #5B8FD9;
  border-color: #5B8FD9;
}
.home-page .cta-final-panel .btn-primary:hover { background: #6F9DE0; }
.home-page .cta-final-overline {
  display: inline-block;
  margin-bottom: 17px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #82ADE8;
}
.home-page .cta-final .cta-watermark { bottom: -18%; }
.home-page .cta-final .cta-watermark polyline { stroke: #5B8FD9; opacity: 0.18; }
.home-page .cta-final .cta-watermark circle { fill: #D07A4A; opacity: 0.55; }

@media (max-width: 920px) {
  .home-page .hero .container { grid-template-columns: 1fr; }
  .home-page .hero-chart-wrap { width: min(100%, 720px); }
  .home-page .scale-grid-clinical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .home-page .ethics-intro { position: static; max-width: 58ch; }
  .home-page #pricing .grid-2 { grid-template-columns: 1fr; }
  .home-page .price-card.featured:hover { transform: none; }
}

@media (max-width: 640px) {
  .home-page .hero { padding-top: 44px; }
  .home-page .hero-cta { display: grid; grid-template-columns: 1fr; }
  .home-page .hero-cta .btn { width: 100%; }
  .home-page .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .hero-meta .m { padding: 13px 12px; }
  .home-page .hero-meta .m:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-page .hero-meta .m:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .home-page .psy-topcap { align-items: flex-start; }
  .home-page .psy-archetype { max-width: 55%; text-align: right; white-space: normal; }
  .home-page .hero-instrument-readouts span { display: none; }
  .home-page .hero-instrument-readouts > div { justify-content: center; }
  .home-page .scale-group-head { grid-template-columns: 30px 1fr; }
  .home-page .scale-group-head > span:last-child { display: none; }
  .home-page .scale-grid-validity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .scale-grid-validity .scale-card:last-child { grid-column: 1 / -1; }
  .home-page .scale-card { min-height: 150px; padding: 13px; }
  .home-page .principle { grid-template-columns: 40px 1fr; }
  .home-page .principle p { font-size: 0.94rem; }
  .home-page .cta-final-panel { margin-inline: -2px; }
  .theme-toggle, .nav-burger { width: 44px; height: 44px; }
}

@media (max-width: 360px) {
  .home-page .scale-grid-validity,
  .home-page .scale-grid-clinical { grid-template-columns: 1fr; }
  .home-page .scale-grid-validity .scale-card:last-child { grid-column: auto; }
}

@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  .home-page::after { display: none; }
}

*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x:  ;
--tw-pan-y:  ;
--tw-pinch-zoom:  ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position:  ;
--tw-gradient-via-position:  ;
--tw-gradient-to-position:  ;
--tw-ordinal:  ;
--tw-slashed-zero:  ;
--tw-numeric-figure:  ;
--tw-numeric-spacing:  ;
--tw-numeric-fraction:  ;
--tw-ring-inset:  ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur:  ;
--tw-brightness:  ;
--tw-contrast:  ;
--tw-grayscale:  ;
--tw-hue-rotate:  ;
--tw-invert:  ;
--tw-saturate:  ;
--tw-sepia:  ;
--tw-drop-shadow:  ;
--tw-backdrop-blur:  ;
--tw-backdrop-brightness:  ;
--tw-backdrop-contrast:  ;
--tw-backdrop-grayscale:  ;
--tw-backdrop-hue-rotate:  ;
--tw-backdrop-invert:  ;
--tw-backdrop-opacity:  ;
--tw-backdrop-saturate:  ;
--tw-backdrop-sepia:  ;
--tw-contain-size:  ;
--tw-contain-layout:  ;
--tw-contain-paint:  ;
--tw-contain-style:  ;
}

::backdrop {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x:  ;
--tw-pan-y:  ;
--tw-pinch-zoom:  ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position:  ;
--tw-gradient-via-position:  ;
--tw-gradient-to-position:  ;
--tw-ordinal:  ;
--tw-slashed-zero:  ;
--tw-numeric-figure:  ;
--tw-numeric-spacing:  ;
--tw-numeric-fraction:  ;
--tw-ring-inset:  ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur:  ;
--tw-brightness:  ;
--tw-contrast:  ;
--tw-grayscale:  ;
--tw-hue-rotate:  ;
--tw-invert:  ;
--tw-saturate:  ;
--tw-sepia:  ;
--tw-drop-shadow:  ;
--tw-backdrop-blur:  ;
--tw-backdrop-brightness:  ;
--tw-backdrop-contrast:  ;
--tw-backdrop-grayscale:  ;
--tw-backdrop-hue-rotate:  ;
--tw-backdrop-invert:  ;
--tw-backdrop-opacity:  ;
--tw-backdrop-saturate:  ;
--tw-backdrop-sepia:  ;
--tw-contain-size:  ;
--tw-contain-layout:  ;
--tw-contain-paint:  ;
--tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com *//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: IBM Plex Sans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

input:where([type='text']),input:where(:not([type])),input:where([type='email']),input:where([type='url']),input:where([type='password']),input:where([type='number']),input:where([type='date']),input:where([type='datetime-local']),input:where([type='month']),input:where([type='search']),input:where([type='tel']),input:where([type='time']),input:where([type='week']),select:where([multiple]),textarea,select {
-webkit-appearance: none;
   -moz-appearance: none;
        appearance: none;
background-color: #fff;
border-color: #6b7280;
border-width: 1px;
border-radius: 0px;
padding-top: 0.5rem;
padding-right: 0.75rem;
padding-bottom: 0.5rem;
padding-left: 0.75rem;
font-size: 1rem;
line-height: 1.5rem;
--tw-shadow: 0 0 #0000;
}

input:where([type='text']):focus, input:where(:not([type])):focus, input:where([type='email']):focus, input:where([type='url']):focus, input:where([type='password']):focus, input:where([type='number']):focus, input:where([type='date']):focus, input:where([type='datetime-local']):focus, input:where([type='month']):focus, input:where([type='search']):focus, input:where([type='tel']):focus, input:where([type='time']):focus, input:where([type='week']):focus, select:where([multiple]):focus, textarea:focus, select:focus {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: #2563eb;
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
color: #6b7280;
opacity: 1;
}

input::placeholder,textarea::placeholder {
color: #6b7280;
opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}

::-webkit-date-and-time-value {
min-height: 1.5em;
text-align: inherit;
}

::-webkit-datetime-edit {
display: inline-flex;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
padding-top: 0;
padding-bottom: 0;
}

select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
-webkit-print-color-adjust: exact;
        print-color-adjust: exact;
}

select:where([multiple]),select:where([size]:not([size="1"])) {
background-image: initial;
background-position: initial;
background-repeat: unset;
background-size: initial;
padding-right: 0.75rem;
-webkit-print-color-adjust: unset;
        print-color-adjust: unset;
}

input:where([type='checkbox']),input:where([type='radio']) {
-webkit-appearance: none;
   -moz-appearance: none;
        appearance: none;
padding: 0;
-webkit-print-color-adjust: exact;
        print-color-adjust: exact;
display: inline-block;
vertical-align: middle;
background-origin: border-box;
-webkit-user-select: none;
   -moz-user-select: none;
        user-select: none;
flex-shrink: 0;
height: 1rem;
width: 1rem;
color: #2563eb;
background-color: #fff;
border-color: #6b7280;
border-width: 1px;
--tw-shadow: 0 0 #0000;
}

input:where([type='checkbox']) {
border-radius: 0px;
}

input:where([type='radio']) {
border-radius: 100%;
}

input:where([type='checkbox']):focus,input:where([type='radio']):focus {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 2px;
--tw-ring-offset-color: #fff;
--tw-ring-color: #2563eb;
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

input:where([type='checkbox']):checked,input:where([type='radio']):checked {
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}

input:where([type='checkbox']):checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
input:where([type='checkbox']):checked {
-webkit-appearance: auto;
   -moz-appearance: auto;
        appearance: auto;
}
}

input:where([type='radio']):checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
input:where([type='radio']):checked {
-webkit-appearance: auto;
   -moz-appearance: auto;
        appearance: auto;
}
}

input:where([type='checkbox']):checked:hover,input:where([type='checkbox']):checked:focus,input:where([type='radio']):checked:hover,input:where([type='radio']):checked:focus {
border-color: transparent;
background-color: currentColor;
}

input:where([type='checkbox']):indeterminate {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}

@media (forced-colors: active)  {
input:where([type='checkbox']):indeterminate {
-webkit-appearance: auto;
   -moz-appearance: auto;
        appearance: auto;
}
}

input:where([type='checkbox']):indeterminate:hover,input:where([type='checkbox']):indeterminate:focus {
border-color: transparent;
background-color: currentColor;
}

input:where([type='file']) {
background: unset;
border-color: inherit;
border-width: 0;
border-radius: 0;
padding: 0;
font-size: unset;
line-height: inherit;
}

input:where([type='file']):focus {
outline: 1px solid ButtonText;
outline: 1px auto -webkit-focus-ring-color;
}
    body {
        font-family: var(--font-body);
        font-size: 16px;
        line-height: 1.6;
        color: var(--ink);
        background-color: var(--paper);
    }
    h1, h2, h3 {
        font-family: var(--font-display);
        font-weight: 600;
        line-height: 1.18;
        letter-spacing: -0.01em;
        margin: 0 0 0.5em;
    }
    h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
    h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
    h3 { font-size: 1.22rem; }
    p { margin: 0 0 1em; }
    a { color: var(--accent-ink); }

.container {
width: 100%;
}

@media (min-width: 640px) {
.container {
max-width: 640px;
}
}

@media (min-width: 768px) {
.container {
max-width: 768px;
}
}

@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
}

@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}

@media (min-width: 1536px) {
.container {
max-width: 1536px;
}
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.collapse {
visibility: collapse;
}
.fixed {
position: fixed;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.inset-0 {
inset: 0px;
}
.end-0 {
inset-inline-end: 0px;
}
.start-0 {
inset-inline-start: 0px;
}
.z-50 {
z-index: 50;
}
.-mx-3 {
margin-left: -0.75rem;
margin-right: -0.75rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.-me-2 {
margin-inline-end: -0.5rem;
}
.mb-0 {
margin-bottom: 0px;
}
.mb-1 {
margin-bottom: 0.25rem;
}
.mb-2 {
margin-bottom: 0.5rem;
}
.mb-3 {
margin-bottom: 0.75rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.mb-6 {
margin-bottom: 1.5rem;
}
.me-3 {
margin-inline-end: 0.75rem;
}
.ml-1 {
margin-left: 0.25rem;
}
.ms-1 {
margin-inline-start: 0.25rem;
}
.ms-2 {
margin-inline-start: 0.5rem;
}
.ms-3 {
margin-inline-start: 0.75rem;
}
.ms-4 {
margin-inline-start: 1rem;
}
.mt-1 {
margin-top: 0.25rem;
}
.mt-2 {
margin-top: 0.5rem;
}
.mt-3 {
margin-top: 0.75rem;
}
.mt-4 {
margin-top: 1rem;
}
.mt-6 {
margin-top: 1.5rem;
}
.block {
display: block;
}
.inline-block {
display: inline-block;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.table {
display: table;
}
.grid {
display: grid;
}
.hidden {
display: none;
}
.h-16 {
height: 4rem;
}
.h-4 {
height: 1rem;
}
.h-6 {
height: 1.5rem;
}
.max-h-56 {
max-height: 14rem;
}
.max-h-64 {
max-height: 16rem;
}
.min-h-screen {
min-height: 100vh;
}
.w-3\/4 {
width: 75%;
}
.w-4 {
width: 1rem;
}
.w-40 {
width: 10rem;
}
.w-48 {
width: 12rem;
}
.w-6 {
width: 1.5rem;
}
.w-full {
width: 100%;
}
.min-w-full {
min-width: 100%;
}
.max-w-3xl {
max-width: 48rem;
}
.max-w-md {
max-width: 28rem;
}
.flex-1 {
flex: 1 1 0%;
}
.shrink-0 {
flex-shrink: 0;
}
.border-collapse {
border-collapse: collapse;
}
.origin-top {
transform-origin: top;
}
.translate-y-0 {
--tw-translate-y: 0px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-4 {
--tw-translate-y: 1rem;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-100 {
--tw-scale-x: 1;
--tw-scale-y: 1;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-95 {
--tw-scale-x: .95;
--tw-scale-y: .95;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
resize: both;
}
.grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.items-start {
align-items: flex-start;
}
.items-center {
align-items: center;
}
.justify-end {
justify-content: flex-end;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.gap-2 {
gap: 0.5rem;
}
.gap-3 {
gap: 0.75rem;
}
.gap-4 {
gap: 1rem;
}
.gap-6 {
gap: 1.5rem;
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(0.75rem * var(--tw-space-x-reverse));
margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(2rem * var(--tw-space-x-reverse));
margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
--tw-divide-y-reverse: 0;
border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
--tw-divide-opacity: 1;
border-color: rgb(229 231 235 / var(--tw-divide-opacity, 1));
}
.overflow-hidden {
overflow: hidden;
}
.overflow-y-auto {
overflow-y: auto;
}
.overflow-y-hidden {
overflow-y: hidden;
}
.whitespace-nowrap {
white-space: nowrap;
}
.rounded {
border-radius: 0.25rem;
}
.rounded-full {
border-radius: 9999px;
}
.rounded-lg {
border-radius: 0.5rem;
}
.rounded-md {
border-radius: 0.375rem;
}
.border {
border-width: 1px;
}
.border-2 {
border-width: 2px;
}
.border-b {
border-bottom-width: 1px;
}
.border-b-2 {
border-bottom-width: 2px;
}
.border-l-4 {
border-left-width: 4px;
}
.border-t {
border-top-width: 1px;
}
.border-dashed {
border-style: dashed;
}
.border-\[var\(--accent\)\] {
border-color: var(--accent);
}
.border-\[var\(--hairline\)\] {
border-color: var(--hairline);
}
.border-amber-200 {
--tw-border-opacity: 1;
border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
--tw-border-opacity: 1;
border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
--tw-border-opacity: 1;
border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-red-300 {
--tw-border-opacity: 1;
border-color: rgb(252 165 165 / var(--tw-border-opacity, 1));
}
.border-transparent {
border-color: transparent;
}
.bg-\[var\(--accent-soft\)\] {
background-color: var(--accent-soft);
}
.bg-amber-50 {
--tw-bg-opacity: 1;
background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
--tw-bg-opacity: 1;
background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-500 {
--tw-bg-opacity: 1;
background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.bg-gray-800 {
--tw-bg-opacity: 1;
background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-indigo-600 {
--tw-bg-opacity: 1;
background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
--tw-bg-opacity: 1;
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
background-color: transparent;
}
.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-100 {
--tw-bg-opacity: 1;
background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}
.fill-current {
fill: currentColor;
}
.p-2 {
padding: 0.5rem;
}
.p-4 {
padding: 1rem;
}
.p-6 {
padding: 1.5rem;
}
.p-8 {
padding: 2rem;
}
.px-1 {
padding-left: 0.25rem;
padding-right: 0.25rem;
}
.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}
.px-5 {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
.px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.py-0\.5 {
padding-top: 0.125rem;
padding-bottom: 0.125rem;
}
.py-1 {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
.py-12 {
padding-top: 3rem;
padding-bottom: 3rem;
}
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.py-4 {
padding-top: 1rem;
padding-bottom: 1rem;
}
.py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.py-8 {
padding-top: 2rem;
padding-bottom: 2rem;
}
.pb-1 {
padding-bottom: 0.25rem;
}
.pb-2 {
padding-bottom: 0.5rem;
}
.pb-3 {
padding-bottom: 0.75rem;
}
.pe-4 {
padding-inline-end: 1rem;
}
.ps-3 {
padding-inline-start: 0.75rem;
}
.pt-1 {
padding-top: 0.25rem;
}
.pt-2 {
padding-top: 0.5rem;
}
.pt-4 {
padding-top: 1rem;
}
.pt-5 {
padding-top: 1.25rem;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-start {
text-align: start;
}
.text-base {
font-size: 1rem;
line-height: 1.5rem;
}
.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}
.text-xs {
font-size: 0.75rem;
line-height: 1rem;
}
.font-medium {
font-weight: 500;
}
.font-semibold {
font-weight: 600;
}
.uppercase {
text-transform: uppercase;
}
.lowercase {
text-transform: lowercase;
}
.leading-4 {
line-height: 1rem;
}
.leading-5 {
line-height: 1.25rem;
}
.leading-tight {
line-height: 1.25;
}
.tracking-widest {
letter-spacing: 0.1em;
}
.text-\[var\(--accent-ink\)\] {
color: var(--accent-ink);
}
.text-\[var\(--ink\)\] {
color: var(--ink);
}
.text-\[var\(--ink-2\)\] {
color: var(--ink-2);
}
.text-\[var\(--ink-3\)\] {
color: var(--ink-3);
}
.text-amber-900 {
--tw-text-opacity: 1;
color: rgb(120 53 15 / var(--tw-text-opacity, 1));
}
.text-black {
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
--tw-text-opacity: 1;
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
--tw-text-opacity: 1;
color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
--tw-text-opacity: 1;
color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
--tw-text-opacity: 1;
color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
--tw-text-opacity: 1;
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-600 {
--tw-text-opacity: 1;
color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-indigo-600 {
--tw-text-opacity: 1;
color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}
.text-red-600 {
--tw-text-opacity: 1;
color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-900 {
--tw-text-opacity: 1;
color: rgb(127 29 29 / var(--tw-text-opacity, 1));
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-800 {
--tw-text-opacity: 1;
color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}
.underline {
text-decoration-line: underline;
}
.overline {
text-decoration-line: overline;
}
.opacity-0 {
opacity: 0;
}
.opacity-100 {
opacity: 1;
}
.opacity-75 {
opacity: 0.75;
}
.shadow-lg {
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.ring-1 {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-black {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1));
}
.ring-transparent {
--tw-ring-color: transparent;
}
.ring-opacity-5 {
--tw-ring-opacity: 0.05;
}
.filter {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
.transition-all {
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
.duration-150 {
transition-duration: 150ms;
}
.duration-200 {
transition-duration: 200ms;
}
.duration-300 {
transition-duration: 300ms;
}
.duration-75 {
transition-duration: 75ms;
}
.ease-in {
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ease-in-out {
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.hover\:border-\[var\(--hairline-strong\)\]:hover {
border-color: var(--hairline-strong);
}
.hover\:bg-\[var\(--paper-2\)\]:hover {
background-color: var(--paper-2);
}
.hover\:bg-gray-700:hover {
--tw-bg-opacity: 1;
background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.hover\:bg-indigo-700:hover {
--tw-bg-opacity: 1;
background-color: rgb(67 56 202 / var(--tw-bg-opacity, 1));
}
.hover\:text-\[var\(--ink\)\]:hover {
color: var(--ink);
}
.hover\:text-black\/70:hover {
color: rgb(0 0 0 / 0.7);
}
.hover\:text-gray-900:hover {
--tw-text-opacity: 1;
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.hover\:text-indigo-900:hover {
--tw-text-opacity: 1;
color: rgb(49 46 129 / var(--tw-text-opacity, 1));
}
.hover\:text-red-900:hover {
--tw-text-opacity: 1;
color: rgb(127 29 29 / var(--tw-text-opacity, 1));
}
.focus\:border-indigo-400:focus {
--tw-border-opacity: 1;
border-color: rgb(129 140 248 / var(--tw-border-opacity, 1));
}
.focus\:border-indigo-500:focus {
--tw-border-opacity: 1;
border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}
.focus\:bg-\[var\(--paper-2\)\]:focus {
background-color: var(--paper-2);
}
.focus\:outline-none:focus {
outline: 2px solid transparent;
outline-offset: 2px;
}
.focus\:ring-2:focus {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-indigo-500:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
}
.focus\:ring-offset-2:focus {
--tw-ring-offset-width: 2px;
}
.focus-visible\:ring-\[\#FF2D20\]:focus-visible {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(255 45 32 / var(--tw-ring-opacity, 1));
}
@media (min-width: 640px) {
.sm\:-my-px {
margin-top: -1px;
margin-bottom: -1px;
}
.sm\:mx-auto {
margin-left: auto;
margin-right: auto;
}
.sm\:ms-10 {
margin-inline-start: 2.5rem;
}
.sm\:ms-6 {
margin-inline-start: 1.5rem;
}
.sm\:flex {
display: flex;
}
.sm\:hidden {
display: none;
}
.sm\:w-full {
width: 100%;
}
.sm\:max-w-2xl {
max-width: 42rem;
}
.sm\:max-w-lg {
max-width: 32rem;
}
.sm\:max-w-md {
max-width: 28rem;
}
.sm\:max-w-sm {
max-width: 24rem;
}
.sm\:max-w-xl {
max-width: 36rem;
}
.sm\:translate-y-0 {
--tw-translate-y: 0px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.sm\:scale-100 {
--tw-scale-x: 1;
--tw-scale-y: 1;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.sm\:scale-95 {
--tw-scale-x: .95;
--tw-scale-y: .95;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.sm\:grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sm\:items-center {
align-items: center;
}
.sm\:rounded-lg {
border-radius: 0.5rem;
}
.sm\:px-0 {
padding-left: 0px;
padding-right: 0px;
}
.sm\:px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
@media (min-width: 768px) {
.md\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (min-width: 1024px) {
.lg\:px-8 {
padding-left: 2rem;
padding-right: 2rem;
}
}
.ltr\:origin-top-left:where([dir="ltr"], [dir="ltr"] *) {
transform-origin: top left;
}
.ltr\:origin-top-right:where([dir="ltr"], [dir="ltr"] *) {
transform-origin: top right;
}
.rtl\:origin-top-left:where([dir="rtl"], [dir="rtl"] *) {
transform-origin: top left;
}
.rtl\:origin-top-right:where([dir="rtl"], [dir="rtl"] *) {
transform-origin: top right;
}
@media (prefers-color-scheme: dark) {
.dark\:text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.dark\:hover\:text-white\/80:hover {
color: rgb(255 255 255 / 0.8);
}
.dark\:focus-visible\:ring-white:focus-visible {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1));
}
}
