MediaWiki:Common.css: различия между версиями

Страница интерфейса MediaWiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 65 промежуточных версий 3 участников)
Строка 1: Строка 1:
@font-face {
:root {
    font-family: 'Noto Sans Light';
  /* Primitive Color Tokens */
    font-style: normal;
  --color-white: rgba(255, 255, 255, 1);
    font-weight: 100;
  --color-black: rgba(0, 0, 0, 1);
    font-display: swap;
  --color-cream-50: rgba(252, 252, 249, 1);
    src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRPQ_m87A.woff2) format('woff2');
  --color-cream-100: rgba(255, 255, 253, 1);
    unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F
  --color-gray-200: rgba(245, 245, 245, 1);
}
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);


@font-face {
  /* RGB versions for opacity control */
    font-family: 'Noto Sans Light';
  --color-brown-600-rgb: 94, 82, 64;
    font-style: normal;
  --color-teal-500-rgb: 33, 128, 141;
    font-weight: 100;
  --color-slate-900-rgb: 19, 52, 59;
    font-display: swap;
  --color-slate-500-rgb: 98, 108, 113;
    src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRGQ_m87A.woff2) format('woff2');
  --color-red-500-rgb: 192, 21, 47;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
  --color-red-400-rgb: 255, 84, 89;
}
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;


@font-face {
  /* Background color tokens (Light Mode) */
    font-family: 'Noto Sans Light';
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
    font-style: normal;
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
    font-weight: 100;
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
    font-display: swap;
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
    src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRMQ_m87A.woff2) format('woff2');
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
    unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
}
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */


@font-face {
  /* Semantic Color Tokens (Light Mode) */
    font-family: 'Noto Sans Light';
  --color-background: var(--color-cream-50);
    font-style: normal;
  --color-surface: var(--color-cream-100);
    font-weight: 100;
  --color-text: var(--color-slate-900);
    font-display: swap;
  --color-text-secondary: var(--color-slate-500);
    src: url(https://fonts.gstatic.com/s/notosans/v30/o-0OIpQlx3QUlC5A4PNjhgRCQ_k.woff2) format('woff2');
  --color-primary: var(--color-teal-500);
    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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
  --color-primary-hover: var(--color-teal-600);
}
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);


@font-face {
  /* Common style patterns */
    font-family: 'Oswald';
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
    font-style: normal;
  --focus-outline: 2px solid var(--color-primary);
    font-weight: 400;
  --status-bg-opacity: 0.15;
    font-display: swap;
  --status-border-opacity: 0.25;
    src: url(https://fonts.gstatic.com/s/oswald/v40/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUJiZTaR.woff2) format('woff2');
  --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
  --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}


@font-face {
  /* RGB versions for opacity control */
    font-family: 'Boxfont Round';
  --color-success-rgb: 33, 128, 141;
    src: url(/assets/fonts/boxfont-round/f3507eaadc95584e7358703d74e793ea/324a92fc76117885a667ae8af2be25ab/BoxfontRoundRegular.ttf) format('truetype');
  --color-error-rgb: 192, 21, 47;
    font-weight: normal;
  --color-warning-rgb: 168, 75, 47;
    font-style: normal
  --color-info-rgb: 98, 108, 113;
}


@font-face {
  /* Typography */
     font-family: 'noto sans';
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    font-style: normal;
     BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    src: local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-Regular.woff) format('woff')
    Monaco, Consolas, monospace;
}
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;


@font-face {
  /* Spacing */
    font-family: 'noto sans';
  --space-0: 0;
    font-style: italic;
  --space-1: 1px;
    font-weight: 400;
  --space-2: 2px;
    src: local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-Italic.woff) format('woff')
  --space-4: 4px;
}
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;


@font-face {
  /* Border Radius */
    font-family: 'noto sans';
  --radius-sm: 6px;
    font-style: normal;
  --radius-base: 8px;
    font-weight: 700;
  --radius-md: 10px;
    src: local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-Bold.woff) format('woff')
  --radius-lg: 12px;
}
  --radius-full: 9999px;


@font-face {
  /* Shadows */
    font-family: 'noto sans';
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    font-style: italic;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
     font-weight: 700;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    src: local('Noto Sans'),url(https://fonts.cdnfonts.com/s/15794/NotoSans-BoldItalic.woff) format('woff')
     0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);


@font-face {
  /* Animation */
    font-family: 'Noto Sans Symbols';
  --duration-fast: 150ms;
    font-style: normal;
  --duration-normal: 250ms;
    font-weight: 400;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
    src: url(https://fonts.gstatic.com/s/notosanssymbols/v40/rP2up3q65FkAtHfwd-eIS2brbDN6gxP34F9jRRCe4W3gfQ8QA_9Edkw.woff2) format('woff2');
    unicode-range: U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F10C,U+1F110-1F16C,U+1F170-1F190,U+1F19B-1F1AC,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F321-1F32C,U+1F336,U+1F378,U+1F37D,U+1F393-1F39F,U+1F3A7,U+1F3AC-1F3AE,U+1F3C2,U+1F3C4,U+1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4DA,U+1F4DF,U+1F4E4-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50A,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F579,U+1F57B-1F594,U+1F597-1F5A3,U+1F5A5-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CB,U+1F6CD-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8B1,U+1F93B,U+1F946,U+1FA00-1FA6F,U+1FA70-1FA74,U+1FA78-1FA7A,U+1FA80-1FA86,U+1FA90-1FAA8,U+1FAB0-1FAB6,U+1FAC0-1FAC2,U+1FAD0-1FAD6,U+1FB00-1FBFF
}


@font-face {
  /* Layout */
    font-family: 'Noto Sans Symbols';
  --container-sm: 640px;
    font-style: normal;
  --container-md: 768px;
    font-weight: 400;
  --container-lg: 1024px;
    src: url(https://fonts.gstatic.com/s/notosanssymbols/v40/rP2up3q65FkAtHfwd-eIS2brbDN6gxP34F9jRRCe4W3gfQ8QY_9Edkw.woff2) format('woff2');
  --container-xl: 1280px;
    unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF
}
}


@font-face {
/* Dark mode colors */
     font-family: 'Noto Sans Symbols';
@media (prefers-color-scheme: dark) {
     font-style: normal;
  :root {
     font-weight: 400;
     /* RGB versions for opacity control (Dark Mode) */
     src: url(https://fonts.gstatic.com/s/notosanssymbols/v40/rP2up3q65FkAtHfwd-eIS2brbDN6gxP34F9jRRCe4W3gfQ8Qbf9E.woff2) format('woff2');
     --color-gray-400-rgb: 119, 124, 124;
     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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
     --color-teal-300-rgb: 50, 184, 198;
}
     --color-gray-300-rgb: 167, 169, 169;
     --color-gray-200-rgb: 245, 245, 245;


cite,dfn {
    /* Background color tokens (Dark Mode) */
     font-style: inherit
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
}
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
   
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
     --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);


q {
    /* Common style patterns - updated for dark mode */
     quotes: '"' '"' "'" "'"
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
}
    --focus-outline: 2px solid var(--color-primary);
     --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");


code {
    /* RGB versions for dark mode */
     background-color: #303037;
     --color-success-rgb: var(--color-teal-300-rgb);
     border-color: #303037;
    --color-error-rgb: var(--color-red-400-rgb);
     color: #d3d3d3
     --color-warning-rgb: var(--color-orange-400-rgb);
     --color-info-rgb: var(--color-gray-300-rgb);
  }
}
}


blockquote {
/* Data attribute for manual theme switching */
    overflow: hidden;
[data-color-scheme="dark"] {
    margin: 1em 0;
  /* RGB versions for opacity control (dark mode) */
    padding: 0 40px
  --color-gray-400-rgb: 119, 124, 124;
}
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;


small {
  /* Colorful background palette - Dark Mode */
     font-size: 85%
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
}
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
 
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
     inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);


img {
  /* Common style patterns - updated for dark mode */
    image-rendering: pixelated
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
}
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");


.mw-body-content sub,.mw-body-content sup,span.reference {
  /* RGB versions for dark mode */
    font-size: 80%
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}
}


.ns-talk .mw-body-content dd {
[data-color-scheme="light"] {
    margin-top: 0.4em;
  /* RGB versions for opacity control (light mode) */
    margin-bottom: 0.4em
  --color-brown-600-rgb: 94, 82, 64;
}
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
 
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);


#interwiki-completelist {
  /* RGB versions for light mode */
    font-weight: bold
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}
}


.biglink {
/* Base styles */
    font-family: "Oswald";
html {
    font-style: oblique 10deg;
  font-size: var(--font-size-base);
    font-variant-caps: small-caps;
  font-family: var(--font-family-base);
    text-shadow: #1b1b1f 1px 2px,#595959dd 2px 2px 1px
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
}


.client-js .mw-special-Watchlist #watchlist-message,.client-js .collapsible:not(.mw-made-collapsible).collapsed>tbody>tr:not(:first-child),#editpage-specialchars {
body {
    display: none
  margin: 0;
  padding: 0;
}
}


.mw-rcfilters-enabled .mw-specialpage-summary {
*,
    margin-top: 1em
*::before,
*::after {
  box-sizing: inherit;
}
}


.citation:target {
/* Typography */
    background-color: rgba(0,127,255,0.133)
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}
}


.citation {
h1 {
    word-wrap: break-word
  font-size: var(--font-size-4xl);
}
}
 
h2 {
ol.references {
  font-size: var(--font-size-3xl);
    font-size: 90%;
    margin-bottom: 0.5em
}
}
 
h3 {
.hlist dl,.hlist ol,.hlist ul {
  font-size: var(--font-size-2xl);
    margin: 0;
    padding: 0
}
}
 
h4 {
.hlist dd,.hlist dt,.hlist li {
  font-size: var(--font-size-xl);
    margin: 0;
    display: inline
}
}
 
h5 {
.hlist.inline,.hlist.inline dl,.hlist.inline ol,.hlist.inline ul,.hlist dl dl,.hlist dl ol,.hlist dl ul,.hlist ol dl,.hlist ol ol,.hlist ol ul,.hlist ul dl,.hlist ul ol,.hlist ul ul {
  font-size: var(--font-size-lg);
    display: inline
}
}
 
h6 {
.hlist .mw-empty-li {
  font-size: var(--font-size-md);
    display: none
}
}


.hlist dt:after {
p {
    content: ":"
  margin: 0 0 var(--space-16) 0;
}
}


.hlist dd:after,.hlist li:after {
a {
    content: " · ";
  color: var(--color-primary);
    font-weight: bold
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
}


.hlist dd:last-child:after,.hlist dt:last-child:after,.hlist li:last-child:after {
a:hover {
    content: none
  color: var(--color-primary-hover);
}
}


.hlist dd dd:first-child:before,.hlist dd dt:first-child:before,.hlist dd li:first-child:before,.hlist dt dd:first-child:before,.hlist dt dt:first-child:before,.hlist dt li:first-child:before,.hlist li dd:first-child:before,.hlist li dt:first-child:before,.hlist li li:first-child:before {
code,
    content: " (";
pre {
    font-weight: normal
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}
}


.hlist dd dd:last-child:after,.hlist dd dt:last-child:after,.hlist dd li:last-child:after,.hlist dt dd:last-child:after,.hlist dt dt:last-child:after,.hlist dt li:last-child:after,.hlist li dd:last-child:after,.hlist li dt:last-child:after,.hlist li li:last-child:after {
code {
    content: ")";
  padding: var(--space-1) var(--space-4);
    font-weight: normal
}
}


.hlist ol {
pre {
    counter-reset: listitem
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}
}


.hlist ol>li {
pre code {
    counter-increment: listitem
  background: none;
  padding: 0;
}
}


.hlist ol>li:before {
/* Buttons */
    content: " " counter(listitem) "\a0"
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}
}


.hlist dd ol>li:first-child:before,.hlist dt ol>li:first-child:before,.hlist li ol>li:first-child:before {
.btn:focus-visible {
    content: " (" counter(listitem) "\a0"
  outline: none;
  box-shadow: var(--focus-ring);
}
}


.plainlist ol,.plainlist ul {
.btn--primary {
    line-height: inherit;
  background: var(--color-primary);
    list-style: none none;
  color: var(--color-btn-primary-text);
    margin: 0
}
}


.plainlist ol li,.plainlist ul li {
.btn--primary:hover {
    margin-bottom: 0
  background: var(--color-primary-hover);
}
}


.navbox {
.btn--primary:active {
    box-sizing: border-box;
  background: var(--color-primary-active);
    border: 1px solid #a2a9b1;
    width: 100%;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
    margin: 1em auto 0
}
}


.navbox .navbox {
.btn--secondary {
    margin-top: 0
  background: var(--color-secondary);
  color: var(--color-text);
}
}


.navbox+.navbox {
.btn--secondary:hover {
    margin-top: -1px
  background: var(--color-secondary-hover);
}
}


.navbox-inner,.navbox-subgroup {
.btn--secondary:active {
    width: 100%
  background: var(--color-secondary-active);
}
}


.navbox-group,.navbox-title,.navbox-abovebelow {
.btn--outline {
    padding: 0.25em 1em;
  background: transparent;
    line-height: 1.5em;
  border: 1px solid var(--color-border);
    text-align: center
  color: var(--color-text);
}
}


th.navbox-group {
.btn--outline:hover {
    white-space: nowrap;
  background: var(--color-secondary);
    text-align: right
}
}


