/* ==========================================================================
   АНГЕЛ ЛИСТ — редизайн 2026 · style.css (drop-in замена static/css/style.css)
   Токены светлой и тёмной темы + базовые компоненты.
   По умолчанию светлая тема (как в ТЗ редизайна). Тёмная — атрибутом
   <html data-theme="dark">, который ставит /js/theme.js по кнопке в левом нижнем углу.
   ========================================================================== */
/* Шрифты — локально (static/fonts, woff2 из @fontsource, лицензия SIL OFL 1.1), без Google Fonts */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-tight-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-tight-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;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-tight-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-tight-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;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-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;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-tight-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-tight-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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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;
}

/* ---------- Tokens: светлая тема (по умолчанию) ---------- */
:root {
  color-scheme: light;

  /* Нейтрали — холодная графитовая шкала */
  --color-bg: #edf1f4;
  --color-bg-dot: rgba(12, 46, 64, 0.075);
  --color-glow-1: rgba(5, 96, 124, 0.13);
  --color-glow-2: rgba(7, 132, 103, 0.09);
  --color-surface: #ffffff;
  --color-surface-2: #f5f7f9;
  --color-surface-3: #ebeff3;
  --color-border: #dce3e9;
  --color-border-strong: #c3cdd6;
  --color-border-hi: #ffffff;
  --color-divider: #e8edf1;
  --color-text: #0f1b26;
  --color-text-2: #3f4d5a;
  --color-text-3: #5b6874;
  --color-text-inverse: #ffffff;

  /* Ролевые цвета: заливка кнопок (белый текст ≥ 4.5:1) */
  --color-projects: #078467;
  --color-projects-hover: #056b53;
  --color-investors: #2f7d45;
  --color-investors-hover: #256638;
  --color-experts: #05607c;
  --color-experts-hover: #034a60;
  --color-aqua: #0b7a88;
  --color-aqua-hover: #08636e;
  --color-danger: #c93838;
  --color-danger-hover: #a82a2a;
  --color-gold: #c8962e;

  /* «Чернила» — цвет текста на полупрозрачной подложке своего цвета */
  --color-projects-ink: #066b51;
  --color-investors-ink: #2c7442;
  --color-experts-ink: #05607c;
  --color-aqua-ink: #06707e;
  --color-danger-ink: #b42c2c;
  --color-gold-ink: #8a6416;

  /* Подложки 12–15 % */
  --color-projects-tint: rgba(7, 132, 103, 0.12);
  --color-investors-tint: rgba(47, 125, 69, 0.12);
  --color-experts-tint: rgba(5, 96, 124, 0.11);
  --color-aqua-tint: rgba(14, 143, 160, 0.12);
  --color-danger-tint: rgba(201, 56, 56, 0.11);
  --color-gold-tint: rgba(200, 150, 46, 0.14);

  /* Статусы */
  --color-success: var(--color-investors-ink);
  --color-warning: #9a5b0b;
  --color-error: var(--color-danger-ink);

  /* Типографика */
  --font-display: "Unbounded", "Inter Tight", system-ui, sans-serif;
  --font-sans: "Inter Tight", "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Отступы — шкала 4/8 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Радиусы */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Тени */
  --shadow-1: 0 1px 2px rgba(16, 32, 48, 0.06), 0 1px 1px rgba(16, 32, 48, 0.04);
  --shadow-2: 0 10px 28px -12px rgba(16, 40, 60, 0.22), 0 2px 6px rgba(16, 40, 60, 0.06);
  --shadow-3: 0 36px 72px -20px rgba(4, 20, 30, 0.45), 0 4px 12px rgba(4, 20, 30, 0.12);
  --shadow-inset: inset 0 1px 2px rgba(16, 32, 48, 0.06);

  /* Стекло и подложка модалок */
  --blur-glass: 14px;
  --blur-overlay: 6px;
  --color-glass: rgba(255, 255, 255, 0.72);
  --color-overlay: rgba(3, 22, 32, 0.62);

  /* Движение */
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 250ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Фокус */
  --focus-ring: 0 0 0 3px rgba(5, 96, 124, 0.22);
}

