<!-- ========================================================
     RSC-BASE v1.1 (19 мая 2026) — Научный совет РАН ОсТранс

     Изменения v1.0 → v1.1:
     - Шрифт синхронизирован с TN: 'Inter', 'Mulish', ...
     - Все «инфраструктурные» акценты (page-eyebrow dot, about-card
       полоса, about-label, hover-границы документов) переведены на
       синий --rsc-primary вместо зелёного — для единства бренда
     - --rsc-bg, размеры, радиусы, тени синхронизированы с TN
     - Status pill margin-top: 16px (как у TN)
     - Cards row max-width: 760px, doc max-width: 370px (как у TN)
     - Кнопка «Войти» border-radius: 14px (как у TN)
     - Hero subtitle: размер и letter-spacing приближены к TN
     - Удалены стили переключателя темы (.rsc-theme-toggle)
       — тема следует системному prefers-color-scheme

     Зелёный остаётся ТОЛЬКО в:
     - Бейдже Совета (RSC-light → RSC-mid → RSC-deep)
     - Иконке карточки РАН (rsc-doc-icon-ras)
     - Hover-border карточки РАН (rsc-doc-ras:hover)
     ======================================================== -->


/* ============ DESIGN TOKENS — все --rsc-* ============ */
:root {
  /* === Зелёная палитра Совета (используется только в бейдже RSC и иконке РАН) === */
  --rsc-light: #2A8466;
  --rsc-mid: #155943;
  --rsc-deep: #0E3F4A;
  --rsc-silver: #D8D8D8;
  --rsc-silver-soft: #C5D5C8;

  /* === Mintrans-палитра (для документов, TN-бейджа, НИИТ) === */
  --rsc-mintrans-deep: #001E47;
  --rsc-mintrans-mid: #003366;
  --rsc-mintrans-light: #1A5A8A;
  --rsc-mintrans-silver: #B8C8DA;

  /* === Primary (синий Минтранса — основной CTA и все акценты страницы) === */
  --rsc-primary: #055397;
  --rsc-primary-dark: #033258;
  --rsc-primary-light: #5BA3D0;
  --rsc-primary-soft: #E8F0F7;

  /* === Поверхности (синхронизировано с TN) === */
  --rsc-bg: #F8FAFC;
  --rsc-bg-grad-start: #FAFCFE;
  --rsc-bg-grad-end: #EEF3F8;
  --rsc-surface: #FFFFFF;
  --rsc-surface-inset: #F1F5F9;
  --rsc-surface-hover: #F1F5F9;
  --rsc-border: #E2E8F0;
  --rsc-border-soft: #EDF2F7;
  --rsc-border-strong: #CBD5E1;

  /* === Текст === */
  --rsc-text: #0F172A;
  --rsc-text-muted: #64748B;
  --rsc-text-subtle: #94A3B8;
  --rsc-text-inverse: #FFFFFF;

  /* === Семантика === */
  --rsc-warning: #D97706;
  --rsc-success: #047857;
  --rsc-error: #DC2626;

  /* === Шрифт (полный стек TN) === */
  --rsc-font: 'Inter', 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --rsc-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* === Размеры (синхронизировано с TN) === */
  --rsc-text-xs: 11px;
  --rsc-text-sm: 12.5px;
  --rsc-text-base: 14px;
  --rsc-text-md: 15px;
  --rsc-text-lg: 17px;
  --rsc-text-xl: 20px;
  --rsc-text-2xl: 24px;

  /* === Радиусы (синхронизировано с TN) === */
  --rsc-radius-xs: 6px;
  --rsc-radius-sm: 10px;
  --rsc-radius: 14px;
  --rsc-radius-lg: 18px;
  --rsc-radius-xl: 22px;
  --rsc-radius-pill: 999px;

  /* === Тени === */
  --rsc-shadow-sm: 0 1px 3px rgba(15, 30, 60, 0.05), 0 1px 2px rgba(15, 30, 60, 0.04);
  --rsc-shadow-md: 0 4px 12px rgba(15, 30, 60, 0.06), 0 2px 4px rgba(15, 30, 60, 0.04);
  --rsc-shadow-lg: 0 10px 30px rgba(15, 30, 60, 0.10), 0 4px 12px rgba(15, 30, 60, 0.06);
  --rsc-shadow-card: 0 1px 3px rgba(15, 30, 60, 0.04), 0 1px 2px rgba(15, 30, 60, 0.03);
  --rsc-shadow-card-hover: 0 14px 32px rgba(5, 83, 151, 0.14), 0 4px 10px rgba(15, 30, 60, 0.06);
  --rsc-shadow-card-hover-rsc: 0 14px 32px rgba(21, 89, 67, 0.18), 0 4px 10px rgba(15, 30, 60, 0.06);
  --rsc-shadow-badge-rsc: 0 10px 28px rgba(8, 45, 32, 0.30), 0 4px 10px rgba(8, 45, 32, 0.18), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(0,0,0,0.22);
  --rsc-shadow-badge-rsc-sm: 0 6px 16px rgba(8, 45, 32, 0.24), 0 2px 6px rgba(8, 45, 32, 0.14), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.20);
  --rsc-shadow-badge-tn: 0 8px 20px rgba(0, 20, 60, 0.24), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.20);
  --rsc-shadow-btn: 0 6px 16px rgba(5, 83, 151, 0.30), 0 2px 6px rgba(5, 83, 151, 0.18);
  --rsc-shadow-btn-hover: 0 14px 28px rgba(5, 83, 151, 0.42), 0 4px 10px rgba(5, 83, 151, 0.24);
  --rsc-shadow-niit: 0 4px 10px rgba(0, 20, 60, 0.20), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(0,0,0,0.20);
  --rsc-shadow-doc-icon: 0 4px 12px rgba(0, 20, 60, 0.28), inset 0 1px 0 rgba(255,255,255,0.30);
  --rsc-shadow-doc-icon-ras: 0 4px 12px rgba(8, 45, 32, 0.28), inset 0 1px 0 rgba(255,255,255,0.30);

  /* === Layout === */
  --rsc-container-max: 1200px;
  --rsc-header-h: 64px;

  /* === Анимация === */
  --rsc-transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html.rsc-dark {
  --rsc-light: #3A9F7C;
  --rsc-mid: #1F6A53;
  --rsc-deep: #103847;

  --rsc-primary: #5BA3D0;
  --rsc-primary-light: #7BBDE3;
  --rsc-primary-soft: rgba(91, 163, 208, 0.12);

  --rsc-bg: #0B1120;
  --rsc-bg-grad-start: #0B1120;
  --rsc-bg-grad-end: #101A2E;
  --rsc-surface: #151D2E;
  --rsc-surface-inset: #1E283D;
  --rsc-surface-hover: #1E293B;
  --rsc-border: #1E293B;
  --rsc-border-soft: #2C3A52;
  --rsc-border-strong: #3D4D6B;

  --rsc-text: #F8FAFC;
  --rsc-text-muted: #A6B4C8;
  --rsc-text-subtle: #8090A8;

  --rsc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.30);
  --rsc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.40);
  --rsc-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);
  --rsc-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.32);
  --rsc-shadow-card-hover: 0 14px 32px rgba(91, 163, 208, 0.22);
  --rsc-shadow-card-hover-rsc: 0 14px 32px rgba(58, 159, 124, 0.24);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--rsc-font);
  font-size: var(--rsc-text-base);
  line-height: 1.5;
  color: var(--rsc-text);
  background: var(--rsc-bg);
  background-image: linear-gradient(135deg, var(--rsc-bg-grad-start) 0%, var(--rsc-bg-grad-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Анти-Тильда: запрет выделения вне input-полей */
body #rsc-app, body #rsc-app *,
body #rsc-app *::before, body #rsc-app *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
body #rsc-app input, body #rsc-app textarea, body #rsc-app [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

body #rsc-app {
  font-family: var(--rsc-font) !important;
  font-size: var(--rsc-text-base);
  line-height: 1.5;
  color: var(--rsc-text) !important;
  background: transparent !important;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body #rsc-app a { color: inherit; text-decoration: none !important; }
body #rsc-app button {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}
body #rsc-app img, body #rsc-app svg { display: block; max-width: 100%; }

/* === Skip-link === */
body #rsc-app .rsc-skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 9999;
  padding: 10px 16px;
  background: var(--rsc-primary) !important; color: #FFFFFF !important;
  border-radius: var(--rsc-radius); font-weight: 700; font-size: var(--rsc-text-sm);
}
body #rsc-app .rsc-skip-link:focus { left: 16px; }

/* === Focus ring === */
body #rsc-app :focus { outline: none; }
body #rsc-app :focus-visible {
  outline: 3px solid var(--rsc-primary-light) !important;
  outline-offset: 2px;
}

