@charset "UTF-8";
/* inter-cyrillic-ext-400-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* inter-cyrillic-400-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* inter-latin-ext-400-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-latin-ext-400-normal.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;
}
/* inter-latin-400-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-latin-400-normal.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;
}
/* inter-cyrillic-ext-500-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-cyrillic-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* inter-cyrillic-500-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* inter-latin-ext-500-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-latin-ext-500-normal.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;
}
/* inter-latin-500-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-latin-500-normal.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;
}
/* inter-cyrillic-ext-600-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* inter-cyrillic-600-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* inter-latin-ext-600-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-latin-ext-600-normal.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;
}
/* inter-latin-600-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-latin-600-normal.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;
}
/* inter-cyrillic-ext-700-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/inter-cyrillic-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* inter-cyrillic-700-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/inter-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* inter-latin-ext-700-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/inter-latin-ext-700-normal.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;
}
/* inter-latin-700-normal */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/inter-latin-700-normal.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;
}
/* unbounded-cyrillic-ext-300-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/unbounded-cyrillic-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* unbounded-cyrillic-300-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/unbounded-cyrillic-300-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* unbounded-latin-ext-300-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/unbounded-latin-ext-300-normal.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;
}
/* unbounded-latin-300-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/unbounded-latin-300-normal.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;
}
/* unbounded-cyrillic-ext-400-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/unbounded-cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* unbounded-cyrillic-400-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/unbounded-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* unbounded-latin-ext-400-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/unbounded-latin-ext-400-normal.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;
}
/* unbounded-latin-400-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/unbounded-latin-400-normal.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;
}
/* unbounded-cyrillic-ext-500-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/unbounded-cyrillic-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* unbounded-cyrillic-500-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* unbounded-latin-ext-500-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/unbounded-latin-ext-500-normal.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;
}
/* unbounded-latin-500-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/unbounded-latin-500-normal.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;
}
/* unbounded-cyrillic-ext-600-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/unbounded-cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* unbounded-cyrillic-600-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/unbounded-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* unbounded-latin-ext-600-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/unbounded-latin-ext-600-normal.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;
}
/* unbounded-latin-600-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/unbounded-latin-600-normal.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;
}
/* unbounded-cyrillic-ext-700-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/unbounded-cyrillic-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* unbounded-cyrillic-700-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/unbounded-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* unbounded-latin-ext-700-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/unbounded-latin-ext-700-normal.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;
}
/* unbounded-latin-700-normal */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --fm: 'JetBrains Mono', 'Courier New', monospace;
  --f-brand: 'Unbounded', sans-serif;
  --danger: #dc2626;
  --danger-h: #b91c1c;
  --danger-strong: #c92a2a;
  --danger-l: rgba(220, 38, 38, .06);
  --danger-bdr: rgba(220, 38, 38, .3);
  --info: #3b82f6;
  --orange: #f97316;
  --pink: #ec4899;
  --teal: #14b8a6;
  --lime: #65a30d;
  --warn: #d97706;
  --warn-l: rgba(217, 119, 6, .1);
  --amber: #f59e0b;
  --ok: #1d7a4a;
  --ok-l: rgba(29, 122, 74, .12);
  --ok-dot: #2ea043;
  --violet: #8b5cf6;
  --fs-2xs: 10.5px;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 18px;
  --fs-2xl: 26px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --h-appbar: 60px;
  --h-topbar: 65px;
  --h-bottombar: 58px;
  --h-control: 38px;
  --h-btn-sm: 32px;
  --h-btn-md: 38px;
  --h-btn-lg: 40px;
  --w-side-panel: 240px;
  --w-stats-panel: 330px;
  --dur-fast: .13s;
  --dur-base: .18s;
  --z-dropdown: 50;
  --z-sidebar: 90;
  --z-tooltip: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-popover: 9999;
  --on-accent: #fff;
  --sh-knob: 0 1px 3px rgba(0, 0, 0, .2);
  --avatar-bg: #6b7280;
  --overlay: rgba(0, 0, 0, .45);
  --sh-modal: 0 20px 60px rgba(0, 0, 0, .25);
  --sh-popover: 0 8px 32px rgba(0, 0, 0, .2);
  --sp-0-5: 2px;
  --sp-1: 4px;
  --sp-1-5: 6px;
  --sp-2: 8px;
  --sp-2-5: 10px;
  --sp-3: 12px;
  --sp-3-5: 14px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --lh-tight: 1.3;
  --lh-base: 1.5;
  --lh-loose: 1.7;
  --op-disabled: .5;
  --section-px: var(--sp-7);
  --syn-key: #7c3aed;
  --syn-str: #0f766e;
  --syn-num: #b45309;
  --syn-bool: #2563eb;
}