/* ---------- Tokens: тёмная тема «Deep Navy» ---------- */
/* Тёмная тема — только по явному выбору (кнопка, data-theme="dark"); по умолчанию светлая, как в ТЗ редизайна. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0a1118;
  --color-bg-dot: rgba(120, 190, 220, 0.075);
  --color-glow-1: rgba(20, 130, 170, 0.2);
  --color-glow-2: rgba(30, 200, 150, 0.08);
  --color-surface: #101a24;
  --color-surface-2: #0c151e;
  --color-surface-3: #172431;
  --color-border: #1f2e3c;
  --color-border-strong: #2b3e50;
  --color-border-hi: #2a3c4d;
  --color-divider: #192734;
  --color-text: #e7eef4;
  --color-text-2: #aab8c5;
  --color-text-3: #8392a0;
  --color-projects-ink: #3dd6a6;
  --color-investors-ink: #7acb90;
  --color-experts-ink: #5cbedd;
  --color-aqua-ink: #4fd6e5;
  --color-danger-ink: #ff8080;
  --color-gold-ink: #e2b85c;
  --color-gold: #d9ae52;
  --color-projects-tint: rgba(43, 203, 155, 0.15);
  --color-investors-tint: rgba(107, 194, 133, 0.15);
  --color-experts-tint: rgba(58, 166, 200, 0.16);
  --color-aqua-tint: rgba(62, 208, 224, 0.14);
  --color-danger-tint: rgba(242, 107, 107, 0.15);
  --color-gold-tint: rgba(217, 174, 82, 0.15);
  --color-warning: #f0b45a;
  --color-experts: #0b7596;
  --color-experts-hover: #0a6683;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 32px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(120, 190, 220, 0.06);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  --color-glass: rgba(16, 26, 36, 0.72);
  --color-overlay: rgba(2, 8, 13, 0.7);
  --focus-ring: 0 0 0 3px rgba(92, 190, 221, 0.28);
}

/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  text-decoration: none;
  outline: none;
}
html {
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}
body {
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.45;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  /* техно-сетка из точек + едва заметное свечение петроль/мят в углах */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(900px 520px at 0% 0%, var(--color-glow-1), transparent 70%),
    radial-gradient(760px 480px at 100% 0%, var(--color-glow-2), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--color-bg-dot) 1px, transparent 1.4px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
}
::selection {
  background: var(--color-experts-tint);
}
a,
button {
  color: inherit;
  font-size: inherit;
}
button {
  background: none;
  cursor: pointer;
}
:focus-visible {
  box-shadow: var(--focus-ring);
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
svg {
  flex-shrink: 0;
}
/* Единый линейный набор иконок 1.5 px (Lucide): stroke="currentColor" */
.main__button svg,
.header__socials-item svg,
.copy__input__value,
.modal__close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 15px;
}

/* ---------- Main button: 5 цветов, контурная ----------
   Без заливки: толстый контур и текст цвета раздела (--btn-ink, AA в обеих темах).
   Заливка оттенком (--btn-tint) появляется только на hover и в «нажатом» состоянии. */