.navbox,.navbox-subgroup {
.btn--sm {
    background-color: #fdfdfd
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}
}


.navbox-list {
.btn--lg {
    line-height: 1.5em;
  padding: var(--space-10) var(--space-20);
    border-color: #fdfdfd
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}
}


tr+tr>.navbox-abovebelow,tr+tr>.navbox-group,tr+tr>.navbox-image,tr+tr>.navbox-list {
.btn--full-width {
    border-top: 2px solid #fdfdfd
  width: 100%;
}
}


.navbox th,.navbox-title {
.btn:disabled {
    background-color: #ccccff
  opacity: 0.5;
  cursor: not-allowed;
}
}


.navbox-abovebelow,th.navbox-group,.navbox-subgroup .navbox-title {
/* Form elements */
    background-color: #ddddff
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
}


.navbox-subgroup .navbox-group,.navbox-subgroup .navbox-abovebelow {
textarea.form-control {
    background-color: #e6e6ff
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}
}


.navbox-even {
select.form-control {
    background-color: #f7f7f7
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}
}


.navbox-odd {
/* Add a dark mode specific caret */
     background-color: transparent
@media (prefers-color-scheme: dark) {
  select.form-control {
     background-image: var(--select-caret-dark);
  }
}
}


.navbox .hlist td dl,.navbox .hlist td ol,.navbox .hlist td ul,.navbox td.hlist dl,.navbox td.hlist ol,.navbox td.hlist ul {
/* Also handle data-color-scheme */
    padding: 0.125em 0
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}
}


.mw-parser-output .mw-collapsible-toggle {
[data-color-scheme="light"] select.form-control {
    font-weight: normal;
  background-image: var(--select-caret-light);
    text-align: right;
    padding-right: 0.2em;
    padding-left: 0.2em
}
}


.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
.form-control:focus {
    float: left;
  border-color: var(--color-primary);
    text-align: left
  outline: var(--focus-outline);
}
}


.infobox {
.form-label {
    border: 1px solid #a2a9b1;
  display: block;
    border-spacing: 3px;
  margin-bottom: var(--space-8);
    background-color: #f8f9fa;
  font-weight: var(--font-weight-medium);
    color: black;
  font-size: var(--font-size-sm);
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
    width: 22em
}
}


.infobox-header,.infobox-label,.infobox-above,.infobox-full-data,.infobox-data,.infobox-below,.infobox-subheader,.infobox-image,.infobox-navbar,.infobox th,.infobox td {
.form-group {
    vertical-align: top
  margin-bottom: var(--space-16);
}
}


.infobox-label,.infobox-data,.infobox th,.infobox td {
/* Card component */
    text-align: left
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}
}


.infobox .infobox-above,.infobox .infobox-title,.infobox caption {
.card:hover {
    font-size: 125%;
  box-shadow: var(--shadow-md);
    font-weight: bold;
    text-align: center
}
}


.infobox-title,.infobox caption {
.card__body {
    padding: 0.2em
  padding: var(--space-16);
}
}


.infobox .infobox-header,.infobox .infobox-subheader,.infobox .infobox-image,.infobox .infobox-full-data,.infobox .infobox-below {
.card__header,
    text-align: center
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}
}


.infobox .infobox-navbar {
/* Status indicators - simplified with CSS variables */
    text-align: right
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}
}


.wikitable.plainrowheaders th[scope=row] {
.status--success {
     font-weight: normal;
  background-color: rgba(
     text-align: left
    var(--color-success-rgb, 33, 128, 141),
     var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
     rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}
}


.wikitable td ul,.wikitable td ol,.wikitable td dl {
.status--error {
     text-align: left
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
     var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}
}


table.mw-hiero-table td {
.status--warning {
     vertical-align: middle
  background-color: rgba(
     var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}
}


.mw-parser-output a[href$=".pdf"].external,.mw-parser-output a[href*=".pdf?"].external,.mw-parser-output a[href*=".pdf#"].external,.mw-parser-output a[href$=".PDF"].external,.mw-parser-output a[href*=".PDF?"].external,.mw-parser-output a[href*=".PDF#"].external {
.status--info {
    background: url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) no-repeat right;
  background-color: rgba(
     padding-right: 18px
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
     rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}
}


.messagebox {
/* Container layout */
    border: 1px solid #a2a9b1;
.container {
    background-color: #f8f9fa;
  width: 100%;
    width: 80%;
  margin-right: auto;
    margin: 0 auto 1em auto;
  margin-left: auto;
    padding: .2em
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}
}


.messagebox.merge {
@media (min-width: 640px) {
     border: 1px solid #c0b8cc;
  .container {
    background-color: #f0e5ff;
     max-width: var(--container-sm);
    text-align: center
  }
}
}
 
@media (min-width: 768px) {
.messagebox.cleanup {
  .container {
     border: 1px solid #9f9fff;
     max-width: var(--container-md);
    background-color: #efefff;
  }
    text-align: center
}
}
 
@media (min-width: 1024px) {
.messagebox.standard-talk {
  .container {
     border: 1px solid #c0c090;
     max-width: var(--container-lg);
    background-color: #f8eaba;
  }
    margin: 4px auto
}
}
 
@media (min-width: 1280px) {
.mbox-inside .standard-talk {
  .container {
     border: 1px solid #c0c090;
     max-width: var(--container-xl);
    background-color: #f8eaba;
  }
    width: 100%;
    margin: 2px 0;
    padding: 2px
}
}


.messagebox.small {
/* Utility classes */
    width: 238px;
.flex {
    font-size: 85%;
  display: flex;
    float: right;
    clear: both;
    margin: 0 0 1em 1em;
    line-height: 1.25em
}
}
 
.flex-col {
.messagebox.small-talk {
  flex-direction: column;
    width: 238px;
    font-size: 85%;
    float: right;
    clear: both;
    margin: 0 0 1em 1em;
    line-height: 1.25em;
    background-color: #f8eaba
}
}
 
.items-center {
th.mbox-text,td.mbox-text {
  align-items: center;
    border: none;
    padding: 0.25em 0.9em;
    width: 100%
}
}
 
.justify-center {
td.mbox-image {
  justify-content: center;
    border: none;
    padding: 2px 0 2px 0.9em;
    text-align: center
}
}
 
.justify-between {
td.mbox-imageright {
  justify-content: space-between;
    border: none;
    padding: 2px 0.9em 2px 0;
    text-align: center
}
}
 
.gap-4 {
td.mbox-empty-cell {
  gap: var(--space-4);
    border: none;
    padding: 0;
    width: 1px
}
}
 
.gap-8 {
table.ambox {
  gap: var(--space-8);
    margin: 0 10%;
    border: 1px solid #a2a9b1;
    border-left: 10px solid #36c;
    background-color: #fbfbfb;
    box-sizing: border-box
}
}
 
.gap-16 {
table.ambox+table.ambox,table.ambox+.mw-empty-elt+table.ambox {
  gap: var(--space-16);
    margin-top: -1px
}
}


.ambox th.mbox-text,.ambox td.mbox-text {
.m-0 {
    padding: 0.25em 0.5em
  margin: 0;
}
}
 
.mt-8 {
.ambox td.mbox-image {
  margin-top: var(--space-8);
    padding: 2px 0 2px 0.5em
}
}
 
.mb-8 {
.ambox td.mbox-imageright {
  margin-bottom: var(--space-8);
    padding: 2px 0.5em 2px 0
}
}
 
.mx-8 {
table.ambox-notice {
  margin-left: var(--space-8);
    border-left: 10px solid #36c
  margin-right: var(--space-8);
}
}
 
.my-8 {
table.ambox-speedy {
  margin-top: var(--space-8);
    border-left: 10px solid #b32424;
  margin-bottom: var(--space-8);
    background-color: #fee7e6
}
}


table.ambox-delete {
.p-0 {
    border-left: 10px solid #b32424
  padding: 0;
}
}
 
.py-8 {
table.ambox-content {
  padding-top: var(--space-8);
    border-left: 10px solid #f28500
  padding-bottom: var(--space-8);
}
}
 
.px-8 {
table.ambox-style {
  padding-left: var(--space-8);
    border-left: 10px solid #fc3
  padding-right: var(--space-8);
}
}
 
.py-16 {
table.ambox-move {
  padding-top: var(--space-16);
    border-left: 10px solid #9932cc
  padding-bottom: var(--space-16);
}
}
 
.px-16 {
table.ambox-protection {
  padding-left: var(--space-16);
    border-left: 10px solid #a2a9b1
  padding-right: var(--space-16);
}
}


table.imbox {
.block {
    margin: 4px 10%;
  display: block;
    border-collapse: collapse;
    border: 3px solid #36c;
    background-color: #fbfbfb;
    box-sizing: border-box
}
}
 
.hidden {
.imbox .mbox-text .imbox {
  display: none;
    margin: 0 -0.5em;
    display: block
}
}


.mbox-inside .imbox {
/* Accessibility */
    margin: 4px
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
}


table.imbox-notice {
:focus-visible {
    border: 3px solid #36c
  outline: var(--focus-outline);
  outline-offset: 2px;
}
}


table.imbox-speedy {
/* Dark mode specifics */
    border: 3px solid #b32424;
[data-color-scheme="dark"] .btn--outline {
    background-color: #fee7e6
  border: 1px solid var(--color-border-secondary);
}
}


table.imbox-delete {
@font-face {
     border: 3px solid #b32424
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
     format('woff2');
}
}


table.imbox-content {
@font-face {
    border: 3px solid #f28500
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}
}


table.imbox-style {
/* Remove custom color variables and use design system */
    border: 3px solid #fc3
:root {
  /* Legacy space theme variables mapped to design system */
  --space-primary: var(--color-primary);
  --space-secondary: var(--color-primary-hover);
  --space-accent: var(--color-primary-active);
  --space-dark: var(--color-background);
  --space-darker: var(--color-surface);
  --space-purple: var(--color-surface);
  --space-blue: var(--color-surface);
  --space-orange: var(--color-warning);
  --space-glow: rgba(var(--color-teal-500-rgb), 0.6);
  --space-text: var(--color-text);
  --space-text-bright: var(--color-text);
  --space-bg-primary: var(--color-surface);
  --space-bg-secondary: var(--color-surface);
  --space-border: var(--color-border);
}
}


table.imbox-move {
/* Базовые стили */
    border: 3px solid #9932cc
* {
  box-sizing: border-box;
}
}


table.imbox-protection {
body {
    border: 3px solid #a2a9b1
  background: var(--color-background);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-tight);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
}


table.imbox-license {
/* Основной контейнер MediaWiki */
    border: 3px solid #88a;
.mw-body {
    background-color: #f7f8ff
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32);
  position: relative;
  overflow: hidden;
}
}


table.imbox-featured {
.mw-body::before {
    border: 3px solid #cba135
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.5;
}
}


table.cmbox {
.mw-body-content {
    margin: 3px 10%;
  font-family: var(--font-family-base);
    border-collapse: collapse;
  font-size: var(--font-size-base);
    border: 1px solid #a2a9b1;
  font-weight: var(--font-weight-normal);
    background-color: #dfe8ff;
  line-height: var(--line-height-normal);
    box-sizing: border-box
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


table.cmbox-notice {
/* Исправление переполнения текста */
    background-color: #d8e8ff
.mw-body-content p {
  margin: var(--space-20) 0;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


table.cmbox-speedy {
/* Улучшенный код */
    margin-top: 4px;
code {
    margin-bottom: 4px;
  background: var(--color-secondary);
    border: 4px solid #b32424;
  border: 1px solid var(--color-border);
    background-color: #ffdbdb
  color: var(--color-text);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-size: 90%;
  font-family: var(--font-family-mono);
  box-shadow: var(--shadow-inset-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  word-break: break-all;
  white-space: pre-wrap;
}
}


table.cmbox-delete {
pre {
    background-color: #ffdbdb
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  overflow-x: auto;
  box-shadow: var(--shadow-inset-sm);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  letter-spacing: 0.5px;
  position: relative;
}
}


table.cmbox-content {
pre::before {
    background-color: #ffe7ce
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
}


table.cmbox-style {
/* Улучшенные цитаты */
    background-color: #fff9db
blockquote {
  overflow: hidden;
  margin: var(--space-32) 0;
  padding: var(--space-32) var(--space-32);
  border-left: 5px solid var(--color-primary);
  background: var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  font-style: italic;
  position: relative;
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}
}


table.cmbox-move {
blockquote::before {
    background-color: #e4d8ff
  content: '"';
  font-size: 5em;
  color: rgba(var(--color-primary-rgb), 0.3);
  position: absolute;
  top: -15px;
  left: 15px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
}
}


table.cmbox-protection {
/* Улучшенные изображения */
    background-color: #efefe1
img {
  image-rendering: optimizeSpeed;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}
}


table.ombox {
img:hover {
    margin: 4px 10%;
  transform: scale(1.03);
    border-collapse: collapse;
  box-shadow: var(--shadow-lg);
    border: 1px solid #a2a9b1;
  filter: brightness(1.1);
    background-color: #f8f9fa;
    box-sizing: border-box
}
}


table.ombox-notice {
/* Улучшенные ссылки */
    border: 1px solid #a2a9b1
a,
a:visited {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  font-weight: var(--font-weight-medium);
  word-wrap: break-word;
}
}


table.ombox-speedy {
a:not(.image):not(.thumbimage):not(.mw-file-description)::after {
    border: 2px solid #b32424;
  content: '';
    background-color: #fee7e6
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-normal) var(--ease-standard);
  border-radius: 2px;
}
}


table.ombox-delete {
a:not(.image):not(.thumbimage):not(.mw-file-description):hover::after {
    border: 2px solid #b32424
  width: 100%;
}
}


table.ombox-content {
a:hover,
    border: 1px solid #f28500
a:visited:hover {
  color: var(--color-primary-hover);
  text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.7);
  transform: translateX(2px);
}
}


table.ombox-style {
/* Исключения для изображений */
    border: 1px solid #fc3
.thumb a::after,
.gallery a::after,
a[href*="File:"]::after,
a[href*="Файл:"]::after,
a[title*="File:"]::after,
a[title*="Файл:"]::after {
  display: none !important;
}
}


table.ombox-move {
/* Улучшенные таблицы */
    border: 1px solid #9932cc
.wikitable {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-32) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  font-family: var(--font-family-base);
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
}
}


table.ombox-protection {
.wikitable::before {
    border: 2px solid #a2a9b1
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


table.tmbox {
.wikitable > tr > th,
    margin: 4px 10%;
.wikitable > tr > td,
    border-collapse: collapse;
.wikitable > * > tr > th,
    border: 1px solid #c0c090;
.wikitable > * > tr > td {
    background-color: #f8eaba;
  border: 1px solid var(--color-border);
    min-width: 80%;
  padding: var(--space-16) var(--space-20);
    box-sizing: border-box
  transition: all var(--duration-fast) var(--ease-standard);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0;
  min-width: 100px;
}
}


.tmbox.mbox-small {
.wikitable > * > tr > th {
    min-width: 0
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-sm);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
}
}


.mediawiki .mbox-inside .tmbox {
.wikitable > * > tr > th::after {
    margin: 2px 0;
  content: '';
    width: 100%
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
}


.mbox-inside .tmbox.mbox-small {
.wikitable > * > tr:hover > td {
    line-height: 1.5em;
  background: var(--color-secondary-hover);
    font-size: 100%
  transform: scale(1.01);
}
}


table.tmbox-speedy {
/* Улучшенный поиск */
    border: 2px solid #b32424;
#simpleSearch {
    background-color: #fee7e6
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  position: relative;
  overflow: hidden;
}
}


table.tmbox-delete {
#simpleSearch::before {
    border: 2px solid #b32424
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-hover), var(--color-primary));
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
  z-index: -1;
}
}


table.tmbox-content {
#simpleSearch:focus-within::before {
    border: 2px solid #f28500
  opacity: 1;
}
}


table.tmbox-style {
#simpleSearch:focus-within {
    border: 2px solid #fc3
  border-color: transparent;
  box-shadow: var(--focus-ring);
  transform: scale(1.02);
}
}