/* ── Светлая тема (по умолчанию) — палитра макета v2.0 ── */
:root {
  color-scheme: light;
  --accent: #1f7a4d;
  --accent-h: #186640;
  --accent-l: #e8f4ee;
  --accent-t: #16663f;
  --accent-sep: rgba(31, 122, 77, .28);
  --bg: #f5f6f8;
  --bg2: #eceef2;
  --surf: #ffffff;
  --s2: #f9fafb;
  --t1: #2b323d;
  --t2: #667080;
  --t3: #98a0ad;
  --ti: rgba(255, 255, 255, .92);
  --bdr: #e6e8ec;
  --bdr2: #d6d9df;
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .95);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 32px -8px rgba(20, 50, 35, .10), 0 2px 6px rgba(20, 50, 35, .04);
  --sb-bg: rgba(255, 255, 255, .72);
  --sb-t1: var(--t1);
  --sb-t2: var(--t2);
  --sb-act: var(--accent-l);
  --sb-bdr: var(--bdr);
  --av-bg: #f1f3f6;
  --av-fg: #4b5563;
  --sh1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sh2: 0 4px 14px rgba(16, 24, 40, .10), 0 2px 4px rgba(16, 24, 40, .05);
  --sh3: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --sb-w: 236px;
  --sb-w-mini: 72px;
  --hdr: 56px;
  --r: 4px;
  --r-md: 6px;
  --r2: 8px;
  --r99: 99px;
  --fh: 'Cormorant Garamond', serif;
  --fb: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Тёмная тема ── */
[data-theme=dark] {
  color-scheme: dark;
  --accent: #2f9b65;
  --accent-h: #38ad73;
  --accent-l: #16291f;
  --accent-t: #5fd198;
  --accent-sep: rgba(47, 155, 101, .35);
  --bg: #0f1216;
  --bg2: #13171c;
  --surf: #171b21;
  --s2: #1c2128;
  --t1: #dde3ea;
  --t2: #9aa4b2;
  --t3: #6b7583;
  --bdr: #262c35;
  --bdr2: #323a45;
  --glass: rgba(28, 33, 40, .72);
  --glass-border: rgba(255, 255, 255, .07);
  --glass-shadow: 0 12px 32px -8px rgba(0, 0, 0, .5);
  --sb-bg: rgba(23, 27, 33, .78);
  --sb-t1: var(--t1);
  --sb-t2: var(--t2);
  --sb-act: var(--accent-l);
  --sb-bdr: var(--bdr);
  --av-bg: #232a33;
  --av-fg: #c3cbd6;
  --sh1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh2: 0 4px 14px rgba(0, 0, 0, .35);
  --sh3: 0 12px 32px rgba(0, 0, 0, .5);
  --syn-key: #a78bfa;
  --syn-str: #2dd4bf;
  --syn-num: #fbbf24;
  --syn-bool: #60a5fa;
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

#root {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

b,
strong {
  font-weight: 600;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

button,
input,
select,
textarea {
  font-family: var(--fb);
  font-size: 13px;
}

select {
  color: var(--t1);
}

svg {
  flex-shrink: 0;
}

/* ── Scrollbar ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bdr2) transparent;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bdr2);
  border-radius: var(--r);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Shell ── */
.shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Смена темы ──
   На кадр переключения глушим собственные transition элементов,
   чтобы не было «волны»; плавность целиком даёт View Transition. */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes kd-menu-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
html,
body {
  height: auto;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}

.of-page {
  min-height: 100vh;
  background: var(--bg);
}

.of-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px 24px;
}
@media (max-width: 900px) {
  .of-inner {
    padding: 12px 16px 20px;
  }
}
@media (max-width: 640px) {
  .of-inner {
    padding: 12px 12px 16px;
  }
}
@media (max-width: 1100px) {
  .of-inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--sp-4);
  }
}
@media (max-width: 900px) {
  .of-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.of-toc {
  position: sticky;
  top: var(--sp-4);
  max-height: calc(100vh - var(--sp-8));
  overflow-y: auto;
  padding: var(--sp-3) var(--sp-2);
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  box-shadow: var(--sh1);
  scrollbar-width: thin;
  scrollbar-color: var(--bdr2) transparent;
}
.of-toc::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.of-toc::-webkit-scrollbar-track {
  background: transparent;
}
.of-toc::-webkit-scrollbar-thumb {
  background: var(--bdr2);
  border-radius: 4px;
}
@media (max-width: 900px) {
  .of-toc {
    display: none;
  }
}

.of-toc-label {
  padding: var(--sp-1) var(--sp-2-5) var(--sp-2);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--t3);
}