.main__button {
  --btn-bg: var(--color-experts);
  --btn-bg-hover: var(--color-experts-hover);
  --btn-glow: rgba(5, 96, 124, 0.45);
  --btn-ink: var(--color-experts-ink);
  --btn-tint: var(--color-experts-tint);
  --btn-line: 2px;
  position: relative;
  height: 46px;
  padding: 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  border-radius: var(--radius-md);
  color: var(--btn-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 var(--btn-line) var(--btn-ink);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), color var(--dur) var(--ease);
}
.main__button svg {
  width: 18px;
  height: 18px;
  margin: 0;
}
.main__button svg path {
  fill: none;
}
.main__button:hover {
  background-color: var(--btn-tint);
  box-shadow: inset 0 0 0 var(--btn-line) var(--btn-ink), 0 6px 18px -8px var(--btn-glow);
}
.main__button:active {
  transform: translateY(1px);
}
.main__button:focus-visible {
  box-shadow: inset 0 0 0 var(--btn-line) var(--btn-ink), 0 0 0 3px var(--color-surface), 0 0 0 5px var(--btn-ink);
}
.main__button-mint {
  --btn-bg: var(--color-projects);
  --btn-bg-hover: var(--color-projects-hover);
  --btn-glow: rgba(7, 132, 103, 0.5);
  --btn-ink: var(--color-projects-ink);
  --btn-tint: var(--color-projects-tint);
}
.main__button-green {
  --btn-bg: var(--color-investors);
  --btn-bg-hover: var(--color-investors-hover);
  --btn-glow: rgba(47, 125, 69, 0.5);
  --btn-ink: var(--color-investors-ink);
  --btn-tint: var(--color-investors-tint);
}
.main__button-red {
  --btn-bg: var(--color-danger);
  --btn-bg-hover: var(--color-danger-hover);
  --btn-glow: rgba(201, 56, 56, 0.5);
  --btn-ink: var(--color-danger-ink);
  --btn-tint: var(--color-danger-tint);
}
.main__button-aqua {
  --btn-bg: var(--color-aqua);
  --btn-bg-hover: var(--color-aqua-hover);
  --btn-glow: rgba(11, 122, 136, 0.5);
  --btn-ink: var(--color-aqua-ink);
  --btn-tint: var(--color-aqua-tint);
}
.main__button[disabled] {
  background: transparent !important;
  color: var(--color-text-3) !important;
  box-shadow: inset 0 0 0 var(--btn-line) var(--color-border-strong) !important;
  cursor: not-allowed !important;
  transform: none;
}
.main__button[disabled] svg path {
  fill: none !important;
}

/* Капсула-счётчик внутри кнопки (опц. разметка: <span class="main__button-count">) */
.main__button-count {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  min-width: 34px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--btn-tint, var(--color-surface-3));
  text-align: center;
  letter-spacing: 0;
}

/* ---------- Заголовки ---------- */
.title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 0.06em;
  color: var(--color-experts-ink);
}
.color__decoration {
  font-weight: 700;
  color: var(--color-experts-ink);
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.color__decoration.mint {
  color: var(--color-investors-ink);
}
.mobile__show {
  display: none;
}

/* ---------- Шапка: неавторизованные и публичные страницы ---------- */
header {
  width: 100%;
}
.header__not__authorized {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.header__not__authorized .header__top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 2px;
}
.header__not__authorized .header__top .header__logo img {
  display: block;
  max-width: 196px;
  max-height: 58px;
  filter: drop-shadow(0 2px 6px rgba(138, 100, 22, 0.18));
}
.header__top-text {
  width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.header__not__authorized .header__title,
.header__authorized .header__title {
  font-family: var(--font-display);
  text-align: center;
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.1em;
  color: var(--color-experts-ink);
}
.header__not__authorized .header__subtitle,
.header__authorized .header__subtitle {
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.16em;
  color: var(--color-text-2);
  margin-top: 4px;
}
.header__not__authorized .header__socials {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  align-items: end;
}
.header__not__authorized .header__qr-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.header__not__authorized .header__qr {
  width: 60px;
  max-width: 60px;
  padding: 4px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-1);
}
.header__not__authorized .header__qr-text {
  margin-top: 5px;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  color: var(--color-text-3);
}
.header__not__authorized .header__socials-title {
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.14em;
  color: var(--color-text-3);
  text-transform: uppercase;
  align-self: end;
}
.header__not__authorized .header__socials-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
}
.header__not__authorized .header__socials-item {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-2);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-1);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.header__not__authorized .header__socials-item svg {
  width: 18px;
  height: 18px;
}
.header__not__authorized .header__socials-item svg path {
  fill: none;
}
.header__not__authorized .header__socials-item:hover {
  color: var(--color-experts-ink);
  box-shadow: 0 0 0 1px var(--color-experts), 0 0 0 4px var(--color-experts-tint);
}

/* Строка управления: 4 зоны на «командной панели» */
.header__not__authorized .header__control__row {
  margin-top: 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
  backdrop-filter: blur(var(--blur-glass)) saturate(140%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--color-border-hi);
}
.header__not__authorized .header__control__row-item:first-child,
.header__not__authorized .header__control__row-item:last-child {
  width: calc(100% / 4 - 25px);
}
.header__not__authorized .header__control__row-item .main__button {
  width: 100%;
}
.header__not__authorized .header__control__row-stats {
  flex: 1 1 auto;
  width: auto;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.header__not__authorized .header__control__row-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}