table.tmbox-move {
#searchInput {
    border: 2px solid #9932cc
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: var(--space-16) var(--space-24);
  font-size: var(--font-size-base);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
}
}


table.tmbox-protection,table.tmbox-notice {
#searchInput::placeholder {
    border: 1px solid #c0c090
  color: var(--color-text-secondary);
  opacity: 0.8;
  font-style: italic;
}
}


table.fmbox {
/* Улучшенные вкладки */
    clear: both;
.vector-menu-tabs {
    margin: 0.2em 0;
  background: transparent;
    width: 100%;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    box-sizing: border-box
}
}


table.fmbox-system {
.vector-menu-tabs li {
    background-color: #191970
  background: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-right: var(--space-4);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
}


table.fmbox-warning {
.vector-menu-tabs li::before {
    border: 1px solid #bb7070;
  content: '';
    background-color: #ffdbdb
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
}


table.fmbox-editnotice {
.vector-menu-tabs li:hover::before {
    background-color: transparent
  opacity: 1;
}
}


div.mw-warning-with-logexcerpt,div.mw-lag-warn-high,div.mw-cascadeprotectedwarning,div#mw-protect-cascadeon,div.titleblacklist-warning {
.vector-menu-tabs li:hover {
    clear: both;
  background: var(--color-secondary);
    margin: 0.2em 0;
  transform: translateY(-5px);
    border: 1px solid #bb7070;
  box-shadow: var(--shadow-md);
    background-color: #ffdbdb;
    padding: 0.25em 0.9em;
    box-sizing: border-box
}
}


.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt {
.vector-menu-tabs .selected {
    border-color: #fc3;
  background: var(--color-secondary-active);
    background-color: #fef6e7
  border-color: var(--color-primary);
  box-shadow: 0 -6px 20px rgba(var(--color-primary-rgb), 0.5);
}
}


html body.mediawiki .mbox-small {
.vector-menu-tabs .selected::before {
    clear: right;
  opacity: 1;
    float: right;
    margin: 4px 0 4px 1em;
    box-sizing: border-box;
    width: 238px;
    font-size: 88%;
    line-height: 1.25em
}
}


html body.mediawiki .mbox-small-left {
.vector-menu-tabs .selected a,
    margin: 4px 1em 4px 0;
.vector-menu-tabs .selected a:visited {
    box-sizing: border-box;
  color: var(--color-primary);
    overflow: hidden;
  font-weight: var(--font-weight-bold);
    width: 238px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    border-collapse: collapse;
    font-size: 88%;
    line-height: 1.25em
}
}


.compact-ambox table .mbox-image,.compact-ambox table .mbox-imageright,.compact-ambox table .mbox-empty-cell {
/* Улучшенная боковая панель */
    display: none
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk,
.portlet,
.pBody,
#mw-panel,
.mw-panel,
#sidebar,
.sidebar,
.vector-menu-portal,
.vector-legacy-sidebar,
#p-navigation,
#p-tb,
#p-lang {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-32);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
}


.compact-ambox table.ambox {
.vector-menu-portal h3,
    border: none;
#mw-panel .portal h3,
    border-collapse: collapse;
.sidebar h3 {
    background-color: transparent;
  background: var(--color-secondary);
    margin: 0 0 0 1.6em !important;
  color: var(--color-text);
    padding: 0 !important;
  padding: var(--space-16) var(--space-20);
    width: auto;
  margin: 0;
    display: block
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: var(--font-size-sm);
  position: relative;
}
}


body.mediawiki .compact-ambox table.mbox-small-left {
.vector-menu-portal h3::after,
    font-size: 100%;
#mw-panel .portal h3::after,
    width: auto;
.sidebar h3::after {
    margin: 0
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
}


.compact-ambox table .mbox-text {
.vector-menu-portal .vector-menu-content ul li a,
    padding: 0 !important;
#mw-panel .portal .body ul li a {
    margin: 0 !important
  color: var(--color-primary);
  padding: var(--space-16) var(--space-20);
  display: block;
  transition: all var(--duration-normal) var(--ease-standard);
  border-radius: var(--radius-sm);
  margin: var(--space-4) var(--space-8);
  position: relative;
  word-wrap: break-word;
}
}


.compact-ambox table .mbox-text-span {
.vector-menu-portal .vector-menu-content ul li a::before,
    display: list-item;
#mw-panel .portal .body ul li a::before {
    line-height: 1.5em;
  content: '';
    list-style-type: square;
  position: absolute;
    list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg)
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-fast) var(--ease-standard);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
}


.compact-ambox .hide-when-compact {
.vector-menu-portal .vector-menu-content ul li a:hover::before,
    display: none
#mw-panel .portal .body ul li a:hover::before {
  width: 4px;
}
}


.nounderlines a,.IPA a:link,.IPA a:visited {
.vector-menu-portal .vector-menu-content ul li a:hover,
    text-decoration: none !important
#mw-panel .portal .body ul li a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  transform: translateX(10px);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}
}


.nowrap,.nowraplinks a {
/* Улучшенные формы */
    white-space: nowrap
.mw-editform #wpTextbox1,
textarea {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-family: var(--font-family-mono);
  padding: var(--space-32);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  resize: vertical;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.5px;
  word-wrap: break-word;
}
}


.wrap,.wraplinks a {
.mw-editform #wpTextbox1:focus,
    white-space: normal
textarea:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}
}


#wpUploadDescription {
/* Улучшенные кнопки */
    height: 13em
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-base);
  transition: all var(--duration-normal) var(--ease-standard);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-16) var(--space-24);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-family-base);
}
}


.thumbinner {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button::before {
    min-width: 100px;
  content: '';
    background: #303037;
  position: absolute;
    border: solid #37373e
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
}


.thumbinner .thumbimage,.thumbborder {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover::before {
    border: solid 1px #37373e
  left: 100%;
}
}


#mw-subcategories,#mw-pages,#mw-category-media,#filehistory,#wikiPreview,#wikiDiff {
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {
    clear: both
  background: var(--color-secondary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}
}


.wpb .wpb-header {
/* Улучшенные скроллбары */
    display: none
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
}


.wpbs-inner .wpb .wpb-header {
::-webkit-scrollbar-track {
    display: table-row
  background: var(--color-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}
}


.wpbs-inner .wpb-outside {
::-webkit-scrollbar-thumb {
    display: none
  background: var(--color-border);
  border-radius: var(--radius-base);
  border: 2px solid var(--color-surface);
  transition: all var(--duration-fast) var(--ease-standard);
}
}


.mw-tag-markers {
::-webkit-scrollbar-thumb:hover {
    font-style: italic;
  background: var(--color-primary);
    font-size: 90%
  box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}
}


.checkuser-show,.sysop-show,.abusefilter-show,.abusefilter-helper-show,.patroller-show,.templateeditor-show,.extendedmover-show,.extendedconfirmed-show,.autoconfirmed-show,.user-show {
::-webkit-scrollbar-corner {
    display: none
  background: var(--color-surface);
}
}


.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,.ve-ui-mwNoticesPopupTool-item .mbox-image,.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
/* Скрытие скроллбаров для Firefox */
    display: none !important
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
}


ul.permissions-errors>li {
/* Заголовки */
    list-style: none none
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  border-bottom: 3px solid var(--color-border);
  padding-bottom: var(--space-12);
  margin-top: var(--space-32);
  position: relative;
  letter-spacing: var(--letter-spacing-tight);
  word-wrap: break-word;
}
}


ul.permissions-errors {
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
    margin: 0
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 3px;
}
}


span.texhtml {
h1 {
    font-family: "Nimbus Roman No9 L","Times New Roman",Times,serif;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    font-size: 118%;
  -webkit-background-clip: text;
    line-height: 1;
  -webkit-text-fill-color: transparent;
    white-space: nowrap;
  background-clip: text;
    -moz-font-feature-settings: "lnum","tnum","kern" 0;
  font-size: var(--font-size-4xl);
    -webkit-font-feature-settings: "lnum","tnum","kern" 0;
  font-weight: var(--font-weight-bold);
    font-feature-settings: "lnum","tnum","kern" 0;
    font-variant-numeric: lining-nums tabular-nums;
    font-kerning: none
}
}


span.texhtml span.texhtml {
h2 {
    font-size: 100%
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}
}


span.mwe-math-mathml-inline {
h3 {
    font-size: 118%
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}
}


.mwe-math-fallback-image-display,.mwe-math-mathml-display {
h4 {
    margin-left: 1.6em !important;
  font-size: var(--font-size-xl);
    margin-top: 0.6em;
  font-weight: var(--font-weight-medium);
    margin-bottom: 0.6em
}
}


.mwe-math-mathml-display math {
h5 {
    display: inline
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}
}


.k-player .k-attribution {
h6 {
    visibility: hidden
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}
}


.PopUpMediaTransform a .play-btn-large {
/* Первый заголовок страницы */
    margin: 0;
.firstHeading {
    top: auto;
  font-family: var(--font-family-base);
    right: auto;
  font-weight: var(--font-weight-bold);
    bottom: 0;
  font-size: var(--font-size-4xl);
    left: 0
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-16);
  text-align: center;
  word-wrap: break-word;
}
}


@media screen {
/* Личное меню */
    #content .gallerybox div.thumb {
#p-personal ul li a {
        background-color: #f8f9fa
  color: var(--color-primary);
    }
  padding: var(--space-16) var(--space-20);
 
  border-radius: var(--radius-base);
    .gallerybox .thumb img {
  transition: all var(--duration-fast) var(--ease-standard);
        background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat
  margin: 0 var(--space-4);
    }
  font-weight: var(--font-weight-medium);
 
    .ns-0 .gallerybox .thumb img,.ns-2 .gallerybox .thumb img,.ns-100 .gallerybox .thumb img,.nochecker .gallerybox .thumb img {
        background-image: none
    }
}
}


.flaggedrevs_draft_synced,.flaggedrevs_stable_synced,#t-upload,.mw-special-Book #coll-downloadbox {
#p-personal ul li a:hover {
    display: none
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
  transform: translateY(-2px);
}
}


#site-tools {
/* Выпадающие меню */
    display: none !important
.vector-menu-dropdown .vector-menu-content {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-16);
  backdrop-filter: blur(15px);
}
}


span.comment {
/* Скрытие элементов */
    overflow-wrap: break-word
#pt-createaccount,
#site-tools,
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced,
#t-upload {
  display: none;
}
}


#mw-page-base {
/* Ссылки на источники */
    background: #1b1b1f;
.reference {
    color: lightgrey;
  background-color: transparent;
    border: #1b1b1f
}
}