/* ============================================================
   HEADER (sticky + blur)
   ============================================================ */
body #rsc-app .rsc-header {
  position: sticky; top: 0; z-index: 100; width: 100%;
  background: rgba(247, 250, 252, 0.78) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 1px 0 rgba(15, 30, 60, 0.02);
}
html.rsc-dark body #rsc-app .rsc-header {
  background: rgba(11, 17, 32, 0.78) !important;
  border-bottom-color: rgba(30, 41, 59, 0.7) !important;
}
body #rsc-app .rsc-header-inner {
  max-width: var(--rsc-container-max); margin: 0 auto;
  padding: 12px 24px; min-height: var(--rsc-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* ============================================================
   БЕЙДЖ RSC — иконографическая семья (зелёный, ЕДИНСТВЕННЫЙ
   зелёный элемент в страничной композиции)
   ============================================================ */
body #rsc-app .rsc-badge {
  position: relative;
  display: inline-flex; align-items: center;
  overflow: hidden; isolation: isolate;
  text-decoration: none !important; cursor: pointer;
  border: 0; appearance: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42) 0%, transparent 60%),
    linear-gradient(60deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 45%, transparent 75%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.24) 100%),
    linear-gradient(135deg, var(--rsc-light) 0%, var(--rsc-mid) 55%, var(--rsc-deep) 100%) !important;
  box-shadow: var(--rsc-shadow-badge-rsc) !important;
  transition: transform var(--rsc-transition), box-shadow var(--rsc-transition);
}
body #rsc-app .rsc-badge:hover { transform: translateY(-1px); }
body #rsc-app .rsc-badge::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  border-bottom-left-radius: 50% 100%; border-bottom-right-radius: 50% 100%;
  opacity: 0.7; pointer-events: none; z-index: 1;
}
body #rsc-app .rsc-badge::after {
  content: ''; position: absolute;
  background: linear-gradient(90deg,
    transparent 0%, rgba(216,216,216,0.85) 12%,
    rgba(255,255,255,0.98) 50%, rgba(216,216,216,0.85) 88%, transparent 100%);
  pointer-events: none; z-index: 2;
}