.header__control__row-stat .main__button {
  width: 178px !important;
  height: 46px;
  margin: 0;
  justify-content: flex-start;
  padding: 0 10px 0 14px;
}
.header__control__row-stat .main__button .main__button-count {
  margin-left: auto;
}
/* Эксперты всегда в петроле (в шаблоне активная кнопка экспертов помечена как -green) */
.header__control__row-stat:nth-child(3) .main__button {
  --btn-bg: var(--color-experts);
  --btn-bg-hover: var(--color-experts-hover);
  --btn-glow: rgba(5, 96, 124, 0.45);
  --btn-ink: var(--color-experts-ink);
  --btn-tint: var(--color-experts-tint);
}
/* Текущий раздел: кнопка «нажата» — цвет раздела сохраняется, лёгкая заливка оттенком + индикатор */
.header__control__row-stat .main__button[disabled] {
  background: var(--btn-tint) !important;
  color: var(--btn-ink) !important;
  cursor: default !important;
  box-shadow: inset 0 0 0 var(--btn-line) var(--btn-ink) !important;
}
.header__control__row-stat .main__button[disabled]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 28px;
  height: 3px;
  margin-left: -14px;
  border-radius: 3px;
  background: var(--btn-ink);
}
.header__not__authorized .header__control__row-stat__content {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
  color: var(--color-text);
}

/* ---------- Шапка авторизованной зоны ---------- */
.header__authorized {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
  backdrop-filter: blur(var(--blur-glass)) saturate(140%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--color-border-hi);
  max-width: 1110px;
  margin: 0 15px;
}
.header__authorized .header__logo img {
  display: block;
  max-width: 150px;
  margin-right: 20px;
  filter: drop-shadow(0 2px 6px rgba(138, 100, 22, 0.18));
}
.header__authorized .header__title {
  display: none;
  font-size: 24px;
  line-height: 30px;
  margin-top: 10px;
}
.header__authorized .header__subtitle {
  display: none;
  margin-top: 3px;
}
.header__authorized .header__control__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__authorized .header__control__row .main__button {
  font-size: 15px;
  line-height: 19px;
  width: 230px;
  height: 40px;
}
.header__authorized .header__control__row .main__button-red {
  font-size: 15px;
  line-height: 19px;
  width: 110px;
  margin-left: 0;
}
.header__hello {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.header__hello-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.08em;
  color: var(--color-experts-ink);
  text-transform: uppercase;
}
.header__hello-name {
  font-size: 13px;
  color: var(--color-text-3);
}
.authorized__main-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header__authorized .authorized__main-link,
.authorized__main-link {
  padding: 0 16px;
  width: fit-content !important;
  margin-left: 0;
}

/* Плашка «У вас есть активные чаты!» */
.active_chat_warning {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  margin-top: 24px;
  background: linear-gradient(100deg, var(--color-experts), #0a7c8f);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.active_chat_warning::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ff0cd;
  box-shadow: 0 0 0 4px rgba(127, 240, 205, 0.22);
  animation: al-pulse 2.4s var(--ease) infinite;
}
@keyframes al-pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(127, 240, 205, 0);
  }
}
.white__title {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.01em;
  text-transform: initial !important;
}
/* На петрольной плашке контур и текст кнопки — белые */
.active_chat_warning .main__button {
  --btn-ink: #fff;
  --btn-tint: rgba(255, 255, 255, 0.14);
  --btn-glow: rgba(0, 0, 0, 0.3);
  width: 160px;
  height: 38px;
  font-size: 15px;
  line-height: 19px;
}