.of-toc-link {
  display: block;
  padding: var(--sp-1-5) var(--sp-2-5);
  border-left: 2px solid transparent;
  border-radius: var(--r);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  color: var(--t2);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.of-toc-link + .of-toc-link {
  margin-top: 1px;
}
.of-toc-link:hover {
  background: var(--s2);
  color: var(--t1);
}
.of-toc-link:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-l);
}
.of-toc-link.of-active {
  border-left-color: var(--accent);
  background: var(--accent-l);
  color: var(--accent-t);
  font-weight: var(--fw-medium);
}

.of-mobile-toc {
  display: none;
  margin-top: var(--sp-5);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  background: var(--s2);
}
@media (max-width: 900px) {
  .of-mobile-toc {
    display: block;
  }
}
.of-mobile-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2-5) var(--sp-3);
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--t1);
}
.of-mobile-toc summary::-webkit-details-marker {
  display: none;
}
.of-mobile-toc summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--t2);
  border-bottom: 1.5px solid var(--t2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-base);
}
.of-mobile-toc[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.of-mobile-toc nav {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0 var(--sp-1-5) var(--sp-2);
  scrollbar-width: thin;
  scrollbar-color: var(--bdr2) transparent;
}
.of-mobile-toc nav::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.of-mobile-toc nav::-webkit-scrollbar-track {
  background: transparent;
}
.of-mobile-toc nav::-webkit-scrollbar-thumb {
  background: var(--bdr2);
  border-radius: 4px;
}

.of-article {
  min-width: 0;
  padding: var(--sp-8) var(--sp-10) var(--sp-6);
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  box-shadow: var(--sh1);
}
@media (max-width: 900px) {
  .of-article {
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
  }
}
@media (max-width: 640px) {
  .of-article {
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
  }
}

.of-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1-5);
  font-size: var(--fs-sm);
  color: var(--t3);
}
.of-crumbs a {
  transition: color var(--dur-fast);
}
.of-crumbs a:hover {
  color: var(--accent);
}
.of-crumbs span:last-child {
  color: var(--t2);
}

.of-title {
  margin: var(--sp-3) 0 var(--sp-4);
  font-family: var(--f-brand);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--t1);
  text-wrap: balance;
}
@media (max-width: 640px) {
  .of-title {
    font-size: 20px;
  }
}

.of-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-2-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--bdr);
  font-size: var(--fs-sm);
  color: var(--t2);
}

.of-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-0-5) var(--sp-2);
  border-radius: var(--r);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  white-space: nowrap;
  background: var(--accent-l);
  color: var(--accent-t);
}

.of-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--t3);
}

.of-link {
  color: var(--accent-t);
  text-decoration: underline;
  text-decoration-color: var(--accent-sep);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast);
}
.of-link:hover {
  text-decoration-color: currentColor;
}

.of-section {
  padding-top: var(--sp-8);
  scroll-margin-top: var(--sp-2);
}
@media (max-width: 640px) {
  .of-section {
    padding-top: var(--sp-6);
  }
}

.of-h2 {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--t1);
}
@media (max-width: 640px) {
  .of-h2 {
    font-size: var(--fs-lg);
  }
}

.of-h3 {
  margin: var(--sp-5) 0 var(--sp-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--t1);
}

.of-h2-num {
  color: var(--accent);
}

.of-para {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--t1);
}
.of-para:last-child {
  margin-bottom: 0;
}

.of-clause {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  scroll-margin-top: var(--sp-4);
}
.of-clause:last-child {
  margin-bottom: 0;
}
.of-clause:target .of-clause-body {
  background: var(--accent-l);
  box-shadow: 0 0 0 var(--sp-1-5) var(--accent-l);
  border-radius: var(--r);
}
@media (max-width: 640px) {
  .of-clause {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.of-clause-num {
  padding-top: 3px;
  font-family: var(--fm);
  font-size: var(--fs-sm);
  color: var(--t3);
  white-space: nowrap;
}

.of-clause-body {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--t1);
}
.of-clause-body strong {
  font-weight: var(--fw-semibold);
}

.of-list {
  margin-top: var(--sp-1-5);
  padding-left: var(--sp-5);
}
.of-list li {
  padding-left: var(--sp-1);
}
.of-list li + li {
  margin-top: var(--sp-1);
}
.of-list li::marker {
  color: var(--accent);
}

.of-terms {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.of-term-row {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--t1);
}
.of-term-row dt {
  display: inline;
  font-weight: var(--fw-semibold);
}
.of-term-row dt .of-clause-num {
  margin-right: var(--sp-2);
  font-weight: var(--fw-regular);
}
.of-term-row dt::after {
  content: " — ";
  font-weight: var(--fw-regular);
}
.of-term-row dd {
  display: inline;
}

.of-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  scrollbar-width: thin;
  scrollbar-color: var(--bdr2) transparent;
}
.of-table-wrap::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.of-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.of-table-wrap::-webkit-scrollbar-thumb {
  background: var(--bdr2);
  border-radius: 4px;
}