/* === Глобус: всегда белый === */
body #rsc-app .rsc-globe {
  position: relative; z-index: 3;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.96) !important;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.25));
}
body #rsc-app .rsc-globe svg { width: 100%; height: 100%; display: block; }

body #rsc-app .rsc-text {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
}

/* --- Компактный (для шапки) --- */
body #rsc-app .rsc-badge-sm {
  gap: 11px; padding: 9px 15px 12px; border-radius: 11px;
  box-shadow: var(--rsc-shadow-badge-rsc-sm) !important;
}
body #rsc-app .rsc-badge-sm::after {
  left: 14px; right: 14px; bottom: 6px;
  height: 1.2px; border-radius: 0.6px; opacity: 0.88;
}
body #rsc-app .rsc-badge-sm .rsc-globe { width: 26px; height: 26px; }
body #rsc-app .rsc-badge-sm .rsc-text { gap: 1px; line-height: 1.05; }
body #rsc-app .rsc-sm-eyebrow {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
  white-space: nowrap;
}
body #rsc-app .rsc-sm-title {
  font-size: 13px; font-weight: 800;
  letter-spacing: -0.005em;
  color: #FFFFFF !important;
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

/* --- Большой (hero) --- */
body #rsc-app .rsc-badge-hero {
  flex-direction: column; gap: 0;
  padding: 36px clamp(40px, 7vw, 72px) 42px;
  border-radius: 22px;
  align-items: center;
  max-width: min(720px, 100%);
}
body #rsc-app .rsc-badge-hero::after {
  left: 50px; right: 50px; bottom: 18px;
  height: 2px; border-radius: 1px; opacity: 0.88;
}
body #rsc-app .rsc-badge-hero .rsc-globe {
  width: 78px; height: 78px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
  margin-bottom: 18px;
}