/* ---------- Поля форм ---------- */
.input__row {
  display: flex;
  justify-content: space-between;
}
.copy__input__value {
  cursor: pointer;
}
.wrapped__row {
  flex-wrap: wrap;
}
.input__row > .input__group {
  width: auto;
  flex: 1 1 auto;
  margin-right: 24px;
}
.input__row > .input__group:last-child {
  margin-right: 0;
}
.input__group-name {
  display: block;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--color-text-2);
  padding-left: 2px;
}
.input__group-wrapper {
  position: relative;
  margin-top: 6px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.input__group-wrapper[data-accreditation]::before {
  position: absolute;
  display: block;
  top: 50%;
  transform: translateY(-50%);
  left: 16px;
  z-index: 1;
  font-weight: 600;
  color: var(--color-gold-ink);
}
.input__group-wrapper[data-accreditation="0"]::before {
  content: "Не получена";
  color: var(--color-text-3);
}
.input__group-wrapper[data-accreditation="1"]::before {
  content: "1 уровень";
}
.input__group-wrapper[data-accreditation="2"]::before {
  content: "2 уровень";
}
.input__group-wrapper[data-accreditation="3"]::before {
  content: "3 уровень";
}
.input__group-input {
  width: auto;
  height: 44px;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 20px;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.input__group-input::placeholder {
  color: var(--color-text-3);
  opacity: 0.85;
}
.input__group-input:hover {
  border-color: var(--color-text-3);
}
input:focus,
textarea:focus,
select:focus,
.input__group-input:focus {
  border-color: var(--color-experts);
  box-shadow: var(--focus-ring), 0 0 18px -4px rgba(11, 117, 150, 0.35);
}
select.input__group-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6874' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
textarea.input__group-input {
  height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: none;
  line-height: 1.5;
}
.input__group-input__error,
.input__group-input.input__group-input__error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-tint);
}
.input__group-input[disabled],
.input__group-input[readonly] {
  border-color: var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-2);
  box-shadow: none;
  cursor: default;
}
.input__group-input[disabled]:hover {
  border-color: var(--color-border);
}
.input__group-error {
  margin-top: 6px;
  color: var(--color-error);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  text-align: right;
}
.input__group-info {
  margin-top: 6px;
  color: var(--color-experts-ink);
  font-size: 13px;
  line-height: 16px;
  text-align: right;
}
/* Кнопка, примыкающая к полю справа */
.input__group-button {
  font-size: 15px;
  line-height: 19px;
  margin-left: -10px;
  width: 340px;
  height: 44px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: var(--color-surface);
}
.input__group-button:hover {
  background-image: linear-gradient(var(--btn-tint), var(--btn-tint));
}
.input__group-wrapper > .input__group-input:has(+ .input__group-button) {
  padding-right: 24px;
}
.delete-button {
  font-size: 15px;
  line-height: 19px;
  margin-left: 0;
  width: 44px;
  height: 44px;
  padding: 0;
}
.delete-button i.fas.fa-exclamation-circle {
  display: none;
}
.delete-button:hover i.fas.fa-trash-alt {
  display: none;
}
.delete-button:hover i.fas.fa-exclamation-circle {
  display: inline-block;
}
/* Единица измерения / иконка внутри поля */
.input__group-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-3);
  font-size: 13px;
  pointer-events: none;
}
svg.input__group-icon,
.copy__input__value {
  width: 18px;
  height: 18px;
  pointer-events: auto;
  color: var(--color-text-3);
  transition: color var(--dur) var(--ease);
}
.copy__input__value:hover {
  color: var(--color-experts-ink);
}
.copy__input__value path {
  fill: none !important;
}