.mediawiki,.mw-page-container {
.references li:target,
    background: #1b1b1f;
sup.reference:target {
    color: lightgrey;
  background: var(--color-secondary-hover);
    border: #1b1b1f
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.6);
}
}


.mw-body {
/* Футер */
    background: #212126;
#footer {
    color: lightgrey;
  background: var(--color-surface);
    border: black
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: var(--space-32);
  padding: var(--space-32);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  position: relative;
}
}


#mw-panel {
#footer::before {
    background: #1b1b1f;
  content: '';
    color: lightgrey;
  position: absolute;
    border: #1b1b1f
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


#mw-content-container,#mw-header-container,#mw-content-wrapper,#mw-content,#p-logo {
/* Результаты поиска */
    background: #1b1b1f;
.mw-search-result-heading a {
    color: lightgrey;
  color: var(--color-primary);
    border: #1b1b1f
  font-weight: var(--font-weight-semibold);
}
}


.mw-code {
.mw-search-result-data {
    background: #212126;
  color: var(--color-text-secondary);
    color: lightgrey
  font-style: italic;
}
}


footer,#footer-info-lastmod,#footer-info-copyright {
/* Списки изменений */
    color: lightgrey
.mw-changeslist-line {
  border-left: 3px solid var(--color-border);
  padding-left: var(--space-20);
  margin-bottom: var(--space-16);
  transition: all var(--duration-fast) var(--ease-standard);
}
}


p,h1,h2,h3,h4,h5,h6,li {
.mw-changeslist-line:hover {
    color: lightgrey
  border-left-color: var(--color-primary);
  background: var(--color-secondary);
  transform: translateX(5px);
}
}


a,.vector-menu-portal .vector-menu-content li a,.vector-menu-tabs li a,body.skin--responsive #p-cactions li a,a:visited,.vector-menu-portal .vector-menu-content li a:visited,.vector-menu-tabs li a:visited,body.skin--responsive #p-cactions li a:visited {
/* Списки */
    color: #77c1d9
li {
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-12);
  word-wrap: break-word;
}
}


a:hover,a:visited:hover {
/* Жирный и курсивный текст */
    color: white
strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
}


body.skin--responsive #p-cactions li a {
em, i {
    background: #27272e
  font-style: italic;
  color: var(--color-text-secondary);
}
}


.mw-prefs-buttons {
/* Навигационные блоки */
    background: #27272e
.navbox {
  border: 1px solid var(--color-border);
  width: 100%;
  clear: both;
  font-size: 90%;
  text-align: center;
  padding: 0;
  margin: var(--space-32) auto 0;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
}


a.extiw:visited,a.external:visited,.mw-parser-output a.extiw:visited,.mw-parser-output a.external:visited,body.skin--responsive #p-cactions li a.external:visited {
.navbox::before {
    color: #3377aa
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


.vector-menu-tabs .selected a,.vector-menu-tabs .selected a:visited,body.skin--responsive #p-cactions li.selected a {
/* Информационные блоки */
    color: lightgrey;
.infobox {
    font-weight: bold
  border: 1px solid var(--color-border);
  border-spacing: 0;
  background: var(--color-surface);
  color: var(--color-text);
  margin: var(--space-20) 0 var(--space-20) var(--space-32);
  padding: 0;
  float: right;
  clear: right;
  font-size: 90%;
  line-height: var(--line-height-normal);
  width: 28em;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  word-wrap: break-word;
}
}


body.skin--responsive #p-cactions li.selected a {
.infobox::before {
    background: #27272e
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}
}


.vector-menu-tabs li {
.infobox tr {
    background: #212126
  transition: all var(--duration-fast) var(--ease-standard);
}
}


#mw-site-navigation .sidebar-chunk,#mw-site-navigation .sidebar-chunk,#mw-related-navigation .sidebar-chunk,body.skin--responsive .portlet,body.skin--responsive .pBody {
.infobox tr:hover {
    background: #212126;
  background: var(--color-secondary);
    color: lightgrey;
  transform: translateX(8px);
    border-color: #1b1b1f;
    border: 1px solid black
}
}


#p-logo-text a {
.infobox th,
    color: lightgrey
.infobox td {
  padding: var(--space-16) var(--space-20);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


#ca-nstab-mediawiki.a {
/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */
    color: lightgrey
}


#mw-changeslist-links {
/* Новая hero-секция с космическими эффектами */
    background: #212126;
.sunrise-hero-new {
    color: lightgrey
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32) 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  clear: both;
}
}


#simpleSearch {
/* Анимированный звездный фон */
    background: #27272e;
.hero-background {
    border: 1px solid #37373e;
  position: absolute;
    color: lightgrey
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
}


#searchInput {
.stars {
     color: white
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, var(--color-text), transparent),
     radial-gradient(2px 2px at 40px 70px, rgba(var(--color-text-rgb, 245, 245, 245), 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--color-text), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(var(--color-text-rgb, 245, 245, 245), 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--color-text-secondary), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 25s linear infinite;
}
}


#pt-createaccount {
@keyframes sparkle {
    visibility: hidden;
  from { transform: translateX(0); }
    display: none
  to { transform: translateX(-200px); }
}
}


.vector-user-links .vector-user-menu-more .vector-menu-content-list li a,#personal .dropdown {
.nebula {
    background: #27272e;
  position: absolute;
    border: 1px solid #37373e;
  width: 100%;
    color: lightgrey
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  animation: nebula-glow 10s ease-in-out infinite alternate;
}
}


body.skin--responsive #p-cactions li.selected {
@keyframes nebula-glow {
    border: #37373e
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}
}


.vector-menu-tabs .selected {
/* Контент героя */
    background: #1b1b1f
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}
}


#pagehistory li.selected {
.hero-logo {
    background: #1B4D3E;
  margin-bottom: var(--space-32);
    font-weight: bold
}
}


div.mw-warning-with-logexcerpt,div.mw-lag-warn-high,div.mw-cascadeprotectedwarning,div#mw-protect-cascadeon,div.titleblacklist-warning {
.logo-text {
    background: #7C0A02;
  font-family: var(--font-family-base);
    border: 1px solid #bb7070
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(45deg, var(--color-primary), var(--color-warning), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: 0 0 40px rgba(var(--color-primary-rgb), 0.6);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}
}


.wikitable {
@keyframes glow-pulse {
    background: #303037;
  0% { filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6)); }
    border: 1px solid #37373e;
  100% { filter: drop-shadow(0 0 50px rgba(var(--color-primary-rgb), 0.6)); }
    color: white
}
}


.wikitableKZ {
.logo-subtext {
    border-collapse: collapse
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  color: var(--color-primary-active);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--space-16);
}
}


.wikitableKZ>tr>th,.wikitableKZ>tr>td,.wikitableKZ>*>tr>th,.wikitableKZ>*>tr>td {
.hero-description {
    border: 1px solid black
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-32);
  opacity: 0.95;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
}
}


.toc {
.hero-stats {
    background: #27272E;
  display: grid;
    border: 1px solid black;
  grid-template-columns: repeat(4, auto);
    color: white
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
}
}


.mw-content-ltr .tocnumber {
.stat-item {
    color: grey
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
}


.wikitable>tr>th,.wikitable>tr>td,.wikitable>*>tr>th,.wikitable>*>tr>td {
.stat-item::before {
    border: 1px solid black
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
}


.wikitable>*>tr>th {
.stat-item:hover::before {
    background: #27272e;
  opacity: 1;
    border: 1px solid black;
    color: white
}
}


.quickbox {
@keyframes rotate-slow {
    border: 1px solid #303038;
  0% { transform: rotate(0deg); }
    background: #27272e
  100% { transform: rotate(360deg); }
}
}


.quickboxhead {
.stat-item:hover {
    border-bottom: 1px solid #303038;
  transform: translateY(-8px) scale(1.05);
    background: #1b1b1f;
  box-shadow: 0 15px 50px rgba(var(--color-primary-rgb), 0.4);
    text-align: center
  background: var(--color-secondary-hover);
}
}


.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle,.mw-rcfilters-ui-changesListWrapperWidget {
.stat-number {
    background: #27272e;
  font-size: 2.5em;
    border: 1px solid #303038;
  font-weight: bold;
    color: white
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}
}


.mw-changeslist-legend {
.stat-label {
    display: none
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
}
}


.oo-ui-buttonElement-framed.oo-ui-widget-enabled>.oo-ui-buttonElement-button {
/* Обновленный контейнер */
    background: #27272e;
.sunrise-container-new {
    border: 1px solid #303038;
  display: grid;
    color: white
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: var(--space-32);
  margin: var(--space-32) 0;
  clear: both;
}
}


.oo-ui-popupWidget-popup {
/* Новые секции с правильным переносом текста */
    background: #303037;
.sunrise-section-new {
    border: 1px solid #37373e;
  background: var(--color-surface);
    color: white
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  overflow: visible;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


.mw-editform #wpTextbox1,textarea {
.sunrise-section-new::before {
    background: #303037;
  content: '';
    border: 1px solid #37373e;
  position: absolute;
    color: white
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  transition: left 0.6s ease;
}
}


.wikiEditor-ui-toolbar {
.sunrise-section-new:hover::before {
    background: #27272e;
  left: 100%;
    color: white
}
}


.wikiEditor-ui-toolbar .group {
.sunrise-section-new:hover {
    border: 1px solid #37373e;
  transform: translateY(-10px) scale(1.02);
    color: white
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
}


.wikiEditor-ui-toolbar .group .label {
.section-header {
    color: white
  margin-bottom: var(--space-24);
  text-align: center;
}
}


.wikiEditor-ui-toolbar .tabs span.tab a.current,.wikiEditor-ui-toolbar .tabs span.tab a.current:visited {
.section-header h2 {
    color: #151518;
  color: var(--color-text);
    font-weight: bold
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}
}


.wikiEditor-ui .wikiEditor-ui-top {
.section-header p {
    border-bottom: 1px solid #37373e
  color: var(--color-primary);
  opacity: 0.9;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
}
}


.wikiEditor-ui .wikiEditor-ui-view {
/* Секция особенностей */
    border: 1px solid #37373e
.sunrise-features {
  margin: var(--space-32) 0;
  padding: var(--space-32) 0;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  clear: both;
}
}


.editOptions,.mw-editform .editOptions {
.features-header {
    background: #212126;
  text-align: center;
    border: 1px solid #37373e;
  margin-bottom: var(--space-32);
    color: white
}
}


@media screen {
.features-header h2 {
    .mw-body-content .recipeimg a>img {
  font-size: var(--font-size-3xl);
        padding: 0;
  color: var(--color-text);
        margin: 0;
  margin-bottom: var(--space-16);
        border: 0;
  font-weight: var(--font-weight-semibold);
        width: 32px !important;
  word-wrap: break-word;
        max-width: 32px !important;
        height: 32px !important;
        max-height: 32px !important
    }
}
}


.positive {
.features-header p {
    color: #00FF00;
  color: var(--color-primary);
    font-weight: bold
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}
}


.negative {
.features-grid {
    color: #FF0000;
  display: grid;
    font-weight: bold
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-32);
  padding: 0 var(--space-24);
}
}


.anglerect {
.feature-card {
    --angle-rect-clip-size: 16px;
  background: var(--color-surface);
    clip-path: polygon(0 0,calc(100% - var(--angle-rect-clip-size)) 0,100% var(--angle-rect-clip-size),100% 100%,var(--angle-rect-clip-size) 100%,0 calc(100% - var(--angle-rect-clip-size)))
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-24);
  text-align: center;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(15px);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


.flex {
.feature-card::before {
    display: flex
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}
}


.mw-body {
.feature-card:hover::before {
    padding: 0.5em;
  opacity: 1;
    box-shadow: 0 0 2px black
}
}


.mw-body dd {
.feature-card:hover {
    margin: 0.2em;
  transform: translateY(-15px) scale(1.05);
    margin-left: 1.6em
  box-shadow: 0 25px 80px rgba(var(--color-primary-rgb), 0.3);
  border-color: var(--color-primary);
}
}


.tabs-label {
.feature-icon {
    cursor: pointer;
  font-size: 4em;
    padding: 1px 6px;
  margin-bottom: var(--space-20);
    background: transparent !important;
  filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6));
    border: 1px solid black
  position: relative;
  z-index: 1;
}
}


.tabs-tabbox > .tabs-input:checked + .tabs-label,.tabs-input-0:checked + .tabs-input-1 + .tabs-label {
.feature-card h3 {
    z-index: 2;
  color: var(--color-text);
    box-shadow: 0px 2px 1px #3366cc;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  position: relative;
  z-index: 1;
  word-wrap: break-word;
}
}


.tabs-tabbox > .tabs-input+ .tabs-input+ .tabs-label {
.feature-card p {
    margin: 0
  color: var(--color-text);
  opacity: 0.95;
  line-height: var(--line-height-normal);
  position: relative;
  z-index: 1;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


.tabs-label:hover {
/* Обновленные блоки с правильным переносом текста */
    box-shadow: 0px 2px 1px darkblue;
.sunrise-blocks-new {
    z-index: 2
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin: var(--space-32) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  clear: both;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


.tabs-tabbox > .tabs-container {
.sunrise-blocks-new::before {
    margin-top: -1px;
  content: '';
    padding: 2px 10px;
  position: absolute;
    background: #303037;
  top: 0;
    border-radius: 0;
  left: 0;
    position: relative;
  right: 0;
    border: 1px solid #000000;
  height: 3px;
    width: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    max-width: inherit;
    min-width: inherit;
    z-index: 1
}
}


.tabs-tabbox > .tabs-label {
.blocks-header {
    margin: 0;
  text-align: center;
    background: transparent;
  margin-bottom: var(--space-32);
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    border-radius: 0
}
}


.tooltip {
.blocks-header h2 {
    position: relative;
  font-size: var(--font-size-3xl);
    display: inline
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}
}


.tooltiptext {
.blocks-header p {
    position: absolute;
  color: var(--color-primary);
    display: initial;
  font-size: var(--font-size-xl);
    z-index: 99999;
  opacity: 0.9;
    width: 295px;
  word-wrap: break-word;
    left: -10.6em;
    top: 42px;
    padding: 5px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    white-space: normal;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid #465298;
    background-color: #27272E
}
}


.tooltip:hover>.tooltiptext {
/* Космические частицы */
    visibility: visible;
.space-particles {
    opacity: 0.98
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
}


@media screen and (min-width: 851px) {
.particle {
    .mobile {
  position: absolute;
        display:none
  width: 3px;
    }
  height: 3px;
   
  background: var(--color-primary);
    .stiky{
  border-radius: 50%;
    position: sticky;
  animation: float 12s infinite linear;
    top: 0.1em;
  opacity: 0.7;
    }
  box-shadow: 0 0 6px rgba(var(--color-primary-rgb), 0.8);
   
}
}


@media screen and (max-width: 850px) {
.particle:nth-child(1) {
    .nomobile {
  left: 10%;
        display:none
  animation-delay: 0s;
    }
  animation-duration: 10s;
    .mobileonly{
   
    }
   
 
    .tooltip {
        position: static
    }
 
    .tooltiptext {
        box-shadow: 0px 0px 100vw 100vh rgb(0 0 0 / 60%);
        position: fixed;
        width: 80vw;
        top: 40vh;
        left: 0;
        margin: 0 auto;
        right: 0
    }
 
    .mobilefont {
        font-size: 80%
    }
}
}


.mw-mmv-above-fold,.mw-mmv-dialog,.mw-mmv-image-links li,.mw-mmv-options-cancel-button.mw-ui-button.mw-ui-quiet,.mw-mmv-options-dialog-header,.mw-mmv-options-text-header {
.particle:nth-child(2) {
    color: #e0e0e0
  left: 25%;
  animation-delay: 3s;
  animation-duration: 12s;
}
}


.mw-mmv-above-fold {
.particle:nth-child(3) {
    background: #222;
  left: 60%;
    border-top: 1px solid #333
  animation-delay: 6s;
  animation-duration: 8s;
}
}


.mw-mmv-image-metadata {
.particle:nth-child(4) {
    background-color: #111;
  left: 80%;
    border-color: #333
  animation-delay: 9s;
  animation-duration: 14s;
}
}


.mw-mmv-dialog {
.particle:nth-child(5) {
    border: 1px solid #333;
  left: 95%;
    background: #222;
  animation-delay: 12s;
    box-shadow: none
  animation-duration: 11s;
}
}


.mw-mmv-dialog .mw-mmv-dialog-down-arrow {
@keyframes float {
     background: #222;
  0% {
     border-bottom: 1px solid #333;
    transform: translateY(100vh) rotate(0deg);
     border-right: 1px solid #333
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
     opacity: 0.7;
  }
  100% {
     transform: translateY(-100px) rotate(360deg);
     opacity: 0;
  }
}
}


.mw-mmv-options-enable-alert {
/* Улучшенные ссылки в секциях главной страницы */
    background: #333;
.sunrise-section-new a,
    color: #e0e0e0
.sunrise-blocks-new a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}
}


.mw-mmv-filepage-buttons .mw-ui-button {
.sunrise-section-new a:hover,
    background: #36c;
.sunrise-blocks-new a:hover {
    color: #e0e0e0;
  color: var(--color-primary-hover);
    border-color: #1d4699
  background: var(--color-secondary);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5);
}
}


.mw-default-size {
/* Заголовки в секциях главной страницы */
    background-color: #21212600 !important;
.sunrise-section-new h1,
    border-color: black !important
.sunrise-section-new h2,
.sunrise-section-new h3,
.sunrise-blocks-new h1,
.sunrise-blocks-new h2,
.sunrise-blocks-new h3 {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-20);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
}


.mw-default-size img {
.sunrise-section-new h1::after,
    border-color: black !important
.sunrise-section-new h2::after,
.sunrise-section-new h3::after,
.sunrise-blocks-new h1::after,
.sunrise-blocks-new h2::after,
.sunrise-blocks-new h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 2px;
}
}


.mw-default-size figcaption {
/* Параграфы в секциях с правильным переносом */
    background-color: #21212600 !important;
.sunrise-section-new p,
    border-color: black !important
.sunrise-blocks-new p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-20);
}
}


.mw-halign-right {
/* Адаптивность */
     background-color: #27272E00 !important;
@media (max-width: 1024px) {
     border-color: black !important
  .sunrise-container-new {
     grid-template-columns: 1fr;
    gap: var(--space-24);
  }
 
  .features-grid {
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
  }
 
  .mw-body {
    padding: var(--space-24) var(--space-24);
    margin: var(--space-20);
  }
}
}


.mw-halign-right img {
@media (max-width: 768px) {
     border-color: black !important
  .sunrise-container-new {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }
 
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-20);
    padding: 0 var(--space-16);
  }
 
  .sunrise-hero-new {
    padding: var(--space-32) var(--space-24);
    min-height: 400px;
  }
 
  .mw-body {
    padding: var(--space-20) var(--space-20);
    margin: var(--space-16);
    border-radius: var(--radius-md);
  }
 
  .sunrise-section-new,
  .sunrise-blocks-new {
    padding: var(--space-24);
     border-radius: var(--radius-md);
  }
 
  .feature-card {
    padding: var(--space-32) var(--space-20);
  }
}
}