/* Eyebrow «Научный совет РАН» с симметричными линиями */
body #rsc-app .rsc-eyebrow-frame {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}
body #rsc-app .rsc-eyebrow-frame::before,
body #rsc-app .rsc-eyebrow-frame::after {
  content: ''; height: 1px; align-self: center;
}
body #rsc-app .rsc-eyebrow-frame::before {
  background: linear-gradient(90deg, rgba(216,216,216,0) 0%, rgba(216,216,216,0.55) 100%);
}
body #rsc-app .rsc-eyebrow-frame::after {
  background: linear-gradient(90deg, rgba(216,216,216,0.55) 0%, rgba(216,216,216,0) 100%);
}
body #rsc-app .rsc-badge-hero .rsc-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.22);
  text-align: center; line-height: 1;
  white-space: nowrap;
}
body #rsc-app .rsc-badge-hero .rsc-title {
  position: relative; z-index: 3;
  font-size: clamp(22px, 4.2vw, 36px);
  font-weight: 800; letter-spacing: -0.018em;
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
  text-align: center; line-height: 1.15;
  white-space: nowrap;
}

/* ============================================================
   КНОПКА "Войти" — синхронизирована с TN
   ============================================================ */
body #rsc-app .rsc-btn-header {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--rsc-radius);
  font-family: inherit !important;
  font-size: var(--rsc-text-base);
  font-weight: 700;
  color: #FFFFFF !important;
  cursor: pointer; border: 1.5px solid transparent !important;
  background: linear-gradient(135deg, var(--rsc-primary) 0%, var(--rsc-primary-light) 100%) !important;
  box-shadow: var(--rsc-shadow-btn) !important;
  transition: var(--rsc-transition);
  white-space: nowrap; line-height: 1;
  letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  text-decoration: none !important;
}
body #rsc-app .rsc-btn-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
body #rsc-app .rsc-btn-header > * { position: relative; z-index: 1; }
body #rsc-app .rsc-btn-header:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: var(--rsc-shadow-btn-hover) !important;
}
body #rsc-app .rsc-btn-header:active { transform: translateY(0); }
body #rsc-app .rsc-btn-header-icon {
  font-size: 14px; line-height: 1;
  transition: transform var(--rsc-transition);
}
body #rsc-app .rsc-btn-header:hover .rsc-btn-header-icon {
  transform: translateX(2px);
}

/* ============================================================
   MAIN / HERO
   ============================================================ */
body #rsc-app .rsc-main {
  flex: 1 1 auto; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 5vh, 60px) 0;
}
body #rsc-app .rsc-container {
  max-width: var(--rsc-container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
body #rsc-app .rsc-hero {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* === Page eyebrow: точка СИНЯЯ (а не зелёная) === */
body #rsc-app .rsc-page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 9px;
  background: var(--rsc-surface) !important;
  border: 1px solid var(--rsc-border) !important;
  border-radius: var(--rsc-radius-pill);
  font-family: var(--rsc-font-mono) !important;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--rsc-text-muted) !important;
  box-shadow: var(--rsc-shadow-sm);
}
body #rsc-app .rsc-page-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rsc-primary) !important;
  flex-shrink: 0;
}

/* === Hero subtitle — две строки, размеры синхронизированы с TN === */
body #rsc-app .rsc-hero-subtitle {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: clamp(11px, 1.2vw, 13px) !important;
  color: var(--rsc-text-muted) !important;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: lowercase;
  max-width: 90%;
  line-height: 1.55;
  opacity: 0.85;
  padding: 0 8px;
  margin-top: 4px;
}
body #rsc-app .rsc-hero-subtitle span { display: block; }

/* ============================================================
   БЛОК "О Совете" — СИНИЕ акценты (стилистика TN)
   ============================================================ */