/* Радио и чекбоксы */
.input__group-radio input,
.input__group-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.input__group-radio label,
.input__group-checkbox label {
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text);
  min-height: 24px;
}
.input__group-radio label::before {
  display: block;
  content: "";
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input__group-checkbox label::before {
  display: block;
  content: "";
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: var(--radius-xs);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input__group-radio label::after {
  display: block;
  content: "";
  background: var(--color-experts);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 5px;
  margin-top: -5px;
  transform: scale(0);
  transition: transform var(--dur) var(--ease);
}
.input__group-checkbox label::after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-4-4'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-4-4'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transform: scale(0.4);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.input__group-radio label:hover::before,
.input__group-checkbox label:hover::before {
  border-color: var(--color-experts);
}
.input__group-radio input:focus-visible ~ label::before,
.input__group-checkbox input:focus-visible ~ label::before {
  box-shadow: var(--focus-ring);
}
.input__group-radio input[type="radio"]:checked ~ label::before {
  border-color: var(--color-experts);
  box-shadow: 0 0 0 3px var(--color-experts-tint);
}
.input__group-radio input[type="radio"]:checked ~ label::after {
  display: block;
  transform: scale(1);
}
.input__group-checkbox input[type="checkbox"]:checked ~ label::before {
  background: var(--color-experts);
  border-color: var(--color-experts);
}
.input__group-checkbox input[type="checkbox"]:checked ~ label::after {
  display: block;
  transform: scale(1);
  opacity: 1;
}
.input__group-radio input[disabled] ~ label,
.input__group-checkbox input[disabled] ~ label {
  opacity: 0.5;
  cursor: not-allowed;
}
.input__group-radio {
  margin-right: 32px;
}
.input__group-radio:last-child {
  margin-right: 0;
}

/* ---------- Модальные окна ---------- */
.modal {
  display: none;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--color-overlay);
  -webkit-backdrop-filter: blur(var(--blur-overlay));
  backdrop-filter: blur(var(--blur-overlay));
  z-index: 111;
}
.modal.filters {
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: flex-start;
  overflow-y: auto;
}
.modal.filters > .modal__body {
  width: 100%;
  max-width: 760px;
  align-items: stretch;
}
.modal.hide {
  opacity: 0;
}
.modal.show {
  opacity: 1;
}
.modal__body {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(180deg, var(--color-border-hi), var(--color-border)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-3);
  transform: translateY(8px) scale(0.985);
  transition: transform var(--dur-slow) var(--ease);
}
.modal.show .modal__body {
  transform: none;
}
.modal__body::before {
  /* тонкая «приборная» линия сверху */
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--color-experts), var(--color-projects), transparent);
  opacity: 0.7;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-3);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal__close:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}
.modal__close svg {
  width: 20px;
  height: 20px;
}
.modal__close svg path {
  fill: none;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-experts-ink);
  text-transform: uppercase;
  padding: 0 32px;
}
.modal__subtitle,
.modal__text {
  text-align: center;
  font-size: 16px;
  line-height: 23px;
  color: var(--color-text-2);
  margin-top: 12px;
  margin-bottom: 16px;
}
.modal-error {
  color: var(--color-error);
  font-weight: 600;
}
.modal__body .input__group {
  width: 100%;
  margin-top: 16px;
}
.modal__restore {
  width: 100%;
  color: var(--color-experts-ink);
  font-size: 13px;
  line-height: 16px;
  text-align: right;
  margin: 10px 0 22px;
  text-decoration: underline;
  text-decoration-color: rgba(5, 96, 124, 0.35);
  text-underline-offset: 3px;
}
.modal__restore:hover {
  text-decoration-color: currentColor;
}
.modal__body .main__button {
  width: 300px;
  font-size: 16px;
  line-height: 20px;
}
.modal__list {
  list-style: none;
  counter-reset: al-counter;
  width: 100%;
  margin-top: 4px;
}
.modal__list li {
  position: relative;
  counter-increment: al-counter;
  margin-bottom: 12px;
  padding: 12px 14px 12px 56px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 21px;
}
.modal__list li::before {
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-experts-tint);
  content: counter(al-counter, decimal-leading-zero);
  color: var(--color-experts-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}
.modal__list .modal__buttons {
  margin-top: 8px;
}
.modal__buttons {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal__buttons > * {
  width: auto;
  margin-right: 0;
  flex: 1 1 0;
}
.modal__buttons > *:last-child {
  margin-right: 0;
}
.modal__body .modal__buttons .main__button {
  width: auto;
}

/* Спойлеры фильтров внутри модалки */
.modal__spoiler {
  margin-top: 14px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  overflow: hidden;
}
.modal__spoiler-header {
  margin-top: 0;
  width: 100%;
  min-height: 52px;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.modal__spoiler-header svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-3);
  transform: rotate(180deg);
  transition: transform var(--dur-slow) var(--ease), background-color var(--dur) var(--ease);
}
.modal__spoiler-header svg:hover {
  background: var(--color-surface-3);
}
.modal__spoiler-header svg path {
  fill: none;
  stroke: currentColor;
}
.modal__spoiler-header.active svg {
  transform: none;
}
.modal__spoiler-body {
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  padding: 0 18px;
}
.modal__spoiler-body.active {
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  padding-bottom: 14px;
}
.modal__spoiler-body .input__group-checkbox {
  margin-top: 12px;
}
.modal__spoiler-body .input__group-checkbox label {
  font-size: 14px;
  line-height: 18px;
}
.modal__spoiler-body > .input__row,
.modal__spoiler-body > .input__group {
  grid-column: 1 / -1;
}
.filter__submit {
  width: 100% !important;
  margin-top: 24px;
}