.mw-halign-right figcaption {
@media (max-width: 480px) {
     background-color: #27272E00 !important;
  .sunrise-section-new,
     border-color: black !important
  .sunrise-blocks-new {
    padding: var(--space-20);
    border-radius: var(--radius-base);
    margin: var(--space-16) 0;
  }
 
  .feature-card {
    padding: var(--space-24) var(--space-16);
    border-radius: var(--radius-base);
  }
 
  .sunrise-hero-new {
    padding: var(--space-24) var(--space-16);
    min-height: 350px;
    border-radius: var(--radius-base);
    margin: var(--space-16) 0;
  }
 
  .mw-body {
    padding: var(--space-16) var(--space-16);
    margin: var(--space-8);
    border-radius: var(--radius-base);
  }
 
  .sunrise-container-new {
    gap: var(--space-16);
    margin: var(--space-16) 0;
  }
 
  .features-grid {
    gap: var(--space-16);
    padding: 0 var(--space-12);
  }
 
  .sunrise-features {
     margin: var(--space-16) 0;
    padding: var(--space-24) 0;
    border-radius: var(--radius-base);
  }
 
  .features-header {
    margin-bottom: var(--space-24);
  }
 
  .blocks-header {
    margin-bottom: var(--space-24);
  }
 
  .logo-text {
    font-size: var(--font-size-3xl);
  }
 
  .logo-subtext {
    font-size: var(--font-size-lg);
    margin-top: var(--space-12);
  }
 
  .hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-24);
  }
 
  .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.1;
     margin-bottom: 8px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    text-align: center;
  }
 
.stat-label {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  text-overflow: initial;
  text-align: center;
}
}
 
 
.mw-halign-left {
  .section-header h2 {
     background-color: #27272E00 !important;
    font-size: var(--font-size-xl);
     border-color: black !important
    margin-bottom: var(--space-12);
  }
 
  .section-header p {
    font-size: var(--font-size-base);
  }
 
  .features-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
 
  .features-header p {
    font-size: var(--font-size-lg);
  }
 
  .blocks-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
 
  .blocks-header p {
    font-size: var(--font-size-lg);
  }
 
  .feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-12);
  }
 
  .feature-card p {
     font-size: var(--font-size-base);
  }
 
  .feature-icon {
     font-size: 3em;
    margin-bottom: var(--space-16);
  }
}
}


.mw-halign-left img {
/* Исправления для текста - предотвращение обрыва слов */
    border-color: black !important
.sunrise-section-new *,
.sunrise-blocks-new *,
.hero-content *,
.feature-card * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
}


.mw-halign-left figcaption {
/* Специальные правила для длинных слов */
    background-color: #27272E00 !important;
.sunrise-section-new,
    border-color: black !important
.sunrise-blocks-new {
  word-break: break-word;
  overflow-wrap: anywhere;
}
}


.mw-halign-center {
/* Убираем скроллбары из всех блоков главной страницы */
    background-color: #27272E00 !important;
.sunrise-section-new,
    border-color: black !important
.sunrise-blocks-new,
.stat-item,
.feature-card {
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
}


.mw-halign-center img {
/* Плавные переходы для всех элементов */
    border-color: black !important
* {
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard);
}
}


.mw-halign-center figcaption {
/* Оптимизация производительности */
     background-color: #27272E00 !important;
@media (prefers-reduced-motion: reduce) {
     border-color: black !important
  *,
  *::before,
  *::after {
     animation-duration: 0.01ms !important;
     animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
}


.reference {
/* Печать */
     background-color: #27272E00 !important
@media print {
  .space-particles,
  .hero-background {
    display: none;
  }
 
  body {
    background: var(--color-background);
    color: var(--color-text);
  }
 
  .mw-body {
     background: var(--color-surface);
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
}
}


ol.references li:target,sup.reference:target {
/* Контейнер MainMenuAbout */
     background-color: #303037 !important
.mainmenu-about-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
     height: auto;
}
}


.oo-ui-inputWidget-input {
/* Секция сообщества */
     background-color: #27272e !important;
.community-links {
     border: #37373e !important;
     overflow: hidden; /* Убираем любые скроллбары */
    color: #ffffff !important
     padding: 10px 0;
}
}


.mw-search-profile-tabs {
.social-grid {
    background-color: #27272e !important;
  display: grid;
    border: #37373e !important
  grid-template-columns: 1fr 1fr;  
  gap: 15px;
}
}


.search-types .current a {
.social-link {
    color: #d3d3d3 !important;
  display: flex;
    cursor: default !important
  justify-content: center;
  align-items: center;   
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 80px;  
  transition: all 0.3s ease;
}
}


.mw-message-box-error {
.social-link:hover {
    background-color: #7b1919 !important;
  transform: translateY(-3px);
    border-color: #af2424 !important
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.2);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  background: rgba(var(--color-primary-rgb), 0.1);
}
}


.mw-message-box-warning {
.social-link img {
    background-color: #7b6919 !important;
  max-width: 100%;
    border-color: #af9a24 !important
  max-height: 60px;
  object-fit: contain;  
  transition: transform 0.3s ease;
}
}


#mw-header-nav-hack {
.social-link:hover img {
    border-top: solid 2px #212126 !important;
  transform: scale(1.05);  
    display: block;
    position: absolute;
    z-index: 98;
    background: #212126 !important;
    width: 100%
}
}


.ui-widget-overlay {
@media (max-width: 500px) {
     background: #000000 !important;
  .social-grid {
    opacity: .3 !important
     grid-template-columns: 1fr;  
  }
}
}


.ui-widget-content {
/* Контент секций */
     border: 1px solid #4a4a57 !important;
.about-content,
     background: #212126 !important;
.help-content,
     color: #e0e0e0 !important
.other-projects {
     word-wrap: break-word;
     overflow-wrap: break-word;
     hyphens: auto;
    line-height: 1.6;
    overflow: visible;
    max-height: none;
}
}


.ui-widget-header {
/* Убираем скроллбары везде где они могут появиться */
     border: 1px solid #4a4a57 !important;
.mainmenu-about-container *,
     background: #212126 !important;
.community-links *,
     color: #e0e0e0 !important;
.social-grid *,
    font-weight: bold !important
.social-link * {
     /* Для WebKit браузеров (Chrome, Safari) */
     scrollbar-width: none; /* Firefox */
     -ms-overflow-style: none; /* IE и Edge */
}
}


#wikieditor-toolbar-file-target,#wikieditor-toolbar-file-caption,#wikieditor-toolbar-file-alt {
.mainmenu-about-container *::-webkit-scrollbar,
    width: 100% !important;
.community-links *::-webkit-scrollbar,
     background-color: #27272e !important;
.social-grid *::-webkit-scrollbar,
    color: #e0e0e0 !important
.social-link *::-webkit-scrollbar {
     display: none; /* Chrome, Safari, Opera */
}
}


.wikiEditor-toolbar-dialog .ui-dialog-content input[type='text'] {
/* Адаптивность для мобильных */
    box-sizing: border-box !important;
@media (max-width: 768px) {
    background-color: #27272e !important;
     .social-grid {
    color: #e0e0e0 !important
        grid-template-columns: 1fr;
}
        gap: 10px;
 
     }
.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button {
      
    font-family: Verdana,Arial,sans-serif !important;
     .social-link {
    font-size: 1em !important;
        min-height: 120px;
    background-color: #27272e !important;
     }
    color: #e0e0e0 !important
}
 
.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default {
    border: 1px solid #4a4a57 !important;
    background: #27272e !important;
    font-weight: normal !important;
    color: #e0e0e0 !important
}
 
.ui-state-hover,.ui-widget-contetn .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus {
    border: 1px solid #4a4a57 !important;
    background: #4c4c59 !important;
    font-weight: normal !important;
    color: #e0e0e0 !important
}
 
body .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
    right: 0.9em !important;
    background: #4c4c59 !important
}
 