body #rsc-app .rsc-about {
  width: 100%; max-width: 720px; margin-top: 18px;
  padding: 26px 30px 28px;
  background: var(--rsc-surface) !important;
  border: 1px solid var(--rsc-border) !important;
  border-radius: var(--rsc-radius-lg);
  box-shadow: var(--rsc-shadow-card);
  text-align: left;
  position: relative; overflow: hidden;
}
body #rsc-app .rsc-about::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--rsc-primary-light) 0%, var(--rsc-primary) 100%);
}
body #rsc-app .rsc-about-header {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 14px;
}
body #rsc-app .rsc-about-label {
  font-family: var(--rsc-font-mono) !important;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rsc-primary) !important;
}
body #rsc-app .rsc-about-divider {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--rsc-border) 0%, transparent 100%);
}
body #rsc-app .rsc-about-text {
  font-size: 14.5px; font-weight: 400;
  color: var(--rsc-text) !important;
  line-height: 1.7;
  letter-spacing: 0.005em;
}
body #rsc-app .rsc-about-text strong {
  font-weight: 600;
  color: var(--rsc-text) !important;
}

/* ============================================================
   SECTION LABEL ("опираемся на")
   ============================================================ */
body #rsc-app .rsc-section-label {
  margin-top: 16px;
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  color: var(--rsc-text-muted) !important;
  opacity: 0.65;
  padding: 0 8px;
}

/* ============================================================
   КАРТОЧКИ (документы — синие, РАН — зелёная)
   ============================================================ */
body #rsc-app .rsc-cards-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; align-items: stretch;
  margin-top: 8px; width: 100%; max-width: 760px;
}

body #rsc-app .rsc-doc {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: var(--rsc-surface) !important;
  border: 1px solid var(--rsc-border) !important;
  border-radius: var(--rsc-radius-lg);
  color: var(--rsc-text) !important;
  box-shadow: var(--rsc-shadow-card);
  transition: var(--rsc-transition);
  cursor: pointer; text-align: left;
  flex: 1 1 340px; min-width: 0; max-width: 370px;
  text-decoration: none !important;
}
body #rsc-app .rsc-doc:hover {
  transform: translateY(-3px);
  border-color: var(--rsc-primary-light) !important;
  box-shadow: var(--rsc-shadow-card-hover);
}
body #rsc-app .rsc-doc-ras:hover {
  border-color: var(--rsc-light) !important;
  box-shadow: var(--rsc-shadow-card-hover-rsc);
}

body #rsc-app .rsc-doc-head {
  display: flex; align-items: center; gap: 14px; width: 100%;
}

/* Иконка: синяя (документы) */
body #rsc-app .rsc-doc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42) 0%, transparent 60%),
    linear-gradient(60deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.04) 45%, transparent 75%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.24) 100%),
    linear-gradient(135deg, var(--rsc-mintrans-light) 0%, var(--rsc-mintrans-mid) 55%, var(--rsc-mintrans-deep) 100%) !important;
  box-shadow: var(--rsc-shadow-doc-icon) !important;
}
/* Иконка: зелёная (РАН — единственный зелёный элемент кроме бейджа) */
body #rsc-app .rsc-doc-icon-ras {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42) 0%, transparent 60%),
    linear-gradient(60deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.04) 45%, transparent 75%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.24) 100%),
    linear-gradient(135deg, var(--rsc-light) 0%, var(--rsc-mid) 55%, var(--rsc-deep) 100%) !important;
  box-shadow: var(--rsc-shadow-doc-icon-ras) !important;
}
body #rsc-app .rsc-doc-icon::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  border-bottom-left-radius: 50% 100%; border-bottom-right-radius: 50% 100%;
  opacity: 0.7; pointer-events: none; z-index: 1;
}
body #rsc-app .rsc-doc-icon-strip {
  position: absolute; z-index: 2;
  left: 11px; right: 11px; bottom: 7px;
  height: 1.4px; border-radius: 0.7px;
  background: linear-gradient(90deg, transparent 0%, rgba(216,216,216,0.85) 20%, rgba(255,255,255,0.95) 50%, rgba(216,216,216,0.85) 80%, transparent 100%);
  opacity: 0.80;
}
body #rsc-app .rsc-doc-icon-num {
  position: relative; z-index: 2;
  color: #FFFFFF !important;
  font-family: var(--rsc-font-mono) !important;
  font-weight: 700; letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.30);
  display: inline-flex; align-items: baseline; justify-content: center;
}
body #rsc-app .rsc-doc-icon-num-main { font-size: 16px; }
body #rsc-app .rsc-doc-icon-num-suffix {
  font-size: 9.5px; font-weight: 600;
  margin-left: 1px; opacity: 0.78;
  color: var(--rsc-silver) !important;
}
body #rsc-app .rsc-doc-icon-num.is-long { letter-spacing: -0.03em; }
body #rsc-app .rsc-doc-icon-num.is-long .rsc-doc-icon-num-main { font-size: 14.5px; }
body #rsc-app .rsc-doc-icon-num.is-long .rsc-doc-icon-num-suffix {
  font-size: 8.5px; margin-left: 0.5px;
}
body #rsc-app .rsc-doc-icon-text {
  position: relative; z-index: 2;
  color: #FFFFFF !important;
  font-family: var(--rsc-font-mono) !important;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.30);
}