/* ---------- Яндекс-шаринг внутри «Поделиться» ---------- */
.ya-share2,
.ya-share2__container,
.ya-share2__list,
.ya-share2__item {
  width: 100%;
  height: 100%;
}
.ya-share2__link_more {
  transition: color var(--dur) var(--ease);
  width: 100% !important;
  height: 28px !important;
  background: transparent !important;
  border-radius: var(--radius-xs) !important;
  border: 0 !important;
  font-size: 12px !important;
  line-height: 14px !important;
  display: flex !important;
  flex-direction: row-reverse;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  cursor: pointer;
  padding: 0 !important;
}
.ya-share2__link_more .ya-share2__title {
  color: var(--color-aqua-ink) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
}
.ya-share2__link_more .ya-share2__icon_more {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  background: var(--color-aqua-ink) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 13.5 6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 13.5 6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.custom__share-button:hover .ya-share2__link_more .ya-share2__title {
  color: #fff !important;
}
.custom__share-button:hover .ya-share2__link_more .ya-share2__icon_more {
  background: #fff !important;
}

/* ---------- Пагинация ---------- */
.pagination__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.pagination__item {
  list-style: none;
  margin: 0;
}
.pagination__item-link {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-2);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-1);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.pagination__item-link:hover {
  color: var(--color-experts-ink);
  box-shadow: 0 0 0 1px var(--color-experts), 0 0 0 4px var(--color-experts-tint);
}
.pagination__item-link.active {
  color: var(--color-experts-ink);
  background: var(--color-experts-tint);
  box-shadow: inset 0 0 0 2px var(--color-experts-ink);
  cursor: default;
}