.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus {
    padding: 0 !important;
    background: #6c6c80 !important
}
 
ul#filetoc,.toc,.toccolours,.mw-warning {
    display: table !important;
    background-color: #27272e !important;
    border: solid #37373e !important;
    border-width: 1px 1px 0.2em !important;
    box-shadow: 0 1px 2px 1px rgb(0 0 0 / 2%) !important;
    padding: 1.25em 1.75em !important;
    margin-top: 1em !important;
    margin-bottom: 1em !important;
    min-width: 15em !important;
    font-size: 100% !important
}
 
.diff-editfont-monospace .diff-addedline,.diff-editfont-monospace .diff-deletedline,.diff-editfont-monospace .diff-context {
     font-family: monospace,monospace !important;
    background-color: #1b1b1f !important;
    border-color: #1b1b1f !important;
    color: white !important
}
 
.diff-deletedline .diffchange {
    background: #4c3c16 !important
}
 
.diff-addedline .diffchange {
    background: #16324d !important
}
 
.mw-json th,.mw-json td {
    border: 1px solid #000000;
    font-size: 16px;
     padding: 0.5em 1em
}
 
.mw-json tr {
     background-color: #212126;
     margin-bottom: 0.5em
}
 
.mw-json th {
    background-color: #303037;
    font-weight: normal;
    vertical-align: top;
    color: #d3d3d3
}
 
.mw-json th span {
    -webkit-position: sticky;
     position: sticky;
    top: 0.5em
}
 
.mw-json-value,.mw-json-single-value {
    background-color: #1b5929;
    font-family: monospace,monospace;
    white-space: pre-wrap;
    color: #d3d3d3
}
 
.mw-json-empty {
    background-color: #1b5929;
    font-style: italic;
    color: #d3d3d3
}
 
.hover_img_special {
    top: 0;
    left: 0;
    display: none
}
 
.img_special:hover .hover_img_special {
    display: inline
}
 
.img_special:hover .img_spec {
    display: none
}
 
.ace-tm .ace_gutter {
    background: #212126;
    color: #333
}
}


.ace-tm .ace_print-margin {
/* Улучшенное предупреждение о доработке страницы */
    width: 1px;
.sunrise-warning-banner {
    background-color: #1b1b1f
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse-warning 3s ease-in-out infinite alternate;
  font-weight: 600;
  font-size: 16px;
  max-width: 860px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
}


.ace-tm {
.warning-content {
    background-color: #1b1b1f;
  display: flex;
    color: lightgrey
  align-items: center;
  gap: 12px;
  width: 100%;
}
}


.ace-tm .ace_cursor {
.warning-icon {
    color: white
  font-size: 28px;
  animation: bounce-warning 2s ease-in-out infinite;
}
}


.ace-tm .ace_storage,.ace-tm .ace_keyword {
.warning-text {
    color: rgb(153,153,255)
  flex-grow: 1;
  line-height: 1.4;
}
}


.ace-tm .ace_constant.ace_numeric {
.warning-close {
    color: rgb(153,153,205)
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #1f2937;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
  transform: rotate(0deg);
}
}


.ace-tm .ace_constant {
.warning-close:hover {
    color: rgb(241,89,92)
  color: #dc2626;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}
}


.ace-tm .ace_support.ace_function {
@keyframes pulse-warning {
     color: rgb(68,118,235)
  0% {
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  }
  100% {
     box-shadow: 0 15px 35px rgba(251, 191, 36, 0.5);
  }
}
}


.ace-tm .ace_support.ace_constant {
@keyframes bounce-warning {
     color: rgb(23,202,33)
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
     transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}
}


.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {
.stat-item:last-child {
    color: rgb(182,187,236)
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  animation: infinity-glow 4s ease-in-out infinite alternate;
}
}


.ace-tm .ace_string {
.stat-item:last-child .stat-number {
    color: rgb(6,142,13)
  background: linear-gradient(45deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2em;
}
}


.ace-tm .ace_comment {
@keyframes infinity-glow {
     color: rgb(103,193,150)
  0% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }
  100% {
     box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  }
}
}


.ace-tm .ace_constant.ace_numeric {
.mw-collapsible-toggle a {
    color: rgb(153,153,255)
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
}
}


.ace-tm .ace_marker-layer .ace_selection {
.mw-collapsible-toggle a:hover {
    background: rgb(28,45,68)
  color: var(--color-primary-hover);
}
}


.ace-tm .ace_marker-layer .ace_bracket {
.mw-collapsed .mw-collapsible-content {
    margin: -1px 0 0 -1px;
  display: none;
    border: 1px solid rgb(94,94,94)
}
}


.ace-tm .ace_marker-layer .ace_active-line {
/* Альтернативное решение для details/summary */
    background: rgb(153,153,183,7%)
details.abbreviation-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
}


.ace-tm .ace_gutter-active-line {
details.abbreviation-list summary {
    background-color: rgb(44,44,51)
  cursor: pointer;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 12px;
  user-select: none;
}
}


.ace-tm .ace_marker-layer .ace_selected-word {
details.abbreviation-list summary:hover {
    background: rgb(37,59,89);
  color: #1d4ed8;
    border: 1px solid rgb(36,36,42)
}
}


.codeEditor-status {
details.abbreviation-list[open] summary {
    clear: both;
  margin-bottom: 16px;
    width: 100%;
  border-bottom: 1px solid #e2e8f0;
    background-color: #212126;
  padding-bottom: 8px;
    border-top: 1px solid #40404b;
    display: table
}
}


.codeEditor-status-message {
/* Адаптивность для предупреждения */
     border-left: 1px solid #40404b;
@media (max-width: 768px) {
     border-right: 1px solid #40404b;
  .sunrise-warning-banner {
     padding: 0 0.3em;
     margin: 16px 12px;
     width: 100%;
     padding: 14px 18px;
     display: table-cell
     font-size: 15px;
  }
 
  .warning-icon {
     font-size: 24px;
  }
 
  .warning-close {
     font-size: 20px;
  }
}
}


.ace_search {
@media (max-width: 480px) {
    background-color: #212126;
  .sunrise-warning-banner {
     color: #d3d3d3;
     margin: 12px 8px;
     border: 1px solid #383843;
     padding: 12px 16px;
     border-top: 0 none;
     font-size: 14px;
    overflow: hidden;
  }
    margin: 0;
 
    padding: 4px 6px 0 4px;
  .warning-content {
    position: absolute;
     gap: 8px;
     top: 0;
  }
    z-index: 99;
    white-space: normal
}
}


.ace_search_form.ace_nomatch {
.mw-collapsible-toggle {
    outline: 1px solid #922626
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
border: none;
background: transparent;
padding: 4px 8px;
border-radius: 4px;
transition: all 0.3s ease;
}
}


.ace_search_field {
.mw-collapsible-toggle:hover {
    border-radius: 3px 0 0 3px;
color: var(--color-primary-hover, #1d4ed8);
    background-color: #27272e;
background-color: var(--color-secondary, rgba(59, 130, 246, 0.1));
    color: #d3d3d3;
text-decoration: none;
    border: 1px solid #383843;
    border-right: 0 none;
    outline: 0;
    padding: 0;
    font-size: inherit;
    margin: 0;
    line-height: inherit;
    padding: 0 6px;
    min-width: 17em;
    vertical-align: top;
    min-height: 1.8em;
    box-sizing: content-box
}
}


.ace_searchbtn {
.mw-collapsed .mw-collapsible-content {
    border: 1px solid #383843;
display: none !important;
    line-height: inherit;
    display: inline-block;
    padding: 0 6px;
    background: #27272e;
    border-right: 0 none;
    border-left: 1px solid #383843;
    cursor: pointer;
    margin: 0;
    position: relative;
    color: #d3d3d3
}
}


.ace_searchbtn:last-child {
.mw-collapsible-content {
    border-radius: 0 3px 3px 0;
display: block;
    border-right: 1px solid #383843
}
}


.ace_searchbtn:hover {
.mw-customtoggle {
    background-color: #1b1b1f
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
}
}


.ace_searchbtn.prev:after {
.mw-customtoggle:hover {
    content: "";
color: var(--color-primary-hover, #1d4ed8);
    border: solid 2px #d3d3d3;
text-decoration: underline;
    width: 0.5em;
    height: 0.5em;
    border-width: 2px 0 0 2px;
    display: inline-block;
    transform: rotate(-45deg)
}
}


.ace_searchbtn.next:after {
@keyframes infinity-glow {
    content: "";
  0% {
     border: solid 2px #d3d3d3;
     box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    width: 0.5em;
  }
    height: 0.5em;
  100% {
     border-width: 2px 0 0 2px;
     box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    display: inline-block;
  }
    transform: rotate(135deg)
}
}


.ace_button {
.recentchanges-frame .mw-collapsible-content {
    margin-left: 2px;
  max-height: 400px;
    cursor: pointer;
  overflow-y: auto;  
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    opacity: 0.7;
    border: 1px solid rgb(56,56,68);
    padding: 1px;
    box-sizing: border-box!important;
    color: #d3d3d3;
    background-color: #27272e
}
}


.ace_button:hover {
.mw-highlight,
    background-color: #1b1b1f;
.mw-geshi,
    opacity: 1
pre.mw-code {
position: relative;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-inset-sm);
overflow: auto;
}
}


.ace_button:active {
.mw-highlight pre,
    background-color: #101013
pre.mw-code,
pre code {
white-space: pre;
word-break: normal;
overflow-wrap: normal;
hyphens: manual;
line-height: 1.4;
letter-spacing: 0;
margin: 0;
background: transparent;
border: 0;
padding: 12px 16px;
font-family: var(--font-family-mono);
font-size: 13px;
}
}


::-webkit-scrollbar {
.mw-highlight table {
    background-color: #424242
border-collapse: collapse;
width: 100%;
}
}


::-webkit-scrollbar-thumb {
.mw-highlight td.linenos,
    background-color: #686868;
.mw-highlight .linenos {
    border: 2px solid #424242;
width: 3.5em;
    border-radius: 4px
min-width: 3.5em;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding: 12px 8px;
vertical-align: top;
}
}


::-webkit-scrollbar-thumb:hover {
.mw-highlight td.code,
    background-color: #7b7b7b
.mw-highlight .code {
padding: 0;
}
}


::-webkit-scrollbar-thumb:active {
.mw-highlight td.code pre {
    background-color: #a1a1a1
padding-left: 12px;
}
}


.style-for-sub-numbered-lists ol {
.mw-numbered-lines,
    counter-reset: item
.line-numbers {
counter-reset: lineno;
}
}
 
.mw-numbered-lines > code > span,
.style-for-sub-numbered-lists li {
.line-numbers > code > span {
    display: block
display: block;
counter-increment: lineno;
}
}
 
.mw-numbered-lines > code > span::before,
.style-for-sub-numbered-lists li:before {
.line-numbers > code > span::before {
    content: counters(item,".") ". ";
content: counter(lineno);
    counter-increment: item
display: inline-block;
width: 3.5em;
margin-right: 8px;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding-right: 8px;
}
}


.section {
.mw-highlight code,
    display: flex;
.mw-geshi code {
    flex-wrap: wrap
background: transparent;
padding: 0;
border: 0;
box-shadow: none;
}
}


.section .col {
.mw-body .wikitable pre,
    flex: 1 1 auto
.mw-body .infobox pre {
overflow: auto;
}
}


.section .line-break {
.mw-highlight pre,
    flex-basis: 100%;
pre.mw-code {
    width: 0px;
overflow-x: auto;
    height: 0px;
overflow-y: hidden;
    overflow: hidden
}
}


.mw-body .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend,.mw-changeslist-legend,.mw-body .mw-search-profile-tabs,.mw-body fieldset#mw-searchoptions,.mw_metadata,.mw-datatable {
.mw-highlight pre,
    color: #d3d3d3;
pre.mw-code {
    background: #303037;
line-height: 1.5;
    border: solid #000000;
font-size: 13px;
    border-width: 1px 1px 0.2em;
    padding: 1.25em 1.75em;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02)
}
}


.mw_metadata > tr > th,.mw-datatable > tr > th,.wikitable > tr > th,.mw_metadata > tr > td,.mw-datatable > tr > td,.wikitable > tr > td,.mw_metadata > * > tr > th,.mw-datatable > * > tr > th,.wikitable > * > tr > th,.mw_metadata > * > tr > td,.mw-datatable > * > tr > td,.wikitable > * > tr > td {
.mw-highlight td.linenos { padding: 10px 8px; }
    border: 1px solid #000000;
.mw-highlight td.code pre { padding-left: 14px; }
    padding: 0.4em 0.5em
}
 
.mw-datatable th {
    background: #212126
}


.mw-datatable td {
.mw-highlight td.linenos,
    background-color: #303037
.mw-highlight td.code { vertical-align: top; }
}


.mw-datatable tr:hover td {
.mw-highlight pre,
    background-color: #3f3f48
pre.mw-code,
pre code {
word-break: normal;
overflow-wrap: normal;
}
}


.pretoclip-copy-button {
@media (max-width: 480px) {
    float: right
.mw-highlight td.linenos { width: 3.2em; min-width: 3.2em; }
}
 
.mw-scribunto-console-fieldset {
    color: #d3d3d3;
    background: none;
    border: 3px solid #27272e
}
 
.mw-scribunto-message {
    color: #008000;
    background: none
}
 
#mw-scribunto-input {
    width: 100%;
    border: 0;
    overflow: auto;
    background: #303037
}
 
.mw-scribunto-input {
    color: #d3d3d3;
    font: inherit;
    font-weight: bold;
    margin-top: 0.5em
}
 
.table-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly
}
 