body #rsc-app .rsc-doc-meta {
  flex: 1;
  font-family: var(--rsc-font-mono) !important;
  font-size: 12.5px; font-weight: 500;
  color: var(--rsc-text-muted) !important;
  letter-spacing: 0.02em;
  opacity: 0.85;
  white-space: nowrap; line-height: 1.2;
}

body #rsc-app .rsc-doc-arrow {
  font-size: 14px;
  color: var(--rsc-text-muted) !important;
  font-weight: 700;
  flex-shrink: 0; line-height: 1;
  transition: var(--rsc-transition);
}
body #rsc-app .rsc-doc:hover .rsc-doc-arrow {
  color: var(--rsc-primary) !important;
  transform: translate(3px, -3px);
}
body #rsc-app .rsc-doc-ras:hover .rsc-doc-arrow {
  color: var(--rsc-mid) !important;
}
html.rsc-dark body #rsc-app .rsc-doc-ras:hover .rsc-doc-arrow {
  color: var(--rsc-light) !important;
}

body #rsc-app .rsc-doc-body {
  display: flex; flex-direction: column; gap: 5px;
}
body #rsc-app .rsc-doc-title {
  font-size: 13px; font-weight: 700;
  color: var(--rsc-text) !important;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
body #rsc-app .rsc-doc-act {
  font-size: 11px; font-weight: 500;
  color: var(--rsc-text-muted) !important;
  letter-spacing: 0.005em;
  line-height: 1.45; opacity: 0.78;
}
html.rsc-dark body #rsc-app .rsc-doc-act { opacity: 1; }

/* ============================================================
   "В составе платформы"
   ============================================================ */
body #rsc-app .rsc-platform {
  width: 100%; margin-top: 36px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
body #rsc-app .rsc-platform-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%; max-width: 420px;
}
body #rsc-app .rsc-platform-row::before,
body #rsc-app .rsc-platform-row::after {
  content: ''; height: 1px; align-self: center;
}
body #rsc-app .rsc-platform-row::before {
  background: linear-gradient(90deg, transparent 0%, var(--rsc-text-subtle) 100%);
  opacity: 0.55;
}
body #rsc-app .rsc-platform-row::after {
  background: linear-gradient(90deg, var(--rsc-text-subtle) 0%, transparent 100%);
  opacity: 0.55;
}
body #rsc-app .rsc-platform-label {
  font-family: var(--rsc-font-mono) !important;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--rsc-text-muted) !important;
  white-space: nowrap;
}
body #rsc-app .rsc-platform-subtitle {
  font-size: 12.5px; font-weight: 500;
  color: var(--rsc-text-muted) !important;
  letter-spacing: 0.02em;
  text-align: center; line-height: 1.55;
  max-width: 480px;
  margin: 6px 0 14px;
  opacity: 0.90;
}