.of-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
}
.of-table th,
.of-table td {
  padding: var(--sp-2-5) var(--sp-4);
  border-bottom: 1px solid var(--bdr);
  text-align: left;
  vertical-align: top;
}
.of-table tr:last-child th,
.of-table tr:last-child td {
  border-bottom: 0;
}
.of-table th {
  width: 240px;
  background: var(--s2);
  font-weight: var(--fw-medium);
  color: var(--t2);
}
@media (max-width: 640px) {
  .of-table th {
    width: 130px;
  }
}
.of-table td {
  color: var(--t1);
  word-break: break-word;
}

.of-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-2);
  list-style: none;
}

.of-doc-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2-5);
  height: 100%;
  padding: var(--sp-3) var(--sp-3-5);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--t1);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.of-doc-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.of-doc-link svg {
  color: var(--accent);
}
.of-doc-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.of-doc-link:hover {
  border-color: var(--accent-sep);
  background: var(--accent-l);
  color: var(--accent-t);
}
.of-doc-link:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-l);
}

.of-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--bdr);
  font-size: var(--fs-sm);
  color: var(--t3);
}

@media print {
  .of-page {
    height: auto;
    overflow: visible;
    background: #fff;
  }
  .of-inner {
    display: block;
    max-width: none;
    padding: 0;
  }
  .of-toc,
  .of-mobile-toc,
  .of-crumbs {
    display: none;
  }
  .of-article {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .of-section,
  .of-clause {
    break-inside: avoid-page;
  }
}
.of-table--grid th,
.of-table--grid td {
  width: auto;
  word-break: normal;
}
.of-table--grid thead th {
  color: var(--t1);
  font-weight: var(--fw-semibold);
}
.of-table--grid tbody th {
  background: none;
  color: var(--t1);
}
.of-table--grid td:last-child {
  white-space: nowrap;
  font-weight: var(--fw-medium);
}
@media (max-width: 640px) {
  .of-table--grid th:nth-child(3),
  .of-table--grid td:nth-child(3) {
    display: none;
  }
  .of-table--grid th,
  .of-table--grid td {
    padding: var(--sp-2-5) var(--sp-3);
  }
}

.of-table-wrap + .of-clause {
  margin-top: var(--sp-4);
}

/* ===== документы: оформление по правилам делопроизводства ===== */
.vp-doc .of-article p,.vp-doc .of-para,.vp-doc .of-term-row,.vp-doc .of-h2,.vp-doc .of-h3{text-indent:1.25cm}
.vp-doc .of-article :is(table,.of-table-wrap,.of-list,.of-meta,.of-mobile-toc,li){text-indent:0}
.vp-doc .of-article :is(table,li,.of-meta,.of-mobile-toc) p{text-indent:0}
.vp-doc .of-h2{display:block}
.vp-doc .of-h2-num{color:inherit}
.vp-doc .of-h2-num::after{content:" "}
.vp-doc .of-list{padding-left:calc(1.25cm + 1.2em)}
.vp-doc .of-clause{display:block}
.vp-doc .of-clause-num,.vp-doc .of-term-row dt .of-clause-num{padding:0;margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;white-space:nowrap}
.vp-doc .of-list li::marker{color:var(--t1)}

/* ===== документы: слова через дефис и телефоны не переносятся ===== */
.vp-nw{white-space:nowrap}

/* ===== документы: живой фон вокруг документа и текст по ширине ===== */
.vp-doc #bg3d{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;display:block}
.vp-doc .of-page{position:relative;z-index:1;background:transparent}
.vp-doc .ftr2-mark-wrap{position:relative;z-index:1}
.vp-doc .of-article p,.vp-doc .of-para,.vp-doc .of-term-row,.vp-doc .of-article li{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
.vp-doc .of-article :is(table,.of-meta,.of-mobile-toc) :is(p,li){text-align:left}

/* ===== документы: без переносов слов, сноски ===== */
.vp-doc .of-article p,.vp-doc .of-para,.vp-doc .of-term-row,.vp-doc .of-article li{-webkit-hyphens:manual;hyphens:manual}
.vp-doc .of-fn{font-size:.7em;line-height:0;vertical-align:super}