.boxes-flex {
    padding: 0;
    margin: 0;
    text-align: center
}
 
.role-big-title {
    margin: 0px;
    text-align: center;
    font-size: 40px;
    line-height: 50px;
    border-radius: 8px
}
 
.role-block-radius {
    border-radius: 8px
}
 
.role-block-name {
    padding: 2px;
    border-radius: .3em;
    margin-bottom: .2em
}
 
.story-text {
    text-indent: 19px;
    text-align: justify
}
 
.story-dialogue {
    line-height: 1.2
}
 
.oo-ui-stackLayout-continuous > .oo-ui-panelLayout {
    display: block;
    position: relative;
    margin: 0px 25%
}
 
.mw-gallery-slideshow .gallerybox.slideshow-current {
    background: #28282e
}
 
.gallerytext {
    overflow: hidden;
    font-size: 94%;
    padding: 2px 4px;
    word-wrap: break-word;
    text-align: center
}
 
#content .gallerybox div.thumb {
    background-color: #f8f9fa00
}
 
.mw-body li.gallerybox div.thumb {
    background: #f8f9fa00;
    border: solid #28282e;
    border-width: 1px 1px 0.2em;
    padding: 1.25em 1.75em;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02);
    padding: 0
}
 
.title-no-bottom-border {
    border-bottom: none !important
}
 
.title-top-border {
    border-top: solid 2px #c8ccd1
}
 
@media (min-width: 1340px) {
    #mw-content-block {
        display:block
    }
    #mw-content {
        margin-left: 14em;
        padding: 2em 0 0
    }
 
    #mw-content-wrapper {
        float: right;
        margin-left: -14em;
        background: transparent;
        width: 100%
    }
 
    #mw-related-navigation {
        width: 14em;
        padding: 0 1em 0 0
    }
 
    .color-middle {
        margin-right: 0
    }
 
    .mw-wiki-logo {
        display: inline-block
    }
    .stiky{
    position: sticky;
    top: 3.42em;
    }
}
 
#footer {
    padding-right: 1em
}
/*респрайт заголовков*/
.mw-body .toctitle,  .mw-body h1 {
        border-bottom: solid 2px #3366cc;
    }
.mw-body h2 {
        font-size: 1.8em;
        border-bottom: solid 2px #3366cc
    }
 
#mw-site-navigation .sidebar-chunk h3,#mw-related-navigation .sidebar-chunk h3 {
        border-bottom: solid 2px #3366cc;
    }
  /*подсветка при переходе на якорь для страницы готовки*/
  .target{
  border-bottom:1px solid darkblue;
  }
.target:target{
border-bottom:2px solid gold;
    transition: border 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.backlight:hover{
box-shadow: 0 0 3px gold;
    background-color: #1b1b1f;
}
}

Текущая версия от 20:23, 8 августа 2025

:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* Remove custom color variables and use design system */
:root {
  /* Legacy space theme variables mapped to design system */
  --space-primary: var(--color-primary);
  --space-secondary: var(--color-primary-hover);
  --space-accent: var(--color-primary-active);
  --space-dark: var(--color-background);
  --space-darker: var(--color-surface);
  --space-purple: var(--color-surface);
  --space-blue: var(--color-surface);
  --space-orange: var(--color-warning);
  --space-glow: rgba(var(--color-teal-500-rgb), 0.6);
  --space-text: var(--color-text);
  --space-text-bright: var(--color-text);
  --space-bg-primary: var(--color-surface);
  --space-bg-secondary: var(--color-surface);
  --space-border: var(--color-border);
}

/* Базовые стили */
* {
  box-sizing: border-box;
}

body {
  background: var(--color-background);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-tight);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Основной контейнер MediaWiki */
.mw-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32);
  position: relative;
  overflow: hidden;
}

.mw-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.5;
}

.mw-body-content {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Исправление переполнения текста */
.mw-body-content p {
  margin: var(--space-20) 0;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Улучшенный код */
code {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-size: 90%;
  font-family: var(--font-family-mono);
  box-shadow: var(--shadow-inset-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  word-break: break-all;
  white-space: pre-wrap;
}

pre {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  overflow-x: auto;
  box-shadow: var(--shadow-inset-sm);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  letter-spacing: 0.5px;
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Улучшенные цитаты */
blockquote {
  overflow: hidden;
  margin: var(--space-32) 0;
  padding: var(--space-32) var(--space-32);
  border-left: 5px solid var(--color-primary);
  background: var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  font-style: italic;
  position: relative;
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
}

blockquote::before {
  content: '"';
  font-size: 5em;
  color: rgba(var(--color-primary-rgb), 0.3);
  position: absolute;
  top: -15px;
  left: 15px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
}

/* Улучшенные изображения */
img {
  image-rendering: optimizeSpeed;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}

img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

/* Улучшенные ссылки */
a,
a:visited {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  font-weight: var(--font-weight-medium);
  word-wrap: break-word;
}

a:not(.image):not(.thumbimage):not(.mw-file-description)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-normal) var(--ease-standard);
  border-radius: 2px;
}

a:not(.image):not(.thumbimage):not(.mw-file-description):hover::after {
  width: 100%;
}

a:hover,
a:visited:hover {
  color: var(--color-primary-hover);
  text-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.7);
  transform: translateX(2px);
}

/* Исключения для изображений */
.thumb a::after,
.gallery a::after,
a[href*="File:"]::after,
a[href*="Файл:"]::after,
a[title*="File:"]::after,
a[title*="Файл:"]::after {
  display: none !important;
}

/* Улучшенные таблицы */
.wikitable {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-32) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  font-family: var(--font-family-base);
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
}

.wikitable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
  border: 1px solid var(--color-border);
  padding: var(--space-16) var(--space-20);
  transition: all var(--duration-fast) var(--ease-standard);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0;
  min-width: 100px;
}

.wikitable > * > tr > th {
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-sm);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
}

.wikitable > * > tr > th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.wikitable > * > tr:hover > td {
  background: var(--color-secondary-hover);
  transform: scale(1.01);
}

/* Улучшенный поиск */
#simpleSearch {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  position: relative;
  overflow: hidden;
}

#simpleSearch::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-hover), var(--color-primary));
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
  z-index: -1;
}

#simpleSearch:focus-within::before {
  opacity: 1;
}

#simpleSearch:focus-within {
  border-color: transparent;
  box-shadow: var(--focus-ring);
  transform: scale(1.02);
}

#searchInput {
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: var(--space-16) var(--space-24);
  font-size: var(--font-size-base);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
}

#searchInput::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.8;
  font-style: italic;
}

/* Улучшенные вкладки */
.vector-menu-tabs {
  background: transparent;
}

.vector-menu-tabs li {
  background: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-right: var(--space-4);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.vector-menu-tabs li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.vector-menu-tabs li:hover::before {
  opacity: 1;
}

.vector-menu-tabs li:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.vector-menu-tabs .selected {
  background: var(--color-secondary-active);
  border-color: var(--color-primary);
  box-shadow: 0 -6px 20px rgba(var(--color-primary-rgb), 0.5);
}

.vector-menu-tabs .selected::before {
  opacity: 1;
}

.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Улучшенная боковая панель */
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk,
.portlet,
.pBody,
#mw-panel,
.mw-panel,
#sidebar,
.sidebar,
.vector-menu-portal,
.vector-legacy-sidebar,
#p-navigation,
#p-tb,
#p-lang {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-32);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.vector-menu-portal h3,
#mw-panel .portal h3,
.sidebar h3 {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: var(--space-16) var(--space-20);
  margin: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: var(--font-size-sm);
  position: relative;
}

.vector-menu-portal h3::after,
#mw-panel .portal h3::after,
.sidebar h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.vector-menu-portal .vector-menu-content ul li a,
#mw-panel .portal .body ul li a {
  color: var(--color-primary);
  padding: var(--space-16) var(--space-20);
  display: block;
  transition: all var(--duration-normal) var(--ease-standard);
  border-radius: var(--radius-sm);
  margin: var(--space-4) var(--space-8);
  position: relative;
  word-wrap: break-word;
}

.vector-menu-portal .vector-menu-content ul li a::before,
#mw-panel .portal .body ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  transition: width var(--duration-fast) var(--ease-standard);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.vector-menu-portal .vector-menu-content ul li a:hover::before,
#mw-panel .portal .body ul li a:hover::before {
  width: 4px;
}

.vector-menu-portal .vector-menu-content ul li a:hover,
#mw-panel .portal .body ul li a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  transform: translateX(10px);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

/* Улучшенные формы */
.mw-editform #wpTextbox1,
textarea {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-family: var(--font-family-mono);
  padding: var(--space-32);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-inset-sm);
  resize: vertical;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.5px;
  word-wrap: break-word;
}

.mw-editform #wpTextbox1:focus,
textarea:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

/* Улучшенные кнопки */
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-base);
  transition: all var(--duration-normal) var(--ease-standard);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-16) var(--space-24);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-family-base);
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover::before {
  left: 100%;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {
  background: var(--color-secondary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

/* Улучшенные скроллбары */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-base);
  border: 2px solid var(--color-surface);
  transition: all var(--duration-fast) var(--ease-standard);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
}

::-webkit-scrollbar-corner {
  background: var(--color-surface);
}

/* Скрытие скроллбаров для Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  border-bottom: 3px solid var(--color-border);
  padding-bottom: var(--space-12);
  margin-top: var(--space-32);
  position: relative;
  letter-spacing: var(--letter-spacing-tight);
  word-wrap: break-word;
}

h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 3px;
}

h1 {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* Первый заголовок страницы */
.firstHeading {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-4xl);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-16);
  text-align: center;
  word-wrap: break-word;
}

/* Личное меню */
#p-personal ul li a {
  color: var(--color-primary);
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  margin: 0 var(--space-4);
  font-weight: var(--font-weight-medium);
}

#p-personal ul li a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-hover);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.6);
  transform: translateY(-2px);
}

/* Выпадающие меню */
.vector-menu-dropdown .vector-menu-content {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-16);
  backdrop-filter: blur(15px);
}

/* Скрытие элементов */
#pt-createaccount,
#site-tools,
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced,
#t-upload {
  display: none;
}

/* Ссылки на источники */
.reference {
  background-color: transparent;
}

.references li:target,
sup.reference:target {
  background: var(--color-secondary-hover);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.6);
}

/* Футер */
#footer {
  background: var(--color-surface);
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: var(--space-32);
  padding: var(--space-32);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

/* Результаты поиска */
.mw-search-result-heading a {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.mw-search-result-data {
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Списки изменений */
.mw-changeslist-line {
  border-left: 3px solid var(--color-border);
  padding-left: var(--space-20);
  margin-bottom: var(--space-16);
  transition: all var(--duration-fast) var(--ease-standard);
}

.mw-changeslist-line:hover {
  border-left-color: var(--color-primary);
  background: var(--color-secondary);
  transform: translateX(5px);
}

/* Списки */
li {
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-12);
  word-wrap: break-word;
}

/* Жирный и курсивный текст */
strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

em, i {
  font-style: italic;
  color: var(--color-text-secondary);
}

/* Навигационные блоки */
.navbox {
  border: 1px solid var(--color-border);
  width: 100%;
  clear: both;
  font-size: 90%;
  text-align: center;
  padding: 0;
  margin: var(--space-32) auto 0;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.navbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

/* Информационные блоки */
.infobox {
  border: 1px solid var(--color-border);
  border-spacing: 0;
  background: var(--color-surface);
  color: var(--color-text);
  margin: var(--space-20) 0 var(--space-20) var(--space-32);
  padding: 0;
  float: right;
  clear: right;
  font-size: 90%;
  line-height: var(--line-height-normal);
  width: 28em;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  word-wrap: break-word;
}

.infobox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.infobox tr {
  transition: all var(--duration-fast) var(--ease-standard);
}

.infobox tr:hover {
  background: var(--color-secondary);
  transform: translateX(8px);
}

.infobox th,
.infobox td {
  padding: var(--space-16) var(--space-20);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Новая hero-секция с космическими эффектами */
.sunrise-hero-new {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-32);
  margin: var(--space-32) 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  clear: both;
}

/* Анимированный звездный фон */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--color-text), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(var(--color-text-rgb, 245, 245, 245), 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--color-text), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(var(--color-text-rgb, 245, 245, 245), 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--color-text-secondary), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 25s linear infinite;
}

@keyframes sparkle {
  from { transform: translateX(0); }
  to { transform: translateX(-200px); }
}

.nebula {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  animation: nebula-glow 10s ease-in-out infinite alternate;
}