/* === TN-БЕЙДЖ внутри RSC === */
body #rsc-app .rsc-tn-badge {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 11px 19px 14px;
  border-radius: 12px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42) 0%, transparent 60%),
    linear-gradient(60deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.04) 45%, transparent 75%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.24) 100%),
    linear-gradient(135deg, var(--rsc-mintrans-light) 0%, var(--rsc-mintrans-mid) 55%, var(--rsc-mintrans-deep) 100%) !important;
  box-shadow: var(--rsc-shadow-badge-tn) !important;
  text-decoration: none !important;
  border: 0; cursor: pointer;
  transition: var(--rsc-transition);
}
body #rsc-app .rsc-tn-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 20, 60, 0.34), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.20) !important;
}
body #rsc-app .rsc-tn-badge::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  border-bottom-left-radius: 50% 100%; border-bottom-right-radius: 50% 100%;
  opacity: 0.7; pointer-events: none; z-index: 1;
}
body #rsc-app .rsc-tn-badge::after {
  content: ''; position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1.4px; border-radius: 0.7px;
  background: linear-gradient(90deg, transparent 0%, rgba(216,216,216,0.85) 12%, rgba(255,255,255,0.98) 50%, rgba(216,216,216,0.85) 88%, transparent 100%);
  opacity: 0.90; pointer-events: none; z-index: 2;
}
body #rsc-app .rsc-tn-badge-text {
  position: relative; z-index: 3;
  display: inline-flex; align-items: baseline;
  font-size: 15px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.20);
}
body #rsc-app .rsc-tn-w1 { color: #FFFFFF !important; }
body #rsc-app .rsc-tn-w2 {
  color: var(--rsc-mintrans-silver) !important;
  opacity: 0.95;
}
body #rsc-app .rsc-tn-tld {
  color: var(--rsc-mintrans-silver) !important;
  opacity: 0.85; font-weight: 700;
  margin-left: 1px;
}

/* ============================================================
   STATUS PILL — margin-top 16px (как у TN)
   ============================================================ */
body #rsc-app .rsc-status {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: var(--rsc-surface) !important;
  border: 1px solid var(--rsc-border) !important;
  border-radius: var(--rsc-radius-pill);
  box-shadow: var(--rsc-shadow-sm);
  font-size: 13px;
  color: var(--rsc-text-muted) !important;
  font-weight: 500; letter-spacing: 0.02em;
  max-width: 90vw; white-space: nowrap;
}
body #rsc-app .rsc-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rsc-warning) !important;
  animation: rsc-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes rsc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(217,119,6,0.4); }
  50% { opacity: 0.6; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(217,119,6,0); }
}

/* ============================================================
   FOOTER (по образцу TN-FORGOT-PASSWORD)
   ============================================================ */
body #rsc-app .rsc-footer {
  margin-top: auto;
  padding: 28px 24px 32px;
  border-top: 1px solid var(--rsc-border) !important;
  background: rgba(247, 250, 252, 0.4) !important;
}
html.rsc-dark body #rsc-app .rsc-footer {
  background: rgba(11, 17, 32, 0.4) !important;
}
body #rsc-app .rsc-footer-inner {
  max-width: var(--rsc-container-max);
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
body #rsc-app .rsc-footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--rsc-text) !important;
  flex-wrap: wrap; justify-content: center;
  line-height: 1.5;
}
body #rsc-app .rsc-footer-operator {
  font-size: 11px;
  color: var(--rsc-text-muted) !important;
  line-height: 1.5;
  max-width: 620px;
}
body #rsc-app .rsc-footer-developer {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--rsc-text-subtle) !important;
  opacity: 0.85;
  margin-top: 6px;
  line-height: 1.5;
}
body #rsc-app .rsc-footer-developer a {
  color: inherit !important;
  border-bottom: 1px dashed currentColor;
  transition: opacity 0.15s ease;
}
body #rsc-app .rsc-footer-developer a:hover { opacity: 0.6; }