/* ---------- Движение: уважение к настройкам ОС ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
}

/* ---------- Мобильный режим ≤ 1110 px ---------- */
@media (min-width: 1110px) {
  .radio__row {
    width: 100%;
    display: flex;
    align-items: center;
    max-width: 340px;
    margin-bottom: 14px;
  }
  .radio__row .input__group-radio {
    margin-right: 0;
    margin-left: 14px;
  }
}
@media (max-width: 1110px) {
  body {
    background-attachment: scroll, scroll, scroll;
  }
  .ya-share2__title {
    font-size: 15px;
    line-height: 19px;
  }
  .radio__row {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .radio__row > p {
    width: 100%;
    margin-bottom: 6px;
  }
  .radio__row .input__group-radio {
    margin-right: 16px;
    margin-left: 0;
  }
  .mobile__show {
    display: flex;
  }
  .header__not__authorized {
    position: relative;
    padding-bottom: 118px;
  }
  .header__not__authorized .header__logo img {
    max-width: 112px !important;
    max-height: 36px !important;
    height: auto;
  }
  .header__top-text {
    width: auto;
    margin: 0 0 0 auto;
  }
  .header__not__authorized .header__title {
    font-size: 20px;
    line-height: 24px;
    text-align: right;
  }
  .header__top {
    margin-bottom: 4px;
  }
  .header__not__authorized .header__subtitle {
    font-size: 9.5px;
    line-height: 12px;
    letter-spacing: 0.1em;
    margin-top: 3px;
    text-align: right;
  }
  .header__not__authorized .header__socials {
    position: absolute;
    width: calc(100% - 30px);
    right: 50%;
    transform: translateX(50%);
    bottom: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    grid-template-columns: 56px 1fr;
  }
  .header__not__authorized .header__qr {
    width: 52px;
  }
  .header__not__authorized .header__socials-row {
    width: 100%;
    justify-content: space-between;
  }
  .header__not__authorized .header__socials-item {
    margin: 0 !important;
  }
  .header__not__authorized .header__control__row {
    flex-direction: column-reverse;
    margin-top: 10px;
    padding: 8px;
  }
  .header__control__row-item {
    width: 100% !important;
    margin-bottom: 6px;
  }
  .header__control__row-item:first-child {
    margin-bottom: 0;
  }
  .header__not__authorized .header__control__row-stats {
    order: 1;
    margin: 0 0 10px;
    gap: 6px;
  }
  .header__not__authorized .header__control__row-stat {
    border-right: 0;
    padding: 0;
    width: 100%;
  }
  .header__control__row-stat .main__button {
    height: 52px;
    width: 100% !important;
    font-size: 13px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 4px;
  }
  .header__control__row-stat .main__button svg {
    display: none;
  }
  .header__control__row-stat .main__button .main__button-count {
    margin-left: 0;
    font-size: 12px;
    line-height: 16px;
  }
  .header__control__row-stat .main__button[disabled]::after {
    bottom: -9px;
  }
  .header__not__authorized .header__control__row-stat__title,
  .header__not__authorized .header__control__row-stat__content {
    font-size: 18px;
    line-height: 21px;
  }
  .header__authorized {
    flex-direction: column;
    margin: 0 15px;
    width: calc(100% - 30px);
    padding: 14px 12px 12px;
  }
  .header__authorized .header__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }
  .header__authorized .header__logo img {
    height: auto;
    max-height: 64px;
    max-width: 210px;
    margin-right: 0;
  }
  .header__authorized .header__title {
    display: block;
    font-size: 22px;
    line-height: 28px;
  }
  .header__authorized .header__subtitle {
    margin-bottom: 16px;
    display: block;
    font-size: 10.5px;
  }
  .header__authorized .header__control__row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
  }
  .header__authorized .header__control__row:first-child {
    display: flex;
    flex-wrap: wrap;
  }
  .header__authorized .header__control__row > * {
    font-size: 16px !important;
    line-height: 20px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 6px;
  }
  .authorized__main-wrapper {
    width: 100%;
    margin-top: 10px;
    gap: 6px;
  }
  .authorized__main-wrapper > * {
    flex: 1 1 0;
  }
  .authorized__main-wrapper > * {
    padding: 0 !important;
    height: 38px !important;
    width: 100% !important;
    font-size: 13px !important;
    gap: 6px;
  }
  .authorized__main-wrapper > * svg {
    width: 16px;
    height: 16px;
  }
  .active_chat_warning {
    flex-direction: column;
    text-align: center;
    width: calc(100% - 30px);
    gap: 8px;
  }
  .white__title {
    font-size: 14px !important;
    line-height: 18px !important;
  }
  .active_chat_warning .main__button {
    margin-top: 6px;
  }
  .title {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.05em;
  }
  .input__row {
    flex-direction: column;
  }
  .input__row > .input__group {
    margin-right: 0;
    margin-bottom: 14px;
  }
  .input__group-wrapper {
    flex-direction: column;
  }
  .input__group-input {
    width: 100%;
    font-size: 16px;
  }
  .input__group-button {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    border-radius: var(--radius-md);
  }
  .delete-button {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
  .modal {
    align-items: flex-end;
    padding: 0;
  }
  .modal.filters {
    padding: 24px 0 0;
  }
  .modal__body {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 28px 18px 24px;
    max-width: 100%;
  }
  .modal__close {
    top: 10px;
    right: 10px;
    transform: none;
  }
  .modal__body .main__button {
    width: 100%;
  }
  .modal__spoiler-body {
    grid-template-columns: 1fr;
  }
  .modal__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .modal__buttons > * {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 0;
  }
}

/* ---------- Переключатель темы «Светлая | Тёмная» (добавляет /js/theme.js над шапкой) ---------- */
.theme-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.theme-bar--floating {
  position: fixed;
  top: 12px;
  right: 12px;
  width: auto;
  padding: 0;
  margin: 0;
  z-index: 900;
}
.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-1);
}
.theme-switch__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.theme-switch__option:hover {
  color: var(--color-gold-ink);
}
.theme-switch__option[aria-pressed="true"] {
  background: var(--color-gold-tint);
  border-color: var(--color-gold);
  color: var(--color-gold-ink);
  cursor: default;
}
.theme-switch__option:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch__option { transition: none; }
}