@keyframes nebula-glow {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* Контент героя */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.hero-logo {
  margin-bottom: var(--space-32);
}

.logo-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(45deg, var(--color-primary), var(--color-warning), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: 0 0 40px rgba(var(--color-primary-rgb), 0.6);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6)); }
  100% { filter: drop-shadow(0 0 50px rgba(var(--color-primary-rgb), 0.6)); }
}

.logo-subtext {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  color: var(--color-primary-active);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--space-16);
}

.hero-description {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-32);
  opacity: 0.95;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  word-wrap: break-word;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.stat-item:hover::before {
  opacity: 1;
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 50px rgba(var(--color-primary-rgb), 0.4);
  background: var(--color-secondary-hover);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
}

/* Обновленный контейнер */
.sunrise-container-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: var(--space-32);
  margin: var(--space-32) 0;
  clear: both;
}

/* Новые секции с правильным переносом текста */
.sunrise-section-new {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  overflow: visible; 
  display: flex; 
  flex-direction: column; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sunrise-section-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  transition: left 0.6s ease;
}

.sunrise-section-new:hover::before {
  left: 100%;
}

.sunrise-section-new:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.section-header {
  margin-bottom: var(--space-24);
  text-align: center;
}

.section-header h2 {
  color: var(--color-text);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.section-header p {
  color: var(--color-primary);
  opacity: 0.9;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
}

/* Секция особенностей */
.sunrise-features {
  margin: var(--space-32) 0;
  padding: var(--space-32) 0;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  clear: both;
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.features-header h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.features-header p {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-32);
  padding: 0 var(--space-24);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32) var(--space-24);
  text-align: center;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(15px);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
  animation: rotate-slow 8s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 80px rgba(var(--color-primary-rgb), 0.3);
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 4em;
  margin-bottom: var(--space-20);
  filter: drop-shadow(0 0 25px rgba(var(--color-primary-rgb), 0.6));
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  color: var(--color-text);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  position: relative;
  z-index: 1;
  word-wrap: break-word;
}

.feature-card p {
  color: var(--color-text);
  opacity: 0.95;
  line-height: var(--line-height-normal);
  position: relative;
  z-index: 1;
  font-size: var(--font-size-lg);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Обновленные блоки с правильным переносом текста */
.sunrise-blocks-new {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin: var(--space-32) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  clear: both;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sunrise-blocks-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.blocks-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.blocks-header h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
}

.blocks-header p {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  opacity: 0.9;
  word-wrap: break-word;
}

/* Космические частицы */
.space-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: float 12s infinite linear;
  opacity: 0.7;
  box-shadow: 0 0 6px rgba(var(--color-primary-rgb), 0.8);
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: 3s;
  animation-duration: 12s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 6s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 9s;
  animation-duration: 14s;
}

.particle:nth-child(5) {
  left: 95%;
  animation-delay: 12s;
  animation-duration: 11s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Улучшенные ссылки в секциях главной страницы */
.sunrise-section-new a,
.sunrise-blocks-new a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;
}

.sunrise-section-new a:hover,
.sunrise-blocks-new a:hover {
  color: var(--color-primary-hover);
  background: var(--color-secondary);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5);
}

/* Заголовки в секциях главной страницы */
.sunrise-section-new h1,
.sunrise-section-new h2,
.sunrise-section-new h3,
.sunrise-blocks-new h1,
.sunrise-blocks-new h2,
.sunrise-blocks-new h3 {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-20);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sunrise-section-new h1::after,
.sunrise-section-new h2::after,
.sunrise-section-new h3::after,
.sunrise-blocks-new h1::after,
.sunrise-blocks-new h2::after,
.sunrise-blocks-new h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  border-radius: 2px;
}

/* Параграфы в секциях с правильным переносом */
.sunrise-section-new p,
.sunrise-blocks-new p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-20);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .sunrise-container-new {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
  }
  
  .mw-body {
    padding: var(--space-24) var(--space-24);
    margin: var(--space-20);
  }
}

@media (max-width: 768px) {
  .sunrise-container-new {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-20);
    padding: 0 var(--space-16);
  }
  
  .sunrise-hero-new {
    padding: var(--space-32) var(--space-24);
    min-height: 400px;
  }
  
  .mw-body {
    padding: var(--space-20) var(--space-20);
    margin: var(--space-16);
    border-radius: var(--radius-md);
  }
  
  .sunrise-section-new,
  .sunrise-blocks-new {
    padding: var(--space-24);
    border-radius: var(--radius-md);
  }
  
  .feature-card {
    padding: var(--space-32) var(--space-20);
  }
}

@media (max-width: 480px) {
  .sunrise-section-new,
  .sunrise-blocks-new {
    padding: var(--space-20);
    border-radius: var(--radius-base);
    margin: var(--space-16) 0;
  }
  
  .feature-card {
    padding: var(--space-24) var(--space-16);
    border-radius: var(--radius-base);
  }
  
  .sunrise-hero-new {
    padding: var(--space-24) var(--space-16);
    min-height: 350px;
    border-radius: var(--radius-base);
    margin: var(--space-16) 0;
  }
  
  .mw-body {
    padding: var(--space-16) var(--space-16);
    margin: var(--space-8);
    border-radius: var(--radius-base);
  }
  
  .sunrise-container-new {
    gap: var(--space-16);
    margin: var(--space-16) 0;
  }
  
  .features-grid {
    gap: var(--space-16);
    padding: 0 var(--space-12);
  }
  
  .sunrise-features {
    margin: var(--space-16) 0;
    padding: var(--space-24) 0;
    border-radius: var(--radius-base);
  }
  
  .features-header {
    margin-bottom: var(--space-24);
  }
  
  .blocks-header {
    margin-bottom: var(--space-24);
  }
  
  .logo-text {
    font-size: var(--font-size-3xl);
  }
  
  .logo-subtext {
    font-size: var(--font-size-lg);
    margin-top: var(--space-12);
  }
  
  .hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-24);
  }
  
  .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    text-align: center;
  }
  
.stat-label {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  text-overflow: initial;
  text-align: center;
}
  
  .section-header h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-12);
  }
  
  .section-header p {
    font-size: var(--font-size-base);
  }
  
  .features-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
  
  .features-header p {
    font-size: var(--font-size-lg);
  }
  
  .blocks-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
  
  .blocks-header p {
    font-size: var(--font-size-lg);
  }
  
  .feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-12);
  }
  
  .feature-card p {
    font-size: var(--font-size-base);
  }
  
  .feature-icon {
    font-size: 3em;
    margin-bottom: var(--space-16);
  }
}

/* Исправления для текста - предотвращение обрыва слов */
.sunrise-section-new *,
.sunrise-blocks-new *,
.hero-content *,
.feature-card * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Специальные правила для длинных слов */
.sunrise-section-new,
.sunrise-blocks-new {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Убираем скроллбары из всех блоков главной страницы */
.sunrise-section-new,
.sunrise-blocks-new,
.stat-item,
.feature-card {
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Плавные переходы для всех элементов */
* {
  transition: transform var(--duration-fast) var(--ease-standard), 
              box-shadow var(--duration-fast) var(--ease-standard), 
              border-color var(--duration-fast) var(--ease-standard), 
              background-color var(--duration-fast) var(--ease-standard);
}

/* Оптимизация производительности */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Печать */
@media print {
  .space-particles,
  .hero-background {
    display: none;
  }
  
  body {
    background: var(--color-background);
    color: var(--color-text);
  }
  
  .mw-body {
    background: var(--color-surface);
    box-shadow: none;
    border: 1px solid var(--color-border);
  }
}

/* Контейнер MainMenuAbout */
.mainmenu-about-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto; 
}

/* Секция сообщества */
.community-links {
    overflow: hidden; /* Убираем любые скроллбары */
    padding: 10px 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 15px; 
}

.social-link {
  display: flex;
  justify-content: center; 
  align-items: center;    
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 80px; 
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.2);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.social-link img {
  max-width: 100%;
  max-height: 60px; 
  object-fit: contain; 
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.05); 
}

@media (max-width: 500px) {
  .social-grid {
    grid-template-columns: 1fr; 
  }
}

/* Контент секций */
.about-content,
.help-content,
.other-projects {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
    overflow: visible; 
    max-height: none; 
}

/* Убираем скроллбары везде где они могут появиться */
.mainmenu-about-container *,
.community-links *,
.social-grid *,
.social-link * {
    /* Для WebKit браузеров (Chrome, Safari) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.mainmenu-about-container *::-webkit-scrollbar,
.community-links *::-webkit-scrollbar,
.social-grid *::-webkit-scrollbar,
.social-link *::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-link {
        min-height: 120px;
    }
}

/* Улучшенное предупреждение о доработке страницы */
.sunrise-warning-banner {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f2937;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse-warning 3s ease-in-out infinite alternate;
  font-weight: 600;
  font-size: 16px;
  max-width: 860px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.warning-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.warning-icon {
  font-size: 28px;
  animation: bounce-warning 2s ease-in-out infinite;
}

.warning-text {
  flex-grow: 1;
  line-height: 1.4;
}

.warning-close {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #1f2937;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
  transform: rotate(0deg);
}

.warning-close:hover {
  color: #dc2626;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}

@keyframes pulse-warning {
  0% {
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
  }
  100% {
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.5);
  }
}

@keyframes bounce-warning {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.stat-item:last-child {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  animation: infinity-glow 4s ease-in-out infinite alternate;
}

.stat-item:last-child .stat-number {
  background: linear-gradient(45deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2em;
}

@keyframes infinity-glow {
  0% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  }
}

.mw-collapsible-toggle a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
}

.mw-collapsible-toggle a:hover {
  color: var(--color-primary-hover);
}

.mw-collapsed .mw-collapsible-content {
  display: none;
}

/* Альтернативное решение для details/summary */
details.abbreviation-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

details.abbreviation-list summary {
  cursor: pointer;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 12px;
  user-select: none;
}

details.abbreviation-list summary:hover {
  color: #1d4ed8;
}

details.abbreviation-list[open] summary {
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

/* Адаптивность для предупреждения */
@media (max-width: 768px) {
  .sunrise-warning-banner {
    margin: 16px 12px;
    padding: 14px 18px;
    font-size: 15px;
  }
  
  .warning-icon {
    font-size: 24px;
  }
  
  .warning-close {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .sunrise-warning-banner {
    margin: 12px 8px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .warning-content {
    gap: 8px;
  }
}

.mw-collapsible-toggle {
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
border: none;
background: transparent;
padding: 4px 8px;
border-radius: 4px;
transition: all 0.3s ease;
}

.mw-collapsible-toggle:hover {
color: var(--color-primary-hover, #1d4ed8);
background-color: var(--color-secondary, rgba(59, 130, 246, 0.1));
text-decoration: none;
}

.mw-collapsed .mw-collapsible-content {
display: none !important;
}

.mw-collapsible-content {
display: block;
}

.mw-customtoggle {
cursor: pointer;
color: var(--color-primary, #3b82f6);
font-weight: bold;
user-select: none;
text-decoration: none;
}

.mw-customtoggle:hover {
color: var(--color-primary-hover, #1d4ed8);
text-decoration: underline;
}

@keyframes infinity-glow {
  0% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  }
}

.recentchanges-frame .mw-collapsible-content {
  max-height: 400px;
  overflow-y: auto; 
}

.mw-highlight,
.mw-geshi,
pre.mw-code {
position: relative;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-inset-sm);
overflow: auto; 
}

.mw-highlight pre,
pre.mw-code,
pre code {
white-space: pre; 
word-break: normal; 
overflow-wrap: normal;
hyphens: manual;
line-height: 1.4; 
letter-spacing: 0; 
margin: 0;
background: transparent;
border: 0;
padding: 12px 16px; 
font-family: var(--font-family-mono);
font-size: 13px;
}

.mw-highlight table {
border-collapse: collapse;
width: 100%;
}

.mw-highlight td.linenos,
.mw-highlight .linenos {
width: 3.5em; 
min-width: 3.5em;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding: 12px 8px;
vertical-align: top;
}

.mw-highlight td.code,
.mw-highlight .code {
padding: 0;
}

.mw-highlight td.code pre {
padding-left: 12px;
}

.mw-numbered-lines,
.line-numbers {
counter-reset: lineno;
}
.mw-numbered-lines > code > span,
.line-numbers > code > span {
display: block;
counter-increment: lineno;
}
.mw-numbered-lines > code > span::before,
.line-numbers > code > span::before {
content: counter(lineno);
display: inline-block;
width: 3.5em;
margin-right: 8px;
text-align: right;
color: var(--color-text-secondary);
user-select: none;
border-right: 1px solid var(--color-border);
padding-right: 8px;
}

.mw-highlight code,
.mw-geshi code {
background: transparent;
padding: 0;
border: 0;
box-shadow: none;
}

.mw-body .wikitable pre,
.mw-body .infobox pre {
overflow: auto;
}

.mw-highlight pre,
pre.mw-code {
overflow-x: auto;
overflow-y: hidden;
}

.mw-highlight pre,
pre.mw-code {
line-height: 1.5;
font-size: 13px;
}

.mw-highlight td.linenos { padding: 10px 8px; }
.mw-highlight td.code pre { padding-left: 14px; }

.mw-highlight td.linenos,
.mw-highlight td.code { vertical-align: top; }

.mw-highlight pre,
pre.mw-code,
pre code {
word-break: normal;
overflow-wrap: normal;
}

@media (max-width: 480px) {
.mw-highlight td.linenos { width: 3.2em; min-width: 3.2em; }
}