/* === НИИТ-бейдж === */
body #rsc-app .rsc-niit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px 9px;
  border-radius: 7px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42) 0%, transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.20) 100%),
    linear-gradient(135deg, var(--rsc-mintrans-light) 0%, var(--rsc-mintrans-mid) 55%, var(--rsc-mintrans-deep) 100%) !important;
  box-shadow: var(--rsc-shadow-niit) !important;
  vertical-align: middle;
  flex-shrink: 0; line-height: 1;
}
body #rsc-app .rsc-niit::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  border-radius: inherit;
  border-bottom-left-radius: 50% 100%; border-bottom-right-radius: 50% 100%;
  opacity: 0.7; pointer-events: none; z-index: 1;
}
body #rsc-app .rsc-niit::after {
  content: ''; position: absolute;
  left: 6px; right: 6px; bottom: 4px;
  height: 1px; border-radius: 0.5px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(216,216,216,0.90) 15%,
    rgba(255,255,255,0.98) 50%, rgba(216,216,216,0.90) 85%, transparent 100%);
  opacity: 0.92; pointer-events: none; z-index: 2;
}
body #rsc-app .rsc-niit-text {
  position: relative; z-index: 3;
  color: #FFFFFF !important;
  font-family: var(--rsc-font-mono) !important;
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
  :root { --rsc-header-h: 56px; }
  body #rsc-app .rsc-header-inner { padding: 10px 14px; }
  body #rsc-app .rsc-container { padding: 0 14px; }

  body #rsc-app .rsc-badge-sm { padding: 8px 13px 11px; gap: 9px; }
  body #rsc-app .rsc-badge-sm .rsc-globe { width: 22px; height: 22px; }
  body #rsc-app .rsc-sm-eyebrow { font-size: 7.5px; letter-spacing: 0.12em; }
  body #rsc-app .rsc-sm-title { font-size: 11.5px; }
  body #rsc-app .rsc-badge-sm::after { left: 11px; right: 11px; bottom: 5px; }

  body #rsc-app .rsc-btn-header { padding: 9px 16px; font-size: var(--rsc-text-sm); }

  body #rsc-app .rsc-badge-hero { padding: 26px 24px 30px; border-radius: 18px; }
  body #rsc-app .rsc-badge-hero::after { left: 28px; right: 28px; bottom: 12px; height: 1.6px; }
  body #rsc-app .rsc-badge-hero .rsc-globe { width: 58px; height: 58px; margin-bottom: 14px; }
  body #rsc-app .rsc-badge-hero .rsc-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  body #rsc-app .rsc-eyebrow-frame { margin-bottom: 14px; gap: 10px; }
  body #rsc-app .rsc-badge-hero .rsc-title { font-size: clamp(18px, 5.6vw, 24px); }

  body #rsc-app .rsc-hero-subtitle {
    font-size: 10.5px !important; letter-spacing: 0.18em; padding: 0 8px;
  }
  body #rsc-app .rsc-page-eyebrow {
    padding: 6px 12px 7px; font-size: 9.5px; letter-spacing: 0.16em;
  }

  body #rsc-app .rsc-about { padding: 22px 22px 24px; border-radius: 14px; }
  body #rsc-app .rsc-about-text { font-size: 13.5px; line-height: 1.65; }

  body #rsc-app .rsc-cards-row { flex-direction: column; gap: 10px; }
  body #rsc-app .rsc-doc { max-width: 100%; flex: 0 0 auto; padding: 14px; }
  body #rsc-app .rsc-doc-icon { width: 48px; height: 48px; }
  body #rsc-app .rsc-doc-icon-num-main { font-size: 15px; }
  body #rsc-app .rsc-doc-icon-num.is-long .rsc-doc-icon-num-main { font-size: 13.5px; }
  body #rsc-app .rsc-doc-icon-num.is-long .rsc-doc-icon-num-suffix { font-size: 8px; }
  body #rsc-app .rsc-doc-icon-text { font-size: 12px; }
  body #rsc-app .rsc-doc-title { font-size: 12.5px; }
  body #rsc-app .rsc-doc-act { font-size: 10.5px; }
  body #rsc-app .rsc-doc-meta { font-size: 12px; }

  body #rsc-app .rsc-platform { margin-top: 26px; }
  body #rsc-app .rsc-platform-label { font-size: 9.5px; letter-spacing: 0.20em; }
  body #rsc-app .rsc-platform-row { max-width: 320px; gap: 12px; }
  body #rsc-app .rsc-platform-subtitle {
    font-size: 11.5px; max-width: 320px; padding: 0 14px;
  }

  body #rsc-app .rsc-status { font-size: 12px; padding: 6px 14px; }
  body #rsc-app .rsc-footer { padding: 24px 16px 28px; }
}

@media (max-width: 420px) {
  body #rsc-app .rsc-badge-hero { padding: 22px 18px 26px; }
  body #rsc-app .rsc-doc-meta { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
</style>